drm/amd/display: Correct bw_params population
authorDaniel Miess <Daniel.Miess@amd.com>
Tue, 17 Jan 2023 20:23:06 +0000 (15:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Jan 2023 19:01:24 +0000 (14:01 -0500)
commitf5df7725e38853b5b07b7ab41017916f1e5b4e57
tree7e0163c424763a90d061b0a8bfe5b5479664dade
parent73dd4ca4b5a01235607231839bd351bbef75a1d2
drm/amd/display: Correct bw_params population

[Why]
Underflow observed during P010 video playback on
dcn314 due to incorrectly populated bw_params

[How]
Populate fclk, memclk and voltage in bw_params with
values from max pstate rather than min pstate

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Daniel Miess <Daniel.Miess@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c