Skip to content

powerpc: Cleanup and convert to MSI parent domain

Nam Cao linuxppc-dev lkml 2 versions – Applied

Status from this message: Applied to powerpc/next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesApplied
  2. v112 patches 4 repliesApplied 12/12

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3powerpc/xive: Untangle xive from child interrupt controller driversarch/powerpc/include/asm/xive.h arch/powerpc/platforms/powernv/pci-ioda.c arch/powerpc/platforms/pseries/msi.c +1 more+33 -703 replies
2/3powerpc/powernv/pci: Switch to use msi_create_parent_irq_domain()arch/powerpc/platforms/powernv/Kconfig arch/powerpc/platforms/powernv/pci-ioda.c+35 -410 replies
3/3powerpc/pseries/msi: Switch to msi_create_parent_irq_domain()arch/powerpc/include/asm/pci-bridge.h arch/powerpc/platforms/pseries/Kconfig arch/powerpc/platforms/pseries/msi.c+49 -680 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] powerpc: Cleanup and convert to MSI parent domain

The initial implementation of PCI/MSI interrupt domains in the hierarchical interrupt domain model used a shortcut by providing a global PCI/MSI domain.

This works because the PCI/MSI[X] hardware is standardized and uniform, but it violates the basic design principle of hierarchical interrupt domains:
Each hardware block involved in the interrupt delivery chain should have a separate interrupt domain.

For PCI/MSI[X], the interrupt controller is per PCI device and not a global made-up entity.

Unsurprisingly, the shortcut turned out to have downsides as it does not allow dynamic allocation of interrupt vectors after initialization and it prevents supporting IMS on PCI. For further details, see:

https://lore.kernel.org/lkml/[email protected]/

The solution is implementing per device MSI domains, this means the entities which provide global PCI/MSI domain so far have to implement MSI parent domain functionality instead.

This series:

- Untangle XIVE driver from Powernv and Pseries drivers

- Convert the Powernv and Pseries drivers to implement MSI parent domain functionality

v2: Fix up boot issue with NVMe

Nam Cao (3):
powerpc/xive: Untangle xive from child interrupt controller drivers powerpc/powernv/pci: Switch to use msi_create_parent_irq_domain() powerpc/pseries/msi: Switch to msi_create_parent_irq_domain()

 arch/powerpc/include/asm/pci-bridge.h     |   2 -
 arch/powerpc/include/asm/xive.h           |   1 -
 arch/powerpc/platforms/powernv/Kconfig    |   1 +
 arch/powerpc/platforms/powernv/pci-ioda.c |  96 ++++++----------
 arch/powerpc/platforms/pseries/Kconfig    |   1 +
 arch/powerpc/platforms/pseries/msi.c      | 132 ++++++++--------------
 arch/powerpc/sysdev/xive/common.c         |  63 +++++------
 7 files changed, 117 insertions(+), 179 deletions(-)
Signature · 1 line
2.39.5