genirq/msi, PCI/MSI: Spring cleaning - Part 2
Status from this message: The following commit has been merged into the irq/msi branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest35 patches 44 repliesApplied
- v2 posting 3/331 patches 11 repliesApplied
- v2 posting 2/336 patches 25 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 1/3 | 23 patches | 35 replies | Applied | |
| v1 | 32 patches | 116 replies | Applied |
Changes in v3 from the cover letter
- Use PCI device properties instead of creating a new set - Jason
- Picked up Reviewed/Tested/Acked-by tags as appropriate
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/35 | PCI/MSI: Set pci_dev::msi[x]_enabled earlydrivers/ | +17 | 1 reply | |
| 2/35 | x86/pci/XEN: Use PCI device propertyarch/ | +2 | 1 reply | |
| 3/35 | x86/apic/msi: Use PCI device MSI propertyarch/ | +1 | 2 replies | |
| 4/35 | genirq/msi: Use PCI device propertykernel/ | +2 | 1 reply | |
| 5/35 | powerpc/cell/axon_msi: Use PCI device propertyarch/ | +1 | 2 replies | |
| 6/35 | powerpc/pseries/msi: Use PCI device propertiesarch/ | +1 | 1 reply | |
| 7/35 | device: Move MSI related data into a structdrivers/ drivers/ drivers/ +4 more | +29 | 1 reply | |
| 8/35 | device: Add device:: Msi_data pointer and struct msi_device_datainclude/ include/ kernel/ | +55 | 0 replies | |
| 9/35 | PCI/MSI: Allocate MSI device data on first usedrivers/ | +15 | 4 replies | |
| 10/35 | platform-msi: Allocate MSI device data on first usedrivers/ | +7 | 0 replies | |
| 11/35 | bus: fsl-mc-msi: Allocate MSI device data on first usedrivers/ | +8 | 0 replies | |
| 12/35 | soc: ti: ti_sci_inta_msi: Allocate MSI device data on first usedrivers/ | +4 | 2 replies | |
| 13/35 | genirq/msi: Provide msi_device_populate/destroy_sysfs()include/ kernel/ | +44 | 0 replies | |
| 14/35 | PCI/MSI: Let the irq code handle sysfs groupsdrivers/ drivers/ drivers/ +1 more | +6 | 0 replies | |
| 15/35 | platform-msi: Let the core code handle sysfs groupsdrivers/ | +1 | 0 replies | |
| 16/35 | genirq/msi: Remove the original sysfs interfacesinclude/ kernel/ | +28 | 0 replies | |
| 17/35 | platform-msi: Rename functions and clarify commentsdrivers/ drivers/ drivers/ +1 more | +30 | 0 replies | |
| 18/35 | platform-msi: Store platform private data pointer in msi_device_datadrivers/ include/ | +34 | 0 replies | |
| 19/35 | genirq/msi: Consolidate MSI descriptor datainclude/ | +2 | 0 replies | |
| 20/35 | platform-msi: Use msi_desc::msi_indexdrivers/ drivers/ drivers/ +2 more | +11 | 0 replies | |
| 21/35 | bus: fsl-mc-msi: Use msi_desc::msi_indexdrivers/ drivers/ include/ | +4 | 0 replies | |
| 22/35 | soc: ti: ti_sci_inta_msi: Use msi_desc::msi_indexdrivers/ drivers/ include/ | +6 | 1 reply | |
| 23/35 | PCI/MSI: Use msi_desc::msi_indexarch/ arch/ drivers/ +3 more | +13 | 0 replies | |
| 24/35 | PCI/MSI: Provide MSI_FLAG_MSIX_CONTIGUOUSdrivers/ include/ | +16 | 0 replies | |
| 25/35 | powerpc/pseries/msi: Let core code check for contiguous entriesarch/ | +8 | 1 reply | |
| 26/35 | genirq/msi: Provide interface to retrieve Linux interrupt numberinclude/ kernel/ | +38 | 1 reply | |
| 27/35 | PCI/MSI: Use __msi_get_virq() in pci_get_vector()drivers/ | +5 | 1 reply | |
| 28/35 | PCI/MSI: Simplify pci_irq_get_affinity()drivers/ | +10 | 10 replies | |
| 29/35 | dmaengine: mv_xor_v2: Get rid of msi_desc abusedrivers/ | +5 | 1 reply | |
| 30/35 | perf/smmuv3: Use msi_get_virq()drivers/ | +1 | 0 replies | |
| 31/35 | iommu/arm-smmu-v3: Use msi_get_virq()drivers/ | +3 | 0 replies | |
| 32/35 | mailbox: bcm-flexrm-mailbox: Rework MSI interrupt handlingdrivers/ | +2 | 0 replies | |
| 33/35 | bus: fsl-mc: fsl-mc-allocator: Rework MSI handlingdrivers/ drivers/ drivers/ +6 more | +22 | 0 replies | |
| 34/35 | soc: ti: ti_sci_inta_msi: Get rid of ti_sci_inta_msi_get_virq()drivers/ drivers/ drivers/ +2 more | +7 | 3 replies | |
| 35/35 | dmaengine: qcom_hidma: Cleanup MSI handlingdrivers/ | +18 | 1 reply |
Reviews trailers per patch
All 35 patches have a Reviewed-by or Acked-by.
| Patch | Greg Kroah-Hartman | Jason Gunthorpe | Bjorn Helgaas | Robin Murphy | Sinan Kaya | Arnd Bergmann | Vinod Koul | Nishanth Menon | Michael Kelley | Nathan Chancellor | Cédric Le Goater |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Series | T-b T-b | T-b | |||||||||
| 1/35 | R-b | ||||||||||
| 2/35 | R-b | ||||||||||
| 3/35 | R-b | R-b | |||||||||
| 4/35 | R-b | ||||||||||
| 5/35 | R-b | A-b | |||||||||
| 6/35 | R-b | ||||||||||
| 7/35 | R-b | R-b | A-b | ||||||||
| 8/35 | R-b | R-b | |||||||||
| 9/35 | R-b R-b R-b | R-b | A-b | ||||||||
| 10/35 | R-b | R-b | |||||||||
| 11/35 | R-b | R-b | |||||||||
| 12/35 | R-b | R-b | A-b | A-b | |||||||
| 13/35 | R-b | R-b | |||||||||
| 14/35 | R-b | R-b | A-b | ||||||||
| 15/35 | R-b | R-b | |||||||||
| 16/35 | R-b | R-b | |||||||||
| 17/35 | R-b | R-b | |||||||||
| 18/35 | R-b | R-b | |||||||||
| 19/35 | R-b | R-b | |||||||||
| 20/35 | R-b | R-b | |||||||||
| 21/35 | R-b | R-b | |||||||||
| 22/35 | R-b | R-b | A-b | ||||||||
| 23/35 | R-b | R-b | A-b | ||||||||
| 24/35 | R-b | R-b | A-b | ||||||||
| 25/35 | R-b | R-b | |||||||||
| 26/35 | R-b | R-b | |||||||||
| 27/35 | R-b | R-b | |||||||||
| 28/35 | R-b | R-b | T-b | T-b | |||||||
| 29/35 | R-b | R-b | A-b | ||||||||
| 30/35 | R-b | R-b | |||||||||
| 31/35 | R-b | R-b | T-b | ||||||||
| 32/35 | R-b | R-b | |||||||||
| 33/35 | R-b | R-b | |||||||||
| 34/35 | R-b | R-b | A-b | A-b | A-b | ||||||
| 35/35 | R-b | R-b | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 11 reviewers.
Cover letter [patch V3 00/35] genirq/msi, PCI/MSI: Spring cleaning - Part 2
This is the second part of [PCI]MSI refactoring which aims to provide the ability of expanding MSI-X vectors after enabling MSI-X.
This is based on the first part of this work which can be found here:
https://lore.kernel.org/r/[email protected]
and has been applied to:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/msi
This second part has the following important changes:
1) Cleanup of the MSI related data in struct device
struct device contains at the moment various MSI related parts. Some of them (the irq domain pointer) cannot be moved out, but the rest can be allocated on first use. This is in preparation of adding more per device MSI data later on.
2) Consolidation of sysfs handling
As a first step this moves the sysfs pointer from struct msi_desc into the new per device MSI data structure where it belongs.
Later changes will cleanup this code further, but that's not possible at this point.
3) Use PCI device properties instead of looking up MSI descriptors and analysing their data.
4) Provide a function to retrieve the Linux interrupt number for a given MSI index similar to pci_irq_vector() and cleanup all open coded variants.
It's also available from git:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git msi-v3-part-2
Part 3 of this effort is available on top
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git msi-v3-part-3
Part 3 is not going to be reposted as there is no change vs. V2.
V2 of part 2 can be found here:
https://lore.kernel.org/r/[email protected]
Changes versus V2:
- Use PCI device properties instead of creating a new set - Jason
- Picked up Reviewed/Tested/Acked-by tags as appropriate
Thanks,
tglx
--- arch/powerpc/platforms/cell/axon_msi.c | 5 arch/powerpc/platforms/pseries/msi.c | 38 +--- arch/x86/kernel/apic/msi.c | 5 arch/x86/pci/xen.c | 11 - drivers/base/platform-msi.c | 152 ++++++++----------- drivers/bus/fsl-mc/dprc-driver.c | 8 - drivers/bus/fsl-mc/fsl-mc-allocator.c | 9 - drivers/bus/fsl-mc/fsl-mc-msi.c | 26 +-- drivers/dma/mv_xor_v2.c | 16 -- drivers/dma/qcom/hidma.c | 44 ++--- drivers/dma/ti/k3-udma-private.c | 6 drivers/dma/ti/k3-udma.c | 14 - drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 23 -- drivers/irqchip/irq-mbigen.c | 4 drivers/irqchip/irq-mvebu-icu.c | 12 - drivers/irqchip/irq-ti-sci-inta.c | 2 drivers/mailbox/bcm-flexrm-mailbox.c | 9 - drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c | 4 drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c | 5 drivers/pci/msi/irqdomain.c | 20 ++ drivers/pci/msi/legacy.c | 6 drivers/pci/msi/msi.c | 133 ++++++---------- drivers/pci/xen-pcifront.c | 2 drivers/perf/arm_smmuv3_pmu.c | 5 drivers/soc/fsl/dpio/dpio-driver.c | 8 - drivers/soc/ti/k3-ringacc.c | 6 drivers/soc/ti/ti_sci_inta_msi.c | 22 -- drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c | 4 include/linux/device.h | 25 ++- include/linux/fsl/mc.h | 4 include/linux/msi.h | 95 ++++-------- include/linux/pci.h | 1 include/linux/soc/ti/ti_sci_inta_msi.h | 1 kernel/irq/msi.c | 158 +++++++++++++++----- 35 files changed, 429 insertions(+), 458 deletions(-)
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu