sdma_v7_0_vm_copy_pte(9)
β¨ sdma_v7_0_vm_copy_pte(9) β¨
okay so bestie, welcome to the kernel API manual for sdma_v7_0_vm_copy_pte π
this is a page straight out of the kernel API manual and it's all about updating PTEs the slay way β by copying them from the GART. no cap.
πΈ SYNOPSIS πΈ
void sdma_v7_0_vm_copy_pte (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t src , unsigned count );
literally just four lil params and it returns void. she's lowkey effortless π«Ά
π ARGUMENTS π
ibβ the indirect buffer you're filling with commands π this is where the magic gets written.peβ the addr of the page entry. yep, that's the spot β¨srcβ the src addr to copy from. the source of truth, iykyk π¦countβ number of page entries to update. how many we doing? that many π₯
π DESCRIPTION π
Update PTEs by copying them from the GART using sDMA. that's the whole vibe. the sDMA engine does the copying, the PTEs get updated, and everyone moves on with their day. periodt. π
π SEE ALSO π
the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c β go read her, she's iconic π
and here's the whole friend group, fr fr:
sdma_v7_0_ring_get_rptr(9)sdma_v7_0_ring_get_wptr(9)sdma_v7_0_ring_set_wptr(9)sdma_v7_0_ring_emit_ib(9)sdma_v7_0_ring_emit_mem_sync(9)sdma_v7_0_ring_emit_hdp_flush(9)sdma_v7_0_ring_emit_fence(9)sdma_v7_0_gfx_stop(9)sdma_v7_0_rlc_stop(9)sdma_v7_0_ctx_switch_enable(9)sdma_v7_0_enable(9)sdma_v7_0_gfx_resume_instance(9)sdma_v7_0_gfx_resume(9)sdma_v7_0_rlc_resume(9)sdma_v7_0_load_microcode(9)sdma_v7_0_start(9)sdma_v7_0_ring_test_ring(9)sdma_v7_0_ring_test_ib(9)sdma_v7_0_vm_write_pte(9)sdma_v7_0_vm_set_pte_pde(9)sdma_v7_0_ring_pad_ib(9)sdma_v7_0_ring_emit_pipeline_sync(9)sdma_v7_0_ring_emit_vm_flush(9)sdma_v7_0_emit_copy_buffer(9)sdma_v7_0_emit_fill_buffer(9)
mwah π that's the page! sourced from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β go off bestie, you understood it fr fr π§ββοΈβ
π¦ 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