Skip to content

Commit

Permalink
drm/qxl: notify that the monitor config changed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marc-André Lureau authored and Dave Airlie committed Oct 23, 2013
1 parent b8206d3 commit 4fdb086
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/gpu/drm/qxl/qxl_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4fdb086

Please sign in to comment.