sdma_v3_0_vm_set_pte_pde(9)
π sdma_v3_0_vm_set_pte_pde π
okay so bestie, welcome to the Kernel API Manual β yes, that's the manual name, we're fancy here β¨ β and today's main character is a lil function called sdma_v3_0_vm_set_pte_pde. it's a mouthful, i know. say it three times fast, i dare you π«Ά
β¨ NAME β¨
sdma_v3_0_vm_set_pte_pde β literally just: update the page tables using sDMA. that's the whole vibe. no cap π
πΈ SYNOPSIS πΈ
void sdma_v3_0_vm_set_pte_pde (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t addr , unsigned count , uint32_t incr , uint64_t flags );
it returns void, so likeβ¦ don't go looking for a return value, she's not giving you one π
π ARGUMENTS π
okay so every single one of these matters, don't skip:
ibβ the indirect buffer you're filling with commands. this is the canvas, she's the paint ποΈpeβ addr of the page entry. yes, "addr of the page entry", that's the whole description, treasure it πaddrβ the dst addr you're writing intope. destination energy only β¨countβ how many page entries we're updating. a whole squad, not just one πincrβ increase the next addr byincrbytes. lil step-by-step walk through memory πΆββοΈflagsβ access flags. the permission slip, iykyk π«
π¦ DESCRIPTION π¦
update the page tables using sDMA (CIK). that's it, that's the description, and honestly? iconic. short, sweet, does exactly what it says on the tin π₯
π SEE ALSO π
bestie, there is a whole friend group here, and you should meet all of them:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/sdma_v3_0.cβ the mothership πΈ 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_ring_pad_ib(9)sdma_v3_0_ring_emit_pipeline_sync(9)sdma_v3_0_ring_emit_vm_flush(9)sdma_v3_0_emit_copy_buffer(9)sdma_v3_0_emit_fill_buffer(9)
like, look at that roster. ate and left no crumbs πβ¨
aaaand that's the page!! π cute lil sign-off time: this beauty lives over in ./drivers/gpu/drm/amd/amdgpu, and it was stamped October 2026 β so yeah, she's got a date on her and everything π slay, go update some page tables, 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