radeon_vm_fence(9)
π radeon_vm_fence(9) β from the Kernel API Manual β¨
okay bestie, gather round, because we're diving into radeon_vm_fence from the Kernel API Manual and honestly? she's a little icon. π
πΈ NAME πΈ
radeon_vm_fence β remember fence for vm π
like, literally just remember the fence for the vm. that's the whole job. no cap.
β¨ SYNOPSIS β¨
void radeon_vm_fence (struct radeon_device *rdev , struct radeon_vm *vm
, struct radeon_fence *fence );
periodt. that's the signature, copy it exactly, don't @ me. π«Ά
π¦ ARGUMENTS π¦
rdevβ aradeon_devicepointer. yes bestie, it's the device. the whole vibe. π₯vmβ the vm we want to fence. this one right here, this is the girl we're protecting. πfenceβ the fence to remember. we're committing her to memory. iconic behaviour. π
π DESCRIPTION π
okay so the actual tea: this bad girl fences the vm β and just so we're clear, that's cayman+ territory, so if you're on older hardware this is not your moment. π
what she does is set the fence used to protect the page table and the id. that's it. that's the assignment. she protects page table and id. slay. β¨
β οΈ GLOBAL AND LOCAL MUTEX MUST BE LOCKED! not "should", not "maybe", MUST. if you roll up in here without both mutexes held, that's on you and it's giving undefined chaos. lock them. both of them. π«Άπ
π§ SEE ALSO π§
the kernel file is ./drivers/gpu/drm/radeon/radeon_vm.c β that's the home base, iykyk. π
and here's the whole friend group, all of them, in order, exactly as they appear, because we do not leave anyone out of the group chat:
radeon_vm_num_pdes(9)radeon_vm_directory_size(9)radeon_vm_manager_init(9)radeon_vm_manager_fini(9)radeon_vm_get_bos(9)radeon_vm_grab_id(9)radeon_vm_flush(9)radeon_vm_bo_find(9)radeon_vm_bo_add(9)radeon_vm_set_pages(9)radeon_vm_clear_bo(9)radeon_vm_bo_set_addr(9)radeon_vm_map_gart(9)radeon_vm_page_flags(9)radeon_vm_update_page_directory(9)radeon_vm_frag_ptes(9)radeon_vm_update_ptes(9)radeon_vm_fence_pts(9)radeon_vm_bo_update(9)radeon_vm_clear_freed(9)radeon_vm_clear_invalids(9)radeon_vm_bo_rmv(9)radeon_vm_bo_invalidate(9)radeon_vm_init(9)radeon_vm_fini(9)
and that's the whole page bestie, main character energy from start to finish π as always, this little love letter lives over in ./drivers/gpu/drm/radeon, dated October 2026 β mwah, catch you in the next manpage, muah! πβπ
π¦ 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