linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regression caused by "PCI: Shrink decoding-disabled window while sizing BARs"
@ 2014-11-18  9:55 Thomas Petazzoni
  2014-11-18  9:58 ` Thomas Petazzoni
  2014-11-18 11:31 ` [PATCH] PCI: fixup __pci_read_base() after refactoring Thomas Petazzoni
  0 siblings, 2 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2014-11-18  9:55 UTC (permalink / raw)
  To: Bjorn Helgaas, linux-pci, Myron Stowe
  Cc: Kevin Hilman, Jason Cooper, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clément, Ezequiel Garcia

Hello,

Since next-20141117, PCI support is broken on ARM Marvell EBU
platforms. next-20141114 was working fine. The problem we see is:

pci 0000:03:00.0: reg 0x10: can't handle BAR larger than 4GB (size 0xfffffffffff00000)

Therefore, the Marvell-specific MBus window is not setup, and the first
access to the PCI device registers causes a kernel panic.

You can compare a successful boot:

  http://storage.armcloud.us/kernel-ci/next/next-20141114/arm-mvebu_v7_defconfig/boot-armada-370-mirabox.html

With a failed boot:

  http://storage.armcloud.us/kernel-ci/next/next-20141117/arm-mvebu_v7_defconfig/boot-armada-370-mirabox.html

It turns out that if I take next-20141117 and revert the two following
commits:

  7ea945f0bb49423451dbf222f62c6fabc857aaac PCI: Shrink decoding-disabled window while sizing BARs
  3a02517d5e2aef7cd4524468525a6292c81cfad1 PCI: Support 64-bit bridge windows if we have 64-bit dma_addr_t

Then the PCI support works again.

Note that the Marvell pci-mvebu driver emulates its own PCI bridge, in
order to support the dynamic creation of MBus windows (this is a
Marvell specific concept). Therefore, there is a possibility that the
issue might be that our emulation is not 100% correct, which I'll be
checking today.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-11-19 23:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-18  9:55 Regression caused by "PCI: Shrink decoding-disabled window while sizing BARs" Thomas Petazzoni
2014-11-18  9:58 ` Thomas Petazzoni
2014-11-18 11:34   ` Thomas Petazzoni
2014-11-18 14:27     ` Bjorn Helgaas
2014-11-18 14:45       ` [PATCH] PCI: fix probe.c warning on !CONFIG_ARCH_DMA_ADDR_T_64BIT platforms Thomas Petazzoni
2014-11-18 18:18       ` Regression caused by "PCI: Shrink decoding-disabled window while sizing BARs" Yinghai Lu
2014-11-18 21:00         ` Thomas Petazzoni
2014-11-18 22:36           ` Yinghai Lu
2014-11-19 21:22             ` Bjorn Helgaas
2014-11-19 23:31               ` Yinghai Lu
2014-11-18 11:31 ` [PATCH] PCI: fixup __pci_read_base() after refactoring Thomas Petazzoni
2014-11-18 16:31   ` Thierry Reding
2014-11-18 17:37   ` Kevin Hilman
2014-11-19 22:14   ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).