projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3185f9
)
drm/ttm: use ttm_bo_wait_ctx instead of ttm_bo_wait
author
Christian König
<christian.koenig@amd.com>
Mon, 9 May 2022 11:25:19 +0000
(13:25 +0200)
committer
Christian König
<christian.koenig@amd.com>
Tue, 6 Dec 2022 12:02:20 +0000
(13:02 +0100)
Make sure that we use the correct settings from the context.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20221125102137.1801-8-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_bo.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_bo.c
b/drivers/gpu/drm/ttm/ttm_bo.c
index
f9d9fd2
..
cd266a0
100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_bo.c
+++ b/
drivers/gpu/drm/ttm/ttm_bo.c
@@
-439,7
+439,7
@@
static int ttm_bo_evict(struct ttm_buffer_object *bo,
bdev->funcs->evict_flags(bo, &placement);
if (!placement.num_placement && !placement.num_busy_placement) {
- ret = ttm_bo_wait
(bo, true, false
);
+ ret = ttm_bo_wait
_ctx(bo, ctx
);
if (ret)
return ret;
@@
-1190,7
+1190,7
@@
int ttm_bo_swapout(struct ttm_buffer_object *bo, struct ttm_operation_ctx *ctx,
/*
* Make sure BO is idle.
*/
- ret = ttm_bo_wait
(bo, false, false
);
+ ret = ttm_bo_wait
_ctx(bo, ctx
);
if (unlikely(ret != 0))
goto out;