diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-11-12 15:12:51 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-12-08 13:48:15 +1000 |
commit | bfd83aca5a1c4cc07fb18d96ed8660f2c338a8f3 (patch) | |
tree | bb43aa47adfdd43f6bcb1deb24b92f5999b59d71 /drivers/gpu/drm/nouveau/nouveau_mem.c | |
parent | 4c1361429841344ce4d164492ee7620cf3286eb7 (diff) | |
download | op-kernel-dev-bfd83aca5a1c4cc07fb18d96ed8660f2c338a8f3.zip op-kernel-dev-bfd83aca5a1c4cc07fb18d96ed8660f2c338a8f3.tar.gz |
drm/nv50: enable 4KiB pages for small vram allocations
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_mem.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_mem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c index 4d2d3de..3a531d5 100644 --- a/drivers/gpu/drm/nouveau/nouveau_mem.c +++ b/drivers/gpu/drm/nouveau/nouveau_mem.c @@ -715,7 +715,8 @@ nouveau_vram_manager_new(struct ttm_mem_type_manager *man, struct nouveau_vram *vram; int ret; - ret = nv50_vram_new(dev, mem->num_pages << PAGE_SHIFT, 65536, 0, + ret = nv50_vram_new(dev, mem->num_pages << PAGE_SHIFT, + mem->page_alignment << PAGE_SHIFT, 0, (nvbo->tile_flags >> 8) & 0x7f, &vram); if (ret) return ret; |