Skip to content

powerpc/powernv: Support M64 window

Guo Chao linuxppc-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyIn review
  2. v16 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* Don't overwrite PE flags
* Don't return segment alignment if M64 is not supported
* Output M64 total size and segment size together with M32 and IO

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6powerpc/powernv: Enable M64 aperatus for PHB3arch/powerpc/include/asm/opal.h arch/powerpc/platforms/powernv/pci-ioda.c arch/powerpc/platforms/powernv/pci.h+307 -221 reply
2/6powerpc/powernv: Allow to freeze PEarch/powerpc/include/asm/opal.h arch/powerpc/platforms/powernv/eeh-ioda.c arch/powerpc/platforms/powernv/opal-wrappers.S +2 more+13 -120 replies
3/6powerpc/powernv: Split ioda_eeh_get_state()arch/powerpc/platforms/powernv/eeh-ioda.c+105 -810 replies
4/6powerpc/powernv: Handle compound PEarch/powerpc/platforms/powernv/pci-ioda.c arch/powerpc/platforms/powernv/pci.h+146 -00 replies
5/6powerpc/powernv: Handle compound PE for EEHarch/powerpc/platforms/powernv/eeh-ioda.c+78 -470 replies
6/6powerpc/powernv: Handle compound PE in config accessorsarch/powerpc/platforms/powernv/pci.c+60 -290 replies

Reviews trailers per patch

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

PatchGavin Shan
1/6R-b
2/6
3/6
4/6
5/6
6/6

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

Read the v2 thread

Cover letter [PATCH v2 0/6] powerpc/powernv: Support M64 window

This version is rebased on top of Gavin's patches of EEH support for guest and related fixes which are supposed to be merged in 3.17.

Changed from v1:
* Don't overwrite PE flags
* Don't return segment alignment if M64 is not supported
* Output M64 total size and segment size together with M32 and IO

Currently, all MMIO resources, including 64-bits MMIO resources are hooked to PHB 32-bits MMIO BAR, which has limited space. If there're PCI devices with large 64-bits MMIO BAR (could reach 1GB), we're running out of MMIO resources (as well as PE numbers) quickly. The patchset reuses the M32 infrastructure to support M64:

* The last M64 BAR covers all M64 aperatus and that's shared by all PEs.
* Reuse ppc_md.pcibios_window_alignment() to affect resource assignment in PCI core so that we can get well segmented 64-bits window of PCI bridges.
* One PCI bus might require multiple discrete M64 segment. We invent if we're going to unfreeze any one in the group.

Gavin Shan (5):
powerpc/powernv: Allow to freeze PE powerpc/powernv: Split ioda_eeh_get_state() powerpc/powernv: Handle compound PE powerpc/powernv: Handle compound PE for EEH powerpc/powernv: Handle compound PE in config accessors

Guo Chao (1):
powerpc/powernv: Enable M64 aperatus for PHB3

 arch/powerpc/include/asm/opal.h                |  17 +-
 arch/powerpc/platforms/powernv/eeh-ioda.c      | 293 +++++++++-------
 arch/powerpc/platforms/powernv/opal-wrappers.S |   2 +-
 arch/powerpc/platforms/powernv/pci-ioda.c      | 448 +++++++++++++++++++++++--
 arch/powerpc/platforms/powernv/pci.c           |  87 +++--
 arch/powerpc/platforms/powernv/pci.h           |  23 ++
 6 files changed, 694 insertions(+), 176 deletions(-)
Signature · 1 line
1.9.1