si_dma_vm_copy_pte(9)
π si_dma_vm_copy_pte(9) β from the Kernel API Manual, bestie β¨
okay so picture this: you're deep in the Kernel API Manual, section 9, and the main character of today's episode is si_dma_vm_copy_pte. no cap, this one's a whole vibe. let's get into it π«Ά
β¨ NAME β¨
si_dma_vm_copy_pte β literally the function that updates PTEs by copying them from the GART π«
πΈ SYNOPSIS πΈ
void si_dma_vm_copy_pte (struct amdgpu_ib *ib , uint64_t pe , uint64_t
src , unsigned count );
that's the whole signature, copy it exactly, don't be weird about it π
π ARGUMENTS π
ibβ the indirect buffer you're filling up with commands, bestie. it's giving "blank canvas, but make it GPU" ποΈpeβ the addr of the page entry. yes, addr, the original said addr, we keep addr πsrcβ the src addr to copy from. so like, where the good stuff lives π₯countβ how many page entries we're updating. the more the merrier fr fr π
π¦ DESCRIPTION π¦
so what does it actually do? Update PTEs by copying them from the GART using DMA (SI). that's it, that's the tea ββ¨ short and iconic, just like this description. no notes. periodt. π
π SEE ALSO π
the lore expands, and honestly? the supporting cast ate π
- the kernel file:
./drivers/gpu/drm/amd/amdgpu/si_dma.cπ si_dma_ring_get_rptr(9)si_dma_ring_get_wptr(9)si_dma_ring_emit_fence(9)si_dma_ring_test_ring(9)si_dma_ring_test_ib(9)si_dma_vm_write_pte(9)si_dma_vm_set_pte_pde(9)si_dma_ring_pad_ib(9)si_dma_ring_emit_pipeline_sync(9)si_dma_ring_emit_vm_flush(9)si_dma_emit_copy_buffer(9)si_dma_emit_fill_buffer(9)
like, go read them too, they're all connected iykyk π§ββοΈ
ngl this page is short but she's doing her best and that's main character energy π
and that's the whole page, bestie!! π this one came from ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026 β so mark your calendars, si_dma_vm_copy_pte(9) is out here living her best life. mwah πππ
π¦ 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