sdma_v4_4_2_vm_copy_pte(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sdma_v4_4_2_vm_copy_pte β€” the kernel API manual, but make it make sense 🫢

okay so bestie, you're in the sdma_v4_4_2 section of the Kernel API Manual and this page is all about sdma_v4_4_2_vm_copy_pte ✨ β€” the little function whose whole personality is updating PTEs by copying them from the GART. iconic honestly πŸ’…


🌸 SYNOPSIS 🌸

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

like, look at her. returns void, takes four things, and does not elaborate further. no cap πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • ib β€” the indirect buffer you're filling with commands, bestie. that's her whole job, you just hand her the buffer 🫢
  • pe β€” the addr of the page entry. yep, just the address, that's it ✨
  • src β€” the src addr to copy from. she's gonna read from right here πŸ¦‹
  • count β€” the number of page entries to update, so like, how many are we doing today girlie πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So the vibe is this: this function updates PTEs by copying them from the GART using sDMA. that's it. that's the whole thing. she's not doing anything extra, she's not overachieving, she's just copying PTEs from the GART with sDMA and leaving. main character energy honestly πŸ‘‘

ngl it's giving "small function, extremely specific job, absolutely ate" πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c β€” that's the mothership, go look at her if you want the full lore 🧚

and then the whole friend group, fr fr, in the order the page lists them:

like that is a whole ensemble cast, and we love every single one of them πŸŒˆπŸ’œ


reminder bestie: everything on this page is under the ./drivers/gpu/drm/amd/amdgpu directory, and the manual's date stamp says October 2026, so if you're reading this in the future β€” hi, you're in the future πŸ’–

and that's the whole page, periodt. mwah πŸŽ€πŸ“πŸ§š

πŸ“¦ where this page comes from