* Robert Richter <[email protected]> wrote:
> 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.
applied to -tip for more testing, thanks Robert. It needed some porting
(64-bit setup code got restructured in -tip) and the trivial build fix
below.
Ingo
------------->
commit fe8aef82b5040c39fb3bee28047db5c896421382
Author: Ingo Molnar <[email protected]>
Date: Mon Jun 2 10:54:16 2008 +0200
fix build bug in "x86: add PCI extended config space access for AMD Barcelona"
Signed-off-by: Ingo Molnar <[email protected]>
diff --git a/include/asm-x86/mmconfig.h b/include/asm-x86/mmconfig.h
index 95beda0..46d6bb1 100644
--- a/include/asm-x86/mmconfig.h
+++ b/include/asm-x86/mmconfig.h
@@ -9,4 +9,6 @@ static inline void fam10h_check_enable_mmcfg(void) { }
static inline void check_enable_amd_mmconf_dmi(void) { }
#endif
+extern void __cpuinit amd_enable_pci_ext_cfg(struct cpuinfo_x86 *c);
+
#endif
On 02.06.08 11:09:47, Ingo Molnar wrote:
> diff --git a/include/asm-x86/mmconfig.h b/include/asm-x86/mmconfig.h
> index 95beda0..46d6bb1 100644
> --- a/include/asm-x86/mmconfig.h
> +++ b/include/asm-x86/mmconfig.h
> @@ -9,4 +9,6 @@ static inline void fam10h_check_enable_mmcfg(void) { }
> static inline void check_enable_amd_mmconf_dmi(void) { }
> #endif
>
> +extern void __cpuinit amd_enable_pci_ext_cfg(struct cpuinfo_x86 *c);
> +
> #endif
It's better to add #include "../setup.h" to arch/x86/kernel/cpu/amd_64.c
since this is already defined there and it is actually no mmconf code.
-Robert
--
Advanced Micro Devices, Inc.
Operating System Research Center
email: [email protected]