cik_sdma_vm_write_pte(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cik_sdma_vm_write_pte β€” kernel API manual, but make it make sense

okay bestie, welcome to the cik_sdma_vm_write_pte(9) page ✨ this one's a little kernel-API moment from the AMDGPU cinematic universe and honestly? it's giving "short but iconic." let's get into it 🫢


✨ NAME ✨

cik_sdma_vm_write_pte β€” update PTEs by writing them manually πŸŽ€

like, you're literally hand-writing page table entries. no cap. you're doing it yourself. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void cik_sdma_vm_write_pte (struct amdgpu_ib *ib , uint64_t pe ,
       uint64_t value , unsigned count , uint32_t incr );

that's the whole thing, bestie β€” a void return, so nothing comes back at you. it just does the thing. lowkey obsessed with a function that doesn't need to report back. 😌


🌸 ARGUMENTS 🌸

okay so every one of these matters, do not skip, this is the whole vibe check of the call:

  • ib β€” indirect buffer to fill with commands 🧚 this is the little bucket you're dropping your sDMA commands into.
  • pe β€” addr of the page entry πŸ’– the address where the page entry lives.
  • value β€” dst addr to write into pe ⭐ the destination address that's gonna get written into pe. that's the whole point of the operation.
  • count β€” number of page entries to update 🌈 not one, not two β€” this many.
  • incr β€” increase next addr by incr bytes πŸ”₯ the step size between one entry and the next.
ngl the count + incr combo is the main character energy here β€” you're updating a whole run of entries, and incr is what carries you from one to the next πŸ’«

πŸ‘‘ DESCRIPTION πŸ‘‘

Update PTEs by writing them manually using sDMA (CIK). πŸ’€

yep, that's it, that's the description. short, sweet, and extremely on brand. instead of some fancy hardware path doing the PTE updating for you, this bad boy writes them out manually through sDMA on CIK. peak "fine, I'll do it myself" energy πŸ™ˆβœ¨


πŸ’œ SEE ALSO πŸ’œ

the whole friend group 🫢 β€” the kernel file first, then the entire cik_sdma ensemble cast:


and that's the page, bestie! πŸŽ€ this one lives down in ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β€” so go forth, write those PTEs by hand, and slay πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from