]> git.ipfire.org Git - thirdparty/linux.git/commit
irqchip/gic-v5: Add ACPI IRS probing
authorLorenzo Pieralisi <lpieralisi@kernel.org>
Thu, 15 Jan 2026 09:50:50 +0000 (10:50 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 27 Jan 2026 14:31:42 +0000 (15:31 +0100)
commit35866efa52feaf48cc54a0745851a555654e1446
treeea8b3b8f77cbbf4ec9587faac8a9575649997223
parent1c406fcdf0b0b8d99b69b382252207fafc0529d7
irqchip/gic-v5: Add ACPI IRS probing

On ARM64 ACPI systems GICv5 IRSes are described in MADT sub-entries.

Add the required plumbing to parse MADT IRS firmware table entries and
probe the IRS components in ACPI.

Augment the irqdomain_ops.translate() for PPI and SPI IRQs in order to
provide support for their ACPI based firmware translation.

Implement an irqchip ACPI based callback to initialize the global GSI
domain upon an MADT IRS detection.

The IRQCHIP_ACPI_DECLARE() entry in the top level GICv5 driver is only used
to trigger the IRS probing (ie the global GSI domain is initialized once on
the first call on multi-IRS systems); IRS probing takes place by calling
acpi_table_parse_madt() in the IRS sub-driver, that probes all IRSes
in sequence.

Add a new ACPI interrupt model so that it can be detected at runtime and
distinguished from previous GIC architecture models.

Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Acked-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260115-gicv5-host-acpi-v3-4-c13a9a150388@kernel.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/bus.c
drivers/irqchip/irq-gic-v5-irs.c
drivers/irqchip/irq-gic-v5.c
include/linux/acpi.h
include/linux/irqchip/arm-gic-v5.h