drm/nv50-/instmem: allocate vram for kernel objects from end of vram
authorBen Skeggs <bskeggs@redhat.com>
Wed, 11 Jul 2012 08:10:11 +0000 (18:10 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 3 Oct 2012 03:12:49 +0000 (13:12 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/instmem/nv50.c

index d9b346333a443f1651bc7e37d42ce8af6cd476fe..5965eb7cf3905a59fca18fb3488a1eef8944f68f 100644 (file)
@@ -323,7 +323,7 @@ nv50_instmem_get(struct nouveau_gpuobj *gpuobj, struct nouveau_channel *chan,
        size  = (size + 4095) & ~4095;
        align = max(align, (u32)4096);
 
-       ret = vram->get(dev, size, align, 0, 0, &node->vram);
+       ret = vram->get(dev, size, align, 0, 0x800, &node->vram);
        if (ret) {
                kfree(node);
                return ret;