drm/nv50: implement custom vram mm
authorBen Skeggs <bskeggs@redhat.com>
Wed, 25 Aug 2010 05:26:04 +0000 (15:26 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 8 Dec 2010 03:48:07 +0000 (13:48 +1000)
commit573a2a37e8648a3249426c816f51e7ef50f6f73e
treec8d9ea9071026f469511e380417532f60733fd14
parent937c3471cc8b7ef8f9e382d9e4ec232db151ea7b
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>
drivers/gpu/drm/nouveau/Makefile
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_mem.c
drivers/gpu/drm/nouveau/nouveau_mm.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/nouveau_mm.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/nv50_instmem.c
drivers/gpu/drm/nouveau/nv50_vram.c [new file with mode: 0644]