sdma_v7_1_vm_copy_pte(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sdma_v7_1_vm_copy_pte(9) β€” the Kernel API Manual glow-up πŸŽ€

okay bestie, so this is a page from the Kernel API Manual, and it's about one very specific little function living out its main character era in the AMDGPU sDMA world. Let's get into it ✨


✨ NAME ✨

sdma_v7_1_vm_copy_pte β€” literally the function that updates PTEs by copying them from the GART πŸ¦‹


🌸 SYNOPSIS 🌸

void sdma_v7_1_vm_copy_pte (struct amdgpu_ib *ib , uint64_t pe ,
       uint64_t src , unsigned count );

that's the whole signature, no cap. void return, four arguments, very demure, very mindful πŸ’…


🫢 ARGUMENTS 🫢

  • ib β€” the indirect buffer to fill with commands, like it's the little canvas you're painting your sDMA commands onto 🎨
  • pe β€” addr of the page entry, i.e. where the page entry lives
  • src β€” the src addr to copy from, the place we're sourcing the good stuff from
  • count β€” number of page entries to update, so how many PTEs are getting their moment πŸ”₯

πŸ’œ DESCRIPTION πŸ’œ

Update PTEs by copying them from the GART using sDMA. that's it, that's the whole vibe β€” the page entries get refreshed by copy, and the copy is done by sDMA. iconic behavior honestly πŸ‘‘


🌈 SEE ALSO 🌈

bestie, the cross-reference list here is LONG and we are respecting every single one of them, in order, because these are all her sisters:

  • Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c πŸ“

and then the whole friend group:

like, that's the entire roster and she knows all of them by name πŸ’–


real talk: this page is literally just the one-liner behaviour and the argument list β€” no hidden options, no env vars, no exit statuses, no bug notes. what you see is what you get, fr fr πŸ™ˆ

and that's the page!! 🧚 the source lives in ./drivers/gpu/drm/amd/amdgpu and this edition is dated October 2026 β€” so yeah, mark your calendars bestie, mwah πŸ’‹β­πŸ“

πŸ“¦ where this page comes from