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

Commit 308dceba authored by Francisco Jerez's avatar Francisco Jerez Committed by Ben Skeggs
Browse files

drm/nouveau: Ack the context switch interrupt before switching contexts.



Leaving the IRQ unack'ed while switching contexts makes the switch
fail randomly on some nv1x.

Signed-off-by: default avatarFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 3c9b2534
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -586,11 +586,11 @@ nouveau_pgraph_irq_handler(struct drm_device *dev)
		}

		if (status & NV_PGRAPH_INTR_CONTEXT_SWITCH) {
			nouveau_pgraph_intr_context_switch(dev);

			status &= ~NV_PGRAPH_INTR_CONTEXT_SWITCH;
			nv_wr32(dev, NV03_PGRAPH_INTR,
				 NV_PGRAPH_INTR_CONTEXT_SWITCH);

			nouveau_pgraph_intr_context_switch(dev);
		}

		if (status) {