xserver/hw
Martin Peres bcee1b76aa modesetting: re-set the crtc's mode when link-status goes BAD
Despite all the careful planning of the kernel, a link may become
insufficient to handle the currently-set mode. At this point, the
kernel should mark this particular configuration as being broken
and potentially prune the mode before setting the offending connector's
link-status to BAD and send the userspace a hotplug event. This may
happen right after a modeset or later on.

Upon receiving a hot-plug event, we iterate through the connectors to
re-apply the currently-set mode on all the connectors that have a
link-status property set to BAD. The kernel may be able to get the
link to work by dropping to using a lower link bpp (with the same
display bpp). However, the modeset may fail if the kernel has pruned
the mode, so to make users aware of this problem a warning is outputed
in the logs to warn about having a potentially-black display.

This patch does not modify the current behaviour of always propagating
the events to the randr clients. This allows desktop environments to
re-probe the connectors and select a new resolution based on the new
(currated) mode list if a mode disapeared. This behaviour is expected in
order to pass the Display Port compliance tests.

Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2017-04-12 11:00:10 -07:00
..
dmx dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
kdrive xephyr: Check for host XVideo support before trying to use it 2017-04-10 14:10:02 -04:00
vfb dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
xfree86 modesetting: re-set the crtc's mode when link-status goes BAD 2017-04-12 11:00:10 -07:00
xnest dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
xquartz ddx: add new call to purge input devices that weren't added 2016-10-26 15:35:07 +10:00
xwayland dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
xwin dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00