This series requests the mmu and gpu interrupts, reports mmu page faults and gpu faults, and turns off an address space that faults. It is a continuation of Laura's Job IRQ series [1], which depends in turn on the gpu reset and workqueue series. Unblocking the workqueue series will soon unblock all of this.
This assumes the separate interrupt and registration names asked for in the review of Laura's v7 [2]. Patches 1-4 add the two interrupts on top of the TyrIrq wrapper and log the faults. Patches 5-8 move the mmu cache maintenance from the deprecated FLUSH_PT and FLUSH_MEM commands to FLUSH_CACHES, and flush after an address space is switched to UNMAPPED, like panthor does. Patch 9 turns a faulting address space off from the mmu interrupt handler, keeping its VM in the slot. The mmu interrupt handler holds an Arc<Mmu>. Once Danilo's series using pin-init self-referential support [3] lands, it will borrow the Mmu instead. Tested on the Rock 5B (RK3588) + IGT. [1] https://lore.kernel.org/r/[email protected] [2] https://lore.kernel.org/r/[email protected] [3] https://lore.kernel.org/r/[email protected] --- Daniel Almeida (9): drm/tyr: request the mmu IRQ drm/tyr: report mmu page faults drm/tyr: request the gpu IRQ drm/tyr: report gpu faults drm/tyr: use FLUSH_CACHES instead of FLUSH_PT drm/tyr: do not issue a cache flush while one is pending drm/tyr: use FLUSH_CACHES when disabling an address space drm/tyr: flush the caches after disabling an address space drm/tyr: disable an address space that faults drivers/gpu/drm/tyr/driver.rs | 35 +++++- drivers/gpu/drm/tyr/gpu.rs | 2 + drivers/gpu/drm/tyr/gpu/irq.rs | 130 ++++++++++++++++++++++ drivers/gpu/drm/tyr/mmu.rs | 1 + drivers/gpu/drm/tyr/mmu/address_space.rs | 61 +++++++++-- drivers/gpu/drm/tyr/mmu/irq.rs | 179 +++++++++++++++++++++++++++++++ 6 files changed, 400 insertions(+), 8 deletions(-) --- base-commit: ffe6a7f7e0a826a23c640bae3b931efce5302b5a change-id: 20261127-tyr-mmu-irq-a9a7b86c53b3 prerequisite-change-id: 20260728-tyr-irq-v2-0b3c5022be33:v7 prerequisite-patch-id: 23e05486d62f5bb42bdfb6c229f1dd621b46f086 prerequisite-patch-id: f85bbce41bbf1ef78496c48c27cc1ff28a004df8 prerequisite-patch-id: ed7cbdc1bc8d27983dd3319198ac0d3c7629e47e Best regards, -- Daniel Almeida <[email protected]>
