Skip to content

PCI: sparc related 64bit resource fixup

Yinghai Lu linux-devicetree linux-pci linuxppc-dev lkml sparclinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13sparc/PCI: Use correct offset for bus address to resourcearch/sparc/kernel/pci.c arch/sparc/kernel/pci_common.c arch/sparc/kernel/pci_impl.h+31 -110 replies
2/13PCI: Add pci_find_bus_resource()drivers/pci/pci.c include/linux/pci.h+18 -110 replies
3/13sparc/PCI: Reserve legacy mmio after PCI mmioarch/sparc/kernel/pci.c arch/sparc/kernel/pci_common.c arch/sparc/kernel/pci_impl.h+33 -281 reply
4/13sparc/PCI: Add IORESOURCE_MEM_64 for 64-bit resource in OF parsingarch/sparc/kernel/of_device_32.c arch/sparc/kernel/of_device_64.c+6 -41 reply
5/13sparc/PCI: Keep resource idx order with bridge register numberarch/sparc/kernel/pci.c+7 -10 replies
6/13powerpc/PCI: Keep resource idx order with bridge register numberarch/powerpc/kernel/pci_of_scan.c+7 -10 replies
7/13powerpc/PCI: Add IORESOURCE_MEM_64 for 64-bit resource in OF parsingarch/powerpc/kernel/pci_of_scan.c+3 -10 replies
8/13OF/PCI: Add IORESOURCE_MEM_64 for 64-bit resourcedrivers/of/address.c+3 -11 reply
9/13PCI: Check pref compatible bit for mem64 resource of PCIe devicearch/sparc/kernel/pci_common.c drivers/pci/pci.c drivers/pci/pci.h +4 more+66 -91 reply
10/13PCI: Only treat non-pref mmio64 as pref if all bridges have MEM_64drivers/pci/setup-bus.c+29 -21 reply
11/13PCI: Add has_mem64 for struct host_bridgedrivers/pci/probe.c include/linux/pci.h+8 -04 replies
12/13PCI: Only treat non-pref mmio64 as pref if host bridge has mmio64drivers/pci/setup-bus.c+1 -10 replies
13/13PCI: Restore pref MMIO allocation logic for host bridge without mmio64drivers/pci/bus.c drivers/pci/setup-bus.c drivers/pci/setup-res.c+18 -81 reply

Reviews trailers per patch

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

PatchKhalid AzizDavid AhernTJRob Herring
1/13T-b
2/13
3/13T-b
4/13T-b
5/13T-b
6/13
7/13
8/13T-b A-b
9/13T-b T-b T-b
10/13T-b
11/13T-b
12/13T-b
13/13T-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 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/13] PCI: sparc related 64bit resource fixup

Hi Bjorn,

Please check sparc related 64bit resource handling patches.

patch 1-8: parse MEM64 for sparc and other system with OF.
So device 64bit resource could find their parent resource.

patch 9-12: MMIO64 handling enhancement
treat non-pref mmio64 as pref mmio64 if all bridges to root all pcie.

patch 13: restore old pref allocation logic if hostbridge does not support mmio64.

Those patches could be applied on top of today's pci/next.

Thanks

Yinghai

Yinghai Lu (13):
sparc/PCI: Use correct offset for bus address to resource
PCI: Add pci_find_bus_resource()
sparc/PCI: Reserve legacy mmio after PCI mmio
sparc/PCI: Add IORESOURCE_MEM_64 for 64-bit resource in OF parsing sparc/PCI: Keep resource idx order with bridge register number powerpc/PCI: Keep resource idx order with bridge register number powerpc/PCI: Add IORESOURCE_MEM_64 for 64-bit resource in OF parsing OF/PCI: Add IORESOURCE_MEM_64 for 64-bit resource
PCI: Check pref compatible bit for mem64 resource of PCIe device
PCI: Only treat non-pref mmio64 as pref if all bridges have MEM_64
PCI: Add has_mem64 for struct host_bridge
PCI: Only treat non-pref mmio64 as pref if host bridge has mmio64
PCI: Restore pref MMIO allocation logic for host bridge without mmio64

 arch/powerpc/kernel/pci_of_scan.c | 12 +++++-
 arch/sparc/kernel/of_device_32.c  |  5 ++-
 arch/sparc/kernel/of_device_64.c  |  5 ++-
 arch/sparc/kernel/pci.c           | 15 +++++--
 arch/sparc/kernel/pci_common.c    | 91 +++++++++++++++++++++++----------------
 arch/sparc/kernel/pci_impl.h      |  5 +++
 drivers/of/address.c              |  4 +-
 drivers/pci/bus.c                 |  4 +-
 drivers/pci/pci.c                 | 31 +++++++------
 drivers/pci/pci.h                 |  2 +
 drivers/pci/probe.c               | 40 +++++++++++++++++
 drivers/pci/setup-bus.c           | 65 ++++++++++++++++++++++++----
 drivers/pci/setup-res.c           | 13 ++++--
 include/linux/pci.h               |  4 ++
 14 files changed, 224 insertions(+), 72 deletions(-)
Signature · 1 line
2.9.3