x86_64: check and enable MMCONFIG for AMD Family 10h
commiteee206c3bfd0888f22ae9da3172487c61d72187d
authorYinghai Lu <Yinghai.Lu@Sun.COM>
Tue, 19 Feb 2008 11:13:43 +0000 (19 03:13 -0800)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Apr 2008 21:41:04 +0000 (26 23:41 +0200)
tree0ef518f8ac5fcde5a1aed6cffe4ab7ddecec7273
parent57741a779070e0b141b6148136b420c8d35ccbce
x86_64: check and enable MMCONFIG for AMD Family 10h

So we can use MMCONF when MMCONF is not set by BIOS

using TOP_MEM2 msr to get memory top, and try to scan fam10h mmio routing to
make sure the range is not conflicted with some prefetch MMIO that is above 4G.
(current only LinuxBIOS assign 64 bit mmio above 4G for some co-processor)

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup_64.c