cayman_dma_vm_copy_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” a radeon_device pointer. 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 πŸ’…


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