diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-10-18 16:11:29 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-10-23 14:21:09 +0100 |
commit | 4fdb086924db46489b1af679e2a06683f73c9cbc (patch) | |
tree | 6f6367ea21ac82a52874bda21d1e359505ee1ff0 | |
parent | b8206d3916c15a2939b85f21673bdf39e4c8d023 (diff) |
drm/qxl: notify that the monitor config changed
drm_helper_hpd_irq_event() only notifies when the connector status
changed. However, Spice monitor config can change while the connector is
connected, to support arbitrary resolution. Do an hotplug event if it
wasn't done by drm_helper_hpd_irq_event().
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_display.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 835caba026d..c2cc9b52d33 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c @@ -107,7 +107,12 @@ void qxl_display_read_client_monitors_config(struct qxl_device *qdev) qxl_io_log(qdev, "failed crc check for client_monitors_config," " retrying\n"); } - drm_helper_hpd_irq_event(qdev->ddev); + + if (!drm_helper_hpd_irq_event(qdev->ddev)) { + /* notify that the monitor configuration changed, to + adjust at the arbitrary resolution */ + drm_kms_helper_hotplug_event(qdev->ddev); + } } static int qxl_add_monitors_config_modes(struct drm_connector *connector) |