OSDN Git Service

drm/amd/display: add basic atomic check for cursor plane
authorSimon Ser <contact@emersion.fr>
Mon, 30 Mar 2020 09:23:21 +0000 (09:23 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 May 2020 20:15:02 +0000 (16:15 -0400)
commit626bf90fe03fa080d8df06bb0397c95c53ae8e27
tree3d3ecfaa4fa7aefe138675b11a792f8759abd6e5
parent2346ef47e871536cf4e36b77859bfdeb39b49024
drm/amd/display: add basic atomic check for cursor plane

This patch adds a basic cursor check when an atomic test-only commit is
performed. The position and size of the cursor plane is checked.

This should fix user-space relying on atomic checks to assign buffers to
planes.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reported-by: Roman Gilg <subdiff@gmail.com>
References: https://github.com/emersion/libliftoff/issues/46
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Harry Wentland <hwentlan@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c