amdgpu_hmm_invalidate_hsa(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_hmm_invalidate_hsa(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's a (9) page from the kernel docs, and it's lowkey one of those quiet-but-important callback girlies. no cap.


✨ NAME ✨

amdgpu_hmm_invalidate_hsa β€” callback to notify about mm change 🫢


🌸 SYNOPSIS 🌸

bool amdgpu_hmm_invalidate_hsa (struct mmu_interval_notifier *mni ,
       const struct mmu_notifier_range *range , unsigned long cur_seq );

it returns a bool, she takes three args, and she's literally the whole vibe. main character energy fr. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • mni β€” the range (mm) is about to update. yup, this is the struct mmu_interval_notifier * and she is about to get some news she didn't ask for 😭
  • range β€” details on the invalidation. const struct mmu_notifier_range * β€” all the deets, all the gossip, wrapped up cute πŸ’Œ
  • cur_seq β€” Value to pass to mmu_interval_set_seq. it's unsigned long, and it's exactly the number you hand off to mmu_interval_set_seq. no substitutions, bestie β€” pass this value. πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” we temporarily evict the BO attached to this range. like, moving it out for a sec, not forever, don't panic.

and the way that this necessitates evicting all user-mode queues of the process?? yeah. the entire process's user-mode queues gotta go too. it's giving "one thing leads to another" and honestly the way it's just how it is 😀✨


πŸ”₯ SEE ALSO πŸ”₯

like, read the whole friend group, iykyk πŸ’œ


ngl this one's short but she matters. go read MMU Notifier(9) if you wanna understand the why, bestie 🧚

and that's the page!! sourced straight from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β€” mwah, slay, periodt πŸ’–πŸŒˆβ­

πŸ“¦ where this page comes from