Searched refs:kfd_mem_limit (Results 1 – 1 of 1) sorted by relevance
61 } kfd_mem_limit; variable116 if (kfd_mem_limit.max_system_mem_limit) in amdgpu_amdkfd_gpuvm_init_mem_limits()123 spin_lock_init(&kfd_mem_limit.mem_limit_lock); in amdgpu_amdkfd_gpuvm_init_mem_limits()124 kfd_mem_limit.max_system_mem_limit = mem - (mem >> 4); in amdgpu_amdkfd_gpuvm_init_mem_limits()125 kfd_mem_limit.max_ttm_mem_limit = ttm_tt_pages_limit() << PAGE_SHIFT; in amdgpu_amdkfd_gpuvm_init_mem_limits()127 (kfd_mem_limit.max_system_mem_limit >> 20), in amdgpu_amdkfd_gpuvm_init_mem_limits()128 (kfd_mem_limit.max_ttm_mem_limit >> 20)); in amdgpu_amdkfd_gpuvm_init_mem_limits()133 kfd_mem_limit.system_mem_used += size; in amdgpu_amdkfd_reserve_system_mem()205 spin_lock(&kfd_mem_limit.mem_limit_lock); in amdgpu_amdkfd_reserve_mem_limit()207 if (kfd_mem_limit.system_mem_used + system_mem_needed > in amdgpu_amdkfd_reserve_mem_limit()[all …]