genirq, irqchip: Convert ARM MSI handling to per device MSI domains
Status from this message: The following commit has been merged into the irq/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/40 | irqchip/irq-mvebu-icu: Fix works by chance pointer assignmentdrivers/ | +2 | 1 reply | |
| 2/40 | ACPI/IORT: Make prototype of iort_pmsi_get_dev_id() always availableinclude/ | +3 | 1 reply | |
| 3/40 | irqchip/gic-v2m: Include arm-gic-common.hdrivers/ | +1 | 1 reply | |
| 4/40 | irqchip/gic-v2m: Mark a few functions __initdrivers/ | +5 | 1 reply | |
| 5/40 | irqchip/ti-sci-inta: Fix kernel docdrivers/ | +1 | 1 reply | |
| 6/40 | PCI/MSI: Provide static key for parent mask/unmaskdrivers/ include/ | +32 | 8 replies | |
| 7/40 | irqchip/gic-v3: Make gic_irq_domain_select() robust for zero parameter countdrivers/ | +5 | 0 replies | |
| 8/40 | genirq/irqdomain: Remove the param count restriction from select()kernel/ | +1 | 0 replies | |
| 9/40 | genirq/msi: Extend msi_parent_opsinclude/ | +11 | 0 replies | |
| 10/40 | irqchip: Provide irq-gic-libdrivers/ drivers/ drivers/ +1 more | +135 | 0 replies | |
| 11/40 | irqchip/gic-v3-its: Provide MSI parent infrastructuredrivers/ drivers/ drivers/ +2 more | +39 | 0 replies | |
| 12/40 | irqchip/gic-msi-lib: Prepare for PCI MSI/MSIXdrivers/ drivers/ | +13 | 0 replies | |
| 13/40 | irqchip/gic-v3-its: Provide MSI parent for PCI/MSI[-X]drivers/ drivers/ drivers/ | +106 | 0 replies | |
| 14/40 | genirq/irqdomain: Add BUS_DOMAIN_DEVICE_MSIinclude/ | +1 | 0 replies | |
| 15/40 | irqchip/gic-msi-lib: Prepare for DEVICE MSI to replace platform MSIdrivers/ drivers/ | +15 | 0 replies | |
| 16/40 | platform-msi: Prepare for real per device domainsdrivers/ include/ | +102 | 0 replies | |
| 17/40 | irqchip: Convert all platform MSI users to the new APIdrivers/ drivers/ drivers/ +2 more | +16 | 0 replies | |
| 18/40 | genirq/msi: Provide optional translation opinclude/ kernel/ | +20 | 0 replies | |
| 19/40 | genirq/msi: Split msi_domain_alloc_irq_at()kernel/ | +43 | 0 replies | |
| 20/40 | genirq/msi: Provide BUS DEVICE_MSI_WIREDinclude/ | +1 | 0 replies | |
| 21/40 | genirq/msi: Optionally use dev->fwnode for device domaininclude/ kernel/ | +18 | 0 replies | |
| 22/40 | genirq/msi: Provide allocation/free functions for "wired" MSI interruptsinclude/ kernel/ | +85 | 0 replies | |
| 23/40 | genirq/irqdomain: Reroute device MSI create_mappingkernel/ | +18 | 0 replies | |
| 24/40 | irqchip/mbigen: Prepare for real per device MSIdrivers/ | +71 | 0 replies | |
| 25/40 | irqchip/gic-msi-lib: Prepare for DOMAIN_BUS_WIRED_TO_MSIdrivers/ | +2 | 0 replies | |
| 26/40 | irqchip/gic-v3-its: Switch platform MSI to MSI parentdrivers/ drivers/ drivers/ | +73 | 0 replies | |
| 27/40 | irqchip/mbigen: Remove platform_msi_create_device_domain() fallbackdrivers/ | +4 | 0 replies | |
| 28/40 | genirq/msi: Remove platform_msi_create_device_domain()include/ | +0 | 0 replies | |
| 29/40 | genirq/gic-v3-mbi: Remove unused wired MSI mechanicsdrivers/ | +1 | 0 replies | |
| 30/40 | genirq/gic-v3-mbi: Switch to MSI parentdrivers/ | +32 | 0 replies | |
| 31/40 | irqchip/gic-v2m: Switch to device MSIdrivers/ drivers/ | +25 | 0 replies | |
| 32/40 | genirq/msi: Provide MSI_FLAG_PARENT_PM_DEVinclude/ kernel/ | +4 | 0 replies | |
| 33/40 | irqchip/imx-mu-msi: Switch to MSI parentdrivers/ drivers/ drivers/ | +25 | 2 replies | |
| 34/40 | irqchip/irq-mvebu-icu: Prepare for real per device MSIdrivers/ | +170 | 0 replies | |
| 35/40 | irqchip/mvebu-gicp: Switch to MSI parentdrivers/ drivers/ | +20 | 0 replies | |
| 36/40 | irqchip/mvebu-odmi: Switch to parent MSIdrivers/ drivers/ | +19 | 0 replies | |
| 37/40 | irqchip/irq-mvebu-sei: Switch to MSI parentdrivers/ | +20 | 0 replies | |
| 38/40 | irqchip/irq-mvebu-icu: Remove platform MSI leftoversdrivers/ | +6 | 0 replies | |
| 39/40 | genirq/msi: Remove platform MSI leftoversdrivers/ include/ kernel/ | +3 | 0 replies | |
| 40/40 | genirq/msi: Move msi_device_data to coreinclude/ kernel/ | +22 | 0 replies |
Reviews trailers per patch
4 of 40 patches have a Reviewed-by or Acked-by.
| Patch | Marc Zyngier |
|---|---|
| 1/40 | A-b |
| 2/40 | |
| 3/40 | A-b |
| 4/40 | A-b |
| 5/40 | A-b |
| 6/40 | |
| 7/40 | |
| 8/40 | |
| 9/40 | |
| 10/40 | |
| 11/40 | |
| 12/40 | |
| 13/40 | |
| 14/40 | |
| 15/40 | |
| 16/40 | |
| 17/40 | |
| 18/40 | |
| 19/40 | |
| 20/40 | |
| 21/40 | |
| 22/40 | |
| 23/40 | |
| 24/40 | |
| 25/40 | |
| 26/40 | |
| 27/40 | |
| 28/40 | |
| 29/40 | |
| 30/40 | |
| 31/40 | |
| 32/40 | |
| 33/40 | |
| 34/40 | |
| 35/40 | |
| 36/40 | |
| 37/40 | |
| 38/40 | |
| 39/40 | |
| 40/40 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [patch V2 00/40] genirq, irqchip: Convert ARM MSI handling to per device MSI domains
This builds on top of the per device MSI work which can be found here:
https://lore.kernel.org/all/[email protected]
and is available from git:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devmsi-v2-part3
This series converts the ARM MSI handling, especially the platform MSI mechanics, to use per device MSI domains instead of the weird indirection through platform MSI domains.
This also takes a different and less convoluted approach to the 'wire to MSI' bridges by providing special MSI allocation/free functions which are invoked from irq_create_fwspec_mapping() and irq_dispose_mapping() which avoids the extra entry point msi_domain_populate_irqs() and its layering violations.
The series has been tested on various systems (Ampere, Hisilicon HIP05, ThunderX2, MVEBU MCBIN) but there is no full coverage yet.
Thanks to Marc, Mark and Robin for running this on their machines and aiding with decoding the initial wreckage. Special thanks go to Marc for patiently guiding me through the insanity of OF/ACPI related to this.
The series is also available from git:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devmsi-v2-arm
The work was done to validate that the design decisions for per device MSI domains and the related data structures are up to the task to handle the ARM oddities. The design held up, it was just necessary to extend some of the data structures to handle the ARM specifics in a sane way, but there was no fundamental shortcoming.
Thanks,
tglx
--- b/drivers/base/platform-msi.c | 354 +++----------------------- b/drivers/dma/mv_xor_v2.c | 8 b/drivers/dma/qcom/hidma.c | 6 b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 5 b/drivers/irqchip/Kconfig | 8 b/drivers/irqchip/Makefile | 4 b/drivers/irqchip/irq-gic-common.h | 3 b/drivers/irqchip/irq-gic-msi-lib.c | 136 +++++++++ b/drivers/irqchip/irq-gic-msi-lib.h | 27 + b/drivers/irqchip/irq-gic-v2m.c | 93 ++---- b/drivers/irqchip/irq-gic-v3-its-msi-parent.c | 207 +++++++++++++++ b/drivers/irqchip/irq-gic-v3-its.c | 4 b/drivers/irqchip/irq-gic-v3-mbi.c | 137 ++-------- b/drivers/irqchip/irq-gic-v3.c | 6 b/drivers/irqchip/irq-imx-mu-msi.c | 53 +-- b/drivers/irqchip/irq-mbigen.c | 98 ++----- b/drivers/irqchip/irq-mvebu-gicp.c | 44 +-- b/drivers/irqchip/irq-mvebu-icu.c | 278 ++++++++------------ b/drivers/irqchip/irq-mvebu-odmi.c | 39 +- b/drivers/irqchip/irq-mvebu-sei.c | 52 +-- b/drivers/irqchip/irq-ti-sci-inta.c | 2 b/drivers/mailbox/bcm-flexrm-mailbox.c | 8 b/drivers/pci/msi/irqdomain.c | 30 ++ b/drivers/perf/arm_smmuv3_pmu.c | 4 b/include/linux/acpi_iort.h | 4 b/include/linux/irqdomain.h | 17 + b/include/linux/irqdomain_defs.h | 2 b/include/linux/msi.h | 81 +---- b/kernel/irq/irqdomain.c | 26 + b/kernel/irq/msi.c | 253 ++++++++++++------ drivers/irqchip/irq-gic-v3-its-pci-msi.c | 202 -------------- drivers/irqchip/irq-gic-v3-its-platform-msi.c | 163 ----------- 32 files changed, 1021 insertions(+), 1333 deletions(-)
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel