]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Oct 2021 09:31:08 +0000 (11:31 +0200)
commit99c888898da35876e3fbaa6437d93bd3f5428a3c
tree9064b2c362c3d20ed171080e1e66742282f201f7
parentf06f26176621b44d1f56535828f3945a2422c0f6
drm/nouveau/disp: power down unused DP links during init

BugLink: https://bugs.launchpad.net/bugs/1944756
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.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