Commit 4fdb0869 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

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: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent b8206d39
...@@ -107,7 +107,12 @@ void qxl_display_read_client_monitors_config(struct qxl_device *qdev) ...@@ -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," qxl_io_log(qdev, "failed crc check for client_monitors_config,"
" retrying\n"); " 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) static int qxl_add_monitors_config_modes(struct drm_connector *connector)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment