]> git.baikalelectronics.ru Git - kernel.git/commit
qxl: add a connector property to denote hotplug should rescan modes.
authorDave Airlie <airlied@redhat.com>
Fri, 11 Oct 2013 01:05:00 +0000 (11:05 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 05:23:26 +0000 (15:23 +1000)
commite4642aad3b0c074b9d3a8583b4fcd8ffb42dd0ef
tree90b10c6f4aeced65452b3a54867e5b8b328ad436
parent485daba794993146ca158e1fd805cb17ba48714c
qxl: add a connector property to denote hotplug should rescan modes.

So GNOME userspace has an issue with when it rescans for modes on hotplug
events, if the monitor has no EDID it assumes that nothing has changed on
EDID as with real hw we'd never have new modes without a new EDID, and they
kind off rely on the behaviour now, however with virtual GPUs we would
like to rescan the modes and get a new preferred mode on hotplug events
to handle dynamic guest resizing (where you resize the host window and the
guest resizes with it).

This is a simple property we can make userspace watch for to trigger new
behaviour based on it, and can be used to replaced EDID hacks in virtual
drivers.

Acked-by: Marc-André Lureau <marcandre.lureau@gmail.com> (on irc)
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/qxl/qxl_display.c
drivers/gpu/drm/qxl/qxl_drv.h