HomeFreeBSD

arm64: Move intr_pic_init_secondary earlier

Description

arm64: Move intr_pic_init_secondary earlier

This may have been called after intr_irq_shuffle. For most interrupt
controllers this appears to be safe, however for the GICv5 we need to
read a per-CPU ID register before we can assign interrupts to a given
CPU.

Fix the race by moving intr_pic_init_secondary earlier in the boot,
after devices have been enumerated and before the interrupts are moved
to their assigned CPUs.

Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D53685

Details

Provenance
andrewAuthored on Nov 18 2025, 6:00 PM
Differential Revision
D53685: arm64: Move intr_pic_init_secondary earlier
Parents
rG2188e77bfdec: arm64: Remove gicv3_get_support_lpis
Branches
Unknown
Tags
Unknown
Reverted By
rG9128380511de: Revert "arm64: Move intr_pic_init_secondary earlier"