Maarten Lankhorst
2013-Oct-10 08:04 UTC
[Nouveau] [PATCH] drm/nouveau: do not map evicted bo's in nouveau_bo_vma_add
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com> Cc: <stable at vger.kernel.org> # v3.7+ --- diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1551,7 +1579,8 @@ nouveau_bo_vma_add(struct nouveau_bo *nvbo, struct nouveau_vm *vm, if (nvbo->bo.mem.mem_type == TTM_PL_VRAM) nouveau_vm_map(vma, nvbo->bo.mem.mm_node); - else if (nvbo->bo.mem.mem_type == TTM_PL_TT) { + else if (nvbo->bo.mem.mem_type == TTM_PL_TT && + nvbo->page_shift == vma->vm->vmm->spg_shift) { if (node->sg) nouveau_vm_map_sg_table(vma, 0, size, node); else
Reasonably Related Threads
- [PATCH 5/7] drm/nouveau: do not map evicted vram buffers in nouveau_bo_vma_add
- [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap
- [PATCH] drm/nouveau: avoid null deref on bad arguments to nouveau_vma_getmap
- [PATCH] drm/nouveau: fix takedown in move_notify
- [PATCH 4/6] drm/nouveau: introduce NOUVEAU_GEM_TILE_WCUS