[SWDEV-518561] P1: Inconsistent memory partition change (#315)

Changes:
- Cleaned up drm connections before changing memory partitions

Change-Id: I08430d22536bb6094c91a06fbf2f74d9b75a4fa7

Signed-off-by: Charis Poag <Charis.Poag@amd.com>
This commit is contained in:
Poag, Charis
2025-04-28 14:16:07 -05:00
committed by Maisam Arif
parent 797e4fba07
commit 6a43b64d0c
+2
View File
@@ -1930,6 +1930,8 @@ amdsmi_set_gpu_memory_partition(amdsmi_processor_handle processor_handle,
} else if (it == nps_amdsmi_to_RSMI.end()) {
return AMDSMI_STATUS_INVAL;
}
amd::smi::AMDSmiSystem::getInstance().clean_up_drm();
amdsmi_status_t ret = rsmi_wrapper(rsmi_dev_memory_partition_set, processor_handle, 0,
rsmi_type);