drm/amd/display: Use max memclk variable when setting max memclk
authorAlvin Lee <alvin.lee2@amd.com>
Thu, 27 Jul 2023 18:23:13 +0000 (14:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Aug 2023 21:14:09 +0000 (17:14 -0400)
commit2b1b838ea8e5437ef06a29818d16e9efdfaf0037
tree77ec49fc17fc53e2c8e6984e6aa1bc08bc0e8789
parent2abc0ccf92bff889f2aa07c44c4d8093d453dd7a
drm/amd/display: Use max memclk variable when setting max memclk

[Description]
In overclocking scenarios the max memclk could be higher
than the DC mode limit. However, for configs that don't
support MCLK switching we need to set the max memclk to
the overclocked max instead of the DC mode max or we
could result in underflow.

Reviewed-by: Samson Tam <samson.tam@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Alvin Lee <alvin.lee2@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/dcn32/dcn32_clk_mgr.c