mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-04 16:22:09 +00:00
drm/nouveau: detect disabled device in irq handler and return IRQ_NONE
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
e19b20bbd2
commit
9717f3d953
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user