]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/disp: power down unused DP links during init
authorBen Skeggs <bskeggs@redhat.com>
Mon, 9 Aug 2021 06:40:48 +0000 (16:40 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 18 Aug 2021 09:00:04 +0000 (19:00 +1000)
commit8d7d5122fcfe6e164992c812442401aa3b003eaf
tree2b9a263b9fa0de5583fcc3cef9b5d74a9b96bf04
parentdc92d607adab8bd3ec9ad6cf4bf2aaecf33274b8
drm/nouveau/disp: power down unused DP links during init

When booted with multiple displays attached, the EFI GOP driver on (at
least) Ampere, can leave DP links powered up that aren't being used to
display anything.  This confuses our tracking of SOR routing, with the
likely result being a failed modeset and display engine hang.

Fix this by (ab?)using the DisableLT IED script to power-down the link,
restoring HW to a state the driver expects.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h
drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c