]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/display: Validate dc_plane_info and dc_plane_size in atomic check
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 2 Aug 2019 14:31:29 +0000 (10:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2019 18:52:05 +0000 (13:52 -0500)
commit2cc450ceaae4febc1539975247d235eb06c11979
treebd104b88006d2cdc90aeddaba62eee3f7ad6fbff
parent3cf7bf2e4837fa1836f09b751e6130473a69fd11
drm/amd/display: Validate dc_plane_info and dc_plane_size in atomic check

[Why]
Pitch, DCC, rotation and mirroring can result in updates that are not
UPDATE_TYPE_FAST but UPDATE_TYPE_MED instead. DC needs dc_plane_info
and dc_plane_size to make this determination and we aren't currently
passing this into DC during atomic check.

Underflow (visible or non-visible) can occur if we don't validate this
correctly. This also will generally trigger p-state warnings, typically
via the cursor handler when locking.

[How]
Get the framebuffer tiling flags and generate the required structures
for DC in dm_determine_update_type_for_commit.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <david.francis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c