linux/drivers/gpu/drm/qxl
Jonathon Jongsma bd3e1c7c6d drm/qxl: validate monitors config modes
Due to some recent changes in
drm_helper_probe_single_connector_modes_merge_bits(), old custom modes
were not being pruned properly. In current kernels,
drm_mode_validate_basic() is called to sanity-check each mode in the
list. If the sanity-check passes, the mode's status gets set to to
MODE_OK. In older kernels this check was not done, so old custom modes
would still have a status of MODE_UNVERIFIED at this point, and would
therefore be pruned later in the function.

As a result of this new behavior, the list of modes for a device always
includes every custom mode ever configured for the device, with the
largest one listed first. Since desktop environments usually choose the
first preferred mode when a hotplug event is emitted, this had the
result of making it very difficult for the user to reduce the size of
the display.

The qxl driver did implement the mode_valid connector function, but it
was empty. In order to restore the old behavior where old custom modes
are pruned, we implement a proper mode_valid function for the qxl
driver. This function now checks each mode against the last configured
custom mode and the list of standard modes. If the mode doesn't match
any of these, its status is set to MODE_BAD so that it will be pruned as
expected.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-09-11 10:51:33 +10:00
..
Kconfig
Makefile
qxl_cmd.c drm/qxl: Remove format string errors 2015-06-05 11:00:51 +10:00
qxl_debugfs.c
qxl_dev.h
qxl_display.c drm/qxl: validate monitors config modes 2015-09-11 10:51:33 +10:00
qxl_draw.c
qxl_drv.c drm/qxl: Fix qxl_noop_get_vblank_counter() 2015-05-04 11:14:55 +02:00
qxl_drv.h drm/qxl: validate monitors config modes 2015-09-11 10:51:33 +10:00
qxl_dumb.c
qxl_fb.c drm/qxl: Use new drm_fb_helper functions 2015-08-06 14:12:59 +02:00
qxl_gem.c drm/qxl: Move main reference counter to GEM object instead of TTM ones 2015-06-05 11:00:51 +10:00
qxl_image.c
qxl_ioctl.c drm/qxl: Propagate correctly errors from qxlhw_handle_to_bo 2015-06-05 11:00:52 +10:00
qxl_irq.c
qxl_kms.c
qxl_object.c drm/qxl: Don't take dev->struct_mutex in bo_force_delete 2015-08-11 12:04:16 +02:00
qxl_object.h
qxl_prime.c drm: Pass dma-buf as argument to gem_prime_import_sg_table 2014-09-30 14:04:00 +02:00
qxl_release.c drm/qxl: Remove format string errors 2015-06-05 11:00:51 +10:00
qxl_ttm.c