Skip to content

Commit bb4960c

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/display: properly guard the calls to swSMU functions
[ Upstream commit 4072327 ] It's only applicable on newer asics. We could end up here when using DC on older asics like SI or KV. 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 c2013b7 commit bb4960c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ bool dm_pp_apply_display_requirements(
106106
adev->powerplay.pp_funcs->display_configuration_change(
107107
adev->powerplay.pp_handle,
108108
&adev->pm.pm_display_cfg);
109-
else
109+
else if (adev->smu.ppt_funcs)
110110
smu_display_configuration_change(smu,
111111
&adev->pm.pm_display_cfg);
112112

@@ -592,7 +592,7 @@ void pp_rv_set_wm_ranges(struct pp_smu *pp,
592592
if (pp_funcs && pp_funcs->set_watermarks_for_clocks_ranges)
593593
pp_funcs->set_watermarks_for_clocks_ranges(pp_handle,
594594
&wm_with_clock_ranges);
595-
else
595+
else if (adev->smu.ppt_funcs)
596596
smu_set_watermarks_for_clock_ranges(&adev->smu,
597597
&wm_with_clock_ranges);
598598
}

0 commit comments

Comments
 (0)