diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-08-25 15:26:04 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-12-08 13:48:07 +1000 |
commit | 573a2a37e8648a3249426c816f51e7ef50f6f73e (patch) | |
tree | c8d9ea9071026f469511e380417532f60733fd14 /drivers/gpu/drm/nouveau/nv50_instmem.c | |
parent | 937c3471cc8b7ef8f9e382d9e4ec232db151ea7b (diff) | |
download | op-kernel-dev-573a2a37e8648a3249426c816f51e7ef50f6f73e.zip op-kernel-dev-573a2a37e8648a3249426c816f51e7ef50f6f73e.tar.gz |
drm/nv50: implement custom vram mm
This is required on nv50 as we need to be able to have more precise control
over physical VRAM allocations to avoid buffer corruption when using
buffers of mixed memory types.
This removes some nasty overallocation/alignment that we were previously
using to "control" this problem.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_instmem.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_instmem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_instmem.c b/drivers/gpu/drm/nouveau/nv50_instmem.c index 8716095..1e7d503 100644 --- a/drivers/gpu/drm/nouveau/nv50_instmem.c +++ b/drivers/gpu/drm/nouveau/nv50_instmem.c @@ -325,6 +325,7 @@ nv50_instmem_get(struct nouveau_gpuobj *gpuobj, u32 size, u32 align) 0, 0x0000, true, false, &node->vram); if (ret) { NV_ERROR(dev, "error getting PRAMIN backing pages: %d\n", ret); + WARN_ON(1); return ret; } |