genirq/msi, PCI/MSI: Spring cleaning - Part 2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest37 patches 21 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/37 | device: Move MSI related data into a structdrivers/ drivers/ drivers/ +4 more | +28 | 1 reply | |
| 2/37 | device: Add device::msi_data pointer and struct msi_device_datainclude/ include/ kernel/ | +49 | 3 replies | |
| 3/37 | PCI/MSI: Allocate MSI device data on first usedrivers/ | +15 | 0 replies | |
| 4/37 | PCI/MSI: Use lock from msi_device_datadrivers/ drivers/ include/ | +1 | 1 reply | |
| 5/37 | platform-msi: Allocate MSI device data on first usedrivers/ | +7 | 0 replies | |
| 6/37 | bus: fsl-mc-msi: Allocate MSI device data on first usedrivers/ | +8 | 0 replies | |
| 7/37 | soc: ti: ti_sci_inta_msi: Allocate MSI device data on first usedrivers/ | +4 | 0 replies | |
| 8/37 | genirq/msi: Provide msi_device_populate/destroy_sysfs()include/ kernel/ | +51 | 1 reply | |
| 9/37 | PCI/MSI: Let the irq code handle sysfs groupsdrivers/ drivers/ drivers/ +1 more | +6 | 0 replies | |
| 10/37 | platform-msi: Let the core code handle sysfs groupsdrivers/ | +1 | 0 replies | |
| 11/37 | genirq/msi: Remove the original sysfs interfacesinclude/ kernel/ | +20 | 0 replies | |
| 12/37 | platform-msi: Rename functions and clarify commentsdrivers/ drivers/ drivers/ +1 more | +30 | 0 replies | |
| 13/37 | platform-msi: Store platform private data pointer in msi_device_datadrivers/ include/ | +35 | 0 replies | |
| 14/37 | genirq/msi: Consolidate MSI descriptor datainclude/ | +2 | 0 replies | |
| 15/37 | platform-msi: Use msi_desc::msi_indexdrivers/ drivers/ drivers/ +2 more | +11 | 0 replies | |
| 16/37 | bus: fsl-mc-msi: Use msi_desc::msi_indexdrivers/ drivers/ include/ | +4 | 0 replies | |
| 17/37 | soc: ti: ti_sci_inta_msi: Use msi_desc::msi_indexdrivers/ drivers/ include/ | +6 | 0 replies | |
| 18/37 | PCI/MSI: Use msi_desc::msi_indexarch/ arch/ drivers/ +3 more | +13 | 0 replies | |
| 19/37 | genirq/msi: Add msi_device_data::propertiesinclude/ kernel/ | +29 | 0 replies | |
| 20/37 | PCI/MSI: Store properties in device::msi::datadrivers/ | +6 | 0 replies | |
| 21/37 | x86/pci/XEN: Use device MSI propertiesarch/ | +2 | 0 replies | |
| 22/37 | x86/apic/msi: Use device MSI propertiesarch/ | +1 | 0 replies | |
| 23/37 | genirq/msi: Use device MSI propertieskernel/ | +2 | 0 replies | |
| 24/37 | powerpc/cell/axon_msi: Use MSI device propertiesarch/ | +3 | 0 replies | |
| 25/37 | powerpc/pseries/msi: Use MSI device propertiesarch/ | +2 | 0 replies | |
| 26/37 | PCI/MSI: Provide MSI_FLAG_MSIX_CONTIGUOUSdrivers/ include/ | +16 | 0 replies | |
| 27/37 | powerpc/pseries/msi: Let core code check for contiguous entriesarch/ | +9 | 0 replies | |
| 28/37 | genirq/msi: Provide interface to retrieve Linux interrupt numberinclude/ kernel/ | +54 | 0 replies | |
| 29/37 | PCI/MSI: Use __msi_get_virq() in pci_get_vector()drivers/ | +5 | 2 replies | |
| 30/37 | PCI/MSI: Simplify pci_irq_get_affinity()drivers/ | +10 | 0 replies | |
| 31/37 | dmaengine: mv_xor_v2: Get rid of msi_desc abusedrivers/ | +5 | 0 replies | |
| 32/37 | perf/smmuv3: Use msi_get_virq()drivers/ | +1 | 0 replies | |
| 33/37 | iommu/arm-smmu-v3: Use msi_get_virq()drivers/ | +3 | 9 replies | |
| 34/37 | mailbox: bcm-flexrm-mailbox: Rework MSI interrupt handlingdrivers/ | +2 | 0 replies | |
| 35/37 | bus: fsl-mc: fsl-mc-allocator: Rework MSI handlingdrivers/ drivers/ drivers/ +6 more | +22 | 0 replies | |
| 36/37 | soc: ti: ti_sci_inta_msi: Get rid of ti_sci_inta_msi_get_virq()drivers/ drivers/ drivers/ +2 more | +7 | 0 replies | |
| 37/37 | dmaengine: qcom_hidma: Cleanup MSI handlingdrivers/ | +18 | 1 reply |
Reviews trailers per patch
4 of 37 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Greg Kroah-Hartman | Jason Gunthorpe | Robin Murphy | Sinan Kaya |
|---|---|---|---|---|
| Series | R-b | R-b | ||
| 1/37 | R-b | |||
| 2/37 | R-b | |||
| 3/37 | ||||
| 4/37 | R-b | |||
| 5/37 | ||||
| 6/37 | ||||
| 7/37 | ||||
| 8/37 | ||||
| 9/37 | ||||
| 10/37 | ||||
| 11/37 | ||||
| 12/37 | ||||
| 13/37 | ||||
| 14/37 | ||||
| 15/37 | ||||
| 16/37 | ||||
| 17/37 | ||||
| 18/37 | ||||
| 19/37 | ||||
| 20/37 | ||||
| 21/37 | ||||
| 22/37 | ||||
| 23/37 | ||||
| 24/37 | ||||
| 25/37 | ||||
| 26/37 | ||||
| 27/37 | ||||
| 28/37 | ||||
| 29/37 | ||||
| 30/37 | ||||
| 31/37 | ||||
| 32/37 | ||||
| 33/37 | T-b | |||
| 34/37 | ||||
| 35/37 | ||||
| 36/37 | ||||
| 37/37 | 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 4 reviewers.
Cover letter [patch 00/37] 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.
The first part of this work can be found here:
https://lore.kernel.org/r/[email protected]
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) Store per device properties in the per device MSI data to avoid looking up MSI descriptors and analysing their data. Cleanup all related use cases.
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.
This second series is based on:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git msi-v1-part-1
and also available from git:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git msi-v1-part-2
For the curious who can't wait for the next part to arrive the full series is available via:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git msi-v1-part-4
Thanks,
tglx
--- arch/powerpc/platforms/cell/axon_msi.c | 6 arch/powerpc/platforms/pseries/msi.c | 38 +--- arch/x86/kernel/apic/msi.c | 5 arch/x86/pci/xen.c | 8 drivers/base/core.c | 1 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 | 118 +++++-------- 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 | 26 ++- include/linux/fsl/mc.h | 4 include/linux/msi.h | 118 +++++++------ include/linux/pci.h | 1 include/linux/soc/ti/ti_sci_inta_msi.h | 1 kernel/irq/msi.c | 171 +++++++++++++++----- 36 files changed, 463 insertions(+), 445 deletions(-)
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu