diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv40_fifo.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv40_fifo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv40_fifo.c b/drivers/gpu/drm/nouveau/nv40_fifo.c index f6b3580c685a..c86e4d4e9b96 100644 --- a/drivers/gpu/drm/nouveau/nv40_fifo.c +++ b/drivers/gpu/drm/nouveau/nv40_fifo.c | |||
@@ -47,6 +47,11 @@ nv40_fifo_create_context(struct nouveau_channel *chan) | |||
47 | if (ret) | 47 | if (ret) |
48 | return ret; | 48 | return ret; |
49 | 49 | ||
50 | chan->user = ioremap(pci_resource_start(dev->pdev, 0) + | ||
51 | NV40_USER(chan->id), PAGE_SIZE); | ||
52 | if (!chan->user) | ||
53 | return -ENOMEM; | ||
54 | |||
50 | spin_lock_irqsave(&dev_priv->context_switch_lock, flags); | 55 | spin_lock_irqsave(&dev_priv->context_switch_lock, flags); |
51 | 56 | ||
52 | nv_wi32(dev, fc + 0, chan->pushbuf_base); | 57 | nv_wi32(dev, fc + 0, chan->pushbuf_base); |