HomeFreeBSD

x86: Introduce APIC ID limit by default on AMD hardware

Description

x86: Introduce APIC ID limit by default on AMD hardware

Lack of an AMD IOMMU driver means we cannot successfully route
interrupts to APIC IDs 255 and over. Do not add the corresponding CPUs
to the per-domain lists of CPUs to which interrupts can be assigned.

This change should be reverted (or, at least the APIC ID limit) once we
have an AMD IOMMU / interrupt remapping driver.

See also commits fa5f94140a83 ("msi: handle error from BUS_REMAP_INTR in
msi_assign_cpu") and 4258eb5a0d97 ("x86: handle domains with no CPUs
usable for intr delivery.").

Reviewed by: markj, jhb
Tested by: cperciva (earlier version)
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41618

Details

Provenance
emasteAuthored on Aug 18 2023, 3:39 AM
Reviewer
markj
Differential Revision
D41618: x86: disallow APIC IDs over 255 on AMD hardware
Parents
rG09c45b089d2f: iostat: getopt() / usage() cleanup.
Branches
Unknown
Tags
Unknown