sdma_v3_0_vm_write_pte(9)
β¨ sdma_v3_0_vm_write_pte β¨
okay so bestie, welcome to the Kernel API Manual entry for sdma_v3_0_vm_write_pte β yes that's a mouthful, yes it's iconic, and yes we're gonna get through it together π
πΈ NAME πΈ
sdma_v3_0_vm_write_pte β update PTEs by writing them manually π«Ά
π SYNOPSIS π
void sdma_v3_0_vm_write_pte (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t value , unsigned count , uint32_t incr );
literally that's the whole signature, no cap β¨
π¦ ARGUMENTS π¦
ibβ the indirect buffer you're filling up with commands. it's giving "the canvas" energy π¨peβ the addr of the page entry. yes, that kind ofpeπvalueβ the dst addr that gets written intope, slay πcountβ how many page entries we're updating. the more the merrier, lowkey πincrβ bumps the next addr up byincrbytes. tiny little step, big main character energy π
π₯ DESCRIPTION π₯
Update PTEs by writing them manually using sDMA (CIK). that's it, that's the vibe β you're hand-writing those page table entries with sDMA on CIK, no shortcuts, no auto-magic, just you and the hardware being besties πβ¨
π SEE ALSO π
the kernel file lives right here, go read it iykyk:
./drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
and the whole friend group, fr fr:
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_set_pte_pde(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)
ngl bestie, that's a lot of sdma_v3_0_* functions, but that's the family, and we love them π§π
and that's the page! brought to you by ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and yes the title is still sdma_v3_0_vm_write_pte(9) because she's the main character here ππ
β¨
π¦ 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