]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: xgene-msi: Make per-CPU interrupt setup robust
authorMarc Zyngier <maz@kernel.org>
Tue, 8 Jul 2025 17:33:56 +0000 (18:33 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 22 Jul 2025 20:33:16 +0000 (15:33 -0500)
commitd17e3f8a933f1e467e2cfbe144ebefc2943a019f
tree3c33988755f8e7c763f82ac44511f25fc352ee6b
parentfddf72ed7b52c91da37fe5f1d4faed11251b714f
PCI: xgene-msi: Make per-CPU interrupt setup robust

The way the per-CPU interrupts are dealt with in the XGene MSI
driver isn't great:

- the affinity is set after the interrupt is enabled

- nothing prevents userspace from moving the interrupt around

- the affinity setting code pointlessly allocates memory

- the driver checks for conditions that cannot possibly happen

Address all of this in one go, resulting in slightly simpler setup
code.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20250708173404.1278635-6-maz@kernel.org
drivers/pci/controller/pci-xgene-msi.c