Skip to content

Introduce ACPI world to ITS irqchip

Tomasz Nowicki linux-acpi linux-arm-kernel linux-pci lkml 11 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v11 Latest8 patches 3 repliesIn review
  2. v108 patches 16 repliesSuperseded
  3. v98 patches 3 repliesSuperseded
Earlier versions · 8
VersionPostedPatchesRepliesStatus
v88 patches16 repliesSuperseded
v78 patches22 repliesSuperseded
v67 patches17 repliesSuperseded
v57 patches7 repliesSuperseded
v47 patches17 repliesSuperseded
v310 patches19 repliesSuperseded
v210 patches14 repliesSuperseded
v110 patches5 repliesSuperseded

Changes in v11 from the cover letter

- rebased against v4.8-rc6
- bug fix for iort_match_node_callback() error handling
- patch 1-2 changelog updates

Patches in v11 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ACPI: I/O Remapping Table (IORT) initial supportdrivers/acpi/Kconfig drivers/acpi/Makefile drivers/acpi/arm64/Kconfig +4 more+259 -00 replies
1/8ACPI: I/O Remapping Table (IORT) initial supportdrivers/acpi/Kconfig drivers/acpi/Makefile drivers/acpi/arm64/Kconfig +4 more+261 -02 replies
2/8ACPI: Add new IORT functions to support MSI domain handlingdrivers/acpi/arm64/iort.c include/linux/acpi_iort.h+164 -00 replies
3/8PCI/MSI: Setup MSI domain on a per-device basis using IORT ACPI tabledrivers/pci/msi.c+8 -30 replies
4/8irqchip/gicv3-its: Cleanup for ITS domain initializationdrivers/irqchip/irq-gic-v3-its.c+34 -230 replies
5/8irqchip/gicv3-its: Refactor ITS DT init code to prepare for ACPIdrivers/irqchip/irq-gic-v3-its.c drivers/irqchip/irq-gic-v3.c include/linux/irqchip/arm-gic-v3.h+42 -340 replies
6/8irqchip/gicv3-its: Probe ITS in the ACPI waydrivers/irqchip/Kconfig drivers/irqchip/irq-gic-v3-its.c+61 -10 replies
7/8irqchip/gicv3-its: Factor out PCI-MSI part that might be reused for ACPIdrivers/irqchip/irq-gic-v3-its-pci-msi.c+29 -150 replies
8/8irqchip/gicv3-its: Use MADT ITS subtable to do PCI/MSI domain initializationdrivers/irqchip/irq-gic-v3-its-pci-msi.c+44 -00 replies

Reviews trailers per patch

8 of 9 patches have a Reviewed-by or Acked-by.

PatchRafael J. WysockiHanjun GuoLorenzo PieralisiMarc ZyngierBjorn HelgaasEric Auger
SeriesT-b
1/8A-b A-b R-b R-b R-b R-b
1/8A-b A-b R-b R-b R-b R-b
2/8A-b R-b
3/8R-b A-b A-b
4/8R-b A-b
5/8
6/8R-b A-b
7/8A-b
8/8R-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 6 reviewers.

Read the v11 thread

Cover letter [PATCH V11 0/8] Introduce ACPI world to ITS irqchip

The series builds the PCI/MSI domain stack based on initial IORT driver which is added in first place. As a reference please see IORT spec:
http://infocenter.arm.com/help/topic/com.arm.doc.den0049b/DEN0049B_IO_Remapping_Table.pdf

Tested on Cavium ThunderX server and Qualcomm Technologies server platform QDF2XXX. The patches can be found here:
https://github.com/semihalf-nowicki-tomasz/linux.git (its-acpi-v11)

v10 -> v11
- rebased against v4.8-rc6
- bug fix for iort_match_node_callback() error handling
- patch 1-2 changelog updates

v9 -> v10
- error handling improvements for iort_match_node_callback() but no functional changes
- iort.h -> acpi_iort.h header name change
- style improvements

v8 -> v9
- rebased against v4.8-rc4
- move root IORT pointer validation to one place iort_scan_node()
- function names & Kconfig option name improvements
- remove annoying dev_err() appearances for non-IORT users
- for debug purpose print full ITS resource range

v7 -> v8
- rebased against v4.8-rc1
- move IORT support under new drivers/acpi/arm64 directory
- memory leak fix for iort_match_node_callback()
- iort_node_map_rid() algorithm improvements
- fix RID match check in iort_id_map()
- fix typos and white spaces

v6 -> v7
- rebased against irq/irqchip-4.8
- improvements for IORT ID mapping
- call IORT init call from acpi_init() instead of arch_initcall()
- split IORT driver in to two parts: core and ITS/MSI

v5 -> v6
- added locking mechanism for IORT list with domain token
- IORT function name improvements
- extended IORT RID mapping helper
- reworked IORT to be more SMMU friendly
- IORT functions which map RID and find corresponding domain are not PCI specific any more (struct pci_dev -> struct device)
- bug fixes

v4 -> v5
- rebased against v4.7-rc1
- drop generic layer and call IORT functions directly
- improve resource abstraction and string formatting

v3 -> v4
- rebased against v4.5
- add ACPI support for IRQ domain handling on a per-device basis
- reorder domain setup step
- improve error handling
- code style improvements

v2 -> v3
- rebased on top of 4.4
- fixes and improvements for redistributor init via GICC structures
- fixes as per kbuild reports

v1 -> v2
- rebased on top of 4.4-rc4
- use pci_msi_domain_get_msi_rid for requester ID to device ID translation

Tomasz Nowicki (8):
ACPI: I/O Remapping Table (IORT) initial support
ACPI: Add new IORT functions to support MSI domain handling PCI/MSI: Setup MSI domain on a per-device basis using IORT ACPI table irqchip/gicv3-its: Cleanup for ITS domain initialization irqchip/gicv3-its: Refactor ITS DT init code to prepare for ACPI irqchip/gicv3-its: Probe ITS in the ACPI way irqchip/gicv3-its: Factor out PCI-MSI part that might be reused for
ACPI
irqchip/gicv3-its: Use MADT ITS subtable to do PCI/MSI domain
initialization

 drivers/acpi/Kconfig                     |   4 +
 drivers/acpi/Makefile                    |   2 +
 drivers/acpi/arm64/Kconfig               |   6 +
 drivers/acpi/arm64/Makefile              |   1 +
 drivers/acpi/arm64/iort.c                | 366 +++++++++++++++++++++++++++++++
 drivers/acpi/bus.c                       |   2 +
 drivers/irqchip/Kconfig                  |   1 +
 drivers/irqchip/irq-gic-v3-its-pci-msi.c |  88 ++++++--
 drivers/irqchip/irq-gic-v3-its.c         | 171 +++++++++++----
 drivers/irqchip/irq-gic-v3.c             |   7 +-
 drivers/pci/msi.c                        |  11 +-
 include/linux/acpi_iort.h                |  42 ++++
 include/linux/irqchip/arm-gic-v3.h       |   4 +-
 13 files changed, 635 insertions(+), 70 deletions(-)
 create mode 100644 drivers/acpi/arm64/Kconfig
 create mode 100644 drivers/acpi/arm64/Makefile
 create mode 100644 drivers/acpi/arm64/iort.c
 create mode 100644 include/linux/acpi_iort.h
Signature · 1 line
1.9.1