]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Implement O_NONBLOCK support on /dev/dri/cardN
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Oct 2014 13:13:51 +0000 (14:13 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Oct 2014 13:07:07 +0000 (15:07 +0200)
commit4370656b25a98d6b8bb2f19e3534afb8d69a76e2
treefd2dccbe46c751fd9db37005f16517212ab339ad
parent37fc5fff9063f4a6d00fd60874883fbed3807ee9
drm: Implement O_NONBLOCK support on /dev/dri/cardN

The implmentation is simple in the extreme: we only want to wait for
events if the device was opened in blocking mode, otherwise we grab what
is available and report an error if there was none.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Testcase: igt/kms_flip/nonblocing_read
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_fops.c