[PATCH 00/11] irqchip: MSI parent cleanup and PCI host driver conversion

Marc Zyngier maz at kernel.org
Wed Dec 4 04:45:38 PST 2024


I've become annoyed by the couple of machines I have around that
haven't been converted to the per-device MSI infrastructure.  At the
same time, I've also moaned at the amount of boilerplate code required
to make use of this infrastructure.

This series therefore does a number of things:

- make irq-msi-lib.h globally available, so that PCI (and other
  subsystems) may make use of it

- add a new helper (msi_create_parent_irq_domain()) that encapsulates
  most of the magic required to create an MSI-parent domain

- convert all the existing users *except* arch/x86/kernel/apic/msi.c,
  which is far too esoteric for me to touch it

- convert the Apple and XGene MSI drivers to the MSI-parent
  infrastructure, which is why I came here the first place.

I've only tested the arm64 stuff I have access to (or care about), and
I would appreciate the respective maintainers/users of the other
drivers to give it a go, or at least a cursory look.

Patches on top of 6.13-rc1.

Marc Zyngier (11):
  irqchip: Make irq-msi-lib.h globally available
  genirq/msi: Add helper for creating MSI-parent irq domains
  irqchip/gic: Convert to msi_create_parent_irq_domain() helper
  irqchip/mvebu: Convert to msi_create_parent_irq_domain() helper
  irqchip/riscv-imsic: Convert to msi_create_parent_irq_domain() helper
  irqchip/imx-mu-msi: Convert to msi_create_parent_irq_domain() helper
  irqchip/loongson-pch-msi: Convert to msi_create_parent_irq_domain()
    helper
  iommu/amd: Convert to msi_create_parent_irq_domain() helper
  iommu/intel: Convert to msi_create_parent_irq_domain() helper
  PCI: apple: Convert to MSI parent infrastructure
  PCI: xgene: Convert to MSI parent infrastructure

 drivers/iommu/amd/iommu.c                     | 12 ++--
 drivers/iommu/intel/irq_remapping.c           | 16 ++----
 drivers/irqchip/irq-gic-v2m.c                 | 11 ++--
 drivers/irqchip/irq-gic-v3-its-msi-parent.c   |  2 +-
 drivers/irqchip/irq-gic-v3-its.c              | 16 ++----
 drivers/irqchip/irq-gic-v3-mbi.c              | 11 ++--
 drivers/irqchip/irq-imx-mu-msi.c              | 10 ++--
 drivers/irqchip/irq-loongarch-avec.c          |  2 +-
 drivers/irqchip/irq-loongson-pch-msi.c        | 15 ++---
 drivers/irqchip/irq-msi-lib.c                 |  2 +-
 drivers/irqchip/irq-mvebu-gicp.c              | 14 ++---
 drivers/irqchip/irq-mvebu-icu.c               |  2 +-
 drivers/irqchip/irq-mvebu-odmi.c              | 15 ++---
 drivers/irqchip/irq-mvebu-sei.c               | 16 ++----
 drivers/irqchip/irq-riscv-imsic-platform.c    | 11 ++--
 drivers/pci/controller/Kconfig                |  2 +
 drivers/pci/controller/pci-xgene-msi.c        | 44 +++++---------
 drivers/pci/controller/pcie-apple.c           | 57 ++++++-------------
 .../linux}/irqchip/irq-msi-lib.h              |  6 +-
 include/linux/msi.h                           |  7 +++
 kernel/irq/msi.c                              | 40 +++++++++++++
 21 files changed, 146 insertions(+), 165 deletions(-)
 rename {drivers => include/linux}/irqchip/irq-msi-lib.h (84%)

-- 
2.39.2




More information about the linux-riscv mailing list