Skip to content

Initial POWER9 XIVE and PHB4 support

Benjamin Herrenschmidt linuxppc-dev stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17powerpc/powernv: Add XICS emulation APIsarch/powerpc/include/asm/opal-api.h arch/powerpc/include/asm/opal.h arch/powerpc/platforms/powernv/opal-wrappers.S+14 -10 replies
2/17powerpc/irq: Add support for HV virtualization interruptsarch/powerpc/include/asm/exception-64s.h arch/powerpc/include/asm/reg.h arch/powerpc/kernel/cpu_setup_power.S +1 more+24 -00 replies
3/17powerpc/irq: Add mechanism to force a replay of interruptsarch/powerpc/include/asm/hw_irq.h arch/powerpc/kernel/irq.c+16 -00 replies
4/17powerpc/xics: Add ICP OPAL backendarch/powerpc/include/asm/xics.h arch/powerpc/sysdev/xics/Makefile arch/powerpc/sysdev/xics/icp-opal.c +1 more+156 -30 replies
5/17powerpc/powernv: Add IODA3 PHB typearch/powerpc/platforms/powernv/pci-ioda.c arch/powerpc/platforms/powernv/pci.c arch/powerpc/platforms/powernv/pci.h+17 -40 replies
6/17powerpc/pseries/pci: Remove obsolete SW invalidatearch/powerpc/platforms/pseries/iommu.c+1 -520 replies
7/17powerpc/opal: Add real mode call wrappersarch/powerpc/include/asm/opal-api.h arch/powerpc/include/asm/opal.h arch/powerpc/kernel/idle_power7.S +1 more+51 -443 replies
8/17powerpc/powernv/pci: Rename TCE invalidation callsarch/powerpc/platforms/powernv/npu-dma.c arch/powerpc/platforms/powernv/pci-ioda.c arch/powerpc/platforms/powernv/pci.h+20 -220 replies
9/17powerpc/powernv/pci: Remove SWINV constants and obsolete TCE codearch/powerpc/include/asm/tce.h arch/powerpc/platforms/powernv/pci-ioda.c+10 -430 replies
10/17powerpc/powernv/pci: Rework accessing the TCE invalidate registerarch/powerpc/platforms/powernv/pci-ioda.c arch/powerpc/platforms/powernv/pci.h+28 -470 replies
11/17powerpc/powernv/pci: Fallback to OPAL for TCE invalidationsarch/powerpc/platforms/powernv/pci-ioda.c+29 -40 replies
12/17powerpc/powernv: set power_save func after the idle states are initializedarch/powerpc/platforms/powernv/idle.c arch/powerpc/platforms/powernv/setup.c+4 -10 replies
13/17powerpc/powernv/pci: Use the device-tree to get available range of M64'sarch/powerpc/platforms/powernv/pci-ioda.c+43 -60 replies
14/17powerpc/powernv/pci: Check status of a PHB before using itarch/powerpc/platforms/powernv/pci-ioda.c+3 -00 replies
15/17powerpc/pci: Don't try to allocate resources that will be reassignedarch/powerpc/kernel/pci-common.c+4 -20 replies
16/17powerpc/pci: Reduce log level of PCI I/O space warningarch/powerpc/kernel/pci-common.c+3 -30 replies
17/17powerpc/pnv/pci: Fix incorrect PE reservation attempt on some 64-bit BARsarch/powerpc/platforms/powernv/pci-ioda.c+17 -100 replies

Reviews trailers per patch

1 of 17 patches has a Reviewed-by or Acked-by.

PatchGautham R. Shenoy
1/17
2/17
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17
12/17R-b
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/17] Initial POWER9 XIVE and PHB4 support

This provides an initial base support for the XIVE interrupt controller and the new IODA3 compliant PHB4, both found on POWER9. The series is interleaved with a bug fix or two as I found problems in sim.

The new OPAL APIs haven't been committed yet so are still subject to change, thus the patches relying on them shouldn't bee merged just yet, at least not until we freeze those APIs. The individual fixes are good to go though.

This is very basic support for XIVE by using OPAL APIs that simulate a XICS. This is meant as a fallback if the interrupt controller implementation is unknown.

A subsequent series will provide the native support for XIVE (aka exploitation mode) and this will remain as a fallback for future chip that might implement a variant that isn't backward compatible.

Similarily, we use an OPAL call for TCE invalidations in IODA3. We may at some point add native support for PHB4, but this gives us a fallback in case the HW changes in unsupported ways.