diff options
Diffstat (limited to 'arch/x86/kernel/setup_64.c')
-rw-r--r-- | arch/x86/kernel/setup_64.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index a94fb959a87..22c14e21c97 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/crash_dump.h> | 29 | #include <linux/crash_dump.h> |
30 | #include <linux/root_dev.h> | 30 | #include <linux/root_dev.h> |
31 | #include <linux/pci.h> | 31 | #include <linux/pci.h> |
32 | #include <asm/pci-direct.h> | ||
32 | #include <linux/efi.h> | 33 | #include <linux/efi.h> |
33 | #include <linux/acpi.h> | 34 | #include <linux/acpi.h> |
34 | #include <linux/kallsyms.h> | 35 | #include <linux/kallsyms.h> |
@@ -40,6 +41,7 @@ | |||
40 | #include <linux/dmi.h> | 41 | #include <linux/dmi.h> |
41 | #include <linux/dma-mapping.h> | 42 | #include <linux/dma-mapping.h> |
42 | #include <linux/ctype.h> | 43 | #include <linux/ctype.h> |
44 | #include <linux/sort.h> | ||
43 | #include <linux/uaccess.h> | 45 | #include <linux/uaccess.h> |
44 | #include <linux/init_ohci1394_dma.h> | 46 | #include <linux/init_ohci1394_dma.h> |
45 | #include <linux/kvm_para.h> | 47 | #include <linux/kvm_para.h> |
@@ -288,6 +290,18 @@ static void __init parse_setup_data(void) | |||
288 | } | 290 | } |
289 | } | 291 | } |
290 | 292 | ||
293 | #ifdef CONFIG_PCI_MMCONFIG | ||
294 | extern void __cpuinit fam10h_check_enable_mmcfg(void); | ||
295 | extern void __init check_enable_amd_mmconf_dmi(void); | ||
296 | #else | ||
297 | void __cpuinit fam10h_check_enable_mmcfg(void) | ||
298 | { | ||
299 | } | ||
300 | void __init check_enable_amd_mmconf_dmi(void) | ||
301 | { | ||
302 | } | ||
303 | #endif | ||
304 | |||
291 | /* | 305 | /* |
292 | * setup_arch - architecture-specific boot-time initializations | 306 | * setup_arch - architecture-specific boot-time initializations |
293 | * | 307 | * |
@@ -515,6 +529,9 @@ void __init setup_arch(char **cmdline_p) | |||
515 | conswitchp = &dummy_con; | 529 | conswitchp = &dummy_con; |
516 | #endif | 530 | #endif |
517 | #endif | 531 | #endif |
532 | |||
533 | /* do this before identify_cpu for boot cpu */ | ||
534 | check_enable_amd_mmconf_dmi(); | ||
518 | } | 535 | } |
519 | 536 | ||
520 | static int __cpuinit get_model_name(struct cpuinfo_x86 *c) | 537 | static int __cpuinit get_model_name(struct cpuinfo_x86 *c) |
@@ -767,6 +784,9 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) | |||
767 | /* MFENCE stops RDTSC speculation */ | 784 | /* MFENCE stops RDTSC speculation */ |
768 | set_cpu_cap(c, X86_FEATURE_MFENCE_RDTSC); | 785 | set_cpu_cap(c, X86_FEATURE_MFENCE_RDTSC); |
769 | 786 | ||
787 | if (c->x86 == 0x10) | ||
788 | fam10h_check_enable_mmcfg(); | ||
789 | |||
770 | if (amd_apic_timer_broken()) | 790 | if (amd_apic_timer_broken()) |
771 | disable_apic_timer = 1; | 791 | disable_apic_timer = 1; |
772 | 792 | ||