diff options
author | Christian König <christian.koenig@amd.com> | 2018-09-10 14:02:46 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-13 16:14:12 -0400 |
commit | 646b90259842faa8341b076a3488a227927d84a2 (patch) | |
tree | 8c2de4481394f7e1c602e9d57ff35121adaec578 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | e83dfe4d869358549bb259ab581ae4f0450c6580 (diff) |
drm/amdgpu: use a single linked list for amdgpu_vm_bo_base
Instead of the double linked list. Gets the size of amdgpu_vm_pt down to
64 bytes again.
We could even reduce it down to 32 bytes, but that would require some
rather extreme hacks.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 907fdf46d895..64337ff2ad63 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
@@ -89,8 +89,8 @@ struct amdgpu_bo { | |||
89 | void *metadata; | 89 | void *metadata; |
90 | u32 metadata_size; | 90 | u32 metadata_size; |
91 | unsigned prime_shared_count; | 91 | unsigned prime_shared_count; |
92 | /* list of all virtual address to which this bo is associated to */ | 92 | /* per VM structure for page tables and with virtual addresses */ |
93 | struct list_head va; | 93 | struct amdgpu_vm_bo_base *vm_bo; |
94 | /* Constant after initialization */ | 94 | /* Constant after initialization */ |
95 | struct drm_gem_object gem_base; | 95 | struct drm_gem_object gem_base; |
96 | struct amdgpu_bo *parent; | 96 | struct amdgpu_bo *parent; |