sdma_v7_1_vm_set_pte_pde(9)
π sdma_v7_1_vm_set_pte_pde(9) π
okay so this is a page straight out of the Kernel API Manual, and the whole vibe is: we're updating page tables with sDMA, bestie. let's get into it β¨
πΈ NAME πΈ
sdma_v7_1_vm_set_pte_pde β update the page tables using sDMA
like, that's literally the whole personality. it updates page tables. using sDMA. no cap π
β¨ SYNOPSIS β¨
void sdma_v7_1_vm_set_pte_pde (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t addr , unsigned count , uint32_t incr , uint64_t flags );
void return, six arguments, zero notes. she's a void girlie β doesn't return a thing, just does the thing. π«Ά
π ARGUMENTS π
ibβ indirect buffer to fill with commands π§ this is where all the little command bytes get poured inpeβ addr of the page entry (yes the arg is calledpeand it holds an addr, iykyk)addrβ the dst addr that gets written intopeπcountβ how many page entries we're updating, like how many besties are coming to the partyincrβ bump the next addr up byincrbytes each time, lil step-by-step walk πflagsβ access flags π
π¦ DESCRIPTION π¦
Update the page tables using sDMA. that's it, that's the sentence, she said what she said and she ate π₯
like fr fr β page tables get updated, and sDMA is the main character doing it. iconic behaviour only.
β SEE ALSO β
the kernel file in question, for the curious:
./drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c
and the whole friend group, all in (9) flavour π:
sdma_v7_1_ring_get_rptr(9)sdma_v7_1_ring_get_wptr(9)sdma_v7_1_ring_set_wptr(9)sdma_v7_1_ring_emit_ib(9)sdma_v7_1_ring_emit_mem_sync(9)sdma_v7_1_ring_emit_fence(9)sdma_v7_1_inst_gfx_stop(9)sdma_v7_1_inst_rlc_stop(9)sdma_v7_1_inst_ctx_switch_enable(9)sdma_v7_1_inst_enable(9)sdma_v7_1_gfx_resume_instance(9)sdma_v7_1_inst_gfx_resume(9)sdma_v7_1_inst_rlc_resume(9)sdma_v7_1_inst_load_microcode(9)sdma_v7_1_inst_start(9)sdma_v7_1_ring_test_ring(9)sdma_v7_1_ring_test_ib(9)sdma_v7_1_vm_copy_pte(9)sdma_v7_1_vm_write_pte(9)sdma_v7_1_ring_pad_ib(9)sdma_v7_1_ring_emit_pipeline_sync(9)sdma_v7_1_ring_emit_vm_flush(9)sdma_v7_1_emit_copy_buffer(9)sdma_v7_1_emit_fill_buffer(9)
π reminder bestie: the whole(9)crew above lives under./drivers/gpu/drm/amd/amdgpuβ that's the directory, that's the home base, don't lose it.
and that's the page!! brought to you by the ./drivers/gpu/drm/amd/amdgpu girlies, stamped October 2026, signed off by sdma_v7_1_vm_set_pte_pde(9) herself π
πβ¨ slay, go update some page tables π¦
π¦ 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