sdma_v2_4_ri...mit_vm_flush(9)
π sdma_v2_4_ring_emit_vm_flush(9) β from the Kernel API Manual, bestie π
okay so you found your way into the sdma_v2_4_ring_emit_vm_flush(9) page, which lives in the Kernel API Manual and honestly? it's a little baddie of a function. let's get into it β¨
πΈ NAME πΈ
sdma_v2_4_ring_emit_vm_flush β cik vm flush using sDMA π«
like, the floofy little function that handles the CIK VM flush and does it all through sDMA. no cap.
β¨ SYNOPSIS β¨
void sdma_v2_4_ring_emit_vm_flush (struct amdgpu_ring *ring , unsigned
vmid , uint64_t pd_addr );
returns void, so no little return value to obsess over β it just does the thing and dips π«Ά
π ARGUMENTS π
ringβ anamdgpu_ringpointer. yeah, the ring itself, the whole main character πvmidβ the vmid number to use. pick one, bestie, and commit πpd_addrβ an address. that's it, that's the description, an address, iconic brevity fr fr π¦
π DESCRIPTION π
Update the page table base and flush the VM TLB using sDMA (VI). ππ₯
that's literally the whole job: page table base gets updated, VM TLB gets flushed, and sDMA is the one carrying it out. ate and left no crumbs.
π SEE ALSO π
the kernel file itself lives at ./drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c β go say hi, it's right there π§
and here's the whole friend group, all of them, every single one, no gatekeeping:
sdma_v2_4_init_microcode(9)sdma_v2_4_ring_get_rptr(9)sdma_v2_4_ring_get_wptr(9)sdma_v2_4_ring_set_wptr(9)sdma_v2_4_ring_emit_ib(9)sdma_v2_4_ring_emit_hdp_flush(9)sdma_v2_4_ring_emit_fence(9)sdma_v2_4_gfx_stop(9)sdma_v2_4_rlc_stop(9)sdma_v2_4_enable(9)sdma_v2_4_gfx_resume(9)sdma_v2_4_rlc_resume(9)sdma_v2_4_start(9)sdma_v2_4_ring_test_ring(9)sdma_v2_4_ring_test_ib(9)sdma_v2_4_vm_copy_pte(9)sdma_v2_4_vm_write_pte(9)sdma_v2_4_vm_set_pte_pde(9)sdma_v2_4_ring_pad_ib(9)sdma_v2_4_ring_emit_pipeline_sync(9)sdma_v2_4_emit_copy_buffer(9)sdma_v2_4_emit_fill_buffer(9)
so yeah, that's the whole page π this one came out of ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026 β go off, calendar queen π
β¨ mwah, see u in the next manpage bestie πππ¦
π¦ 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