PCI: xgene: Fix and simplify the MSI driver
Status from this message: Applied to controller/xgene, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest13 patches 9 repliesApplied
- v112 patches 7 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | genirq: Teach handle_simple_irq() to resend an in-progress interruptkernel/ | +7 | 0 replies | |
| 2/13 | PCI: xgene: Defer probing if the MSI widget driver hasn't probed yetdrivers/ | +23 | 0 replies | |
| 3/13 | PCI: xgene: Drop useless conditional compilationdrivers/ | +0 | 0 replies | |
| 4/13 | PCI: xgene: Drop XGENE_PCIE_IP_VER_UNKNdrivers/ | +1 | 0 replies | |
| 5/13 | PCI: xgene-msi: Make per-CPU interrupt setup robustdrivers/ | +6 | 0 replies | |
| 6/13 | PCI: xgene-msi: Drop superfluous fields from xgene_msi structuredrivers/ | +10 | 1 reply | |
| 7/13 | PCI: xgene-msi: Use device-managed memory allocationsdrivers/ | +19 | 0 replies | |
| 8/13 | PCI: xgene-msi: Get rid of intermediate tracking structuredrivers/ | +18 | 0 replies | |
| 9/13 | PCI: xgene-msi: Sanitise MSI allocation and affinity settingdrivers/ | +93 | 4 replies | |
| 10/13 | PCI: xgene-msi: Resend an MSI racing with itself on a different CPUdrivers/ | +1 | 0 replies | |
| 11/13 | PCI: xgene-msi: Probe as a standard platform driverdrivers/ | +1 | 2 replies | |
| 12/13 | PCI: xgene-msi: Restructure handler setup/teardowndrivers/ | +37 | 0 replies | |
| 13/13 | cpu/hotplug: Remove unused cpuhp_state CPUHP_PCI_XGENE_DEADinclude/ | +0 | 1 reply |
Reviews trailers per patch
1 of 13 patches has a Reviewed-by or Acked-by.
| Patch | Thomas Gleixner |
|---|---|
| 1/13 | R-b |
| 2/13 | |
| 3/13 | |
| 4/13 | |
| 5/13 | |
| 6/13 | |
| 7/13 | |
| 8/13 | |
| 9/13 | |
| 10/13 | |
| 11/13 | |
| 12/13 | |
| 13/13 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/13] PCI: xgene: Fix and simplify the MSI driver
Having recently dipped into the xgene-msi driver to bring it to use the MSI-parent concept, I have realised that some of it was slightly sub-par (read: downright broken).
The driver is playing horrible tricks behind the core code, missing proper affinity management, is terribly over-designed for no good reason, and despite what MAINTAINERS says, completely unmaintained.
This series is an attempt to fix most of the issues, and effectively results more or less in a full rewrite of the driver, removing a lot of cruft and fixing the interactions with the PCI host driver in the process (there really isn't any reason to rely on initcall ordering anymore).
I've stopped short of repainting the MAINTAINERS file, but given how reactive Toan Le has been, maybe that's on the cards. Patches on top of -rc3, tested on a Mustang board. I'd really like this to hit 6.17!
* From v1:
- Killed CPUHP_PCI_XGENE_DEAD altogether
- Added a couple of definitions and helpers to make the hwirq/frame/group mapping a bit less awkward
- More comments about the weird and wonderful behaviour of MSInIRx registerse
- Collected RB from tglx, with thanks
Marc Zyngier (13):
genirq: Teach handle_simple_irq() to resend an in-progress interrupt
PCI: xgene: Defer probing if the MSI widget driver hasn't probed yet
PCI: xgene: Drop useless conditional compilation
PCI: xgene: Drop XGENE_PCIE_IP_VER_UNKN
PCI: xgene-msi: Make per-CPU interrupt setup robust
PCI: xgene-msi: Drop superfluous fields from xgene_msi structure
PCI: xgene-msi: Use device-managed memory allocations
PCI: xgene-msi: Get rid of intermediate tracking structure
PCI: xgene-msi: Sanitise MSI allocation and affinity setting
PCI: xgene-msi: Resend an MSI racing with itself on a different CPU
PCI: xgene-msi: Probe as a standard platform driver
PCI: xgene-msi: Restructure handler setup/teardown cpu/hotplug: Remove unused cpuhp_state CPUHP_PCI_XGENE_DEAD
drivers/pci/controller/pci-xgene-msi.c | 428 +++++++++---------------- drivers/pci/controller/pci-xgene.c | 33 +- include/linux/cpuhotplug.h | 1 - kernel/irq/chip.c | 8 +- 4 files changed, 187 insertions(+), 283 deletions(-)
Signature · 1 line
2.39.2