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)
commit6eaa1f3c59a707332e921e32782ffcad49915c5e
tree2b9a263b9fa0de5583fcc3cef9b5d74a9b96bf04
parentfa25f28ef2cef19bc9ffeb827b8ecbf48af7f892
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