sdma_v6_0_vm_copy_pte(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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