drm: Allow CAP_PRIME on !MODESET
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 7 Dec 2016 14:49:39 +0000 (15:49 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Dec 2016 09:00:15 +0000 (10:00 +0100)
commitf3f4c4d68a2862c361fd9890998275da5ef02724
tree612466960f60dbe25c45fe8cd42659d86985f490
parent35f8cc3b9a92c661e5331d64fdfdedb518891d5c
drm: Allow CAP_PRIME on !MODESET

vgem (and our igt tests using vgem) need this. I suspect etnaviv will
fare similarly.

v2. Make it build. Oops.

Fixes: d5264ed3823a ("drm: Return -ENOTSUPP when called for KMS cap with a non-KMS driver")
Cc: Michel Dänzer <michel.daenzer@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161207144939.22756-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_ioctl.c