]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7fa5c6d4b6aa2a15b5a74db8b5a812031fbe649
treef55c1a8cb4bad13382c4163cf534c090d3436ce0
parent0d75aa8988b93c8e9a5962ab9fa1834d1b9eb3cc
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