aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König2017-11-02 12:54:59 -0500
committerChristian König2017-11-08 09:11:40 -0600
commita844925c8af45161145ab512efb8d5584c9d97f2 (patch)
tree1a368bb7e9d66b794a8356774ff856595426092b /amdgpu/amdgpu_vamgr.c
parent4b4ccaac2e01af2d5846d168dedc2ee9cb8e7672 (diff)
downloadexternal-libgbm-a844925c8af45161145ab512efb8d5584c9d97f2.tar.gz
external-libgbm-a844925c8af45161145ab512efb8d5584c9d97f2.tar.xz
external-libgbm-a844925c8af45161145ab512efb8d5584c9d97f2.zip
amdgpu: sanitize 64bit VA manager
Adding the extra reservation of the 32bit space to the 64bit manager is complete nonsense and just a waste of memory and CPU cycles. Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_vamgr.c')
-rw-r--r--amdgpu/amdgpu_vamgr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amdgpu/amdgpu_vamgr.c b/amdgpu/amdgpu_vamgr.c
index 8516b594..ab425ef7 100644
--- a/amdgpu/amdgpu_vamgr.c
+++ b/amdgpu/amdgpu_vamgr.c
@@ -66,7 +66,7 @@ drm_private void amdgpu_vamgr_deinit(struct amdgpu_bo_va_mgr *mgr)
66 pthread_mutex_destroy(&mgr->bo_va_mutex); 66 pthread_mutex_destroy(&mgr->bo_va_mutex);
67} 67}
68 68
69drm_private uint64_t 69static drm_private uint64_t
70amdgpu_vamgr_find_va(struct amdgpu_bo_va_mgr *mgr, uint64_t size, 70amdgpu_vamgr_find_va(struct amdgpu_bo_va_mgr *mgr, uint64_t size,
71 uint64_t alignment, uint64_t base_required) 71 uint64_t alignment, uint64_t base_required)
72{ 72{
@@ -155,7 +155,7 @@ amdgpu_vamgr_find_va(struct amdgpu_bo_va_mgr *mgr, uint64_t size,
155 return offset; 155 return offset;
156} 156}
157 157
158drm_private void 158static drm_private void
159amdgpu_vamgr_free_va(struct amdgpu_bo_va_mgr *mgr, uint64_t va, uint64_t size) 159amdgpu_vamgr_free_va(struct amdgpu_bo_va_mgr *mgr, uint64_t va, uint64_t size)
160{ 160{
161 struct amdgpu_bo_va_hole *hole; 161 struct amdgpu_bo_va_hole *hole;