Home
last modified time | relevance | path

Searched refs:kfd_mem_limit (Results 1 – 1 of 1) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c49 } kfd_mem_limit; variable
95 spin_lock_init(&kfd_mem_limit.mem_limit_lock); in amdgpu_amdkfd_gpuvm_init_mem_limits()
96 kfd_mem_limit.max_system_mem_limit = mem - (mem >> 4); in amdgpu_amdkfd_gpuvm_init_mem_limits()
97 kfd_mem_limit.max_ttm_mem_limit = (mem >> 1) - (mem >> 3); in amdgpu_amdkfd_gpuvm_init_mem_limits()
99 (kfd_mem_limit.max_system_mem_limit >> 20), in amdgpu_amdkfd_gpuvm_init_mem_limits()
100 (kfd_mem_limit.max_ttm_mem_limit >> 20)); in amdgpu_amdkfd_gpuvm_init_mem_limits()
143 spin_lock(&kfd_mem_limit.mem_limit_lock); in amdgpu_amdkfd_reserve_mem_limit()
145 if (kfd_mem_limit.system_mem_used + system_mem_needed > in amdgpu_amdkfd_reserve_mem_limit()
146 kfd_mem_limit.max_system_mem_limit) in amdgpu_amdkfd_reserve_mem_limit()
149 if ((kfd_mem_limit.system_mem_used + system_mem_needed > in amdgpu_amdkfd_reserve_mem_limit()
[all …]