Alexandre Courbot
2015-Feb-26 04:16 UTC
[Nouveau] [PATCH] gr/gf100: Clear notify interrupt
From: Lauri Peltonen <lpeltonen at nvidia.com>
Notify interrupt is only used for cyclestats. We can just clear it and
avoid an "unknown stat" error that gets printed to dmesg otherwise.
Signed-off-by: Lauri Peltonen <lpeltonen at nvidia.com>
Signed-off-by: Alexandre Courbot <acourbot at nvidia.com>
---
drm/nouveau/nvkm/engine/gr/gf100.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drm/nouveau/nvkm/engine/gr/gf100.c
b/drm/nouveau/nvkm/engine/gr/gf100.c
index 34b6d4baea16..15620c716195 100644
--- a/drm/nouveau/nvkm/engine/gr/gf100.c
+++ b/drm/nouveau/nvkm/engine/gr/gf100.c
@@ -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)) {
--
2.3.0
Reasonably Related Threads
- [PATCH] graph/nvc0: Fix engine pointer retrieval
- [PATCH] drm/nv31-nv43/mpeg: inst not available on pre-nv44
- [RFC PATCH 7/7] drm/prime: Support explicit fence on export
- [PATCH] drm/nouveau: fix lockdep splat in display
- [RFC PATCH] drm/nouveau: report channel owner in error messages
