Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c168 size_t system_mem_needed, ttm_mem_needed, vram_needed; in amdgpu_amdkfd_reserve_mem_limit() local
174 vram_needed = 0; in amdgpu_amdkfd_reserve_mem_limit()
184 vram_needed = size; in amdgpu_amdkfd_reserve_mem_limit()
215 (adev && xcp_id >= 0 && adev->kfd.vram_used[xcp_id] + vram_needed > in amdgpu_amdkfd_reserve_mem_limit()
224 WARN_ONCE(vram_needed && !adev, in amdgpu_amdkfd_reserve_mem_limit()
227 adev->kfd.vram_used[xcp_id] += vram_needed; in amdgpu_amdkfd_reserve_mem_limit()
229 vram_needed : in amdgpu_amdkfd_reserve_mem_limit()
230 ALIGN(vram_needed, VRAM_AVAILABLITY_ALIGN); in amdgpu_amdkfd_reserve_mem_limit()