[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:
committed by
Maisam Arif
parent
797e4fba07
commit
6a43b64d0c
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user