xserver/hw
Lyude Paul 7a44e8d400 modesetting: Actually disable CRTCs in legacy mode
Believe it or not, somehow we've never done this in legacy mode! We
currently simply change the DPMS property on the CRTC's output's
respective DRM connector, but this means that we're just setting the
CRTC as inactive-not disabled. From the perspective of the kernel, this
means that any shared resources used by the CRTC are still in use.

This can cause problems for drivers that are not yet fully atomic,
despite using the atomic helpers internally. For instance: if CRTC-1 and
CRTC-2 are still enabled and use shared resources within the kernel (an
MST topology, for example), and then userspace tries to go enable CRTC-3
on the same topology this might suddenly fail if CRTC-3 needs the shared
resources CRTC-1 and CRTC-2 are using. While I don't know of any
situations in the mainline kernel that actually trigger this, future
plans for reworking the atomic check of MST drivers are absolutely
going to make this into a real issue (they already are in my WIP
branches for the kernel).

So: actually do the right thing here and disable CRTCs when they're not
going to be used anymore, even in legacy mode.

Signed-off-by: Lyude Paul <lyude@redhat.com>
2018-11-29 16:21:26 +00:00
..
dmx dix: Remove LegalModifier() 2018-09-28 16:25:17 -04:00
kdrive dix: Remove LegalModifier() 2018-09-28 16:25:17 -04:00
vfb os: Factor out CHECK_FOR_REQUIRED_ARGUMENTS 2018-10-25 14:46:44 +00:00
xfree86 modesetting: Actually disable CRTCs in legacy mode 2018-11-29 16:21:26 +00:00
xnest dix: Remove LegalModifier() 2018-09-28 16:25:17 -04:00
xquartz Remove obsolete B16 & B32 tags in struct definitions 2018-11-10 15:00:31 -08:00
xwayland xwayland: Don't take buffer release queue into account for frame timer 2018-11-19 20:57:15 +00:00
xwin dix: Remove LegalModifier() 2018-09-28 16:25:17 -04:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00
meson.build meson: Move Xvfb build under an option. 2017-09-20 13:19:21 -04:00