Skip to content

RFC Make 64-bit prefetchable MMIO work

Guo Chao linux-pci 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: do not compare CPU address with PCI addressdrivers/pci/bus.c+63 -23 replies
2/3PCI: set proper default value of PCIBIOS_MAX_MEM_32arch/x86/include/asm/pci.h include/linux/pci.h+1 -20 replies
3/3PCI: do not reset bridge's IORESOURCE_MEM_64 flag for ROM BARdrivers/pci/setup-bus.c+2 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/3] Make 64-bit prefetchable MMIO work

Resource assignment code does not work properly after we expose 64-bit prefetchable MMIO window in PowerNV platform.

# ROM BAR get 4G-above address.
This is because default value of PCIBIOS_MAX_MEM_32 is -1 which makes it useless in 64-bit platform. After fixing this ...

# ROM BAR can't get any address.
This is because PCIBIOS_MAX_MEM_32 is actually a PCI address but functions as a CPU address. After fixing this ...

# 64-bit prefetchable address is never used.
This is because root bridge's IORESOURCE_MEM_64 is reset due to ROM BARs, which makes it not quilify to get 4G-above prefetchable address from host bridge. The 64-bit 4G-above prefetchable window is not used at all in the end.

Nothing is really broken currently. This is just a RFC series, preparing for later PowerNV 64-bit MMIO work.

Guo Chao (3):
PCI: do not compare CPU address with PCI address
PCI: set proper default value of PCIBIOS_MAX_MEM_32
PCI: do not reset bridge's IORESOURCE_MEM_64 flag for ROM BAR

 arch/x86/include/asm/pci.h |  1 -
 drivers/pci/bus.c          | 65 ++++++++++++++++++++++++++++++++++++++++++++--
 drivers/pci/setup-bus.c    |  3 ++-
 include/linux/pci.h        |  2 +-
 4 files changed, 66 insertions(+), 5 deletions(-)
Signature · 1 line
1.8.3.2