MMU NOTIFIER(9)
π MMU Notifier π
okay bestie, this little icon lives in the Kernel API Manual, and itβs here to explain how coherent userptr handling works β¨ For coherent userptr handling, it registers an MMU notifier to inform the driver about updates on the page tables of a process. no cap, thatβs the whole vibe π
When somebody tries to invalidate the page tables, we block the update until all operations on the pages in question are completed π«Ά Then those pages are marked as accessed and also dirty if it wasnβt a read only access. periodt π
New command submissions using the userptrs in question are delayed until all page table invalidation are completed and we once more see a coherent process address space πΈ literally the coherence check of it all.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c amdgpu_hmm_invalidate_gfx(9)amdgpu_hmm_invalidate_hsa(9)amdgpu_hmm_register(9)amdgpu_hmm_unregister(9)amdgpu_hmm_range_valid(9)amdgpu_hmm_range_alloc(9)amdgpu_hmm_range_free(9)
mwah π thatβs the page, bestie β source/version: ./drivers/gpu/drm/amd/amdgpu, dated October 2026 ππ¦
π¦ 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