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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:21:53 +0000 (08:21 +0200)
commite352d8eb9394af1897cfeaaafe8fd946269f6637
tree5494c6e5c060a4e9f7f5ae212ae318afcc97e941
parentcff9e1e331519b107df742fc99b02fe018dd494d
drm/atomic_helper: Disallow new modesets on unregistered connectors

[ Upstream commit 4d80273976bf880c4bed9359b8f2d45663140c86 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_atomic_helper.c