diff options
Diffstat (limited to 'include/drm/ttm/ttm_bo_api.h')
-rw-r--r-- | include/drm/ttm/ttm_bo_api.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h index 8a6aa56ece52..751eaffbf0d5 100644 --- a/include/drm/ttm/ttm_bo_api.h +++ b/include/drm/ttm/ttm_bo_api.h | |||
@@ -32,12 +32,12 @@ | |||
32 | #define _TTM_BO_API_H_ | 32 | #define _TTM_BO_API_H_ |
33 | 33 | ||
34 | #include <drm/drm_hashtab.h> | 34 | #include <drm/drm_hashtab.h> |
35 | #include <drm/drm_vma_manager.h> | ||
35 | #include <linux/kref.h> | 36 | #include <linux/kref.h> |
36 | #include <linux/list.h> | 37 | #include <linux/list.h> |
37 | #include <linux/wait.h> | 38 | #include <linux/wait.h> |
38 | #include <linux/mutex.h> | 39 | #include <linux/mutex.h> |
39 | #include <linux/mm.h> | 40 | #include <linux/mm.h> |
40 | #include <linux/rbtree.h> | ||
41 | #include <linux/bitmap.h> | 41 | #include <linux/bitmap.h> |
42 | #include <linux/reservation.h> | 42 | #include <linux/reservation.h> |
43 | 43 | ||
@@ -145,7 +145,6 @@ struct ttm_tt; | |||
145 | * @type: The bo type. | 145 | * @type: The bo type. |
146 | * @destroy: Destruction function. If NULL, kfree is used. | 146 | * @destroy: Destruction function. If NULL, kfree is used. |
147 | * @num_pages: Actual number of pages. | 147 | * @num_pages: Actual number of pages. |
148 | * @addr_space_offset: Address space offset. | ||
149 | * @acc_size: Accounted size for this object. | 148 | * @acc_size: Accounted size for this object. |
150 | * @kref: Reference count of this buffer object. When this refcount reaches | 149 | * @kref: Reference count of this buffer object. When this refcount reaches |
151 | * zero, the object is put on the delayed delete list. | 150 | * zero, the object is put on the delayed delete list. |
@@ -166,8 +165,7 @@ struct ttm_tt; | |||
166 | * @swap: List head for swap LRU list. | 165 | * @swap: List head for swap LRU list. |
167 | * @sync_obj: Pointer to a synchronization object. | 166 | * @sync_obj: Pointer to a synchronization object. |
168 | * @priv_flags: Flags describing buffer object internal state. | 167 | * @priv_flags: Flags describing buffer object internal state. |
169 | * @vm_rb: Rb node for the vm rb tree. | 168 | * @vma_node: Address space manager node. |
170 | * @vm_node: Address space manager node. | ||
171 | * @offset: The current GPU offset, which can have different meanings | 169 | * @offset: The current GPU offset, which can have different meanings |
172 | * depending on the memory type. For SYSTEM type memory, it should be 0. | 170 | * depending on the memory type. For SYSTEM type memory, it should be 0. |
173 | * @cur_placement: Hint of current placement. | 171 | * @cur_placement: Hint of current placement. |
@@ -194,7 +192,6 @@ struct ttm_buffer_object { | |||
194 | enum ttm_bo_type type; | 192 | enum ttm_bo_type type; |
195 | void (*destroy) (struct ttm_buffer_object *); | 193 | void (*destroy) (struct ttm_buffer_object *); |
196 | unsigned long num_pages; | 194 | unsigned long num_pages; |
197 | uint64_t addr_space_offset; | ||
198 | size_t acc_size; | 195 | size_t acc_size; |
199 | 196 | ||
200 | /** | 197 | /** |
@@ -238,13 +235,7 @@ struct ttm_buffer_object { | |||
238 | void *sync_obj; | 235 | void *sync_obj; |
239 | unsigned long priv_flags; | 236 | unsigned long priv_flags; |
240 | 237 | ||
241 | /** | 238 | struct drm_vma_offset_node vma_node; |
242 | * Members protected by the bdev::vm_lock | ||
243 | */ | ||
244 | |||
245 | struct rb_node vm_rb; | ||
246 | struct drm_mm_node *vm_node; | ||
247 | |||
248 | 239 | ||
249 | /** | 240 | /** |
250 | * Special members that are protected by the reserve lock | 241 | * Special members that are protected by the reserve lock |