sdma_v4_0_vm_write_pte(9)
π sdma_v4_0_vm_write_pte(9) β like, the Kernel API Manual page you actually wanna read β¨
okay so bestie, welcome to the group chat, this is a page straight out of the Kernel API Manual and it's all about one very specific little function. pull up a chair π
β¨ NAME β¨
sdma_v4_0_vm_write_pte β it updates PTEs by writing them manually. that's the whole vibe. no cap.
πΈ SYNOPSIS πΈ
void sdma_v4_0_vm_write_pte (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t value , unsigned count , uint32_t incr );
she takes five args and returns literally nothing (void), she's just here to do the work π
π¦ ARGUMENTS π¦
ibβ the indirect buffer you're filling with commands. this is her canvas, her stage, her main character moment.peβ the addr of the page entry. yes, addr, we're being casual about it.valueβ the dst addr to write intope.countβ how many page entries we're updating. the more the merrier, lowkey.incrβ increase the next addr byincrbytes. so she steps forward byincreach time, iconic behavior honestly.
π₯ DESCRIPTION π₯
Update PTEs by writing them manually using sDMA (VEGA10) π that's it, that's the whole description. short and slay. she's not gonna over-explain herself, she's got page tables to write.
π SEE ALSO π
the kernel file she lives in, for when you wanna go read the source like the academic icon you are:
./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
and her whole friend group, fr fr β every single one of these:
sdma_v4_0_init_microcode(9)sdma_v4_0_ring_get_rptr(9)sdma_v4_0_ring_get_wptr(9)sdma_v4_0_ring_set_wptr(9)sdma_v4_0_page_ring_get_wptr(9)sdma_v4_0_page_ring_set_wptr(9)sdma_v4_0_ring_emit_ib(9)sdma_v4_0_ring_emit_hdp_flush(9)sdma_v4_0_ring_emit_fence(9)sdma_v4_0_gfx_enable(9)sdma_v4_0_rlc_stop(9)sdma_v4_0_page_stop(9)sdma_v4_0_ctx_switch_enable(9)sdma_v4_0_enable(9)sdma_v4_0_gfx_resume(9)sdma_v4_0_page_resume(9)sdma_v4_0_rlc_resume(9)sdma_v4_0_load_microcode(9)sdma_v4_0_start(9)sdma_v4_0_ring_test_ring(9)sdma_v4_0_ring_test_ib(9)sdma_v4_0_vm_copy_pte(9)sdma_v4_0_vm_set_pte_pde(9)sdma_v4_0_ring_pad_ib(9)sdma_v4_0_ring_emit_pipeline_sync(9)sdma_v4_0_ring_emit_vm_flush(9)sdma_v4_0_emit_copy_buffer(9)sdma_v4_0_emit_fill_buffer(9)
and that's the tea π this little beauty hangs out in ./drivers/gpu/drm/amd/amdgpu, the page is dated October 2026, and it's filed under sdma_v4_0_vm_write_pte(9) π go forth and write those PTEs manually, bestie, i believe in you π«Άβ¨
π¦ 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