sdma_v5_2_vm_copy_pte(9)
π sdma_v5_2_vm_copy_pte(9) β the Kernel API Manual, bestie edition π
okay so you found the Kernel API Manual page for sdma_v5_2_vm_copy_pte and tbh you're about to understand it perfectly, periodt β¨
β¨ NAME β¨
sdma_v5_2_vm_copy_pte β update PTEs by copying them from the GART π¦
no cap, that's the whole vibe: PTEs get updated, and the way they get updated is copying them from the GART. iconic behavior honestly π
πΈ SYNOPSIS πΈ
void sdma_v5_2_vm_copy_pte (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t src , unsigned count );
so it returns void (nothing, nada, it's giving "I do the work and I don't brag about it" π
) and it takes four things. let's meet them π«Ά
π ARGUMENTS π
ibβ the indirect buffer you're filling with commands. that's literally its whole job, it's the canvas and you're the artist bestie π¨peβ the addr of the page entry. yes, addr, not address, we're keeping the original spelling fr fr πsrcβ the src addr to copy from. it's giving source material, main character energy πcountβ how many page entries are getting updated. the more the merrier lowkey π
π₯ DESCRIPTION π₯
Update PTEs by copying them from the GART using sDMA β
that's it. that's the whole description. short, sweet, and absolutely ate πβ¨
π¦ SEE ALSO π¦
the kernel file lives right here, go say hi:
./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
and here's the whole friend group, the entire squad, not me listing all of them but I am, and every single one is invited to the group chat π:
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_write_pte(9)sdma_v5_2_vm_set_pte_pde(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)
ok real talk, that's a LOT of friends but you gotta respect it, iykyk π§
and that's the page!! mwah π before you go β this one came from ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026, so like, mark your calendars bestie, and remember: sdma_v5_2_vm_copy_pte(9), always and forever, 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