]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Copy over soc values before bounding box creation
authorSung Lee <sung.lee@amd.com>
Thu, 4 Feb 2021 13:21:15 +0000 (08:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Mar 2021 17:42:54 +0000 (13:42 -0400)
commit20be7198ee8f14ae6b7cbc8d5b4ad22bee2794af
tree3cbc8557554b4dac62e53b657d6bba75d18ec449
parent76f835d7073c6000883a67aa6ad2a258b8b88eaf
drm/amd/display: Copy over soc values before bounding box creation

[Why]
With certain fclock overclocks, state 1 may be chosen
as the closest clock level. This may result in this state
being empty if not populated beforehand, resulting in
black screens and screen corruption.

[How]
Copy over all soc states to clock_limits before bounding
box creation to avoid any cases with empty states.

Fixes: 631973619a1682 ("drm/amd/display: Add Bounding Box State for Low DF PState but High Voltage State")
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1514
Signed-off-by: Sung Lee <sung.lee@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Qingqing Zhuo <Qingqing.Zhuo@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c