sdma_v6_0_vm_copy_pte(9)
π sdma_v6_0_vm_copy_pte β like, the whole Kernel API Manual page, bestie β¨
okay so real talk, this is a page straight out of the Kernel API Manual and it's all about one tiny little function that does a very specific glow-up on your page tables. sit down, grab a boba, we're getting into it π§π
β¨ NAME β¨
sdma_v6_0_vm_copy_pte β update PTEs by copying them from the GART. that's it, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
void sdma_v6_0_vm_copy_pte (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t src , unsigned count );
no return value, no drama, she just does the thing and leaves π
(returns void, periodt).
π ARGUMENTS π
these are the four girlies she needs to function, no cap:
ibβ the indirect buffer you're filling up with commands. think of it as her little to-do list πpeβ the addr of the page entry. like, which PTE slot is getting the makeover β¨srcβ the src addr to copy from. this is where the good stuff lives π«Άcountβ number of page entries to update. how many of them are getting invited to the party π
π DESCRIPTION π
so what does she actually do? Update PTEs by copying them from the GART using sDMA. that's the tea β β the sDMA engine does the heavy lifting, she just points it at the GART and says "copy those page entries over here, bestie." iconic behavior honestly π₯
π SEE ALSO π
if you're obsessed with this one (and why wouldn't you be), here's the whole friend group π the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c, and these are the siblings:
sdma_v6_0_ring_get_rptr(9)sdma_v6_0_ring_get_wptr(9)sdma_v6_0_ring_set_wptr(9)sdma_v6_0_ring_emit_mem_sync(9)sdma_v6_0_ring_emit_hdp_flush(9)sdma_v6_0_ring_emit_fence(9)sdma_v6_0_gfx_stop(9)sdma_v6_0_rlc_stop(9)sdma_v6_0_ctxempty_int_enable(9)sdma_v6_0_enable(9)sdma_v6_0_gfx_resume_instance(9)sdma_v6_0_gfx_resume(9)sdma_v6_0_rlc_resume(9)sdma_v6_0_load_microcode(9)sdma_v6_0_start(9)sdma_v6_0_ring_test_ring(9)sdma_v6_0_vm_write_pte(9)sdma_v6_0_vm_set_pte_pde(9)sdma_v6_0_ring_emit_pipeline_sync(9)sdma_v6_0_emit_copy_buffer(9)sdma_v6_0_emit_fill_buffer(9)
ngl, this whole page is living rent-free in ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026 β so she's got main character energy and a calendar. ποΈπ
k byeee, go read your PTEs bestie ππ¦π
π¦ 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