Skip to contentSkip to conversation

drm/nouveau: Fix HDA ELD handling (thus, HDMI audio) on gt215

PATCH In review Alastair Bridgewater 2 participants 2 messages Jan 11, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau: Fix HDA ELD handling (thus, HDMI audio) on gt215

Store the ELD correctly, not just enough copies of the first byte to pad out the given ELD size.

---
 drivers/gpu/drm/nouveau/nvkm/engine/disp/hdagt215.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/engine/disp/hdagt215.c +1 -1
index 6f0436d..f8f2f16 100644
@@ -59,7 +59,7 @@ gt215_hda_eld(NV50_DISP_MTHD_V1)
 			);
 		}
 		for (i = 0; i < size; i++)
-			nvkm_wr32(device, 0x61c440 + soff, (i << 8) | args->v0.data[0]);
+			nvkm_wr32(device, 0x61c440 + soff, (i << 8) | args->v0.data[i]);
 		for (; i < 0x60; i++)
 			nvkm_wr32(device, 0x61c440 + soff, (i << 8));
 		nvkm_mask(device, 0x61c448 + soff, 0x80000003, 0x80000003);
Signature · 6 lines
2.10.2

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Alastair Bridgewater

Store the ELD correctly, not just enough copies of the first byte to pad out the given ELD size.

Great find! Here are some more tags:

Fixes 120b0c39c756 ("drm/nv50-/disp: audit and version SOR_HDA_ELD method")
Cc [email protected] # v3.17+
Quoted 20 lines
---
 drivers/gpu/drm/nouveau/nvkm/engine/disp/hdagt215.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/engine/disp/hdagt215.c +1 -2
index 6f0436d..f8f2f16 100644
@@ -59,7 +59,7 @@ gt215_hda_eld(NV50_DISP_MTHD_V1)
                        );
                }
                for (i = 0; i < size; i++)
-                       nvkm_wr32(device, 0x61c440 + soff, (i << 8) | args->v0.data[0]);
+                       nvkm_wr32(device, 0x61c440 + soff, (i << 8) | args->v0.data[i]);
                for (; i < 0x60; i++)
                        nvkm_wr32(device, 0x61c440 + soff, (i << 8));
                nvkm_mask(device, 0x61c448 + soff, 0x80000003, 0x80000003);
--

2.10.2

Quoted 4 lines

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel