Part 4: Interrupts and timers
Review part: concise and register-precise, for readers who already know this material.
Prerequisites: 3.1 Exception types and the vector table, 3.3 Routing and masking, 2.1 Exception levels, Security states and execution states
If you already know: the GICv3 programming model from writing a TF-A platform port or an OP-TEE GIC driver, skim 4.1–4.3 for the register tables and read 4.4, 4.5 and 4.7 properly.
Why this matters for bring-up/validation: on a new SoC the first interrupt and the first timer tick are where a wrong Redistributor stride, a sleeping Redistributor, a group/FIQ mix-up or an unsynchronised counter first shows up, usually as silence rather than a fault.
Part 3 ended at the PE boundary: an IRQ or FIQ is asserted, routed by SCR_EL3 and HCR_EL2, and masked by PSTATE. This part covers what sits behind that signal. Sections 4.1 to 4.4 cover the GICv3 model. 4.1 introduces the components (Distributor, Redistributors, the ICC_* system-register CPU interface) and affinity routing. 4.2 follows one interrupt through its state machine: acknowledge, priority drop and deactivation. 4.3 explains how interrupt groups map to FIQ and IRQ in each Security state, and how priority, preemption and the v8.8 NMI extension interact. 4.4 covers the memory-resident side: LPIs, their tables, and the ITS that turns a device’s MSI write into an LPI. 4.5 turns all of this into a bring-up checklist for the interrupt that never arrives, including multi-chip GICs.
The last two sections cover the Generic Timer. 4.6 covers the system counter, the per-EL and per-Security-state timers, and the memory-mapped counter frames. 4.7 covers reading time correctly: counter reads are not ordered the way most people assume, and multi-chiplet systems must keep one consistent count across dies. GICv4 virtual interrupt injection is deliberately left to 11.4.