amdgpu_hmm_invalidate_hsa(9)
π 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 thestruct 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 tommu_interval_set_seq. it'sunsigned long, and it's exactly the number you hand off tommu_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 π₯
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c MMU Notifier(9)amdgpu_hmm_invalidate_gfx(9)amdgpu_hmm_register(9)amdgpu_hmm_unregister(9)amdgpu_hmm_range_valid(9)amdgpu_hmm_range_alloc(9)amdgpu_hmm_range_free(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms