drm/atomic_helper: Disallow new modesets on unregistered connectors
authorLyude Paul <lyude@redhat.com>
Mon, 8 Oct 2018 23:24:30 +0000 (19:24 -0400)
committerLyude Paul <lyude@redhat.com>
Tue, 9 Oct 2018 15:12:23 +0000 (11:12 -0400)
commit4d80273976bf880c4bed9359b8f2d45663140c86
treecdbd5efb51937c1391cc876f9c7035b0a78175d3
parentbc3213c444153848b3a1fcaccbcf2c2123ce3de7
drm/atomic_helper: Disallow new modesets on unregistered connectors

With the exception of modesets which would switch the DPMS state of a
connector from on to off, we want to make sure that we disallow all
modesets which would result in enabling a new monitor or a new mode
configuration on a monitor if the connector for the display in question
is no longer registered. This allows us to stop userspace from trying to
enable new displays on connectors for an MST topology that were just
removed from the system, without preventing userspace from disabling
DPMS on those connectors.

Changes since v5:
- Fix typo in comment, nothing else

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20181008232437.5571-2-lyude@redhat.com
drivers/gpu/drm/drm_atomic_helper.c