Page MenuHomeFreeBSD

arm64: apple: fix aic for !SMP configurations
ClosedPublic

Authored by kevans on Jan 2 2025, 4:37 PM.
Tags
None
Referenced Files
F163348897: D48289.id149035.diff
Wed, Jul 22, 9:36 AM
F163334668: D48289.id.diff
Wed, Jul 22, 5:39 AM
Unknown Object (File)
Tue, Jul 21, 7:52 AM
Unknown Object (File)
Sat, Jul 18, 4:11 AM
Unknown Object (File)
Tue, Jul 14, 10:03 PM
Unknown Object (File)
Sat, Jul 11, 4:40 AM
Unknown Object (File)
Thu, Jul 9, 9:44 AM
Unknown Object (File)
Wed, Jul 8, 10:58 PM
Subscribers

Details

Summary

Record the BSP CPU identification in attach for later use in our
bus_setup_intr implementation.

Diff Detail

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

Event Timeline

kevans requested review of this revision.Jan 2 2025, 4:37 PM
This revision is now accepted and ready to land.Jan 2 2025, 5:43 PM
sys/arm64/apple/apple_aic.c
141

I would be tempted to make #ifdef's a bit smaller by keeping sc_cpuids around always so that only sc_ipimasks and sc_ipi_srcs are under the #ifdef. It means you will end up allocating a single-element array for sc_cpuids, but that's fine. No one will probably use a UP kernel anyway so I'd optimize for minimizing diffs.

Reverse course, just move sc_cpuids out from underneath SMP and let it allocatee
a single-entry sc_cpuids. The overhead of still doing intr_irq_next_cpu() is
minimal since it's simply a PCPU_GET(cpuid) on !SMP kernels.

This revision now requires review to proceed.Jan 3 2025, 10:26 PM
This revision is now accepted and ready to land.Jan 9 2025, 9:17 PM
This revision was automatically updated to reflect the committed changes.