linux/drivers/gpu/drm/amd/pm
Lang Yu d435c1ed56 drm/amd/pm: add get_dpm_ultimate_freq function for cyan skillfish
Some clients(e.g., kfd) query sclk/mclk through this function.
As cyan skillfish doesn't support dpm, for sclk, set min/max
to CYAN_SKILLFISH_SCLK_MIN/CYAN_SKILLFISH_SCLK_MAX(to maintain the
existing logic).For others, set both min and max to current value.

Before this patch:
 # /opt/rocm/opencl/bin/clinfo

 Max clock frequency:                           0Mhz

After this patch:
 # /opt/rocm/opencl/bin/clinfo

 Max clock frequency:                           2000Mhz

v2:
 - Maintain the existing min/max sclk logic.(Lijo)
v3:
 - Avoid fetching metrics table twice.(Lijo)

Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-01-25 18:00:34 -05:00
..
inc drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00
legacy-dpm drm/amd/pm: remove useless if 2022-01-25 18:00:33 -05:00
powerplay drm/amd/pm: use dev_*** to print output in multiple GPUs 2022-01-25 18:00:32 -05:00
swsmu drm/amd/pm: add get_dpm_ultimate_freq function for cyan skillfish 2022-01-25 18:00:34 -05:00
amdgpu_dpm_internal.c
amdgpu_dpm.c drm/amd/pm: fix null ptr access 2022-01-14 17:52:47 -05:00
amdgpu_pm.c drm/amd/pm: Enable sysfs required by rocm-smi tool for One VF mode 2022-01-18 17:41:18 -05:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00