Page MenuHomeFreeBSD

arm64: Move intr_pic_init_secondary earlier
ClosedPublic

Authored by andrew on Nov 11 2025, 11:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 17, 2:21 AM
Unknown Object (File)
May 21 2026, 7:56 AM
Unknown Object (File)
May 11 2026, 8:14 AM
Unknown Object (File)
May 11 2026, 3:00 AM
Unknown Object (File)
May 9 2026, 4:43 AM
Unknown Object (File)
May 5 2026, 1:27 PM
Unknown Object (File)
May 5 2026, 5:17 AM
Unknown Object (File)
Apr 26 2026, 5:40 PM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable