aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_instmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_instmem.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_instmem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_instmem.c b/drivers/gpu/drm/nouveau/nv50_instmem.c
index 0651e7629235..2c98eb176d64 100644
--- a/drivers/gpu/drm/nouveau/nv50_instmem.c
+++ b/drivers/gpu/drm/nouveau/nv50_instmem.c
@@ -322,19 +322,19 @@ nv50_instmem_resume(struct drm_device *dev)
322 322
323int 323int
324nv50_instmem_populate(struct drm_device *dev, struct nouveau_gpuobj *gpuobj, 324nv50_instmem_populate(struct drm_device *dev, struct nouveau_gpuobj *gpuobj,
325 uint32_t *sz) 325 u32 *size, u32 align)
326{ 326{
327 int ret; 327 int ret;
328 328
329 if (gpuobj->im_backing) 329 if (gpuobj->im_backing)
330 return -EINVAL; 330 return -EINVAL;
331 331
332 *sz = ALIGN(*sz, 4096); 332 *size = ALIGN(*size, 4096);
333 if (*sz == 0) 333 if (*size == 0)
334 return -EINVAL; 334 return -EINVAL;
335 335
336 ret = nouveau_bo_new(dev, NULL, *sz, 0, TTM_PL_FLAG_VRAM, 0, 0x0000, 336 ret = nouveau_bo_new(dev, NULL, *size, align, TTM_PL_FLAG_VRAM,
337 true, false, &gpuobj->im_backing); 337 0, 0x0000, true, false, &gpuobj->im_backing);
338 if (ret) { 338 if (ret) {
339 NV_ERROR(dev, "error getting PRAMIN backing pages: %d\n", ret); 339 NV_ERROR(dev, "error getting PRAMIN backing pages: %d\n", ret);
340 return ret; 340 return ret;