amdgpu_gem_va_update_vm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_gem_va_update_vm β€” like, the whole vibe

okay so bestie, welcome to the Kernel API Manual ✨ this one's about amdgpu_gem_va_update_vm(9) and it's literally the page that tells you how to update the bo_va in its VM. no cap. let's get into it πŸŽ€


🌸 NAME 🌸

amdgpu_gem_va_update_vm β€” update the bo_va in its VM πŸ¦‹

like... that's the whole job. it updates the bo_va. in its VM. iconic behavior honestly πŸ‘‘


✨ SYNOPSIS ✨

struct dma_fence * amdgpu_gem_va_update_vm (struct amdgpu_device *adev ,
       struct amdgpu_vm *vm , struct amdgpu_bo_va *bo_va , uint32_t operation
       );

so you hand it an adev, a vm, a bo_va and an operation, and it gives you back a struct dma_fence *. that's the shape of it, copy it exactly bestie, no typos allowed πŸ’…


🫢 ARGUMENTS 🫢

  • adev β€” an amdgpu_device pointer. it's giving "the device in question" energy πŸ”₯
  • vm β€” the vm to update. yes, this is the VM we're updating. main character energy fr πŸ’–
  • bo_va β€” the bo_va to update. she's the one getting refreshed 🌸
  • operation β€” map, unmap or clear. three options, pick your fighter 😭

πŸ’€ DESCRIPTION πŸ’€

so the deal is: you update the bo_va directly after setting its address. that's the sequence, don't skip steps bestie πŸ™ˆ

and here's the lowkey important bit β€” errors are not vital here, so they are not reported back to userspace. like, the kernel is just gonna vibe through it. no error message, no nothing. ngl that's a whole mood πŸ’€

what it returns:

  • the resulting fence if freed BO(s) got cleared from the PT πŸ”₯
  • otherwise a stub fence in case of error. cute little consolation prize iykyk πŸŽ€

🌈 SEE ALSO 🌈

go read those too, they're literally right there, bestie πŸ¦‹


reminder bestie: the errors get swallowed here on purpose. that's not a bug, that's the documented vibe. don't come for me πŸ’…

mwah πŸ’– that's the whole page! source lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β€” and this little API manual moment was brought to you by the Kernel API Manual gang. slay, bye 🧚✨

πŸ“¦ where this page comes from