RFC Refine support of non-PCI-compliant Message
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest17 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | x86, irq: Normalize x86 irq_chip namearch/ | +2 | 0 replies | |
| 2/17 | genirq: Introduce helper irq_domain_set_info() to reduce duplicated codearch/ arch/ include/ +1 more | +18 | 0 replies | |
| 3/17 | x86, PCI/MSI: Simplify the way to deal with remapped MSI interruptsarch/ | +13 | 0 replies | |
| 4/17 | PCI/MSI: Replace msi_update_msg() with irq_chip_compose_msi_msg()arch/ | +4 | 0 replies | |
| 5/17 | PCI/MSI: Move msi_set_affinity() to PCI corearch/ drivers/ include/ | +20 | 0 replies | |
| 6/17 | genirq: Introduce callback irq_chip.irq_write_msi_msginclude/ | +8 | 0 replies | |
| 7/17 | x86, irq: Implement irq_chip.irq_write_msi_msg for MSI/DMAR/HPET irq_chipsarch/ drivers/ include/ | +28 | 0 replies | |
| 8/17 | PCI/MSI: Use irq_chip.irq_write_msi_msg() to share common codedrivers/ include/ | +9 | 0 replies | |
| 9/17 | x86, irq: Simplify MSI/DMAR/HPET implementation by using common codearch/ | +6 | 0 replies | |
| 10/17 | PCI, MSI: Split MSI code into PCI dependent and PCI independent partsdrivers/ drivers/ include/ +3 more | +112 | 0 replies | |
| 11/17 | PCI, MSI: Rename __read_msi_msg() as __pci_read_msi_msg()arch/ arch/ drivers/ +1 more | +4 | 0 replies | |
| 11/17 | PCI, MSI: Rename __read_msi_msg() as __pci_read_msi_msg()arch/ arch/ drivers/ +1 more | +4 | 0 replies | |
| 12/17 | PCI, MSI: Rename __write_msi_msg() as __pci_write_msi_msg()arch/ drivers/ include/ | +7 | 0 replies | |
| 12/17 | PCI, MSI: Rename __write_msi_msg() as __pci_write_msi_msg()arch/ drivers/ include/ | +7 | 0 replies | |
| 13/17 | MSI: Provide irqdomain support for generic MSIarch/ drivers/ include/ +1 more | +101 | 0 replies | |
| 14/17 | x86, PCI, MSI: Use common code to manage MSI interruptsarch/ drivers/ include/ | +124 | 0 replies | |
| 15/17 | PCI, MSI: Clean up unused irqdomain related codearch/ drivers/ include/ +1 more | +9 | 0 replies | |
| 16/17 | x86, htirq: Kill struct ht_irq_msg by reusing struct msi_msgarch/ drivers/ drivers/ +1 more | +13 | 0 replies | |
| 17/17 | x86, htirq: Use common MSI code to manage Hypertransport interruptsarch/ drivers/ drivers/ +1 more | +60 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC Part4 v1 00/17] Refine support of non-PCI-compliant Message
Some interrupt controllers, such as DMAR/HPET/HT_IRQ, work almost in the same as PCI MSI interrupt controller. And there some devices make use of PCI MSI mechanism for non-PCI devices on ARm/ARM64 platforms.
So this patches tries to split PCI MSI code into PCI dependent part and PCI independent part. The PCI independent part will be used to support other PCI MSI like interrupt controllers.
Patch 1-9 are clean ups for previous hierarchy irqdomain patchset and preparation for coming PCI MSI code reorganization. Patch 10-15 split PCI MSI code and implement common mechanism to support other MSI alike interrupt contollers.
Patch 16-17 converts HT_IRQ to use the common MSI support mechanism.
This patch set only solves the issue to manage interrupt controller, but we still need another patch set to provide pci_enable_msix_range() alike interfaces to support non-PCI devices. To achieve that, we will:
1) Move msi_list from struct pci_dev into struct device
2) Abstract common code from drivers/pci/msi.c into kernel/irq/msi.c
3) Implement msi_enable_range()/msi_disable() alike interfaces.
Apparently, we need much more time to discuss the proposal for next patch set.
Hi Thomas and Bjorn,
Could you please to review patch 10,13 and give your thoughts?
Those are the main changes. This patch set only passes compilation and boot tests.
Regards!
Gerry
Jiang Liu (17):
x86, irq: Normalize x86 irq_chip name
genirq: Introduce helper irq_domain_set_info() to reduce duplicated
code
x86, PCI/MSI: Simplify the way to deal with remapped MSI interrupts PCI/MSI: Replace msi_update_msg() with irq_chip_compose_msi_msg() PCI/MSI: Move msi_set_affinity() to PCI core
genirq: Introduce callback irq_chip.irq_write_msi_msg
x86, irq: Implement irq_chip.irq_write_msi_msg for MSI/DMAR/HPET
irq_chips
PCI/MSI: Use irq_chip.irq_write_msi_msg() to share common code x86, irq: Simplify MSI/DMAR/HPET implementation by using common code PCI, MSI: Split MSI code into PCI dependent and PCI independent parts PCI, MSI: Rename __read_msi_msg() as __pci_read_msi_msg() PCI, MSI: Rename __write_msi_msg() as __pci_write_msi_msg()
MSI: Provide irqdomain support for generic MSI
x86, PCI, MSI: Use common code to manage MSI interrupts PCI, MSI: Clean up unused irqdomain related code
x86, htirq: Kill struct ht_irq_msg by reusing struct msi_msg x86, htirq: Use common MSI code to manage Hypertransport interrupts
arch/powerpc/platforms/pseries/msi.c | 2 +- arch/x86/kernel/apic/htirq.c | 137 +++++------- arch/x86/kernel/apic/msi.c | 309 ++++++++++++--------------- arch/x86/pci/xen.c | 4 +- arch/x86/platform/uv/uv_irq.c | 5 +- drivers/infiniband/hw/ipath/ipath_iba6110.c | 2 +- drivers/pci/Kconfig | 5 +- drivers/pci/htirq.c | 20 +- drivers/pci/msi.c | 144 ++----------- include/linux/htirq.h | 15 +- include/linux/irq.h | 8 + include/linux/irqdomain.h | 4 + include/linux/msi.h | 89 +++++--- kernel/irq/Kconfig | 10 +- kernel/irq/Makefile | 1 + kernel/irq/irqdomain.c | 10 + kernel/irq/msi.c | 133 ++++++++++++ 17 files changed, 454 insertions(+), 444 deletions(-) create mode 100644 kernel/irq/msi.c
Signature · 1 line
1.7.10.4