drm: change ioctl permissions
authorRob Clark <rob@ti.com>
Thu, 13 Sep 2012 03:34:08 +0000 (03:34 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 Oct 2012 12:16:08 +0000 (22:16 +1000)
commit2216c9e74fb3baac3cb73952158dbe38b703997e
tree6dadfa27aecbd6d54815a4b5dc99ca8a5e556e5a
parent7c80e128429d639742043f8fbdd7f1551c940ea3
drm: change ioctl permissions

Previously read-only KMS ioctls had some somewhat inconsistent settings
regarding whether mastership was required.  For example, GETRESOURCES
did not require master, but GETPLANERESOURCES, GETPROPERTY, etc. did.

At least for debugging, it is nice to be able to use modetest to dump
property values while another process is master, and there seems to
be no harm in allowing read-only access to the KMS state to other
processes.

Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c