Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c61 } kfd_mem_limit; variable
116 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 …]