OSDN Git Service

drm/vmwgfx: Work around drm removal of control nodes
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 21 Feb 2017 10:42:27 +0000 (17:42 +0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 26 Feb 2017 21:52:28 +0000 (22:52 +0100)
commit31788ca803a0c89078f9e604e64286fbd9077926
tree1bf14463538fcd1a247fc3148ebfe6aa639a2af4
parentefe0220fc2d2cc1cbd6c663dd3d652ac2b9afd1a
drm/vmwgfx: Work around drm removal of control nodes

vmware tools has a daemon that gets layout information from the GUI and
forwards it to DRM so that the modesetting code can set preferred connector
locations and modes. This daemon was using control nodes but since control
nodes were just removed, make it possible for the daemon to use render- or
primary nodes instead. This is a bit ugly but will allow drm to proceed with
removal of the mostly unused control-node code and allow vmware to proceed
with fixing up automatic layout settings for gnome-shell/wayland.

We bump minor to inform user-space about the api change.

Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170221104227.2854-1-thellstrom@vmware.com
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h