amdgpu_amdkf...ction_fences(9)
π amdgpu_amdkfd_remove_all_eviction_fences(9) β¨
okay bestie so this is a page straight out of the Kernel API Manual β yes, that Kernel API Manual β and it's about yeeting eviction fences off a buffer object. no cap, it's a short one. let's get into it π«Ά
πΈ NAME πΈ
amdgpu_amdkfd_remove_all_eviction_fences β Remove all eviction fences</p>. that's the whole vibe. all of them. gone. π
β SYNOPSIS β
void amdgpu_amdkfd_remove_all_eviction_fences (struct amdgpu_bo *bo );
one function, one argument, returns nothing (void). extremely low-drama. love that for us. π
π¦ ARGUMENTS π¦
boβ the BO where to remove the evictions fences from. literally just hand it the buffer object and it'll strip the eviction fences off it. that's it. that's the job. π§
π₯ DESCRIPTION π₯
okay so this is important, listen up π
this function should only be used on release, when all references to the BO are already dropped. like, all of them. do not come in here early. it's giving "final cleanup only" energy.
here's why: we're removing the eviction fence from the private copy of the dma_resv object. why that one specifically? because that's the copy that gets used during release to figure out whether the BO is idle or not. so if you're doing the release-time idle check, that private copy is the main character and it needs to be fence-free. periodt. π
β οΈ real talk: this is a release-time-only situation. all refs dropped, or nothing. don't be out here calling it mid-life and then acting surprised. π
π SEE ALSO π
the kernel file lives right here, bestie:
./drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
and here's the whole friend group π«Ά:
reuse_dmamap(9)amdgpu_amdkfd_reserve_mem_limit(9)create_dmamap_sg_bo(9)create_sg_table(9)kfd_mem_dmamap_sg_bo(9)kfd_mem_dmaunmap_sg_bo(9)reserve_bo_and_vm(9)reserve_bo_and_cond_vms(9)unreserve_bo_and_vms(9)amdgpu_amdkfd_gpuvm_pin_bo(9)amdgpu_amdkfd_gpuvm_unpin_bo(9)amdgpu_amdkfd_map_gtt_bo_to_gart(9)
that's the whole page, bestie, you ate it up π this one comes from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β go forth and remove those fences responsibly πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms