Skip to content

Commit a1ef8ba

Browse files
author
Ben Skeggs
committed
drm/nouveau/disp/gm200-: fix NV_PDISP_SOR_HDMI2_CTRL(n) selection
This is a SOR register, and not indexed by the bound head. Fixes display not coming up on high-bandwidth HDMI displays under a number of configurations. Signed-off-by: Ben Skeggs <[email protected]>
1 parent dc455f4 commit a1ef8ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/nouveau/nvkm/engine/disp/hdmigm200.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ void
2727
gm200_hdmi_scdc(struct nvkm_ior *ior, int head, u8 scdc)
2828
{
2929
struct nvkm_device *device = ior->disp->engine.subdev.device;
30-
const u32 hoff = head * 0x800;
30+
const u32 soff = nv50_ior_base(ior);
3131
const u32 ctrl = scdc & 0x3;
3232

33-
nvkm_mask(device, 0x61c5bc + hoff, 0x00000003, ctrl);
33+
nvkm_mask(device, 0x61c5bc + soff, 0x00000003, ctrl);
3434

3535
ior->tmds.high_speed = !!(scdc & 0x2);
3636
}

0 commit comments

Comments
 (0)