PCI: Always set prefetchable base/limit upper32 registers
authorAlex Williamson <alex.williamson@hp.com>
Mon, 30 Nov 2009 21:51:44 +0000 (14:51 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 4 Dec 2009 23:52:43 +0000 (15:52 -0800)
commit59353ea30e65ab3ae181d6175e3212e1361c3787
tree4fc54f9c8e3b4dd5af6d7f125739ccac9f9d6410
parent04b55c4732780381410e52db0e9bfb7661f2b4b3
PCI: Always set prefetchable base/limit upper32 registers

Prior to 1f82de10 we always initialized the upper 32bits of the
prefetchable memory window, regardless of the address range used.
Now we only touch it for a >32bit address, which means the upper32
registers remain whatever the BIOS initialized them too.

It's valid for the BIOS to set the upper32 base/limit to
0xffffffff/0x00000000, which makes us program prefetchable ranges
like 0xffffffffabc00000 - 0x00000000abc00000

Revert the chunk of 1f82de10 that made this conditional so we always
write the upper32 registers and remove now unused pref_mem64 variable.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/setup-bus.c