]> Pileus Git - ~andy/linux/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)
commit4695b03970df378dcb93fe3e7158381f1e980fa2
tree90b10c6f4aeced65452b3a54867e5b8b328ad436
parent8f6599da8e772fa8de54cdf98e9e03cbaf3946da
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