sdma_v6_0_vm_set_pte_pde(9)
π NAME π
bestie, welcome to the Kernel API Manual page for sdma_v6_0_vm_set_pte_pde(9) β and what does it do? update the page tables using sDMA. That's the whole vibe, no cap.
β¨ SYNOPSIS β¨
okay so here's the signature, copy it exactly or the compiler will absolutely side-eye you:
void sdma_v6_0_vm_set_pte_pde (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t addr , unsigned count , uint32_t incr , uint64_t flags );
It's a void function, so there's no return value to obsess over. Slay.
π ARGUMENTS π
ibβ indirect buffer to fill with commands. this is the buffer you're loading up, bestie.peβ addr of the page entry. literally the address of the page entry.addrβ dst addr to write into pe. the destination address going into that page entry.countβ number of page entries to update. how many we're touching.incrβ increase next addr by incr bytes. the step size between addresses.flagsβ access flags. the permission vibe check.
πΈ DESCRIPTION πΈ
Update the page tables using sDMA. It's giving "do exactly what it says on the tin" energy. No extra steps, no secret sauce β just page-table updating via sDMA. π
π¦ SEE ALSO π¦
The kernel file is ./drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c, and here's the whole squad of related functions β every single one, because we don't skip the friend group:
sdma_v6_0_ring_get_rptr(9)sdma_v6_0_ring_get_wptr(9)sdma_v6_0_ring_set_wptr(9)sdma_v6_0_ring_emit_mem_sync(9)sdma_v6_0_ring_emit_hdp_flush(9)sdma_v6_0_ring_emit_fence(9)sdma_v6_0_gfx_stop(9)sdma_v6_0_rlc_stop(9)sdma_v6_0_ctxempty_int_enable(9)sdma_v6_0_enable(9)sdma_v6_0_gfx_resume_instance(9)sdma_v6_0_gfx_resume(9)sdma_v6_0_rlc_resume(9)sdma_v6_0_load_microcode(9)sdma_v6_0_start(9)sdma_v6_0_ring_test_ring(9)sdma_v6_0_vm_copy_pte(9)sdma_v6_0_vm_write_pte(9)sdma_v6_0_ring_emit_pipeline_sync(9)sdma_v6_0_emit_copy_buffer(9)sdma_v6_0_emit_fill_buffer(9)
This iconic little page came from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's the Kernel API Manual entry for sdma_v6_0_vm_set_pte_pde(9) β periodt. πβ¨
π¦ 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