mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm
Tom Rix 430e6a0212 drm/amd/pm: return -ENOTSUPP if there is no get_dpm_ultimate_freq function
clang static analysis reports this represenative problem
amdgpu_smu.c:144:18: warning: The left operand of '*' is a garbage value
        return clk_freq * 100;
               ~~~~~~~~ ^

If there is no get_dpm_ultimate_freq function,
smu_get_dpm_freq_range returns success without setting the
output min,max parameters.  So return an -ENOTSUPP error.

Fixes: e5ef784b1e ("drm/amd/powerplay: revise calling chain on retrieving frequency range")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-01-25 18:00:36 -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/amdgpu/pm/smu7: drop message about VI performance levels 2022-01-25 18:00:36 -05:00
swsmu drm/amd/pm: return -ENOTSUPP if there is no get_dpm_ultimate_freq function 2022-01-25 18:00:36 -05:00
amdgpu_dpm_internal.c drm/amd/pm: optimize the amdgpu_pm_compute_clocks() implementations 2022-01-14 17:51:14 -05:00
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