]> git.ipfire.org Git - people/arne_f/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Sep 2021 08:09:28 +0000 (10:09 +0200)
commit7f422cda03a62b7e9355ea8dded431c066dca3b1
treecc35db0f08fc061987f9813c67aac8e6b4c6562b
parent6fd6e20520ccd05a1ac3321404dd498cc28576cb
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