Skip to content

al-msi: Rename driver and add support for ACPI

Hanna Hawa linux-acpi linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7irqchip/alpine-msi: Call IOMMU DMA mapping MSI message hookdrivers/irqchip/irq-alpine-msi.c+7 -00 replies
2/7irqchip/alpine-msi: Update driver license to use SPDXdrivers/irqchip/irq-alpine-msi.c+1 -43 replies
3/7irqchip/al-msi: Rename AL-MSIx driverarch/arm/mach-alpine/Kconfig arch/arm64/Kconfig.platforms drivers/irqchip/Kconfig +2 more+49 -521 reply
4/7irqchip/al-msi: Update wrong parameter namingdrivers/irqchip/irq-al-msi.c+17 -170 replies
5/7ACPI / irq: Add GSI IRQ domain getter functiondrivers/acpi/irq.c include/linux/acpi.h+14 -00 replies
6/7irqchip/al-msi: Refactor in preparation to add ACPI supportdrivers/irqchip/irq-al-msi.c+49 -380 replies
7/7irqchip/al-msi: Add ACPI supportdrivers/irqchip/irq-al-msi.c+111 -75 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] al-msi: Rename driver and add support for ACPI

This series includes three major changes:
1. IOMMU DMA mapping MSI message fix.
2. Re-name the AL-MSIx driver to new name convention.
3. Add ACPI support for the driver.

Alpine is the name of the SoC family, while AL stands for Annapurna Labs. Rename to the latter since the driver will appear in other SoC families other than Alpine.

The AL-MSIx controller is not standard, is not included in the UEFI specification, and will not be added. The driver ACPI binding is performed when the following conditions are true:
- OEM ID is AMAZON
- MADT table type is 0x80 (part of the OEM reserved range).

GICv2m driver is called from context of parent interrupt controller, which ensures that the parent interrupt domain exists and holds valid information. As calling AL-MSIx driver from GICv3 driver would not make sense, a new API was added, to get the GSI IRQ domain that was registered by GICv3 driver in the ACPI framework.

Hanna Hawa (7):
irqchip/alpine-msi: Call IOMMU DMA mapping MSI message hook irqchip/alpine-msi: Update driver license to use SPDX irqchip/al-msi: Rename AL-MSIx driver irqchip/al-msi: Update wrong parameter naming ACPI / irq: Add GSI IRQ domain getter function irqchip/al-msi: Refactor in preparation to add ACPI support irqchip/al-msi: Add ACPI support

 arch/arm/mach-alpine/Kconfig                       |   2 +-
 arch/arm64/Kconfig.platforms                       |   2 +-
 drivers/acpi/irq.c                                 |  13 +
 drivers/irqchip/Kconfig                            |   2 +-
 drivers/irqchip/Makefile                           |   2 +-
 drivers/irqchip/{irq-alpine-msi.c => irq-al-msi.c} | 320 ++++++++++++++-------
 include/linux/acpi.h                               |   1 +
 7 files changed, 236 insertions(+), 106 deletions(-)
 rename drivers/irqchip/{irq-alpine-msi.c => irq-al-msi.c} (40%)
Signature · 1 line
2.7.4