drm/nv50/disp: prevent false output detection on the original nv50
Subsystems (3)
PATCH 1/1 drm/nv50/disp: prevent false output detection on the original nv50
Commit ea9197cc323839ef3d5280c0453b2c622caa6bc7 effectively enabled the use of an improved DAC detection code, but introduced a regression on the original nv50 chipset, causing a ghost monitor to be detected.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67382
--- drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c +8 -1
@@ -55,7 +55,14 @@ nv50_dac_sense(struct nv50_disp_priv *priv, int or, u32 loadval)nv_wr32 (priv,0x61a00c + doff,0x00100000 | loadval);mdelay (9 );udelay (500 ); -nv_wr32 (priv,0x61a00c + doff,0x80000000 ); + +/* +* The original nv50 detects a ghost monitor if we do the following +* write. See fdo#67382 for more information +*/ +if (nv_device (priv)->chipset !=0x50 ) +nv_wr32 (priv,0x61a00c + doff,0x80000000 ); + load = (nv_rd32 (priv,0x61a00c + doff) &0x38000000 ) >>27 ;nv_wr32 (priv,0x61a00c + doff,0x00000000 );nv_mask (priv,0x61a004 + doff,0x807f0000 ,0x80550000 );
Signature · 1 line
1.8.3.4
Quoted 3 lines · Emil Velikov
Commit
ea9197cc323839ef3d5280c0453b2c622caa6bc7effectively enabled the use of an improved DAC detection code, but introduced a regression on the original nv50 chipset, causing a ghost monitor to be detected.
Hey Emil,
I've merged this patch, modified (after some experimenting on both NV50 and GK106) to make this change unconditional for all chipsets.
Thanks :)
Ben.
Quoted 36 lines
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67382
Tested-by Martin Peres <[email protected]>Signed-off-by Emil Velikov <[email protected]>Cc <[email protected]> # 3.9+--- drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c +8
-2@@ -55,7 +55,14 @@ nv50_dac_sense(struct nv50_disp_priv *priv, int or, u32 loadval)nv_wr32 (priv,0x61a00c + doff,0x00100000 | loadval);mdelay (9 );udelay (500 ); -nv_wr32 (priv,0x61a00c + doff,0x80000000 ); + +/* +* The original nv50 detects a ghost monitor if we do the following +* write. See fdo#67382 for more information +*/ +if (nv_device (priv)->chipset !=0x50 ) +nv_wr32 (priv,0x61a00c + doff,0x80000000 ); + load = (nv_rd32 (priv,0x61a00c + doff) &0x38000000 ) >>27 ;nv_wr32 (priv,0x61a00c + doff,0x00000000 );nv_mask (priv,0x61a004 + doff,0x807f0000 ,0x80550000 ); --1.8.3.4
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau