Commit 9717f3d9 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau: detect disabled device in irq handler and return IRQ_NONE

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent e19b20bb
......@@ -79,7 +79,7 @@ nouveau_irq_handler(DRM_IRQ_ARGS)
int i;
stat = nv_rd32(dev, NV03_PMC_INTR_0);
if (!stat)
if (stat == 0 || stat == ~0)
return IRQ_NONE;
spin_lock_irqsave(&dev_priv->context_switch_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment