]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Enforce unlocked ioctl operation for kms driver ioctls
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 28 Sep 2015 19:42:40 +0000 (21:42 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 16 Oct 2015 13:50:54 +0000 (15:50 +0200)
commitdb9ebba1e812a51900224a2695f4a777f3b9ddc3
treeead40458ef2c4f333228113e38d7facb01475a50
parent9a611215fe8caad956ac9952204d927edf28e25d
drm: Enforce unlocked ioctl operation for kms driver ioctls

With the prep patches for i915 all kms drivers either have
DRM_UNLOCKED on all their ioctls. Or the ioctl always directly returns
with an invariant return value when in modeset mode. But that's only
the case for i915 and radeon. The drm core ioctls are unfortunately
too much a mess still to dare this.

Follow-up patches will remove DRM_UNLOCKED from all kms drivers to
prove that this is indeed the case.

Also update the documentation.

v2: Really only do this for driver ioctls, spotted by David Herrmann.
And drop spurious whitespace change.

Cc: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Documentation/DocBook/drm.tmpl
drivers/gpu/drm/drm_ioctl.c