]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: On DCN1, Wait for vupdate on cursor updates
authorDavid Francis <David.Francis@amd.com>
Thu, 21 Feb 2019 20:04:05 +0000 (15:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:49 +0000 (15:36 -0500)
commit474eea74afe8d25b0d9110dc18dc6efdda0ae5d5
treebf17992af2e8c3fe77a6d2ad1182c20a18fb3636
parent0c2c89b7c0f6fbae2f5466a9f7eb5dac30fae734
drm/amd/display: On DCN1, Wait for vupdate on cursor updates

[Why]
Cursor updates must acquire the pipe control lock to
prevent vupdate from triggering in the middle of cursor
programming. On DCN1 the pipe control lock prevents
pageflips from occurring. This means that a cursor update
right before vupdate can delay a pending pageflip

[How]
If the time until the next vupdate is less than a
conservative estimate of the cursor programming time,
wait until the vupdate has passed before locking.

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Acked-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c