[SWDEV-499029] Fix unable to change memory partition modes

Changes:
  * [API] Removed checking board name, fixes for other MI ASICs
  * [CLI] Increased progress bar to change memory partition modes
    to 140 seconds, since driver reload is variable per system

Change-Id: Ifcaf40d28b4adf5eaa800c9e3748d33749dc414a
Signed-off-by: Charis Poag <Charis.Poag@amd.com>


[ROCm/rocm_smi_lib commit: d04cec7f1d]
Dieser Commit ist enthalten in:
Charis Poag
2024-11-21 23:28:03 -06:00
Ursprung 21d3a831d7
Commit 06fead7e41
3 geänderte Dateien mit 46 neuen und 47 gelöschten Zeilen
@@ -1867,7 +1867,7 @@ def setMemoryPartition(deviceList, memoryPartition, autoRespond):
(', '.join(map(str, memory_partition_type_l))) ))
return (None, None)
kTimeWait = 40
kTimeWait = 140
t1 = multiprocessing.Process(target=showProgressbar,
args=("Updating memory partition",kTimeWait,))
t1.start()
@@ -3889,7 +3889,7 @@ def confirmChangingMemoryPartitionAndReloadingAMDGPU(autoRespond):
******WARNING******\n
Setting Dynamic Memory (NPS) partition modes require users to quit all GPU workloads.
ROCm SMI will then attempt to change memory (NPS) partition mode.
Upon a successful set, ROCm SMI will then initiate an action to restart amdgpu driver.
Upon a successful set, ROCm SMI will then initiate an action to restart AMD GPU driver.
This action will change all GPU's in the hive to the requested memory (NPS) partition mode.
Please use this utility with caution.