aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'amdgpu/amdgpu_vamgr.c')
-rw-r--r--amdgpu/amdgpu_vamgr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/amdgpu/amdgpu_vamgr.c b/amdgpu/amdgpu_vamgr.c
index ab425ef7..a2852b55 100644
--- a/amdgpu/amdgpu_vamgr.c
+++ b/amdgpu/amdgpu_vamgr.c
@@ -80,9 +80,7 @@ amdgpu_vamgr_find_va(struct amdgpu_bo_va_mgr *mgr, uint64_t size,
80 return AMDGPU_INVALID_VA_ADDRESS; 80 return AMDGPU_INVALID_VA_ADDRESS;
81 81
82 pthread_mutex_lock(&mgr->bo_va_mutex); 82 pthread_mutex_lock(&mgr->bo_va_mutex);
83 /* TODO: using more appropriate way to track the holes */ 83 LIST_FOR_EACH_ENTRY_SAFE_REV(hole, n, &mgr->va_holes, list) {
84 /* first look for a hole */
85 LIST_FOR_EACH_ENTRY_SAFE(hole, n, &mgr->va_holes, list) {
86 if (base_required) { 84 if (base_required) {
87 if (hole->offset > base_required || 85 if (hole->offset > base_required ||
88 (hole->offset + hole->size) < (base_required + size)) 86 (hole->offset + hole->size) < (base_required + size))