UPSTREAM: 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>
(cherry picked from commit 2216c9e74fb3baac3cb73952158dbe38b703997e)
Signed-off-by: Dominik Behr <dbehr@chromium.org>

Change-Id: I8ee4ca1d94decb4fd530a7d5bc1e985455d33173
Reviewed-on: https://chromium-review.googlesource.com/291780
Commit-Ready: Dominik Behr <dbehr@chromium.org>
Tested-by: Dominik Behr <dbehr@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
1 file changed