]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: Fix nv50_mstc->best_encoder()
authorLyude Paul <lyude@redhat.com>
Mon, 8 Oct 2018 23:24:31 +0000 (19:24 -0400)
committerLyude Paul <lyude@redhat.com>
Wed, 10 Oct 2018 23:39:51 +0000 (19:39 -0400)
commitb5a2f74fc60379db36451a2feb48c63295037c3d
treedc5eb364bffa18f517b9fac987e9e01b701c410d
parent35ba8ea180869631b76d166e1dbd020ff1bce47d
drm/nouveau: Fix nv50_mstc->best_encoder()

As mentioned in the previous commit, we currently prevent new modesets
on recently-removed MST connectors by returning no encoder from our
->best_encoder() callback once the MST port has disappeared. This is
wrong however, because it prevents legacy modesetting users from being
able to disable CRTCs on MST connectors after the connector's respective
topology has disappeared.

So, fix this by instead by just always returning a valid encoder.

Changes since v2:
- Remove usage of atomic MST helper for now, since that got replaced
  with a much simpler solution

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