Commit ee9ea6d8 authored by Alex Deucher's avatar Alex Deucher

drm/amd/display: add default clocks if not able to fetch them

dm_pp_get_clock_levels_by_type needs to add the default clocks
to the powerplay case as well.  This was accidently dropped.

Fixes: b3ea88fe ("drm/amd/powerplay: add get_clock_by_type interface for display")
Bug: https://gitlab.freedesktop.org/drm/amd/issues/906Reviewed-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e9c5dbc1
...@@ -342,7 +342,8 @@ bool dm_pp_get_clock_levels_by_type( ...@@ -342,7 +342,8 @@ bool dm_pp_get_clock_levels_by_type(
if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_clock_by_type) { if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_clock_by_type) {
if (adev->powerplay.pp_funcs->get_clock_by_type(pp_handle, if (adev->powerplay.pp_funcs->get_clock_by_type(pp_handle,
dc_to_pp_clock_type(clk_type), &pp_clks)) { dc_to_pp_clock_type(clk_type), &pp_clks)) {
/* Error in pplib. Provide default values. */ /* Error in pplib. Provide default values. */
get_default_clock_levels(clk_type, dc_clks);
return true; return true;
} }
} else if (adev->smu.ppt_funcs && adev->smu.ppt_funcs->get_clock_by_type) { } else if (adev->smu.ppt_funcs && adev->smu.ppt_funcs->get_clock_by_type) {
......
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