aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2021-08-09 16:40:48 +1000
committerBen Skeggs <bskeggs@redhat.com>2021-08-18 19:00:04 +1000
commit6eaa1f3c59a707332e921e32782ffcad49915c5e (patch)
tree2b9a263b9fa0de5583fcc3cef9b5d74a9b96bf04 /drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h
parentdrm/nouveau: recognise GA107 (diff)
downloadlinux-dev-6eaa1f3c59a707332e921e32782ffcad49915c5e.tar.xz
linux-dev-6eaa1f3c59a707332e921e32782ffcad49915c5e.zip
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>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h b/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h
index 428b3f488f03..e484d0c3b0d4 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h
@@ -32,6 +32,7 @@ struct nvkm_dp {
int nvkm_dp_new(struct nvkm_disp *, int index, struct dcb_output *,
struct nvkm_outp **);
+void nvkm_dp_disable(struct nvkm_outp *, struct nvkm_ior *);
/* DPCD Receiver Capabilities */
#define DPCD_RC00_DPCD_REV 0x00000