Skip to content

PCI/sparc: Fix booting with T5-8

Yinghai Lu linux-arm-kernel linux-devicetree linux-mips linux-pci linuxppc-dev lkml sparclinux stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 39 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: Introduce pci_bus_addr_tdrivers/pci/Kconfig drivers/pci/bus.c drivers/pci/probe.c +1 more+24 -1410 replies
2/3sparc/PCI: Add mem64 resource parsing for root busarch/sparc/kernel/pci.c arch/sparc/kernel/pci_common.c arch/sparc/kernel/pci_impl.h+20 -31 reply
3/3PCI: Set pref for mem64 resource of pcie devicedrivers/pci/probe.c+50 -021 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid AhernDavid S. Miller
SeriesA-b
1/3T-b
2/3T-b
3/3T-b T-b

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 0/3] PCI/sparc: Fix booting with T5-8

Fix regression by commit d63e2e1f3df9 ("sparc/PCI: Clip bridge windows to fit in upstream windows").

That cause bridge bar get clipped wrongly.

The sparc64 dma_addr_t is 32-bit, we can not use it to check if we can use 64bit bar, introduce pci_bus_addr_t.

sparc ofpci does not parse 64bit mem for root bus, add code to make sure that we get correct resource for root.

Also there are device 64-bit res does not have pref bit flag, but bridges do have pref bit set, that cause extra "no compatible window". Set pref bit for them according to the errata.

Thanks

Yinghai

Yinghai Lu (3):
PCI: Introduce pci_bus_addr_t
sparc/PCI: Add mem64 resource parsing for root bus
PCI: Set pref for mem64 resource of pcie device

 arch/sparc/kernel/pci.c        |  7 ++++-
 arch/sparc/kernel/pci_common.c | 15 ++++++++--
 arch/sparc/kernel/pci_impl.h   |  1 +
 drivers/pci/Kconfig            |  4 +++
 drivers/pci/bus.c              | 10 +++----
 drivers/pci/probe.c            | 62 ++++++++++++++++++++++++++++++++++++++----
 include/linux/pci.h            | 12 ++++++--
 7 files changed, 94 insertions(+), 17 deletions(-)
Signature · 1 line
1.8.4.5