sdma_v7_1_vm_write_pte(9)
π sdma_v7_1_vm_write_pte β like, the kernel API manual, bestie β¨
Okay so this is a page from the Kernel API Manual (section 9, the kernel-y one π§) and it's all about <pink>sdma_v7_1_vm_write_pte</pink> β "update PTEs by writing them manually". Slay. Let's get into it π
β¨ NAME β¨
sdma_v7_1_vm_write_pte β update PTEs by writing them manually. That's it, that's the whole vibe π
π¦ SYNOPSIS π¦
void sdma_v7_1_vm_write_pte (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t value , unsigned count , uint32_t incr );
Not me copying this character for character because that's literally the rule π β returns void, takes five args, no cap.
πΈ ARGUMENTS πΈ
Okay bestie, here's the group chat roster of parameters, and every single one matters:
ibβ indirect buffer to fill with commands. This is the lil' buffer you're stuffing full of instructions π«Άpeβ addr of the page entry. The page entry's address, periodt.valueβ dst addr to write intope. So like, the destination address that gets written into that page entry πcountβ number of page entries to update. How many we doing? This many.incrβ increase next addr byincrbytes. Stepping through them the whole time β
π₯ DESCRIPTION π₯
Update PTEs by writing them manually using sDMA.
That's the tea β β manual PTE writing, sDMA doing the work, iconic behaviour only π No sneaky extra steps, no guessing, we just say what the page says π
Lowkey a whole vibe check: this is avoidfunction, so nothing comes back to you. It just does the thing toib. π¦
π SEE ALSO π
The kernel file, fr fr:
./drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c
And the whole friend group of sibling functions β all of them, not skipping a single one, because we do not leave the girls behind π:
sdma_v7_1_ring_get_rptr(9)sdma_v7_1_ring_get_wptr(9)sdma_v7_1_ring_set_wptr(9)sdma_v7_1_ring_emit_ib(9)sdma_v7_1_ring_emit_mem_sync(9)sdma_v7_1_ring_emit_fence(9)sdma_v7_1_inst_gfx_stop(9)sdma_v7_1_inst_rlc_stop(9)sdma_v7_1_inst_ctx_switch_enable(9)sdma_v7_1_inst_enable(9)sdma_v7_1_gfx_resume_instance(9)sdma_v7_1_inst_gfx_resume(9)sdma_v7_1_inst_rlc_resume(9)sdma_v7_1_inst_load_microcode(9)sdma_v7_1_inst_start(9)sdma_v7_1_ring_test_ring(9)sdma_v7_1_ring_test_ib(9)sdma_v7_1_vm_copy_pte(9)sdma_v7_1_vm_set_pte_pde(9)sdma_v7_1_ring_pad_ib(9)sdma_v7_1_ring_emit_pipeline_sync(9)sdma_v7_1_ring_emit_vm_flush(9)sdma_v7_1_emit_copy_buffer(9)sdma_v7_1_emit_fill_buffer(9)
Okay and for the cute sign-off π β this lil' page lives under the source path ./drivers/gpu/drm/amd/amdgpu, and it's dated October 2026. So yeah, future vibes, kernel API manual, sdma_v7_1_vm_write_pte(9) girlie signing off πβ¨π¦ 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