[SWDEV-484382] Fix VCLK/DCLK outputs for monitor, static, metric

Units were off and VCLK/DCLK outputs were not coming in
properly through amdsmi_get_clk_freq()

Now we match units sent back through rsmi_dev_gpu_clk_freq_get (MHz).

CLI now shows maximum of 2 VCLK/DCLKs otherwise shows N/A if there
is no current_freq listed.

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


[ROCm/amdsmi commit: 3226a1d0ea]
Этот коммит содержится в:
Charis Poag authored and Arif, Maisam committed 2024-12-20 14:11:08 -06:00
1 родитель 9d5eada975
Коммит bf4bbef085
7 files changed
+128 -48

No files matched your search

+2 -1
Просмотреть файл
@@ -3688,11 +3688,12 @@ def amdsmi_get_clk_freq(
)
)
return {
dict_ret = {
"num_supported": freq.num_supported,
"current": freq.current,
"frequency": list(freq.frequency)[: freq.num_supported],
}
return dict_ret
def amdsmi_get_soc_pstate(