From: Francisco Jerez Date: Wed, 4 Aug 2010 02:41:55 +0000 (+0200) Subject: drm/nouveau: Ack the context switch interrupt before switching contexts. X-Git-Tag: v2.6.36-rc3~9^2~7^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=308dcebac7cb9e6dcf8972a178c535b795952931;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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: Francisco Jerez Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_irq.c b/drivers/gpu/drm/nouveau/nouveau_irq.c index 53360f1..0a4a617 100644 --- a/drivers/gpu/drm/nouveau/nouveau_irq.c +++ b/drivers/gpu/drm/nouveau/nouveau_irq.c @@ -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) {