]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3cc2ad5499a0937a8102c20b597d133f77eba10e
tree3d3ecfaa4fa7aefe138675b11a792f8759abd6e5
parent2a3a4ef71cb7ada0af12c7cb2a2a2034c4937035
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