[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>

[ROCm/amdsmi commit: 6a43b64d0c]
此提交包含在:
Poag, Charis authored and Maisam Arif committed 2025-04-29 18:52:32 -05:00
1 父節點 cf5a795045
當前提交 cab1c46165
1 file changed
+2
+2
查看文件
@@ -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);