linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] Make 64-bit prefetchable MMIO work
@ 2013-11-19  6:36 Guo Chao
  2013-11-19  6:36 ` [RFC PATCH 1/3] PCI: do not compare CPU address with PCI address Guo Chao
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Guo Chao @ 2013-11-19  6:36 UTC (permalink / raw)
  To: linux-pci; +Cc: bhelgaas, yinghai

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(-)

-- 
1.8.3.2


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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19  6:36 [RFC PATCH 0/3] Make 64-bit prefetchable MMIO work Guo Chao
2013-11-19  6:36 ` [RFC PATCH 1/3] PCI: do not compare CPU address with PCI address Guo Chao
2013-11-19 19:31   ` Yinghai Lu
2013-11-19 19:35     ` Yinghai Lu
2013-11-19 23:48     ` Bjorn Helgaas
2013-11-19  6:36 ` [RFC PATCH 2/3] PCI: set proper default value of PCIBIOS_MAX_MEM_32 Guo Chao
2013-11-19  6:36 ` [RFC PATCH 3/3] PCI: do not reset bridge's IORESOURCE_MEM_64 flag for ROM BAR Guo Chao

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).