Skip to contentSkip to conversation

gr/gf100: Clear notify interrupt

PATCH New Alexandre Courbot 1 participant 1 message Feb 26, 2015 Tegra architecture support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gr/gf100: Clear notify interrupt

From: Lauri Peltonen <[email protected]>

Notify interrupt is only used for cyclestats. We can just clear it and avoid an "unknown stat" error that gets printed to dmesg otherwise.

---
 drm/nouveau/nvkm/engine/gr/gf100.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drm/nouveau/nvkm/engine/gr/gf100.c +9 -0
index 34b6d4baea16..15620c716195 100644
@@ -1108,6 +1108,15 @@ gf100_gr_intr(struct nvkm_subdev *subdev)
 	engctx = nvkm_engctx_get(engine, inst);
 	chid   = pfifo->chid(pfifo, engctx);
 
+	if (stat & 0x00000001) {
+		/*
+		 * notifier interrupt, only needed for cyclestats
+		 * can be safely ignored
+		 */
+		nv_wr32(priv, 0x400100, 0x00000001);
+		stat &= ~0x00000001;
+	}
+
 	if (stat & 0x00000010) {
 		handle = nvkm_handle_get_class(engctx, class);
 		if (!handle || nv_call(handle->object, mthd, data)) {
Signature · 6 lines
2.3.0

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