sdma_v5_2_vm_set_pte_pde(9)
π sdma_v5_2_vm_set_pte_pde β a little Kernel API Manual moment π
okay so bestie, we're in the Kernel API Manual today and this one is literally called sdma_v5_2_vm_set_pte_pde(9). yes that's a mouthful. no we're not shortening it. iykyk π
β¨ NAME β¨
sdma_v5_2_vm_set_pte_pde β update the page tables using sDMA
like... that's the whole vibe. page tables. sDMA. slay.
πΈ SYNOPSIS πΈ
void sdma_v5_2_vm_set_pte_pde (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t addr , unsigned count , uint32_t incr , uint64_t flags );
she takes six args, returns nothing (void β no cap, she gives nothing back and honestly? iconic π). copy it exactly, don't be cute with the types.
π¦ ARGUMENTS π¦
ibβ indirect buffer to fill with commands. this is the lil container she's gonna stuff full of stuff, mwah π«Άpeβ addr of the page entryaddrβ dst addr to write into pecountβ number of page entries to updateincrβ increase next addr byincrbytesflagsβ access flags
that's it, that's the whole roster. six little besties. π
π₯ DESCRIPTION π₯
Update the page tables using sDMA.
short. sweet. to the point. she said what she said and honestly the confidence?? main character energy fr fr πβ¨
π SEE ALSO π
first up, the source file she lives in (go say hi):
- Kernel file
./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
and now the whole extended friend group π β every single one, no skipping:
sdma_v5_2_ring_get_rptr(9)sdma_v5_2_ring_get_wptr(9)sdma_v5_2_ring_set_wptr(9)sdma_v5_2_ring_emit_ib(9)sdma_v5_2_ring_emit_mem_sync(9)sdma_v5_2_ring_emit_hdp_flush(9)sdma_v5_2_ring_emit_fence(9)sdma_v5_2_gfx_stop(9)sdma_v5_2_rlc_stop(9)sdma_v5_2_ctx_switch_enable(9)sdma_v5_2_enable(9)sdma_v5_2_gfx_resume_instance(9)sdma_v5_2_gfx_resume(9)sdma_v5_2_rlc_resume(9)sdma_v5_2_load_microcode(9)sdma_v5_2_start(9)sdma_v5_2_ring_test_ring(9)sdma_v5_2_ring_test_ib(9)sdma_v5_2_vm_copy_pte(9)sdma_v5_2_vm_write_pte(9)sdma_v5_2_ring_pad_ib(9)sdma_v5_2_ring_emit_pipeline_sync(9)sdma_v5_2_ring_emit_vm_flush(9)sdma_v5_2_emit_copy_buffer(9)sdma_v5_2_emit_fill_buffer(9)
look at that list. that's a whole group chat. π§
π tiny reminder bestie: this is kernel API, so keep the signatures exactly as written β no renaming, no "fixing", no merging. the compiler does not care about your vibes (rude, i know).
and that's a wrap on this lil manpage date π
β¨ the source/version line lives at ./drivers/gpu/drm/amd/amdgpu and the date stamp is October 2026 β ok bye, go update those page tables, ily π«Άππ
π¦ 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