sdma_v3_0_ri...mit_vm_flush(9)
π sdma_v3_0_ring_emit_vm_flush(9) β like, the whole vibe π¦
okay so bestie, welcome to the Kernel API Manual page for sdma_v3_0_ri...mit_vm_flush(9) β yes the title is literally truncated in the header, that's just how it's filed, don't come for me π. Sit down, grab a strawberry π, we're learning about a VM flush that rides on sDMA.
β¨ NAME β¨
sdma_v3_0_ring_emit_vm_flush β cik vm flush using sDMA. that's the whole assignment, no cap π
πΈ SYNOPSIS πΈ
void sdma_v3_0_ring_emit_vm_flush (struct amdgpu_ring *ring , unsigned
vmid , uint64_t pd_addr );
like, it returns void so it doesn't even give you a value back. it's giving "I did the thing, you're welcome" energy π
π«Ά ARGUMENTS π«Ά
ringβ anamdgpu_ringpointer. yeah. the ring. the main character πvmidβ the vmid number to use. that's the number. use it π’pd_addrβ the address. just... the address. iconically vague but we move β
π DESCRIPTION π
So what does it actually do, bestie? Two things, and they're both important:
- Update the page table base β¨
- Flush the VM TLB using sDMA (VI) π₯
that's it. that's the function. lowkey elegant, highkey essential. periodt π
π¦ SEE ALSO π¦
the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c β go read it if you're feeling feral π
and here's the whole friend group, all of them, in order, don't skip any:
sdma_v3_0_init_microcode(9)sdma_v3_0_ring_get_rptr(9)sdma_v3_0_ring_get_wptr(9)sdma_v3_0_ring_set_wptr(9)sdma_v3_0_ring_emit_ib(9)sdma_v3_0_ring_emit_hdp_flush(9)sdma_v3_0_ring_emit_fence(9)sdma_v3_0_gfx_stop(9)sdma_v3_0_rlc_stop(9)sdma_v3_0_ctx_switch_enable(9)sdma_v3_0_enable(9)sdma_v3_0_gfx_resume(9)sdma_v3_0_rlc_resume(9)sdma_v3_0_start(9)sdma_v3_0_ring_test_ring(9)sdma_v3_0_ring_test_ib(9)sdma_v3_0_vm_copy_pte(9)sdma_v3_0_vm_write_pte(9)sdma_v3_0_vm_set_pte_pde(9)sdma_v3_0_ring_pad_ib(9)sdma_v3_0_ring_emit_pipeline_sync(9)sdma_v3_0_emit_copy_buffer(9)sdma_v3_0_emit_fill_buffer(9)
like, that's the entire squad. iykyk π
and that's the page!! π source: ./drivers/gpu/drm/amd/amdgpu β dated October 2026. mwah, go touch some registers bestie, ily πβ¨π§
π¦ 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