diff options
| author | Tom Rix <[email protected]> | 2022-01-24 20:18:12 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-01-25 23:00:36 +0000 |
| commit | 430e6a0212b2a0eb1de5e9d47a016fa79edf3978 (patch) | |
| tree | 6de58add1c8dfbee0989102e4223517e4c67ad07 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | |
| parent | drm/amd/display: Wrap dcn301_calculate_wm_and_dlg for FPU. (diff) | |
| download | kernel-430e6a0212b2a0eb1de5e9d47a016fa79edf3978.tar.gz kernel-430e6a0212b2a0eb1de5e9d47a016fa79edf3978.zip | |
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: e5ef784b1e17 ("drm/amd/powerplay: revise calling chain on retrieving frequency range")
Signed-off-by: Tom Rix <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
0 files changed, 0 insertions, 0 deletions
