Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6a7b026 authored by Lauri Peltonen's avatar Lauri Peltonen Committed by Ben Skeggs
Browse files

drm/nouveau/gr/gf100: Clear notify interrupt



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: default avatarLauri Peltonen <lpeltonen@nvidia.com>
Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 3d951c38
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1103,6 +1103,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)) {