powerpc/fsl-pci: Set relaxed ordering on prefetchable ranges
authorTrent Piepho <tpiepho@freescale.com>
Wed, 17 Dec 2008 19:43:26 +0000 (11:43 -0800)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 7 Jan 2009 21:33:05 +0000 (15:33 -0600)
commit565f37642c78754a85efe6c20a4a15e18ed21f07
tree59d91974af64223e2891cddfe9ce2e58ada8109d
parenta097a78c1e6e4030fcef3bcab6351b6001662335
powerpc/fsl-pci: Set relaxed ordering on prefetchable ranges

Provides a small speedup when accessing pefetchable ranges.  To indicate
that a memory range is prefetchable, mark it in the dts file with 42000000
instead of 02000000.

A powepc pci_controller is allowed three memory ranges, any of which may be
prefetchable.  However, the PCI-PCI bridge configuration space only has one
field for "non-prefetchable memory behind bridge", which has a 32 bit
address, and one field for "prefetchable memory behind bridge", which may
have a 64 bit address.  These are PCI bus addresses, not CPU physical
addresses.

So really you're only allowed one memory range of each type.  And if you
want the range at a PCI address above 32 bits you must make it
prefetchable.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_pci.c