[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241204124549.607054-1-maz@kernel.org>
Date: Wed, 4 Dec 2024 12:45:38 +0000
From: Marc Zyngier <maz@...nel.org>
To: iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
loongarch@...ts.linux.dev,
linux-riscv@...ts.infradead.org,
linux-pci@...r.kernel.org
Cc: Joerg Roedel <joro@...tes.org>,
Suravee Suthikulpanit <suravee.suthikulpanit@....com>,
David Woodhouse <dwmw2@...radead.org>,
Lu Baolu <baolu.lu@...ux.intel.com>,
Thomas Gleixner <tglx@...utronix.de>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>,
Jiaxun Yang <jiaxun.yang@...goat.com>,
Andrew Lunn <andrew@...n.ch>,
Gregory Clement <gregory.clement@...tlin.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
Anup Patel <anup@...infault.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Krzysztof WilczyĆski <kw@...ux.com>,
Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Toan Le <toan@...amperecomputing.com>,
Alyssa Rosenzweig <alyssa@...enzweig.io>
Subject: [PATCH 00/11] irqchip: MSI parent cleanup and PCI host driver conversion
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
Powered by blists - more mailing lists