OSDN Git Service

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)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 19 Oct 2018 08:11:53 +0000 (11:11 +0300)
commite96550956fbcd090629c0e2b5b8cded2eded2adf
tree7f8827c4bfc7e29719a5c3741c006660b617deef
parentf2bfc71aee75feff33ca659322b72ffeed5a243d
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
(cherry picked from commit 4d80273976bf880c4bed9359b8f2d45663140c86)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/drm_atomic_helper.c