]> git.karo-electronics.de Git - linux-beck.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)
commitcd9d4e9f9fa2809dedc637406fa15016bfcb2ad0
tree004796f781c192f694486b97667fc9e271a44fc9
parent2e895b17d7df7af20f7fbdceff249795d2146d01
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