All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/nouveau: do not map evicted bo's in nouveau_bo_vma_add
@ 2013-10-10  8:04 Maarten Lankhorst
  0 siblings, 0 replies; only message in thread
From: Maarten Lankhorst @ 2013-10-10  8:04 UTC (permalink / raw)
  To: nouveau@lists.freedesktop.org; +Cc: dri-devel@lists.freedesktop.org

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: <stable@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-10-10  8:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-10  8:04 [PATCH] drm/nouveau: do not map evicted bo's in nouveau_bo_vma_add Maarten Lankhorst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.