summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_bo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bo.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_bo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index 42d1ad62b381..d17ffea3c617 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -909,8 +909,9 @@ nouveau_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem)
break;
}
- ret = nouveau_vm_get(dev_priv->bar1_vm, mem->bus.size, 12,
- NV_MEM_ACCESS_RW, &vram->bar_vma);
+ ret = nouveau_vm_get(dev_priv->bar1_vm, mem->bus.size,
+ vram->page_shift, NV_MEM_ACCESS_RW,
+ &vram->bar_vma);
if (ret)
return ret;
OpenPOWER on IntegriCloud