drm/vc4: Fix race between page flip completion event and clean-up
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 24 Nov 2016 18:11:55 +0000 (12:11 -0600)
committerEric Anholt <eric@anholt.net>
Tue, 29 Nov 2016 23:39:45 +0000 (15:39 -0800)
commit26fc78f6fef39b9d7a15def5e7e9826ff68303f4
tree7110f99026dbefcdb82ac1b46a71acd6714bfa37
parentc778cc5df944291dcdb1ca7a6bb781fbc22550c5
drm/vc4: Fix race between page flip completion event and clean-up

There was a small window where a userspace program could submit
a pageflip after receiving a pageflip completion event yet still
receive EBUSY.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_kms.c