Skip to content

Commit 8385741

Browse files
Jérôme GlisseBen Skeggs
authored andcommitted
drm/nouveau/dmem: empty chunk do not have a buffer object associated with them.
Empty chunk do not have a bo associated with them so no need to pin/unpin on suspend/resume. This fix suspend/resume on 5.1rc1 when NOUVEAU_SVM is enabled. Signed-off-by: Jérôme Glisse <jglisse@redhat.com> Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> Tested-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> Cc: Ben Skeggs <bskeggs@redhat.com> Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
1 parent 909e9c9 commit 8385741

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/gpu/drm/nouveau/nouveau_dmem.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,6 @@ nouveau_dmem_resume(struct nouveau_drm *drm)
454454
/* FIXME handle pin failure */
455455
WARN_ON(ret);
456456
}
457-
list_for_each_entry (chunk, &drm->dmem->chunk_empty, list) {
458-
ret = nouveau_bo_pin(chunk->bo, TTM_PL_FLAG_VRAM, false);
459-
/* FIXME handle pin failure */
460-
WARN_ON(ret);
461-
}
462457
mutex_unlock(&drm->dmem->mutex);
463458
}
464459

@@ -477,9 +472,6 @@ nouveau_dmem_suspend(struct nouveau_drm *drm)
477472
list_for_each_entry (chunk, &drm->dmem->chunk_full, list) {
478473
nouveau_bo_unpin(chunk->bo);
479474
}
480-
list_for_each_entry (chunk, &drm->dmem->chunk_empty, list) {
481-
nouveau_bo_unpin(chunk->bo);
482-
}
483475
mutex_unlock(&drm->dmem->mutex);
484476
}
485477

0 commit comments

Comments
 (0)