sdma_v2_4_vm_copy_pte(9)
π sdma_v2_4_vm_copy_pte(9) β the Kernel API Manual, bestie edition β¨
okay so real talk, this is a page from the Kernel API Manual and the star of the show is sdma_v2_4_vm_copy_pte. she's a little function with one job and she does it flawlessly π
β¨ NAME β¨
sdma_v2_4_vm_copy_pte β literally updates PTEs by copying them out of the GART π«Ά
πΈ SYNOPSIS πΈ
void sdma_v2_4_vm_copy_pte (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t src , unsigned count );
look at her. returns void, meaning she doesn't come back to tell you how it went β she just does it and dips π main character energy fr
π ARGUMENTS π
ibβ the indirect buffer you're filling up with commands. she's the canvas, you're the artist ποΈpeβ addr of the page entry πsrcβ the src addr you're copying from, iykyk πcountβ how many page entries we're updating. the more the merrier ngl π
π¦ DESCRIPTION π¦
Update PTEs by copying them from the GART using sDMA (CIK). that's it, that's the whole vibe. iconic, no notes, periodt β¨
ngl the original page gives us exactly one sentence here and honestly? she said what she said. don't come for me, I'm not adding lore that isn't canon π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/sdma_v2_4.cβ the mothership, go say hi π sdma_v2_4_init_microcode(9)sdma_v2_4_ring_get_rptr(9)sdma_v2_4_ring_get_wptr(9)sdma_v2_4_ring_set_wptr(9)sdma_v2_4_ring_emit_ib(9)sdma_v2_4_ring_emit_hdp_flush(9)sdma_v2_4_ring_emit_fence(9)sdma_v2_4_gfx_stop(9)sdma_v2_4_rlc_stop(9)sdma_v2_4_enable(9)sdma_v2_4_gfx_resume(9)sdma_v2_4_rlc_resume(9)sdma_v2_4_start(9)sdma_v2_4_ring_test_ring(9)sdma_v2_4_ring_test_ib(9)sdma_v2_4_vm_write_pte(9)sdma_v2_4_vm_set_pte_pde(9)sdma_v2_4_ring_pad_ib(9)sdma_v2_4_ring_emit_pipeline_sync(9)sdma_v2_4_ring_emit_vm_flush(9)sdma_v2_4_emit_copy_buffer(9)sdma_v2_4_emit_fill_buffer(9)
that's 23 siblings and every single one of them is invited to the function family reunion π§π
π quick reminder bestie: this page lives in./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's all aboutsdma_v2_4_vm_copy_pte(9). that's the whole receipt, don't lose it π
k bye, go copy some PTEs and slay π β¨πΈ
π¦ 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