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>
Showing
- drivers/gpu/drm/nouveau/Makefile 3 additions, 2 deletionsdrivers/gpu/drm/nouveau/Makefile
- drivers/gpu/drm/nouveau/nouveau_bo.c 5 additions, 38 deletionsdrivers/gpu/drm/nouveau/nouveau_bo.c
- drivers/gpu/drm/nouveau/nouveau_drv.h 10 additions, 0 deletionsdrivers/gpu/drm/nouveau/nouveau_drv.h
- drivers/gpu/drm/nouveau/nouveau_mem.c 119 additions, 82 deletionsdrivers/gpu/drm/nouveau/nouveau_mem.c
- drivers/gpu/drm/nouveau/nouveau_mm.c 271 additions, 0 deletionsdrivers/gpu/drm/nouveau/nouveau_mm.c
- drivers/gpu/drm/nouveau/nouveau_mm.h 61 additions, 0 deletionsdrivers/gpu/drm/nouveau/nouveau_mm.h
- drivers/gpu/drm/nouveau/nv50_instmem.c 1 addition, 0 deletionsdrivers/gpu/drm/nouveau/nv50_instmem.c
- drivers/gpu/drm/nouveau/nv50_vram.c 180 additions, 0 deletionsdrivers/gpu/drm/nouveau/nv50_vram.c
drivers/gpu/drm/nouveau/nouveau_mm.c
0 → 100644
drivers/gpu/drm/nouveau/nouveau_mm.h
0 → 100644
drivers/gpu/drm/nouveau/nv50_vram.c
0 → 100644
Please register or sign in to comment