]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d8103fc60827bd49547d2c534fd495e7d4fcd55
tree7f8827c4bfc7e29719a5c3741c006660b617deef
parentd103ccff793fa5860083c505f2d3a2a8aa7c9f33
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