Commit 4072327a authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu/display: properly guard the calls to swSMU functions

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/1170Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 376814f5
...@@ -106,7 +106,7 @@ bool dm_pp_apply_display_requirements( ...@@ -106,7 +106,7 @@ bool dm_pp_apply_display_requirements(
adev->powerplay.pp_funcs->display_configuration_change( adev->powerplay.pp_funcs->display_configuration_change(
adev->powerplay.pp_handle, adev->powerplay.pp_handle,
&adev->pm.pm_display_cfg); &adev->pm.pm_display_cfg);
else else if (adev->smu.ppt_funcs)
smu_display_configuration_change(smu, smu_display_configuration_change(smu,
&adev->pm.pm_display_cfg); &adev->pm.pm_display_cfg);
...@@ -592,7 +592,7 @@ void pp_rv_set_wm_ranges(struct pp_smu *pp, ...@@ -592,7 +592,7 @@ void pp_rv_set_wm_ranges(struct pp_smu *pp,
if (pp_funcs && pp_funcs->set_watermarks_for_clocks_ranges) if (pp_funcs && pp_funcs->set_watermarks_for_clocks_ranges)
pp_funcs->set_watermarks_for_clocks_ranges(pp_handle, pp_funcs->set_watermarks_for_clocks_ranges(pp_handle,
&wm_with_clock_ranges); &wm_with_clock_ranges);
else else if (adev->smu.ppt_funcs)
smu_set_watermarks_for_clock_ranges(&adev->smu, smu_set_watermarks_for_clock_ranges(&adev->smu,
&wm_with_clock_ranges); &wm_with_clock_ranges);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment