diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nve0_graph.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nve0_graph.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nve0_graph.c b/drivers/gpu/drm/nouveau/nve0_graph.c index 9cc3cf246e09..41356274ca61 100644 --- a/drivers/gpu/drm/nouveau/nve0_graph.c +++ b/drivers/gpu/drm/nouveau/nve0_graph.c | |||
@@ -29,6 +29,7 @@ | |||
29 | 29 | ||
30 | #include "nouveau_drv.h" | 30 | #include "nouveau_drv.h" |
31 | #include "nouveau_mm.h" | 31 | #include "nouveau_mm.h" |
32 | #include "nouveau_fifo.h" | ||
32 | 33 | ||
33 | #include "nve0_graph.h" | 34 | #include "nve0_graph.h" |
34 | 35 | ||
@@ -548,13 +549,14 @@ nve0_graph_init(struct drm_device *dev, int engine) | |||
548 | int | 549 | int |
549 | nve0_graph_isr_chid(struct drm_device *dev, u64 inst) | 550 | nve0_graph_isr_chid(struct drm_device *dev, u64 inst) |
550 | { | 551 | { |
552 | struct nouveau_fifo_priv *pfifo = nv_engine(dev, NVOBJ_ENGINE_FIFO); | ||
551 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 553 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
552 | struct nouveau_channel *chan; | 554 | struct nouveau_channel *chan; |
553 | unsigned long flags; | 555 | unsigned long flags; |
554 | int i; | 556 | int i; |
555 | 557 | ||
556 | spin_lock_irqsave(&dev_priv->channels.lock, flags); | 558 | spin_lock_irqsave(&dev_priv->channels.lock, flags); |
557 | for (i = 0; i < dev_priv->engine.fifo.channels; i++) { | 559 | for (i = 0; i < pfifo->channels; i++) { |
558 | chan = dev_priv->channels.ptr[i]; | 560 | chan = dev_priv->channels.ptr[i]; |
559 | if (!chan || !chan->ramin) | 561 | if (!chan || !chan->ramin) |
560 | continue; | 562 | continue; |