projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b96f3e7
)
drm/ttm: set both resv and base.resv pointers
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 5 Aug 2019 14:01:11 +0000
(16:01 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 6 Aug 2019 06:21:54 +0000
(08:21 +0200)
Initialize both ttm_buffer_object->resv and ttm_buffer_object->base.resv
pointers. This allows to move users from the former to the latter. When
all users are moved we can drop ttm_buffer_object->resv.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link:
http://patchwork.freedesktop.org/patch/msgid/20190805140119.7337-10-kraxel@redhat.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 3e0a0cbc410ee764e61c2b59909475a4346dd925..ce1e6221e7ea2879354af95cbad1dd1f5741042d 100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_bo.c
+++ b/
drivers/gpu/drm/ttm/ttm_bo.c
@@
-1333,9
+1333,11
@@
int ttm_bo_init_reserved(struct ttm_bo_device *bdev,
bo->sg = sg;
if (resv) {
bo->resv = resv;
+ bo->base.resv = resv;
reservation_object_assert_held(bo->resv);
} else {
bo->resv = &bo->base._resv;
+ bo->base.resv = &bo->base._resv;
}
if (!ttm_bo_uses_embedded_gem_object(bo)) {
/*