Skip to content

Commit c2013b7

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/display bail early in dm_pp_get_static_clocks
[ Upstream commit 376814f ] If there are no supported callbacks. We'll fall back to the nominal clocks. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1170 Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent aeb79d9 commit c2013b7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ bool dm_pp_get_static_clocks(
530530
&pp_clk_info);
531531
else if (adev->smu.ppt_funcs)
532532
ret = smu_get_current_clocks(&adev->smu, &pp_clk_info);
533+
else
534+
return false;
533535
if (ret)
534536
return false;
535537

0 commit comments

Comments
 (0)