drm/amd/display: Reset plane when tiling flags change
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 28 Jul 2020 13:59:53 +0000 (09:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Aug 2020 19:46:19 +0000 (15:46 -0400)
commit9a81cc60796b9f86cf19245e68562750541bb575
treef55c1a8cb4bad13382c4163cf534c090d3436ce0
parent707477b0861f5d7b93512024db8d39db5a65025c
drm/amd/display: Reset plane when tiling flags change

[Why]
Enabling or disable DCC or switching between tiled and linear formats
can require bandwidth updates.

They're currently skipping all DC validation by being treated as purely
surface updates.

[How]
Treat tiling_flag changes (which encode DCC state) as a condition for
resetting the plane.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c