gpu/nouveau: empty chunk do not have a buffer object associated with them.
Subsystems (3)
PATCH 1/1 gpu/nouveau: empty chunk do not have a buffer object associated with them.
From: Jérôme Glisse <[email protected]>
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 <[email protected]>
Reviewed-by Tobias Klausmann <[email protected]>
Tested-by Tobias Klausmann <[email protected]>
Cc Ben Skeggs <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
--- drivers/gpu/drm/nouveau/nouveau_dmem.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/gpu/drm/nouveau/nouveau_dmem.c +0 -8
@@ -456,11 +456,6 @@ nouveau_dmem_resume(struct nouveau_drm *drm)/* FIXME handle pin failure */ WARN_ON (ret); } - list_for_each_entry (chunk, &drm->dmem->chunk_empty, list) { - ret =nouveau_bo_pin (chunk->bo,TTM_PL_FLAG_VRAM , false); -/* FIXME handle pin failure */ -WARN_ON (ret); - }mutex_unlock (&drm->dmem->mutex); }
@@ -479,9 +474,6 @@ nouveau_dmem_suspend(struct nouveau_drm *drm) list_for_each_entry (chunk, &drm->dmem->chunk_full, list) {nouveau_bo_unpin (chunk->bo); } - list_for_each_entry (chunk, &drm->dmem->chunk_empty, list) { -nouveau_bo_unpin (chunk->bo); - }mutex_unlock (&drm->dmem->mutex); }
Signature · 1 line
2.17.1