diff options
author | Robert Richter <robert.richter@amd.com> | 2007-09-03 04:17:39 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-02 05:51:19 -0400 |
commit | 831d991821daedd4839073dbca55514432ef1768 (patch) | |
tree | f3b9772709fd948c5df7b3e0535d9f62737e7702 /arch/x86/kernel/cpu/amd.c | |
parent | 1c47cd638e8302bc38be1f6d81067950e038ebd3 (diff) |
x86: add PCI extended config space access for AMD Barcelona
This patch implements PCI extended configuration space access for
AMD's Barcelona CPUs. It extends the method using CF8/CFC IO
addresses. An x86 capability bit has been introduced that is set for
CPUs supporting PCI extended config space accesses.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/amd.c')
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 245866828294..99221f9834e4 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <asm/apic.h> | 6 | #include <asm/apic.h> |
7 | 7 | ||
8 | #include <mach_apic.h> | 8 | #include <mach_apic.h> |
9 | #include "../setup.h" | ||
9 | #include "cpu.h" | 10 | #include "cpu.h" |
10 | 11 | ||
11 | /* | 12 | /* |
@@ -308,6 +309,9 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) | |||
308 | 309 | ||
309 | if (cpu_has_xmm2) | 310 | if (cpu_has_xmm2) |
310 | set_cpu_cap(c, X86_FEATURE_MFENCE_RDTSC); | 311 | set_cpu_cap(c, X86_FEATURE_MFENCE_RDTSC); |
312 | |||
313 | if (c->x86 == 0x10) | ||
314 | amd_enable_pci_ext_cfg(c); | ||
311 | } | 315 | } |
312 | 316 | ||
313 | static unsigned int __cpuinit amd_size_cache(struct cpuinfo_x86 *c, unsigned int size) | 317 | static unsigned int __cpuinit amd_size_cache(struct cpuinfo_x86 *c, unsigned int size) |