projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8be9e1
)
drm/ttm: fix warning after moving resource to ghost obj
author
Christian König
<christian.koenig@amd.com>
Mon, 7 Jun 2021 17:56:32 +0000
(19:56 +0200)
committer
Christian König
<christian.koenig@amd.com>
Mon, 7 Jun 2021 18:04:16 +0000
(20:04 +0200)
After we moved the resource to the ghost the bo->resource pointer needs
to be reset since the owner of the resource is now the ghost.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20210607175737.1405-1-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_bo_util.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_bo_util.c
b/drivers/gpu/drm/ttm/ttm_bo_util.c
index 1d25994411a035ce391642f1679600f44c27face..9be6a10a5873d26f585ec7d9e1d1ecb738d1eac9 100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_bo_util.c
+++ b/
drivers/gpu/drm/ttm/ttm_bo_util.c
@@
-507,6
+507,7
@@
static int ttm_bo_move_to_ghost(struct ttm_buffer_object *bo,
ghost_obj->ttm = NULL;
else
bo->ttm = NULL;
+ bo->resource = NULL;
dma_resv_unlock(&ghost_obj->base._resv);
ttm_bo_put(ghost_obj);