panthor_mmu_unplug(9)
π panthor_mmu_unplug(9) β Kernel API Manual
okay so bestie, we're looking at panthor_mmu_unplug(9) from the Kernel API Manual, and honestly? it's a short one but it matters, so pay attention π
β¨ NAME β¨
panthor_mmu_unplug β unplug the MMU logic, fr fr. that's the whole vibe. π
πΈ SYNOPSIS πΈ
void panthor_mmu_unplug (struct panthor_device *ptdev );
like, no return value, it's a void, she just does the thing and leaves π
π¦ ARGUMENTS π¦
ptdevβ the Device. that's it. that's the whole argument list. one (1) device, hand it over π«Ά
π₯ DESCRIPTION π₯
so here's the tea: after you call this function, nobody should be touching the MMU regs. like, not a single access. not even a little peek. no cap. π
the way we make that guarantee happen? we suspend the IRQ and we disable all the VMs. both. together. that combo is what guarantees it. periodt. β¨
highkey important: No access to the MMU regs should be done after this function is called. β that's a hard rule, not a suggestion, bestie π
π SEE ALSO π
the whole friend group, gathered for the occasion π β and also the kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c, which is where all of this lives π§
struct panthor_as_slot(9)struct panthor_mmu(9)struct panthor_vm_pool(9)struct panthor_vma(9)struct panthor_vm_op_ctx(9)struct panthor_vm(9)struct panthor_vm_bind_job(9)alloc_pt(9)free_pt(9)panthor_vm_has_unhandled_faults(9)panthor_vm_is_unusable(9)panthor_vm_active(9)panthor_vm_idle(9)panthor_vm_as(9)panthor_vm_alloc_va(9)panthor_vm_free_va(9)panthor_vm_get_bo_for_va(9)panthor_vm_pool_create_vm(9)panthor_vm_pool_destroy_vm(9)panthor_vm_pool_get_vm(9)panthor_vm_pool_destroy(9)panthor_vm_pool_create(9)panthor_mmu_suspend(9)panthor_mmu_resume(9)panthor_mmu_pre_reset(9)panthor_mmu_post_reset(9)panthor_vm_put(9)panthor_vm_get(9)panthor_vm_get_heap_pool(9)panthor_vm_heaps_sizes(9)panthor_vm_resv(9)panthor_vm_bind_job_put(9)panthor_vm_create(9)panthor_vm_bind_job_create(9)panthor_vm_bind_job_prepare_resvs(9)panthor_vm_bind_job_update_resvs(9)panthor_vm_bind_exec_sync_op(9)panthor_vm_map_bo_range(9)panthor_vm_unmap_range(9)panthor_vm_prepare_mapped_bos_resvs(9)panthor_mmu_init(9)panthor_mmu_debugfs_init(9)panthor_mmu_pt_cache_init(9)panthor_mmu_pt_cache_fini(9)
that's the whole page, bestie, you ate that ππ β this one came out of ./drivers/gpu/drm/panthor and it's dated October 2026, so like, future vibes only βπΈ go forth and don't touch those MMU regs π
β¨
π¦ 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