sdma_v4_4_2_vm_set_pte_pde(9)
π sdma_v4_4_2_vm_set_pte_pde(9)
okay so bestie, this is a page from the Kernel API Manual and it's about one very specific little function called sdma_v4_4_2_vm_set_pte_pde β say that five times fast, I dare you π β and it does exactly one job: it updates the page tables using sDMA. That's the whole vibe. Let's get into it. π¦
β¨ NAME β¨
sdma_v4_4_2_vm_set_pte_pde β update the page tables using sDMA π«
πΈ SYNOPSIS πΈ
void sdma_v4_4_2_vm_set_pte_pde (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t addr , unsigned count , uint32_t incr , uint64_t flags );
like, yes, that's a lot of parameters. she's high-maintenance but she delivers π
π ARGUMENTS π
ibβ the indirect buffer you're gonna fill up with commands π«Ά this is the canvas, bestiepeβ the addr of the page entry (yep, the page entry, she's specific)addrβ the dst addr that gets written intopeβοΈcountβ how many page entries we're updating. the more the merrier fr frincrβ bump the next addr up byincrbytes. little steps, iconic behavior πflagsβ the access flags π
π¦ DESCRIPTION π¦
Update the page tables using sDMA. that's it. that's the whole description. short, sweet, and absolutely ate π no cap, sometimes a function knows exactly what it is and doesn't need a whole essay about it.
π SEE ALSO π
the kernel file lives right here, bestie:
./drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
and here's the whole friend group β the entire sdma_v4_4_2 squad, all in one place π:
sdma_v4_4_2_init_microcode(9)sdma_v4_4_2_ring_get_rptr(9)sdma_v4_4_2_ring_get_wptr(9)sdma_v4_4_2_ring_set_wptr(9)sdma_v4_4_2_page_ring_get_wptr(9)sdma_v4_4_2_page_ring_set_wptr(9)sdma_v4_4_2_ring_emit_ib(9)sdma_v4_4_2_ring_emit_hdp_flush(9)sdma_v4_4_2_ring_emit_fence(9)sdma_v4_4_2_inst_gfx_stop(9)sdma_v4_4_2_inst_rlc_stop(9)sdma_v4_4_2_inst_page_stop(9)sdma_v4_4_2_inst_ctx_switch_enable(9)sdma_v4_4_2_inst_enable(9)sdma_v4_4_2_gfx_resume(9)sdma_v4_4_2_page_resume(9)sdma_v4_4_2_inst_rlc_resume(9)sdma_v4_4_2_inst_load_microcode(9)sdma_v4_4_2_inst_start(9)sdma_v4_4_2_ring_test_ring(9)sdma_v4_4_2_ring_test_ib(9)sdma_v4_4_2_vm_copy_pte(9)sdma_v4_4_2_vm_write_pte(9)sdma_v4_4_2_ring_pad_ib(9)sdma_v4_4_2_ring_emit_pipeline_sync(9)sdma_v4_4_2_ring_emit_vm_flush(9)sdma_v4_4_2_emit_copy_buffer(9)sdma_v4_4_2_emit_fill_buffer(9)sdma_v4_4_2_update_reset_mask(9)
π that's the entire page, bestie. go update those page tables. slay.
source/version: ./drivers/gpu/drm/amd/amdgpu β October 2026 β¨ mwah, catch you in the next manpage ππΈ
π¦ 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