]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Sep 2021 08:08:15 +0000 (10:08 +0200)
commitad6a2bc7588ac0e217a72e2feedb5c0c360b2f96
tree955eb37f72b9a46c494e661fdea110198e9dc1d7
parent689179c462d8cdccab32d0ffe58f2b433508d1aa
drm/nouveau/disp: power down unused DP links during init

[ Upstream commit 6eaa1f3c59a707332e921e32782ffcad49915c5e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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