drm/vmwgfx: Allow the UPDATE_LAYOUT ioctl from control nodes
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 12 Feb 2016 09:34:19 +0000 (10:34 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Mon, 14 Mar 2016 14:01:30 +0000 (15:01 +0100)
On vmware there is a daemon telling the KMS system about the GUI layout.
Typically it talks to the X server but in the absence of an X server or if
there are multiple, it wants to talk directly to the vmwgfx kernel module.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

index 1ca90377581ce4c4cc1718f8bccee53e5cf76daa..6cbb7d4bdd11dd329010d452ffad8e6b525bb8e8 100644 (file)
@@ -195,7 +195,7 @@ static const struct drm_ioctl_desc vmw_ioctls[] = {
                      DRM_MASTER | DRM_AUTH),
        VMW_IOCTL_DEF(VMW_UPDATE_LAYOUT,
                      vmw_kms_update_layout_ioctl,
-                     DRM_MASTER),
+                     DRM_MASTER | DRM_CONTROL_ALLOW),
        VMW_IOCTL_DEF(VMW_CREATE_SHADER,
                      vmw_shader_define_ioctl,
                      DRM_AUTH | DRM_RENDER_ALLOW),