]> www.infradead.org Git - users/willy/xarray.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>
Thu, 18 Feb 2021 21:43:10 +0000 (16:43 -0500)
commitbbaef585913b4b9ba63b0f9d694c4529e9c89438
tree3c64b6f95964ec454f480681814c6eb76fa4d0df
parentf9b4f20c4777bd305ef04f9485294692bc65968c
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.

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>
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c