cayman_dma_vm_copy_pages(9)
β¨ cayman_dma_vm_copy_pages(9) β¨
okay bestie, buckle up π
we're in the Kernel API Manual today and this one is a whole vibe β it's literally cayman_dma_vm_copy_pages, and yes, that name is a mouthful, but you're gonna slay it.
πΈ NAME πΈ
cayman_dma_vm_copy_pages β update PTEs by copying them from the GART π«Ά
Like, that's the whole thing. That's the assignment. PTEs get updated, the copying comes from the GART, and the function is the main character doing it. Periodt. π
π SYNOPSIS π
void cayman_dma_vm_copy_pages (struct radeon_device *rdev , struct
radeon_ib *ib , uint64_t pe , uint64_t src , unsigned count );
it returns void, so don't go looking for a return value, bestie β there isn't one, and that's iconic of it honestly. π
π¦ ARGUMENTS π¦
every one of these matters, so let's do a lil vibe check on each π
rdevβ aradeon_devicepointer. yes bestie, the whole device, right there in your hands β¨ibβ the indirect buffer to fill with commands. it's giving "empty vessel, ready for lore" πpeβ the addr of the page entry. the address. of the page entry. we love a literal queen πΈsrcβ the src addr where to copy from. that's where the copying comes from, iykyk π«countβ the number of page entries to update. so if you're updating a lot, this is your number, no cap π’
π DESCRIPTION π
Update PTEs by copying them from the GART using the DMA (cayman/TN).
that's it, that's the whole description β lowkey obsessed with how it gets straight to the point π it's doing exactly what it says on the tin: PTEs get updated, the GART is the source, and the DMA (cayman/TN) is the mechanism. no extra drama, just clean, efficient work. we stan a focused function. π«Άβ¨
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/gpu/drm/radeon/ni_dma.c, and here's the whole friend group β go say hi to all of them π
cayman_dma_get_rptr(9)cayman_dma_get_wptr(9)cayman_dma_set_wptr(9)cayman_dma_ring_ib_execute(9)cayman_dma_stop(9)cayman_dma_resume(9)cayman_dma_fini(9)cayman_dma_is_lockup(9)cayman_dma_vm_write_pages(9)cayman_dma_vm_set_pages(9)cayman_dma_vm_pad_ib(9)
anyway bestie, that's the page π this little doc came from ./drivers/gpu/drm/radeon and it's dated October 2026 β so yeah, mark your calendar, screenshot it, frame it, whatever you gotta do πβ¨ slay, and happy page-table updating!! π¦π
π¦ 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