sdma_v5_0_vm_set_pte_pde(9)
π sdma_v5_0_vm_set_pte_pde β¨
okay so this page lives in the Kernel API Manual bestie, and it's about one very specific little function, so let's get into it π«Ά
πΈ NAME πΈ
sdma_v5_0_vm_set_pte_pde β update the page tables using sDMA β¨
like, that's the whole vibe. it updates page tables. with sDMA. iconic behavior honestly.
π SYNOPSIS π
void sdma_v5_0_vm_set_pte_pde (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t addr , unsigned count , uint32_t incr , uint64_t flags );
she takes a bunch of arguments and returns void β no return value, no drama, she just does the thing π
π¦ ARGUMENTS π¦
ibβ the indirect buffer to fill with commands π like this is where the commands go, bestie, she's writing into itpeβ addr of the page entry. yes, addr of the page entry. that's the address of the page entry, no capaddrβ dst addr to write intopeπ― the destination address that gets written intopecountβ number of page entries to update π’ how many page entries we're updating, fr frincrβ increase next addr byincrbytes π every next addr goes up by this many bytesflagsβ access flags π the access flags, periodt
π DESCRIPTION π
Update the page tables using sDMA (NAVI10). π§β¨
that's it, that's the description. short and sweet and lowkey perfect. NAVI10 is doing the sDMA thing, the page tables get updated, everyone slays.
π₯ SEE ALSO π₯
the kernel file where all this magic lives:
./drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
and her whole friend group, aka every sibling function in the family ππ
sdma_v5_0_init_microcode(9)sdma_v5_0_ring_get_rptr(9)sdma_v5_0_ring_get_wptr(9)sdma_v5_0_ring_set_wptr(9)sdma_v5_0_ring_emit_ib(9)sdma_v5_0_ring_emit_mem_sync(9)sdma_v5_0_ring_emit_hdp_flush(9)sdma_v5_0_ring_emit_fence(9)sdma_v5_0_gfx_stop(9)sdma_v5_0_rlc_stop(9)sdma_v5_0_ctx_switch_enable(9)sdma_v5_0_enable(9)sdma_v5_0_gfx_resume_instance(9)sdma_v5_0_gfx_resume(9)sdma_v5_0_rlc_resume(9)sdma_v5_0_load_microcode(9)sdma_v5_0_start(9)sdma_v5_0_ring_test_ring(9)sdma_v5_0_ring_test_ib(9)sdma_v5_0_vm_copy_pte(9)sdma_v5_0_vm_write_pte(9)sdma_v5_0_ring_pad_ib(9)sdma_v5_0_ring_emit_pipeline_sync(9)sdma_v5_0_ring_emit_vm_flush(9)sdma_v5_0_emit_copy_buffer(9)sdma_v5_0_emit_fill_buffer(9)
π tiny lil heads up bestie: this page is filed under ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026. girlies stay booked and busy ποΈβ¨
k that's the whole page π«Ά mwah, go update some page tables responsibly, iykyk ππΈ
π¦ 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