]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: check for kms in dri1 ioctls
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 24 Apr 2012 06:29:42 +0000 (08:29 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 09:18:14 +0000 (11:18 +0200)
commit4d4112f815c0de0d0119a37cfc5a583b64e46ea6
tree004796f781c192f694486b97667fc9e271a44fc9
parentcaed9d64a80b8357ae7e022f88eab98cdab9c7fa
drm/i915: check for kms in dri1 ioctls

Calling these when gem assumes full control of the hw won't end
in anything else than tears. So be a bit more paranoid here.

Just serves as documentation.

v2: Bail out with ENODEV as suggested by Chris Wilson.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_irq.c