drm/amd/display: Populate dcn2.1 bounding box before state duplication
authorSung Lee <sung.lee@amd.com>
Wed, 3 Feb 2021 22:08:39 +0000 (17:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Feb 2021 21:43:10 +0000 (16:43 -0500)
commit00e9d4c0ab1470853eb26d6a41ecb94194063287
tree21b02a74ef6c472a70f46c8a5aa6dbe2467a96aa
parent737b2b536a30a467c405d75f2287e17828838a13
drm/amd/display: Populate dcn2.1 bounding box before state duplication

[Why]
If system is overclocked, only 1 bounding box state will
be sent by SMU. This results in an empty state being copied
for DML calculations causing black screens and corruption.

[How]
Fully populate bounding box before duplicating last state.

Signed-off-by: Sung Lee <sung.lee@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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