sdma_v5_0_vm_copy_pte(9)
π sdma_v5_0_vm_copy_pte(9) β a Kernel API Manual moment π
okay bestie, welcome to the sdma_v5_0_vm_copy_pte(9) page β¨ this one lives in the Kernel API Manual, and honestly she's a whole vibe: short, iconic, does exactly one job and does it slay.
β¨ NAME β¨
sdma_v5_0_vm_copy_pte β literally updates PTEs by copying them over from the GART π«Ά no cap, that's the entire personality.
πΈ SYNOPSIS πΈ
void sdma_v5_0_vm_copy_pte (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t src , unsigned count );
see? she's void, she returns nothing, she simply is. main character energy fr fr π
π¦ ARGUMENTS π¦
okay so here's the rundown of everybody walking into this function πΆββοΈ
ibβ the indirect buffer you're filling up with commands. she's the canvas, you're the artist π¨peβ the addr of the page entry. yes, addr, not address, we're keeping it exactly like that πsrcβ the src addr to copy from. where the tea comes from βcountβ number of page entries to update. how many besties are getting updated in this batch π―ββοΈ
π₯ DESCRIPTION π₯
Update PTEs by copying them from the GART using sDMA (NAVI10). π
that's it. that's the whole description. she's concise, she's efficient, she's booked and busy. NAVI10 girlies rise π
β SEE ALSO β
the Kernel file, the whole source of truth:
./drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
and her entire friend group π (seriously, this is the whole group chat, nobody gets left on read):
sdma_v5_0_init_microcode(9)sdma_v5_0_ring_get_rptr(9)sdma_v5_0_ring_get_wptr(9)sdma_v5_0_ring_set_wptr(9)sdma_v5_0_ring_emit_ib(9)sdma_v5_0_ring_emit_mem_sync(9)sdma_v5_0_ring_emit_hdp_flush(9)sdma_v5_0_ring_emit_fence(9)sdma_v5_0_gfx_stop(9)sdma_v5_0_rlc_stop(9)sdma_v5_0_ctx_switch_enable(9)sdma_v5_0_enable(9)sdma_v5_0_gfx_resume_instance(9)sdma_v5_0_gfx_resume(9)sdma_v5_0_rlc_resume(9)sdma_v5_0_load_microcode(9)sdma_v5_0_start(9)sdma_v5_0_ring_test_ring(9)sdma_v5_0_ring_test_ib(9)sdma_v5_0_vm_write_pte(9)sdma_v5_0_vm_set_pte_pde(9)sdma_v5_0_ring_pad_ib(9)sdma_v5_0_ring_emit_pipeline_sync(9)sdma_v5_0_ring_emit_vm_flush(9)sdma_v5_0_emit_copy_buffer(9)sdma_v5_0_emit_fill_buffer(9)
π friendly reminder that this page is dated October 2026 and comes from ./drivers/gpu/drm/amd/amdgpu β so like, screenshot the receipts, iykyk π
okay that's the page bestie, go forth and copy those PTEs π§ββοΈπ 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