Skip to contentSkip to conversation

drm/ttm: fix missing parameter change for ttm_bo_cleanup_refs

PATCH In review Roger He 2 participants 2 messages Jan 19, 2018

Subsystems (3)
lore
Share & tools
lore

Roger He

author
#0 lore raw

PATCH 1/1 drm/ttm: fix missing parameter change for ttm_bo_cleanup_refs

Missed in the patche:
dc94777 drm/ttm: enable swapout for reserved BOs during allocation. don't unreserve the BO if it is not reserved by itself.

---
 drivers/gpu/drm/ttm/ttm_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_bo.c +1 -1
index 893003f..2fef09a 100644
@@ -1727,7 +1727,7 @@ int ttm_bo_swapout(struct ttm_bo_global *glob, struct ttm_operation_ctx *ctx)
 	kref_get(&bo->list_kref);
 
 	if (!list_empty(&bo->ddestroy)) {
-		ret = ttm_bo_cleanup_refs(bo, false, false, true);
+		ret = ttm_bo_cleanup_refs(bo, false, false, locked);
 		kref_put(&bo->list_kref, ttm_bo_release_list);
 		return ret;
 	}
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw

Am 19.01.2018 um 07:42 schrieb Roger He:

Quoted 5 lines

Missed in the patche:
dc94777 drm/ttm: enable swapout for reserved BOs during allocation. don't unreserve the BO if it is not reserved by itself.

I already wondered if we shouldn't use "locked" somewhere else as well, Christian.

Quoted 9 lines
---
  drivers/gpu/drm/ttm/ttm_bo.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_bo.c +0 -0
index 893003f..2fef09a 100644

drivers/gpu/drm/ttm/ttm_bo.c int ttm_bo_swapout(struct ttm_bo_global *glob, struct ttm_operation_ctx *ctx) · line 1733

Quoted 8 lines
drivers/gpu/drm/ttm/ttm_bo.c +1 -1
@@ -1727,7 +1727,7 @@ int ttm_bo_swapout(struct ttm_bo_global *glob, struct ttm_operation_ctx *ctx)
  	kref_get(&bo->list_kref);
 
  	if (!list_empty(&bo->ddestroy)) {
-		ret = ttm_bo_cleanup_refs(bo, false, false, true);
+		ret = ttm_bo_cleanup_refs(bo, false, false, locked);
  		kref_put(&bo->list_kref, ttm_bo_release_list);
  		return ret;
  	}

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel