x86: handle HW IOMMU initialization failure gracefully
Subsystems (6)
v2 cover x86: handle HW IOMMU initialization failure gracefully
This patchset is against tip/master.
The first version is:
http://marc.info/?l=linux-kernel&m=125671300920411&w=2
The changes since v1 are:
- replaced Chris' bootmem patches with the 6/9 patch to implement free_bootmem_late in a simple way (thanks to Pekka).
- fixed the bug to break 'iommu=soft' boot opiton (found by Joerg).
- moved iommu_init_noop() to x86_init.c
- added Muli's Acked-by to Calgary patch.
==
arch/ia64/kernel/pci-swiotlb.c | 4 +- arch/powerpc/kernel/setup_32.c | 2 +- arch/powerpc/kernel/setup_64.c | 2 +- arch/x86/include/asm/amd_iommu.h | 2 - arch/x86/include/asm/calgary.h | 2 - arch/x86/include/asm/gart.h | 5 +--- arch/x86/include/asm/iommu.h | 1 - arch/x86/include/asm/x86_init.h | 9 +++++++ arch/x86/kernel/amd_iommu.c | 2 +- arch/x86/kernel/amd_iommu_init.c | 19 +++----------- arch/x86/kernel/aperture_64.c | 4 ++- arch/x86/kernel/pci-calgary_64.c | 19 ++++----------- arch/x86/kernel/pci-dma.c | 27 ++++++++++----------- arch/x86/kernel/pci-gart_64.c | 16 ++++------- arch/x86/kernel/pci-nommu.c | 9 ------- arch/x86/kernel/pci-swiotlb.c | 10 +++---- arch/x86/kernel/x86_init.c | 5 ++++ drivers/pci/dmar.c | 7 ++++- drivers/pci/intel-iommu.c | 4 +- include/linux/bootmem.h | 1 + include/linux/dmar.h | 10 ------- include/linux/swiotlb.h | 5 ++- lib/swiotlb.c | 49 +++++++++++++++++++++++++++++++------ mm/bootmem.c | 24 ++++++++++++++++++ 24 files changed, 131 insertions(+), 107 deletions(-)
PATCH v2 1/9 add iommu_init to x86_init_ops
We call the detections functions of all the IOMMUs then all their initialization functions. The latter is pointless since we don't detect multiple different IOMMUs. What we need to do is calling the initialization function of the detected IOMMU.
This adds iommu_init hook to x86_init_ops so if an IOMMU detection function can set its initialization function to the hook.
--- arch/x86/include/asm/x86_init.h | 9 +++++++++ arch/x86/kernel/pci-dma.c | 2 ++ arch/x86/kernel/x86_init.c | 5 +++++ 3 files changed, 16 insertions(+), 0 deletions(-)
arch/x86/include/asm/x86_init.h +9 -0
@@ -91,6 +91,14 @@ struct x86_init_timers { };/** +* struct x86_init_iommu - platform specific iommu setup +* @iommu_init: platform specific iommu setup +*/ +struct x86_init_iommu { +int (*iommu_init)(void ); +}; + +/** * struct x86_init_ops - functions for platform specific setup * */
@@ -101,6 +109,7 @@ struct x86_init_ops {struct x86_init_oem oem;struct x86_init_paging paging;struct x86_init_timers timers; +struct x86_init_iommu iommu; };/**
arch/x86/kernel/pci-dma.c +2 -0
@@ -292,6 +292,8 @@ static int __init pci_iommu_init(void)dma_debug_add_bus (&pci_bus_type);#endif + x86_init.iommu.iommu_init (); +calgary_iommu_init ();intel_iommu_init ();
arch/x86/kernel/x86_init.c +5 -0
@@ -19,6 +19,7 @@void __cpuinit x86_init_noop (void ) { }void __init x86_init_uint_noop (unsigned int unused) { }void __init x86_init_pgd_noop (pgd_t *unused) { } +int __init iommu_init_noop (void ) {return 0 ; }/* * The platform setup functions are preset with the default functions
@@ -63,6 +64,10 @@ struct x86_init_ops x86_init __initdata = { .tsc_pre_init = x86_init_noop, .timer_init = hpet_time_init, }, + + .iommu = { + .iommu_init = iommu_init_noop, + }, };struct x86_cpuinit_ops x86_cpuinit__cpuinitdata = {
Signature · 1 line
1.5.6.5
[tip:core/iommu] x86: Add iommu_init to x86_init_ops
Commit-ID: d07c1be0693e0902d743160b8b638585b808f8ac Gitweb: http://git.kernel.org/tip/d07c1be0693e0902d743160b8b638585b808f8ac Author: FUJITA Tomonori <[email protected]> AuthorDate: Tue, 10 Nov 2009 19:46:12 +0900 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 10 Nov 2009 12:31:07 +0100
x86: Add iommu_init to x86_init_ops
We call the detections functions of all the IOMMUs then all their initialization functions. The latter is pointless since we don't detect multiple different IOMMUs. What we need to do is calling the initialization function of the detected IOMMU.
This adds iommu_init hook to x86_init_ops so if an IOMMU detection function can set its initialization function to the hook.
LKML-Reference: <[email protected]>
--- arch/x86/include/asm/x86_init.h | 9 +++++++++ arch/x86/kernel/pci-dma.c | 2 ++ arch/x86/kernel/x86_init.c | 5 +++++ 3 files changed, 16 insertions(+), 0 deletions(-)
arch/x86/include/asm/x86_init.h +9 -0
@@ -91,6 +91,14 @@ struct x86_init_timers { };/** +* struct x86_init_iommu - platform specific iommu setup +* @iommu_init: platform specific iommu setup +*/ +struct x86_init_iommu { +int (*iommu_init)(void ); +}; + +/** * struct x86_init_ops - functions for platform specific setup * */
@@ -101,6 +109,7 @@ struct x86_init_ops {struct x86_init_oem oem;struct x86_init_paging paging;struct x86_init_timers timers; +struct x86_init_iommu iommu; };/**
arch/x86/kernel/pci-dma.c +2 -0
@@ -292,6 +292,8 @@ static int __init pci_iommu_init(void)dma_debug_add_bus (&pci_bus_type);#endif + x86_init.iommu.iommu_init (); +calgary_iommu_init ();intel_iommu_init ();
arch/x86/kernel/x86_init.c +5 -0
@@ -19,6 +19,7 @@void __cpuinit x86_init_noop (void ) { }void __init x86_init_uint_noop (unsigned int unused) { }void __init x86_init_pgd_noop (pgd_t *unused) { } +int __init iommu_init_noop (void ) {return 0 ; }/* * The platform setup functions are preset with the default functions
@@ -63,6 +64,10 @@ struct x86_init_ops x86_init __initdata = { .tsc_pre_init = x86_init_noop, .timer_init = hpet_time_init, }, + + .iommu = { + .iommu_init = iommu_init_noop, + }, };struct x86_cpuinit_ops x86_cpuinit__cpuinitdata = {
[tip:core/iommu] x86: Add iommu_init to x86_init_ops, fix build
In reply to FUJITA TomonoriCommit-ID: b4941a9a606f0131559cc040b64e8437ac7b32c5 Gitweb: http://git.kernel.org/tip/b4941a9a606f0131559cc040b64e8437ac7b32c5 Author: Ingo Molnar <[email protected]> AuthorDate: Tue, 10 Nov 2009 14:37:58 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 10 Nov 2009 14:37:58 +0100
x86: Add iommu_init to x86_init_ops, fix build
Most of the time x86_init.h is included in pci-dma.c - but not always, leading to this rare build failure:
arch/x86/kernel/pci-dma.c:296: error: 'x86_init' undeclared (first use in this function)
So include asm/x86_init.h explicitly.
Cc: FUJITA Tomonori <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <[email protected]>
--- arch/x86/kernel/pci-dma.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/x86/kernel/pci-dma.c +1 -0
@@ -11,6 +11,7 @@#include <asm/gart.h> #include <asm/calgary.h> #include <asm/amd_iommu.h> +#include <asm/x86_init.h> static int forbid_dac__read_mostly ;
PATCH v2 2/9 Calgary: convert detect_calgary to use iommu_init hook
In reply to FUJITA TomonoriThis changes detect_calgary() to set init_calgary() to iommu_init hook if detect_calgary() finds the Calgary IOMMU.
We can kill the code to check if we found the IOMMU in init_calgary() since detect_calgary() sets init_calgary() only when it found the IOMMU.
--- arch/x86/include/asm/calgary.h | 2 -- arch/x86/kernel/pci-calgary_64.c | 11 +++++------ arch/x86/kernel/pci-dma.c | 2 -- 3 files changed, 5 insertions(+), 10 deletions(-)
arch/x86/include/asm/calgary.h +0 -2
@@ -62,10 +62,8 @@ struct cal_chipset_ops {extern int use_calgary;#ifdef CONFIG_CALGARY_IOMMU -extern int calgary_iommu_init (void );extern void detect_calgary (void );#else -static inline int calgary_iommu_init (void ) {return 1 ; }static inline void detect_calgary (void ) {return ; }#endif
arch/x86/kernel/pci-calgary_64.c +5 -6
@@ -46,6 +46,7 @@#include <asm/dma.h> #include <asm/rio.h> #include <asm/bios_ebda.h> +#include <asm/x86_init.h> #ifdef CONFIG_CALGARY_IOMMU_ENABLED_BY_DEFAULT int use_calgary__read_mostly =1 ;
@@ -1344,6 +1345,8 @@ static void __init get_tce_space_from_tar(void)return ; } +int __init calgary_iommu_init (void ); +void __init detect_calgary (void ) {int bus;
@@ -1445,6 +1448,8 @@ void __init detect_calgary(void)/* swiotlb for devices that aren't behind the Calgary. */ if (max_pfn >MAX_DMA32_PFN ) swiotlb =1 ; + + x86_init.iommu.iommu_init = calgary_iommu_init; }return ;
@@ -1461,12 +1466,6 @@ int __init calgary_iommu_init(void) {int ret; -if (no_iommu || (swiotlb && !calgary_detected)) -return -ENODEV ; - -if (!calgary_detected) -return -ENODEV ; -/* ok, we're trying to use Calgary - let's roll */ printk (KERN_INFO "PCI-DMA: Using Calgary IOMMU\n" );
arch/x86/kernel/pci-dma.c +0 -2
@@ -294,8 +294,6 @@ static int __init pci_iommu_init(void) x86_init.iommu.iommu_init (); -calgary_iommu_init (); -intel_iommu_init ();amd_iommu_init ();
Signature · 1 line
1.5.6.5
[tip:core/iommu] x86: Calgary: Convert detect_calgary() to use iommu_init hook
Commit-ID: d7b9f7be216b04ff9d108f856bc03d96e7b3439c Gitweb: http://git.kernel.org/tip/d7b9f7be216b04ff9d108f856bc03d96e7b3439c Author: FUJITA Tomonori <[email protected]> AuthorDate: Tue, 10 Nov 2009 19:46:13 +0900 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 10 Nov 2009 12:31:15 +0100
x86: Calgary: Convert detect_calgary() to use iommu_init hook
This changes detect_calgary() to set init_calgary() to iommu_init hook if detect_calgary() finds the Calgary IOMMU.
We can kill the code to check if we found the IOMMU in init_calgary() since detect_calgary() sets init_calgary() only when it found the IOMMU.
LKML-Reference: <[email protected]>
--- arch/x86/include/asm/calgary.h | 2 -- arch/x86/kernel/pci-calgary_64.c | 11 +++++------ arch/x86/kernel/pci-dma.c | 2 -- 3 files changed, 5 insertions(+), 10 deletions(-)
arch/x86/include/asm/calgary.h +0 -2
@@ -62,10 +62,8 @@ struct cal_chipset_ops {extern int use_calgary;#ifdef CONFIG_CALGARY_IOMMU -extern int calgary_iommu_init (void );extern void detect_calgary (void );#else -static inline int calgary_iommu_init (void ) {return 1 ; }static inline void detect_calgary (void ) {return ; }#endif
arch/x86/kernel/pci-calgary_64.c +5 -6
@@ -46,6 +46,7 @@#include <asm/dma.h> #include <asm/rio.h> #include <asm/bios_ebda.h> +#include <asm/x86_init.h> #ifdef CONFIG_CALGARY_IOMMU_ENABLED_BY_DEFAULT int use_calgary__read_mostly =1 ;
@@ -1344,6 +1345,8 @@ static void __init get_tce_space_from_tar(void)return ; } +int __init calgary_iommu_init (void ); +void __init detect_calgary (void ) {int bus;
@@ -1445,6 +1448,8 @@ void __init detect_calgary(void)/* swiotlb for devices that aren't behind the Calgary. */ if (max_pfn >MAX_DMA32_PFN ) swiotlb =1 ; + + x86_init.iommu.iommu_init = calgary_iommu_init; }return ;
@@ -1461,12 +1466,6 @@ int __init calgary_iommu_init(void) {int ret; -if (no_iommu || (swiotlb && !calgary_detected)) -return -ENODEV ; - -if (!calgary_detected) -return -ENODEV ; -/* ok, we're trying to use Calgary - let's roll */ printk (KERN_INFO "PCI-DMA: Using Calgary IOMMU\n" );
arch/x86/kernel/pci-dma.c +0 -2
@@ -294,8 +294,6 @@ static int __init pci_iommu_init(void) x86_init.iommu.iommu_init (); -calgary_iommu_init (); -intel_iommu_init ();amd_iommu_init ();
PATCH v2 3/9 GART: convert gart_iommu_hole_init to use iommu_init hook
In reply to FUJITA TomonoriThis changes gart_iommu_hole_init() to set gart_iommu_init() to iommu_init hook if gart_iommu_hole_init() finds the GART IOMMU.
We can kill the code to check if we found the IOMMU in gart_iommu_init() since gart_iommu_hole_init() sets gart_iommu_init() only when it found the IOMMU.
--- arch/x86/include/asm/gart.h | 5 +---- arch/x86/kernel/aperture_64.c | 2 ++ arch/x86/kernel/pci-dma.c | 2 -- arch/x86/kernel/pci-gart_64.c | 15 +++++---------- 4 files changed, 8 insertions(+), 16 deletions(-)
arch/x86/include/asm/gart.h +1 -4
@@ -35,7 +35,7 @@ extern int gart_iommu_aperture_allowed;extern int gart_iommu_aperture_disabled;extern void early_gart_iommu_check (void ); -extern void gart_iommu_init (void ); +extern int gart_iommu_init (void );extern void __init gart_parse_options (char *);extern void gart_iommu_hole_init (void );
@@ -47,9 +47,6 @@ extern void gart_iommu_hole_init(void);static inline void early_gart_iommu_check (void ) { } -static inline void gart_iommu_init (void ) -{ -}static inline void gart_parse_options (char *options) { }
arch/x86/kernel/aperture_64.c +2 -0
@@ -28,6 +28,7 @@#include <asm/pci-direct.h> #include <asm/dma.h> #include <asm/k8.h> +#include <asm/x86_init.h> int gart_iommu_aperture;int gart_iommu_aperture_disabled__initdata ;
@@ -400,6 +401,7 @@ void __init gart_iommu_hole_init(void) iommu_detected =1 ; gart_iommu_aperture =1 ; + x86_init.iommu.iommu_init = gart_iommu_init; aper_order = (read_pci_config (bus, slot,3 ,AMD64_GARTAPERTURECTL ) >>1 ) &7 ; aper_size = (32 *1024 *1024 ) << aper_order;
arch/x86/kernel/pci-dma.c +0 -2
@@ -298,8 +298,6 @@ static int __init pci_iommu_init(void)amd_iommu_init (); -gart_iommu_init (); -no_iommu_init ();return 0 ; }
arch/x86/kernel/pci-gart_64.c +5 -10
@@ -709,7 +709,7 @@ static void gart_iommu_shutdown(void) } } -void __init gart_iommu_init (void ) +int __init gart_iommu_init (void ) {struct agp_kern_info info;unsigned long iommu_start;
@@ -719,7 +719,7 @@ void __init gart_iommu_init(void)long i;if (cache_k8_northbridges () <0 || num_k8_northbridges ==0 ) -return ; +return 0 ;#ifndef CONFIG_AGP_AMD64 no_agp =1 ;
@@ -731,13 +731,6 @@ void __init gart_iommu_init(void) (agp_copy_info (agp_bridge, &info) <0 );#endif -if (swiotlb) -return ; - -/* Did we detect a different HW IOMMU? */ -if (iommu_detected && !gart_iommu_aperture) -return ; - if (no_iommu || (!force_iommu && max_pfn <= MAX_DMA32_PFN) || !gart_iommu_aperture ||
@@ -747,7 +740,7 @@ void __init gart_iommu_init(void) "but GART IOMMU not available.\n");printk (KERN_WARNING "falling back to iommu=soft.\n" ); } -return ; +return 0 ; }/* need to map that range */
@@ -840,6 +833,8 @@ void __init gart_iommu_init(void)flush_gart (); dma_ops = &gart_dma_ops; x86_platform.iommu_shutdown = gart_iommu_shutdown; + +return 0 ; }void __init gart_parse_options (char *p)
Signature · 1 line
1.5.6.5
[tip:core/iommu] x86: GART: Convert gart_iommu_hole_init() to use iommu_init hook
Commit-ID: de957628ce7c84764ff41331111036b3ae5bad0f Gitweb: http://git.kernel.org/tip/de957628ce7c84764ff41331111036b3ae5bad0f Author: FUJITA Tomonori <[email protected]> AuthorDate: Tue, 10 Nov 2009 19:46:14 +0900 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 10 Nov 2009 12:31:23 +0100
x86: GART: Convert gart_iommu_hole_init() to use iommu_init hook
This changes gart_iommu_hole_init() to set gart_iommu_init() to iommu_init hook if gart_iommu_hole_init() finds the GART IOMMU.
We can kill the code to check if we found the IOMMU in gart_iommu_init() since gart_iommu_hole_init() sets gart_iommu_init() only when it found the IOMMU.
LKML-Reference: <[email protected]>
--- arch/x86/include/asm/gart.h | 5 +---- arch/x86/kernel/aperture_64.c | 2 ++ arch/x86/kernel/pci-dma.c | 2 -- arch/x86/kernel/pci-gart_64.c | 15 +++++---------- 4 files changed, 8 insertions(+), 16 deletions(-)
arch/x86/include/asm/gart.h +1 -4
@@ -35,7 +35,7 @@ extern int gart_iommu_aperture_allowed;extern int gart_iommu_aperture_disabled;extern void early_gart_iommu_check (void ); -extern void gart_iommu_init (void ); +extern int gart_iommu_init (void );extern void __init gart_parse_options (char *);extern void gart_iommu_hole_init (void );
@@ -47,9 +47,6 @@ extern void gart_iommu_hole_init(void);static inline void early_gart_iommu_check (void ) { } -static inline void gart_iommu_init (void ) -{ -}static inline void gart_parse_options (char *options) { }
arch/x86/kernel/aperture_64.c +2 -0
@@ -28,6 +28,7 @@#include <asm/pci-direct.h> #include <asm/dma.h> #include <asm/k8.h> +#include <asm/x86_init.h> int gart_iommu_aperture;int gart_iommu_aperture_disabled__initdata ;
@@ -400,6 +401,7 @@ void __init gart_iommu_hole_init(void) iommu_detected =1 ; gart_iommu_aperture =1 ; + x86_init.iommu.iommu_init = gart_iommu_init; aper_order = (read_pci_config (bus, slot,3 ,AMD64_GARTAPERTURECTL ) >>1 ) &7 ; aper_size = (32 *1024 *1024 ) << aper_order;
arch/x86/kernel/pci-dma.c +0 -2
@@ -298,8 +298,6 @@ static int __init pci_iommu_init(void)amd_iommu_init (); -gart_iommu_init (); -no_iommu_init ();return 0 ; }
arch/x86/kernel/pci-gart_64.c +5 -10
@@ -709,7 +709,7 @@ static void gart_iommu_shutdown(void) } } -void __init gart_iommu_init (void ) +int __init gart_iommu_init (void ) {struct agp_kern_info info;unsigned long iommu_start;
@@ -719,7 +719,7 @@ void __init gart_iommu_init(void)long i;if (cache_k8_northbridges () <0 || num_k8_northbridges ==0 ) -return ; +return 0 ;#ifndef CONFIG_AGP_AMD64 no_agp =1 ;
@@ -731,13 +731,6 @@ void __init gart_iommu_init(void) (agp_copy_info (agp_bridge, &info) <0 );#endif -if (swiotlb) -return ; - -/* Did we detect a different HW IOMMU? */ -if (iommu_detected && !gart_iommu_aperture) -return ; - if (no_iommu || (!force_iommu && max_pfn <= MAX_DMA32_PFN) || !gart_iommu_aperture ||
@@ -747,7 +740,7 @@ void __init gart_iommu_init(void) "but GART IOMMU not available.\n");printk (KERN_WARNING "falling back to iommu=soft.\n" ); } -return ; +return 0 ; }/* need to map that range */
@@ -840,6 +833,8 @@ void __init gart_iommu_init(void)flush_gart (); dma_ops = &gart_dma_ops; x86_platform.iommu_shutdown = gart_iommu_shutdown; + +return 0 ; }void __init gart_parse_options (char *p)
PATCH v2 4/9 amd_iommu: convert amd_iommu_detect to use iommu_init hook
In reply to FUJITA TomonoriThis changes amd_iommu_detect() to set amd_iommu_init to iommu_init hook if amd_iommu_detect() finds the AMD IOMMU.
We can kill the code to check if we found the IOMMU in amd_iommu_init() since amd_iommu_detect() sets amd_iommu_init() only when it found the IOMMU.
--- arch/x86/include/asm/amd_iommu.h | 2 -- arch/x86/kernel/amd_iommu_init.c | 17 +++-------------- arch/x86/kernel/pci-dma.c | 2 -- 3 files changed, 3 insertions(+), 18 deletions(-)
arch/x86/include/asm/amd_iommu.h +0 -2
@@ -23,7 +23,6 @@#include <linux/irqreturn.h> #ifdef CONFIG_AMD_IOMMU -extern int amd_iommu_init (void );extern int amd_iommu_init_dma_ops (void );extern int amd_iommu_init_passthrough (void );extern void amd_iommu_detect (void );
@@ -32,7 +31,6 @@ extern void amd_iommu_flush_all_domains(void);extern void amd_iommu_flush_all_devices (void );extern void amd_iommu_apply_erratum_63 (u16 devid);#else -static inline int amd_iommu_init (void ) {return -ENODEV ; }static inline void amd_iommu_detect (void ) { }#endif
arch/x86/kernel/amd_iommu_init.c +3 -14
@@ -29,6 +29,7 @@#include <asm/amd_iommu.h> #include <asm/iommu.h> #include <asm/gart.h> +#include <asm/x86_init.h> /* * definitions for the ACPI scanning code
@@ -1176,19 +1177,10 @@ static struct sys_device device_amd_iommu = {* functions. Finally it prints some information about AMD IOMMUs and * the driver state and enables the hardware. */ -int __init amd_iommu_init (void ) +static int __init amd_iommu_init (void ) {int i, ret =0 ; - -if (no_iommu) { -printk (KERN_INFO "AMD-Vi disabled by kernel command line\n" ); -return 0 ; - } - -if (!amd_iommu_detected) -return -ENODEV ; -/* * First parse ACPI tables to find the largest Bus/Dev/Func * we need to handle. Upon this information the shared data
@@ -1344,10 +1336,7 @@ void __init amd_iommu_detect(void)if (acpi_table_parse ("IVRS" , early_amd_iommu_detect) ==0 ) { iommu_detected =1 ; amd_iommu_detected =1 ; -#ifdef CONFIG_GART_IOMMU - gart_iommu_aperture_disabled =1 ; - gart_iommu_aperture =0 ; -#endif + x86_init.iommu.iommu_init = amd_iommu_init; } }
arch/x86/kernel/pci-dma.c +0 -2
@@ -296,8 +296,6 @@ static int __init pci_iommu_init(void)intel_iommu_init (); -amd_iommu_init (); -no_iommu_init ();return 0 ; }
Signature · 1 line
1.5.6.5
[tip:core/iommu] x86: amd_iommu: Convert amd_iommu_detect() to use iommu_init hook
Commit-ID: ea1b0d3945c7374849235b6ecaea1191ee1d9d50 Gitweb: http://git.kernel.org/tip/ea1b0d3945c7374849235b6ecaea1191ee1d9d50 Author: FUJITA Tomonori <[email protected]> AuthorDate: Tue, 10 Nov 2009 19:46:15 +0900 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 10 Nov 2009 12:31:30 +0100
x86: amd_iommu: Convert amd_iommu_detect() to use iommu_init hook
This changes amd_iommu_detect() to set amd_iommu_init to iommu_init hook if amd_iommu_detect() finds the AMD IOMMU.
We can kill the code to check if we found the IOMMU in amd_iommu_init() since amd_iommu_detect() sets amd_iommu_init() only when it found the IOMMU.
LKML-Reference: <[email protected]>
--- arch/x86/include/asm/amd_iommu.h | 2 -- arch/x86/kernel/amd_iommu_init.c | 17 +++-------------- arch/x86/kernel/pci-dma.c | 2 -- 3 files changed, 3 insertions(+), 18 deletions(-)
arch/x86/include/asm/amd_iommu.h +0 -2
@@ -23,7 +23,6 @@#include <linux/irqreturn.h> #ifdef CONFIG_AMD_IOMMU -extern int amd_iommu_init (void );extern int amd_iommu_init_dma_ops (void );extern int amd_iommu_init_passthrough (void );extern void amd_iommu_detect (void );
@@ -32,7 +31,6 @@ extern void amd_iommu_flush_all_domains(void);extern void amd_iommu_flush_all_devices (void );extern void amd_iommu_apply_erratum_63 (u16 devid);#else -static inline int amd_iommu_init (void ) {return -ENODEV ; }static inline void amd_iommu_detect (void ) { }#endif
arch/x86/kernel/amd_iommu_init.c +3 -14
@@ -29,6 +29,7 @@#include <asm/amd_iommu.h> #include <asm/iommu.h> #include <asm/gart.h> +#include <asm/x86_init.h> /* * definitions for the ACPI scanning code
@@ -1176,19 +1177,10 @@ static struct sys_device device_amd_iommu = {* functions. Finally it prints some information about AMD IOMMUs and * the driver state and enables the hardware. */ -int __init amd_iommu_init (void ) +static int __init amd_iommu_init (void ) {int i, ret =0 ; - -if (no_iommu) { -printk (KERN_INFO "AMD-Vi disabled by kernel command line\n" ); -return 0 ; - } - -if (!amd_iommu_detected) -return -ENODEV ; -/* * First parse ACPI tables to find the largest Bus/Dev/Func * we need to handle. Upon this information the shared data
@@ -1344,10 +1336,7 @@ void __init amd_iommu_detect(void)if (acpi_table_parse ("IVRS" , early_amd_iommu_detect) ==0 ) { iommu_detected =1 ; amd_iommu_detected =1 ; -#ifdef CONFIG_GART_IOMMU - gart_iommu_aperture_disabled =1 ; - gart_iommu_aperture =0 ; -#endif + x86_init.iommu.iommu_init = amd_iommu_init; } }
arch/x86/kernel/pci-dma.c +0 -2
@@ -296,8 +296,6 @@ static int __init pci_iommu_init(void)intel_iommu_init (); -amd_iommu_init (); -no_iommu_init ();return 0 ; }
PATCH v2 5/9 intel-iommu: convert detect_intel_iommu to use iommu_init hook
In reply to FUJITA TomonoriThis changes detect_intel_iommu() to set intel_iommu_init() to iommu_init hook if detect_intel_iommu() finds the IOMMU.
--- arch/x86/kernel/pci-dma.c | 2 -- drivers/pci/dmar.c | 4 ++++ include/linux/dmar.h | 10 ---------- 3 files changed, 4 insertions(+), 12 deletions(-)
arch/x86/kernel/pci-dma.c +0 -2
@@ -294,8 +294,6 @@ static int __init pci_iommu_init(void) x86_init.iommu.iommu_init (); -intel_iommu_init (); -no_iommu_init ();return 0 ; }
drivers/pci/dmar.c +4 -0
@@ -617,6 +617,10 @@ void __init detect_intel_iommu(void) !dmar_disabled) iommu_detected =1 ;#endif +#ifdef CONFIG_X86 +if (ret) + x86_init.iommu.iommu_init = intel_iommu_init; +#endif }early_acpi_os_unmap_memory (dmar_tbl, dmar_tbl_size); dmar_tbl =NULL ;
include/linux/dmar.h +0 -10
@@ -218,16 +218,6 @@ struct dmar_atsr_unit { u8 include_all:1; /* include all ports */ }; -/* Intel DMAR initialization functions */ extern int intel_iommu_init (void ); -#else -static inline int intel_iommu_init (void ) -{ -#ifdef CONFIG_INTR_REMAP -return dmar_dev_scope_init (); -#else -return -ENODEV ;#endif -} -#endif /* !CONFIG_DMAR */ #endif /* __DMAR_H__ */
Signature · 1 line
1.5.6.5
Re: [PATCH -v2 5/9] intel-iommu: convert detect_intel_iommu to use iommu_init hook
Quoted 9 lines · FUJITA Tomonori
This changes
detect_intel_iommu()to setintel_iommu_init()toiommu_inithook ifdetect_intel_iommu()finds the IOMMU.Signed-off-by FUJITA Tomonori <[email protected]>--- arch/x86/kernel/pci-dma.c | 2 -- drivers/pci/dmar.c | 4 ++++ include/linux/dmar.h | 10 ---------- 3 files changed, 4 insertions(+), 12 deletions(-)
FYI, the !CONFIG_DMAR case needed the fix below. (Wrt. the -ENODEV: it doesnt matter right now as we dont check the result of ->iommu_init(), but i kept it consistent with device initialization principles.)
Ingo
include/linux/dmar.h +4 -1
@@ -219,5 +219,8 @@ struct dmar_atsr_unit { };extern int intel_iommu_init (void ); -#endif +#else /* !CONFIG_DMAR: */ +static inline int intel_iommu_init (void ) {return -ENODEV ; } +#endif /* CONFIG_DMAR */ +#endif /* __DMAR_H__ */
[tip:core/iommu] x86: intel-iommu: Convert detect_intel_iommu to use iommu_init hook
In reply to FUJITA TomonoriCommit-ID: 9d5ce73a64be2be8112147a3e0b551ad9cd1247b Gitweb: http://git.kernel.org/tip/9d5ce73a64be2be8112147a3e0b551ad9cd1247b Author: FUJITA Tomonori <[email protected]> AuthorDate: Tue, 10 Nov 2009 19:46:16 +0900 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 10 Nov 2009 12:31:36 +0100
x86: intel-iommu: Convert detect_intel_iommu to use iommu_init hook
This changes detect_intel_iommu() to set intel_iommu_init() to iommu_init hook if detect_intel_iommu() finds the IOMMU.
LKML-Reference: <[email protected]>
--- arch/x86/kernel/pci-dma.c | 2 -- drivers/pci/dmar.c | 4 ++++ include/linux/dmar.h | 15 ++++----------- 3 files changed, 8 insertions(+), 13 deletions(-)
arch/x86/kernel/pci-dma.c +0 -2
@@ -294,8 +294,6 @@ static int __init pci_iommu_init(void) x86_init.iommu.iommu_init (); -intel_iommu_init (); -no_iommu_init ();return 0 ; }
drivers/pci/dmar.c +4 -0
@@ -617,6 +617,10 @@ void __init detect_intel_iommu(void) !dmar_disabled) iommu_detected =1 ;#endif +#ifdef CONFIG_X86 +if (ret) + x86_init.iommu.iommu_init = intel_iommu_init; +#endif }early_acpi_os_unmap_memory (dmar_tbl, dmar_tbl_size); dmar_tbl =NULL ;
include/linux/dmar.h +4 -11
@@ -208,16 +208,9 @@ struct dmar_atsr_unit { u8 include_all:1; /* include all ports */ }; -/* Intel DMAR initialization functions */ extern int intel_iommu_init (void ); -#else -static inline int intel_iommu_init (void ) -{ -#ifdef CONFIG_INTR_REMAP -return dmar_dev_scope_init (); -#else -return -ENODEV ; -#endif -} -#endif /* !CONFIG_DMAR */ +#else /* !CONFIG_DMAR: */ +static inline int intel_iommu_init (void ) {return -ENODEV ; } +#endif /* CONFIG_DMAR */ +#endif /* __DMAR_H__ */
PATCH v2 6/9 bootmem: add free_bootmem_late
In reply to FUJITA TomonoriAdd a new function for freeing bootmem after the bootmem allocator has been released and the unreserved pages given to the page allocator. This allows us to reserve bootmem and then release it if we later discover it was not needed.
--- include/linux/bootmem.h | 1 + mm/bootmem.c | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-)
include/linux/bootmem.h +1 -0
@@ -53,6 +53,7 @@ extern void free_bootmem_node(pg_data_t *pgdat,unsigned long addr, unsigned long size);extern void free_bootmem (unsigned long addr,unsigned long size); +extern void free_bootmem_late (unsigned long addr,unsigned long size);/* * Flags for reserve_bootmem (also if CONFIG_HAVE_ARCH_BOOTMEM_NODE,
mm/bootmem.c +24 -0
@@ -143,6 +143,30 @@ unsigned long __init init_bootmem(unsigned long start, unsigned long pages)return init_bootmem_core (NODE_DATA (0 )->bdata, start,0 , pages); } +/* +* free_bootmem_late - free bootmem pages directly to page allocator +* @addr: starting address of the range +* @size: size of the range in bytes +* +* This is only useful when the bootmem allocator has already been torn +* down, but we are still initializing the system. Pages are given directly +* to the page allocator, no bootmem metadata is updated because it is gone. +*/ +void __init free_bootmem_late (unsigned long addr,unsigned long size) +{ +unsigned long cursor, end; + +kmemleak_free_part (__va (addr), size); + + cursor =PFN_UP (addr); + end =PFN_DOWN (addr + size); + +for (; cursor < end; cursor++) { +__free_pages_bootmem (pfn_to_page (cursor),0 ); + totalram_pages++; + } +} +static unsigned long __init free_all_bootmem_core (bootmem_data_t *bdata) {int aligned;
Signature · 1 line
1.5.6.5
Re: [PATCH -v2 6/9] bootmem: add free_bootmem_late
Quoted 48 lines · FUJITA Tomonori
Add a new function for freeing bootmem after the bootmem allocator has been released and the unreserved pages given to the page allocator. This allows us to reserve bootmem and then release it if we later discover it was not needed.
Signed-off-by FUJITA Tomonori <[email protected]>Acked-by Pekka Enberg <[email protected]>--- include/linux/bootmem.h | 1 + mm/bootmem.c | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-)include/linux/bootmem.h +1
-0@@ -53,6 +53,7 @@ extern void free_bootmem_node(pg_data_t *pgdat,unsigned long addr, unsigned long size);extern void free_bootmem (unsigned long addr,unsigned long size); +extern void free_bootmem_late (unsigned long addr,unsigned long size);/* * Flags for reserve_bootmem (also if CONFIG_HAVE_ARCH_BOOTMEM_NODE, mm/bootmem.c +13
-0@@ -143,6 +143,30 @@ unsigned long __init init_bootmem(unsigned long start, unsigned long pages)return init_bootmem_core (NODE_DATA (0 )->bdata, start,0 , pages); } +/* +* free_bootmem_late - free bootmem pages directly to page allocator +* @addr: starting address of the range +* @size: size of the range in bytes +* +* This is only useful when the bootmem allocator has already been torn +* down, but we are still initializing the system. Pages are given directly +* to the page allocator, no bootmem metadata is updated because it is gone. +*/ +void __init free_bootmem_late (unsigned long addr,unsigned long size) +{ +unsigned long cursor, end; +
mm/bootmem.c unsigned long __init init_bootmem(unsigned long start, unsigned long pages) · line 168
Quoted 10 lines
mm/bootmem.c +10
-0+kmemleak_free_part (__va (addr), size); + + cursor =PFN_UP (addr); + end =PFN_DOWN (addr + size); + +for (; cursor < end; cursor++) { +__free_pages_bootmem (pfn_to_page (cursor),0 ); + totalram_pages++; + } +}
I find it a bit weird that free_all_bootmem() callers have to take care of totalram_pages while this function does the accounting on its own.
And I think the function is more logically placed right below free_bootmem(), like you did in the header.
These are no show-stoppers for me, though, and otherwise the patch looks simple and straight-forward. Feel free to add
Thanks!
Re: [PATCH -v2 6/9] bootmem: add free_bootmem_late
Thanks for reviewing,
Quoted 3 lines · On Tue, 10 Nov 2009 13:00:53 +0100 Johannes Weiner <[email protected]> wrote:
I find it a bit weird that
free_all_bootmem()callers have to take care oftotalram_pageswhile this function does the accounting on its own.
Ah, it might be consistent to make the callers take care of totalram_pages like free_all_bootmem.
Quoted 2 lines
And I think the function is more logically placed right below
free_bootmem(), like you did in the header.
However, if we do the above, we have:
unsigned long free_bootmem_late(unsigned long addr, unsigned long size)
Which looks inconsistent a bit with free_bootmem()?
[tip:core/iommu] bootmem: Add free_bootmem_late()
In reply to FUJITA TomonoriCommit-ID: 9f993ac3f708b661207ed7de521f245586217a68 Gitweb: http://git.kernel.org/tip/9f993ac3f708b661207ed7de521f245586217a68 Author: FUJITA Tomonori <[email protected]> AuthorDate: Tue, 10 Nov 2009 19:46:17 +0900 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 10 Nov 2009 12:31:43 +0100
bootmem: Add free_bootmem_late()
Add a new function for freeing bootmem after the bootmem allocator has been released and the unreserved pages given to the page allocator.
This allows us to reserve bootmem and then release it if we later discover it was not needed.
( This new API will be used by the swiotlb code to recover
a significant amount of RAM (64MB). )
LKML-Reference: <[email protected]>
--- include/linux/bootmem.h | 1 + mm/bootmem.c | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-)
include/linux/bootmem.h +1 -0
@@ -53,6 +53,7 @@ extern void free_bootmem_node(pg_data_t *pgdat,unsigned long addr, unsigned long size);extern void free_bootmem (unsigned long addr,unsigned long size); +extern void free_bootmem_late (unsigned long addr,unsigned long size);/* * Flags for reserve_bootmem (also if CONFIG_HAVE_ARCH_BOOTMEM_NODE,
mm/bootmem.c +24 -0
@@ -143,6 +143,30 @@ unsigned long __init init_bootmem(unsigned long start, unsigned long pages)return init_bootmem_core (NODE_DATA (0 )->bdata, start,0 , pages); } +/* +* free_bootmem_late - free bootmem pages directly to page allocator +* @addr: starting address of the range +* @size: size of the range in bytes +* +* This is only useful when the bootmem allocator has already been torn +* down, but we are still initializing the system. Pages are given directly +* to the page allocator, no bootmem metadata is updated because it is gone. +*/ +void __init free_bootmem_late (unsigned long addr,unsigned long size) +{ +unsigned long cursor, end; + +kmemleak_free_part (__va (addr), size); + + cursor =PFN_UP (addr); + end =PFN_DOWN (addr + size); + +for (; cursor < end; cursor++) { +__free_pages_bootmem (pfn_to_page (cursor),0 ); + totalram_pages++; + } +} +static unsigned long __init free_all_bootmem_core (bootmem_data_t *bdata) {int aligned;
Andrew Morton
maintainerRe: [PATCH -v2 6/9] bootmem: add free_bootmem_late
In reply to FUJITA TomonoriQuoted 4 lines · On Tue, 10 Nov 2009 19:46:17 +0900 FUJITA Tomonori…
Add a new function for freeing bootmem after the bootmem allocator has been released and the unreserved pages given to the page allocator. This allows us to reserve bootmem and then release it if we later discover it was not needed.
OK, but the new function has no callers and curious people will be wondering what happened to patches 1, 2, 3, 4, 5, 7, 8 and 9!
What's the plan here?
Re: [PATCH -v2 6/9] bootmem: add free_bootmem_late
Quoted 10 lines · Andrew Morton
Quoted 4 lines · On Tue, 10 Nov 2009 19:46:17 +0900 FUJITA Tomonori…
Add a new function for freeing bootmem after the bootmem allocator has been released and the unreserved pages given to the page allocator. This allows us to reserve bootmem and then release it if we later discover it was not needed.
OK, but the new function has no callers and curious people will be wondering what happened to patches 1, 2, 3, 4, 5, 7, 8 and 9!
They were posted to lkml alongside patch 6 - see this thread on lkml:
[PATCH v2 0/9] x86: handle HW IOMMU initialization failure gracefully
Ingo
PATCH v2 7/9 swiotlb: add swiotlb_free function
In reply to FUJITA Tomonoriswiotlb_free function frees all allocated memory for swiotlb.
We need to initialize swiotlb before IOMMU initialization (x86 and powerpc needs to allocate memory from bootmem allocator). If IOMMU initialization is successful, we need to free swiotlb resource (don't want to waste 64MB).
--- include/linux/swiotlb.h | 1 + lib/swiotlb.c | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 0 deletions(-)
include/linux/swiotlb.h +1 -0
@@ -88,4 +88,5 @@ swiotlb_dma_mapping_error(struct device *hwdev, dma_addr_t dma_addr);extern int swiotlb_dma_supported (struct device *hwdev,u64 mask); +extern void __init swiotlb_free (void );#endif /* __LINUX_SWIOTLB_H */
lib/swiotlb.c +30 -0
@@ -97,6 +97,8 @@ static phys_addr_t *io_tlb_orig_addr;*/ static DEFINE_SPINLOCK (io_tlb_lock); +static int late_alloc; +static int __init setup_io_tlb_npages (char *str) {
@@ -262,6 +264,8 @@ swiotlb_late_init_with_default_size(size_t default_size)swiotlb_print_info (bytes); + late_alloc =1 ; +return 0 ; cleanup4:
@@ -281,6 +285,32 @@ cleanup1:return -ENOMEM ; } +void __init swiotlb_free (void ) +{ +if (!io_tlb_overflow_buffer) +return ; + +if (late_alloc) { +free_pages ((unsigned long )io_tlb_overflow_buffer, +get_order (io_tlb_overflow)); +free_pages ((unsigned long )io_tlb_orig_addr, +get_order (io_tlb_nslabs *sizeof (phys_addr_t))); +free_pages ((unsigned long )io_tlb_list,get_order (io_tlb_nslabs * +sizeof (int ))); +free_pages ((unsigned long )io_tlb_start, +get_order (io_tlb_nslabs <<IO_TLB_SHIFT )); + }else { +free_bootmem_late (__pa (io_tlb_overflow_buffer), + io_tlb_overflow); +free_bootmem_late (__pa (io_tlb_orig_addr), + io_tlb_nslabs *sizeof (phys_addr_t)); +free_bootmem_late (__pa (io_tlb_list), + io_tlb_nslabs *sizeof (int )); +free_bootmem_late (__pa (io_tlb_start), + io_tlb_nslabs <<IO_TLB_SHIFT ); + } +} +static int is_swiotlb_buffer (phys_addr_t paddr) { return paddr >= virt_to_phys(io_tlb_start) &&
Signature · 1 line
1.5.6.5
Re: [PATCH -v2 7/9] swiotlb: add swiotlb_free function
this patch needed the fix below, for the !CONFIG_SWIOTLB case.
Ingo
include/linux/swiotlb.h +5 -0
@@ -87,6 +87,11 @@ swiotlb_dma_mapping_error(struct device *hwdev, dma_addr_t dma_addr);extern int swiotlb_dma_supported (struct device *hwdev,u64 mask); +#ifdef CONFIG_SWIOTLB extern void __init swiotlb_free (void ); +#else +static inline void swiotlb_free (void ) { } +#endif +extern void swiotlb_print_info (void );#endif /* __LINUX_SWIOTLB_H */
[tip:core/iommu] swiotlb: Add swiotlb_free() function
In reply to FUJITA TomonoriCommit-ID: 5740afdb68abadc473fd5392df733558a58c1254 Gitweb: http://git.kernel.org/tip/5740afdb68abadc473fd5392df733558a58c1254 Author: FUJITA Tomonori <[email protected]> AuthorDate: Tue, 10 Nov 2009 19:46:18 +0900 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 10 Nov 2009 12:31:52 +0100
swiotlb: Add swiotlb_free() function
swiotlb_free() function frees all allocated memory for swiotlb.
We need to initialize swiotlb before IOMMU initialization (x86 and powerpc needs to allocate memory from bootmem allocator). If IOMMU initialization is successful, we need to free swiotlb resource (don't want to waste 64MB).
LKML-Reference: <[email protected]>
--- include/linux/swiotlb.h | 6 ++++++ lib/swiotlb.c | 30 ++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 0 deletions(-)
include/linux/swiotlb.h +6 -0
@@ -88,4 +88,10 @@ swiotlb_dma_mapping_error(struct device *hwdev, dma_addr_t dma_addr);extern int swiotlb_dma_supported (struct device *hwdev,u64 mask); +#ifdef CONFIG_SWIOTLB +extern void __init swiotlb_free (void ); +#else +static inline void swiotlb_free (void ) { } +#endif +#endif /* __LINUX_SWIOTLB_H */
lib/swiotlb.c +30 -0
@@ -97,6 +97,8 @@ static phys_addr_t *io_tlb_orig_addr;*/ static DEFINE_SPINLOCK (io_tlb_lock); +static int late_alloc; +static int __init setup_io_tlb_npages (char *str) {
@@ -262,6 +264,8 @@ swiotlb_late_init_with_default_size(size_t default_size)swiotlb_print_info (bytes); + late_alloc =1 ; +return 0 ; cleanup4:
@@ -281,6 +285,32 @@ cleanup1:return -ENOMEM ; } +void __init swiotlb_free (void ) +{ +if (!io_tlb_overflow_buffer) +return ; + +if (late_alloc) { +free_pages ((unsigned long )io_tlb_overflow_buffer, +get_order (io_tlb_overflow)); +free_pages ((unsigned long )io_tlb_orig_addr, +get_order (io_tlb_nslabs *sizeof (phys_addr_t))); +free_pages ((unsigned long )io_tlb_list,get_order (io_tlb_nslabs * +sizeof (int ))); +free_pages ((unsigned long )io_tlb_start, +get_order (io_tlb_nslabs <<IO_TLB_SHIFT )); + }else { +free_bootmem_late (__pa (io_tlb_overflow_buffer), + io_tlb_overflow); +free_bootmem_late (__pa (io_tlb_orig_addr), + io_tlb_nslabs *sizeof (phys_addr_t)); +free_bootmem_late (__pa (io_tlb_list), + io_tlb_nslabs *sizeof (int )); +free_bootmem_late (__pa (io_tlb_start), + io_tlb_nslabs <<IO_TLB_SHIFT ); + } +} +static int is_swiotlb_buffer (phys_addr_t paddr) { return paddr >= virt_to_phys(io_tlb_start) &&
PATCH v2 8/9 swiotlb: export swiotlb_print_info
In reply to FUJITA TomonoriThis enables us to avoid printing swiotlb memory info when we initialize swiotlb. After swiotlb initialization, we could find that we dont' need swiotlb.
This patch removes the code to print swiotlb memory info in swiotlb_init() and exports the function to do that.
--- arch/ia64/kernel/pci-swiotlb.c | 4 ++-- arch/powerpc/kernel/setup_32.c | 2 +- arch/powerpc/kernel/setup_64.c | 2 +- arch/x86/kernel/pci-swiotlb.c | 3 +-- include/linux/swiotlb.h | 4 ++-- lib/swiotlb.c | 15 ++++++++------- 6 files changed, 15 insertions(+), 15 deletions(-)
arch/ia64/kernel/pci-swiotlb.c +2 -2
@@ -41,7 +41,7 @@ struct dma_map_ops swiotlb_dma_ops = {void __init swiotlb_dma_init (void ) { dma_ops = &swiotlb_dma_ops; -swiotlb_init (); +swiotlb_init (1 ); }void __init pci_swiotlb_init (void )
@@ -51,7 +51,7 @@ void __init pci_swiotlb_init(void) swiotlb =1 ;printk (KERN_INFO "PCI-DMA: Re-initialize machine vector.\n" );machvec_init ("dig" ); -swiotlb_init (); +swiotlb_init (1 ); dma_ops = &swiotlb_dma_ops;#else panic ("Unable to find Intel IOMMU" );
arch/powerpc/kernel/setup_32.c +1 -1
@@ -345,7 +345,7 @@ void __init setup_arch(char **cmdline_p)#ifdef CONFIG_SWIOTLB if (ppc_swiotlb_enable) -swiotlb_init (); +swiotlb_init (1 );#endif paging_init ();
arch/powerpc/kernel/setup_64.c +1 -1
@@ -550,7 +550,7 @@ void __init setup_arch(char **cmdline_p)#ifdef CONFIG_SWIOTLB if (ppc_swiotlb_enable) -swiotlb_init (); +swiotlb_init (1 );#endif paging_init ();
arch/x86/kernel/pci-swiotlb.c +1 -2
@@ -52,8 +52,7 @@ void __init pci_swiotlb_init(void)if (swiotlb_force) swiotlb =1 ;if (swiotlb) { -printk (KERN_INFO "PCI-DMA: Using software bounce buffering for IO (SWIOTLB)\n" ); -swiotlb_init (); +swiotlb_init (0 ); dma_ops = &swiotlb_dma_ops; } }
include/linux/swiotlb.h +2 -2
@@ -20,8 +20,7 @@ struct scatterlist;*/ #define IO_TLB_SHIFT 11 -extern void -swiotlb_init (void ); +extern void swiotlb_init (int verbose);extern void *swiotlb_alloc_coherent(struct device *hwdev, size_t size,
@@ -89,4 +88,5 @@ extern int swiotlb_dma_supported(struct device *hwdev, u64 mask);extern void __init swiotlb_free (void ); +extern void swiotlb_print_info (void );#endif /* __LINUX_SWIOTLB_H */
lib/swiotlb.c +8 -7
@@ -123,8 +123,9 @@ static dma_addr_t swiotlb_virt_to_bus(struct device *hwdev,return phys_to_dma (hwdev,virt_to_phys (address)); } -static void swiotlb_print_info (unsigned long bytes) +void swiotlb_print_info (void ) { +unsigned long bytes = io_tlb_nslabs <<IO_TLB_SHIFT ;phys_addr_t pstart, pend; pstart =virt_to_phys (io_tlb_start);
@@ -142,7 +143,7 @@ static void swiotlb_print_info(unsigned long bytes)* structures for the software IO TLB used to implement the DMA API. */ void __init -swiotlb_init_with_default_size (size_t default_size) +swiotlb_init_with_default_size (size_t default_size,int verbose) {unsigned long i, bytes;
@@ -178,14 +179,14 @@ swiotlb_init_with_default_size(size_t default_size) io_tlb_overflow_buffer =alloc_bootmem_low (io_tlb_overflow);if (!io_tlb_overflow_buffer)panic ("Cannot allocate SWIOTLB overflow buffer!\n" ); - -swiotlb_print_info (bytes); +if (verbose) +swiotlb_print_info (); }void __init -swiotlb_init (void ) +swiotlb_init (int verbose) { -swiotlb_init_with_default_size (64 * (1 <<20 ));/* default to 64MB */ +swiotlb_init_with_default_size (64 * (1 <<20 ), verbose);/* default to 64MB */ }/*
@@ -262,7 +263,7 @@ swiotlb_late_init_with_default_size(size_t default_size)if (!io_tlb_overflow_buffer) goto cleanup4; -swiotlb_print_info (bytes); +swiotlb_print_info (); late_alloc =1 ;
Signature · 1 line
1.5.6.5
[tip:core/iommu] swiotlb: Defer swiotlb init printing, export swiotlb_print_info()
Commit-ID: ad32e8cb86e7894aac51c8963eaa9f36bb8a4e14 Gitweb: http://git.kernel.org/tip/ad32e8cb86e7894aac51c8963eaa9f36bb8a4e14 Author: FUJITA Tomonori <[email protected]> AuthorDate: Tue, 10 Nov 2009 19:46:19 +0900 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 10 Nov 2009 12:32:00 +0100
swiotlb: Defer swiotlb init printing, export swiotlb_print_info()
This enables us to avoid printing swiotlb memory info when we initialize swiotlb. After swiotlb initialization, we could find that we don't need swiotlb.
This patch removes the code to print swiotlb memory info in swiotlb_init() and exports the function to do that.
LKML-Reference: <[email protected]>
--- arch/ia64/kernel/pci-swiotlb.c | 4 ++-- arch/powerpc/kernel/setup_32.c | 2 +- arch/powerpc/kernel/setup_64.c | 2 +- arch/x86/kernel/pci-swiotlb.c | 3 +-- include/linux/swiotlb.h | 4 ++-- lib/swiotlb.c | 15 ++++++++------- 6 files changed, 15 insertions(+), 15 deletions(-)
arch/ia64/kernel/pci-swiotlb.c +2 -2
@@ -41,7 +41,7 @@ struct dma_map_ops swiotlb_dma_ops = {void __init swiotlb_dma_init (void ) { dma_ops = &swiotlb_dma_ops; -swiotlb_init (); +swiotlb_init (1 ); }void __init pci_swiotlb_init (void )
@@ -51,7 +51,7 @@ void __init pci_swiotlb_init(void) swiotlb =1 ;printk (KERN_INFO "PCI-DMA: Re-initialize machine vector.\n" );machvec_init ("dig" ); -swiotlb_init (); +swiotlb_init (1 ); dma_ops = &swiotlb_dma_ops;#else panic ("Unable to find Intel IOMMU" );
arch/powerpc/kernel/setup_32.c +1 -1
@@ -345,7 +345,7 @@ void __init setup_arch(char **cmdline_p)#ifdef CONFIG_SWIOTLB if (ppc_swiotlb_enable) -swiotlb_init (); +swiotlb_init (1 );#endif paging_init ();
arch/powerpc/kernel/setup_64.c +1 -1
@@ -550,7 +550,7 @@ void __init setup_arch(char **cmdline_p)#ifdef CONFIG_SWIOTLB if (ppc_swiotlb_enable) -swiotlb_init (); +swiotlb_init (1 );#endif paging_init ();
arch/x86/kernel/pci-swiotlb.c +1 -2
@@ -52,8 +52,7 @@ void __init pci_swiotlb_init(void)if (swiotlb_force) swiotlb =1 ;if (swiotlb) { -printk (KERN_INFO "PCI-DMA: Using software bounce buffering for IO (SWIOTLB)\n" ); -swiotlb_init (); +swiotlb_init (0 ); dma_ops = &swiotlb_dma_ops; } }
include/linux/swiotlb.h +2 -2
@@ -20,8 +20,7 @@ struct scatterlist;*/ #define IO_TLB_SHIFT 11 -extern void -swiotlb_init (void ); +extern void swiotlb_init (int verbose);extern void *swiotlb_alloc_coherent(struct device *hwdev, size_t size,
@@ -94,4 +93,5 @@ extern void __init swiotlb_free(void);static inline void swiotlb_free (void ) { }#endif +extern void swiotlb_print_info (void );#endif /* __LINUX_SWIOTLB_H */
lib/swiotlb.c +8 -7
@@ -123,8 +123,9 @@ static dma_addr_t swiotlb_virt_to_bus(struct device *hwdev,return phys_to_dma (hwdev,virt_to_phys (address)); } -static void swiotlb_print_info (unsigned long bytes) +void swiotlb_print_info (void ) { +unsigned long bytes = io_tlb_nslabs <<IO_TLB_SHIFT ;phys_addr_t pstart, pend; pstart =virt_to_phys (io_tlb_start);
@@ -142,7 +143,7 @@ static void swiotlb_print_info(unsigned long bytes)* structures for the software IO TLB used to implement the DMA API. */ void __init -swiotlb_init_with_default_size (size_t default_size) +swiotlb_init_with_default_size (size_t default_size,int verbose) {unsigned long i, bytes;
@@ -178,14 +179,14 @@ swiotlb_init_with_default_size(size_t default_size) io_tlb_overflow_buffer =alloc_bootmem_low (io_tlb_overflow);if (!io_tlb_overflow_buffer)panic ("Cannot allocate SWIOTLB overflow buffer!\n" ); - -swiotlb_print_info (bytes); +if (verbose) +swiotlb_print_info (); }void __init -swiotlb_init (void ) +swiotlb_init (int verbose) { -swiotlb_init_with_default_size (64 * (1 <<20 ));/* default to 64MB */ +swiotlb_init_with_default_size (64 * (1 <<20 ), verbose);/* default to 64MB */ }/*
@@ -262,7 +263,7 @@ swiotlb_late_init_with_default_size(size_t default_size)if (!io_tlb_overflow_buffer) goto cleanup4; -swiotlb_print_info (bytes); +swiotlb_print_info (); late_alloc =1 ;
PATCH v2 9/9 x86: handle HW IOMMU initialization failure gracely
In reply to FUJITA TomonoriIf HW IOMMU initialization fails (Intel VT-d often does typically due to BIOS bugs), we fall back to nommu. It doesn't work for the majority since nowadays we have more than 4GB memory so we must use swiotlb instead of nommu.
The problem is that it's too late to initialize swiotlb when HW IOMMU initialization fails. We need to allocate swiotlb memory earlier from bootmem allocator. Chris explained the issue in detail:
http://marc.info/?l=linux-kernel&m=125657444317079&w=2
The current x86 IOMMU initialization sequence is too complicated and handling the above issue makes it more hacky.
This patch changes x86 IOMMU initialization sequence to handle the above issue cleanly.
The new x86 IOMMU initialization sequence are:
1. initializing swiotlb (and setting swiotlb to 1) in the case of (max_pfn > MAX_DMA32_PFN && !no_iommu). dma_ops is set to swiotlb_dma_ops or nommu_dma_ops. if swiotlb usage is forced by the boot option, we finish here.
2. calling the detection functions of all the IOMMUs
3. the detection function sets x86_init.iommu.iommu_init to the IOMMU initialization function (so we can avoid calling the initialization functions of all the IOMMUs needlessly).
4. if the IOMMU initialization function doesn't need to swiotlb then sets swiotlb to zero (e.g. the initialization is sucessful).
5. if we find that swiotlb is set to zero, we free swiotlb resource.
--- arch/x86/include/asm/iommu.h | 1 - arch/x86/kernel/amd_iommu.c | 2 +- arch/x86/kernel/amd_iommu_init.c | 2 +- arch/x86/kernel/aperture_64.c | 2 +- arch/x86/kernel/pci-calgary_64.c | 10 +--------- arch/x86/kernel/pci-dma.c | 21 +++++++++++++-------- arch/x86/kernel/pci-gart_64.c | 1 + arch/x86/kernel/pci-nommu.c | 9 --------- arch/x86/kernel/pci-swiotlb.c | 7 +++---- drivers/pci/dmar.c | 3 +-- drivers/pci/intel-iommu.c | 4 ++-- lib/swiotlb.c | 4 +++- 12 files changed, 27 insertions(+), 39 deletions(-)
arch/x86/include/asm/iommu.h +0 -1
@@ -2,7 +2,6 @@#define _ASM_X86_IOMMU_Hstatic inline void iommu_shutdown_noop (void ) {} -extern void no_iommu_init (void );extern struct dma_map_ops nommu_dma_ops;extern int force_iommu, no_iommu;extern int iommu_detected;
arch/x86/kernel/amd_iommu.c +1 -1
@@ -2110,8 +2110,8 @@ int __init amd_iommu_init_dma_ops(void)prealloc_protection_domains (); iommu_detected =1 ; - force_iommu =1 ; bad_dma_address =0 ; + swiotlb =0 ;#ifdef CONFIG_GART_IOMMU gart_iommu_aperture_disabled =1 ; gart_iommu_aperture =0 ;
arch/x86/kernel/amd_iommu_init.c +1 -1
@@ -1330,7 +1330,7 @@ static int __init early_amd_iommu_detect(struct acpi_table_header *table)void __init amd_iommu_detect (void ) { -if (swiotlb || no_iommu || (iommu_detected && !gart_iommu_aperture)) +if (no_iommu || (iommu_detected && !gart_iommu_aperture))return ;if (acpi_table_parse ("IVRS" , early_amd_iommu_detect) ==0 ) {
arch/x86/kernel/aperture_64.c +1 -1
@@ -458,7 +458,7 @@ out:if (aper_alloc) {/* Got the aperture from the AGP bridge */ - }else if (swiotlb && !valid_agp) { + }else if (!valid_agp) {/* Do nothing */ } else if ((!no_iommu && max_pfn > MAX_DMA32_PFN) || force_iommu ||
arch/x86/kernel/pci-calgary_64.c +1 -9
@@ -1360,7 +1360,7 @@ void __init detect_calgary(void)* if the user specified iommu=off or iommu=soft or we found * another HW IOMMU already, bail out. */ -if (swiotlb || no_iommu || iommu_detected) +if (no_iommu || iommu_detected)return ;if (!use_calgary)
@@ -1445,10 +1445,6 @@ void __init detect_calgary(void)printk (KERN_INFO "PCI-DMA: Calgary TCE table spec is %d\n" , specified_table_size); -/* swiotlb for devices that aren't behind the Calgary. */ -if (max_pfn >MAX_DMA32_PFN ) - swiotlb =1 ; - x86_init.iommu.iommu_init = calgary_iommu_init; }return ;
@@ -1476,11 +1472,7 @@ int __init calgary_iommu_init(void)return ret; } - force_iommu =1 ; bad_dma_address =0x0 ; -/* dma_ops is set to swiotlb or nommu */ -if (!dma_ops) - dma_ops = &nommu_dma_ops;return 0 ; }
arch/x86/kernel/pci-dma.c +13 -8
@@ -124,24 +124,24 @@ static void __init dma32_free_bootmem(void)void __init pci_iommu_alloc (void ) { +/* swiotlb is forced by the boot option */ +int use_swiotlb = swiotlb;#ifdef CONFIG_X86_64 /* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif +pci_swiotlb_init (); +if (use_swiotlb) +return ; -/* -* The order of these functions is important for -* fall-back/fail-over reasons -*/ gart_iommu_hole_init ();detect_calgary ();detect_intel_iommu (); +/* needs to be called after gart_iommu_hole_init */ amd_iommu_detect (); - -pci_swiotlb_init (); } void *dma_generic_alloc_coherent(struct device *dev, size_t size,
@@ -291,10 +291,15 @@ static int __init pci_iommu_init(void)#ifdef CONFIG_PCI dma_debug_add_bus (&pci_bus_type);#endif - x86_init.iommu.iommu_init (); -no_iommu_init (); +if (swiotlb) { +printk (KERN_INFO "PCI-DMA: " +"Using software bounce buffering for IO (SWIOTLB)\n" ); +swiotlb_print_info (); + }else +swiotlb_free (); +return 0 ; }/* Must execute after PCI subsystem */
arch/x86/kernel/pci-gart_64.c +1 -0
@@ -833,6 +833,7 @@ int __init gart_iommu_init(void)flush_gart (); dma_ops = &gart_dma_ops; x86_platform.iommu_shutdown = gart_iommu_shutdown; + swiotlb =0 ;return 0 ; }
arch/x86/kernel/pci-nommu.c +0 -9
@@ -103,12 +103,3 @@ struct dma_map_ops nommu_dma_ops = { .sync_sg_for_device = nommu_sync_sg_for_device, .is_phys = 1, }; - -void __init no_iommu_init (void ) -{ -if (dma_ops) -return ; - - force_iommu =0 ;/* no HW IOMMU */ - dma_ops = &nommu_dma_ops; -}
arch/x86/kernel/pci-swiotlb.c +3 -4
@@ -46,13 +46,12 @@ void __init pci_swiotlb_init(void) {/* don't initialize swiotlb if iommu=off (no_iommu=1) */ #ifdef CONFIG_X86_64 -if ((!iommu_detected && !no_iommu && max_pfn >MAX_DMA32_PFN )) +if (!no_iommu && max_pfn >MAX_DMA32_PFN ) swiotlb =1 ;#endif -if (swiotlb_force) - swiotlb =1 ;if (swiotlb) {swiotlb_init (0 ); dma_ops = &swiotlb_dma_ops; - } + }else + dma_ops = &nommu_dma_ops; }
drivers/pci/dmar.c +1 -2
@@ -613,8 +613,7 @@ void __init detect_intel_iommu(void) "x2apic and Intr-remapping.\n");#endif #ifdef CONFIG_DMAR -if (ret && !no_iommu && !iommu_detected && !swiotlb && - !dmar_disabled) +if (ret && !no_iommu && !iommu_detected && !dmar_disabled) iommu_detected =1 ;#endif #ifdef CONFIG_X86
drivers/pci/intel-iommu.c +2 -2
@@ -3231,7 +3231,7 @@ int __init intel_iommu_init(void)* Check the need for DMA-remapping initialization now. * Above initialization will also be used by Interrupt-remapping. */ -if (no_iommu || swiotlb || dmar_disabled) +if (no_iommu || dmar_disabled)return -ENODEV ;iommu_init_mempool ();
@@ -3252,7 +3252,7 @@ int __init intel_iommu_init(void) "PCI-DMA: Intel(R) Virtualization Technology for Directed I/O\n");init_timer (&unmap_timer); - force_iommu =1 ; + swiotlb =0 ; dma_ops = &intel_dma_ops;init_iommu_sysfs ();
lib/swiotlb.c +3 -1
@@ -109,8 +109,10 @@ setup_io_tlb_npages(char *str) }if (*str ==',' ) ++str; -if (!strcmp (str,"force" )) +if (!strcmp (str,"force" )) { swiotlb_force =1 ; + swiotlb =1 ; + }return 1 ; }__setup ("swiotlb=" , setup_io_tlb_npages);
Signature · 1 line
1.5.6.5
Re: [PATCH -v2 9/9] x86: handle HW IOMMU initialization failure gracely
this patch needed the fixlet below. (it could be cleaned up later perhaps to not need the #ifdef - but wanted to keep it simple for now.)
Ingo
------------->
drivers/pci/intel-iommu.c +2 -0
@@ -3252,7 +3252,9 @@ int __init intel_iommu_init(void) "PCI-DMA: Intel(R) Virtualization Technology for Directed I/O\n");init_timer (&unmap_timer); +#ifdef CONFIG_SWIOTLB swiotlb =0 ; +#endif dma_ops = &intel_dma_ops;init_iommu_sysfs ();
[tip:core/iommu] x86: Handle HW IOMMU initialization failure gracefully
In reply to FUJITA TomonoriCommit-ID: 75f1cdf1dda92cae037ec848ae63690d91913eac Gitweb: http://git.kernel.org/tip/75f1cdf1dda92cae037ec848ae63690d91913eac Author: FUJITA Tomonori <[email protected]> AuthorDate: Tue, 10 Nov 2009 19:46:20 +0900 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 10 Nov 2009 12:32:07 +0100
x86: Handle HW IOMMU initialization failure gracefully
If HW IOMMU initialization fails (Intel VT-d often does this, typically due to BIOS bugs), we fall back to nommu. It doesn't work for the majority since nowadays we have more than 4GB memory so we must use swiotlb instead of nommu.
The problem is that it's too late to initialize swiotlb when HW IOMMU initialization fails. We need to allocate swiotlb memory earlier from bootmem allocator. Chris explained the issue in detail:
http://marc.info/?l=linux-kernel&m=125657444317079&w=2
The current x86 IOMMU initialization sequence is too complicated and handling the above issue makes it more hacky.
This patch changes x86 IOMMU initialization sequence to handle the above issue cleanly.
The new x86 IOMMU initialization sequence are:
1. we initialize the swiotlb (and setting swiotlb to 1) in the case of (max_pfn > MAX_DMA32_PFN && !no_iommu). dma_ops is set to swiotlb_dma_ops or nommu_dma_ops. if swiotlb usage is forced by the boot option, we finish here.
2. we call the detection functions of all the IOMMUs
3. the detection function sets x86_init.iommu.iommu_init to the IOMMU initialization function (so we can avoid calling the initialization functions of all the IOMMUs needlessly).
4. if the IOMMU initialization function doesn't need to swiotlb then sets swiotlb to zero (e.g. the initialization is sucessful).
5. if we find that swiotlb is set to zero, we free swiotlb resource.
LKML-Reference: <[email protected]>
--- arch/x86/include/asm/iommu.h | 1 - arch/x86/kernel/amd_iommu.c | 2 +- arch/x86/kernel/amd_iommu_init.c | 2 +- arch/x86/kernel/aperture_64.c | 2 +- arch/x86/kernel/pci-calgary_64.c | 10 +--------- arch/x86/kernel/pci-dma.c | 21 +++++++++++++-------- arch/x86/kernel/pci-gart_64.c | 1 + arch/x86/kernel/pci-nommu.c | 9 --------- arch/x86/kernel/pci-swiotlb.c | 7 +++---- drivers/pci/dmar.c | 3 +-- drivers/pci/intel-iommu.c | 6 ++++-- lib/swiotlb.c | 4 +++- 12 files changed, 29 insertions(+), 39 deletions(-)
arch/x86/include/asm/iommu.h +0 -1
@@ -2,7 +2,6 @@#define _ASM_X86_IOMMU_Hstatic inline void iommu_shutdown_noop (void ) {} -extern void no_iommu_init (void );extern struct dma_map_ops nommu_dma_ops;extern int force_iommu, no_iommu;extern int iommu_detected;
arch/x86/kernel/amd_iommu.c +1 -1
@@ -2110,8 +2110,8 @@ int __init amd_iommu_init_dma_ops(void)prealloc_protection_domains (); iommu_detected =1 ; - force_iommu =1 ; bad_dma_address =0 ; + swiotlb =0 ;#ifdef CONFIG_GART_IOMMU gart_iommu_aperture_disabled =1 ; gart_iommu_aperture =0 ;
arch/x86/kernel/amd_iommu_init.c +1 -1
@@ -1330,7 +1330,7 @@ static int __init early_amd_iommu_detect(struct acpi_table_header *table)void __init amd_iommu_detect (void ) { -if (swiotlb || no_iommu || (iommu_detected && !gart_iommu_aperture)) +if (no_iommu || (iommu_detected && !gart_iommu_aperture))return ;if (acpi_table_parse ("IVRS" , early_amd_iommu_detect) ==0 ) {
arch/x86/kernel/aperture_64.c +1 -1
@@ -458,7 +458,7 @@ out:if (aper_alloc) {/* Got the aperture from the AGP bridge */ - }else if (swiotlb && !valid_agp) { + }else if (!valid_agp) {/* Do nothing */ } else if ((!no_iommu && max_pfn > MAX_DMA32_PFN) || force_iommu ||
arch/x86/kernel/pci-calgary_64.c +1 -9
@@ -1360,7 +1360,7 @@ void __init detect_calgary(void)* if the user specified iommu=off or iommu=soft or we found * another HW IOMMU already, bail out. */ -if (swiotlb || no_iommu || iommu_detected) +if (no_iommu || iommu_detected)return ;if (!use_calgary)
@@ -1445,10 +1445,6 @@ void __init detect_calgary(void)printk (KERN_INFO "PCI-DMA: Calgary TCE table spec is %d\n" , specified_table_size); -/* swiotlb for devices that aren't behind the Calgary. */ -if (max_pfn >MAX_DMA32_PFN ) - swiotlb =1 ; - x86_init.iommu.iommu_init = calgary_iommu_init; }return ;
@@ -1476,11 +1472,7 @@ int __init calgary_iommu_init(void)return ret; } - force_iommu =1 ; bad_dma_address =0x0 ; -/* dma_ops is set to swiotlb or nommu */ -if (!dma_ops) - dma_ops = &nommu_dma_ops;return 0 ; }
arch/x86/kernel/pci-dma.c +13 -8
@@ -124,24 +124,24 @@ static void __init dma32_free_bootmem(void)void __init pci_iommu_alloc (void ) { +/* swiotlb is forced by the boot option */ +int use_swiotlb = swiotlb;#ifdef CONFIG_X86_64 /* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif +pci_swiotlb_init (); +if (use_swiotlb) +return ; -/* -* The order of these functions is important for -* fall-back/fail-over reasons -*/ gart_iommu_hole_init ();detect_calgary ();detect_intel_iommu (); +/* needs to be called after gart_iommu_hole_init */ amd_iommu_detect (); - -pci_swiotlb_init (); } void *dma_generic_alloc_coherent(struct device *dev, size_t size,
@@ -291,10 +291,15 @@ static int __init pci_iommu_init(void)#ifdef CONFIG_PCI dma_debug_add_bus (&pci_bus_type);#endif - x86_init.iommu.iommu_init (); -no_iommu_init (); +if (swiotlb) { +printk (KERN_INFO "PCI-DMA: " +"Using software bounce buffering for IO (SWIOTLB)\n" ); +swiotlb_print_info (); + }else +swiotlb_free (); +return 0 ; }/* Must execute after PCI subsystem */
arch/x86/kernel/pci-gart_64.c +1 -0
@@ -833,6 +833,7 @@ int __init gart_iommu_init(void)flush_gart (); dma_ops = &gart_dma_ops; x86_platform.iommu_shutdown = gart_iommu_shutdown; + swiotlb =0 ;return 0 ; }
arch/x86/kernel/pci-nommu.c +0 -9
@@ -103,12 +103,3 @@ struct dma_map_ops nommu_dma_ops = { .sync_sg_for_device = nommu_sync_sg_for_device, .is_phys = 1, }; - -void __init no_iommu_init (void ) -{ -if (dma_ops) -return ; - - force_iommu =0 ;/* no HW IOMMU */ - dma_ops = &nommu_dma_ops; -}
arch/x86/kernel/pci-swiotlb.c +3 -4
@@ -46,13 +46,12 @@ void __init pci_swiotlb_init(void) {/* don't initialize swiotlb if iommu=off (no_iommu=1) */ #ifdef CONFIG_X86_64 -if ((!iommu_detected && !no_iommu && max_pfn >MAX_DMA32_PFN )) +if (!no_iommu && max_pfn >MAX_DMA32_PFN ) swiotlb =1 ;#endif -if (swiotlb_force) - swiotlb =1 ;if (swiotlb) {swiotlb_init (0 ); dma_ops = &swiotlb_dma_ops; - } + }else + dma_ops = &nommu_dma_ops; }
drivers/pci/dmar.c +1 -2
@@ -613,8 +613,7 @@ void __init detect_intel_iommu(void) "x2apic and Intr-remapping.\n");#endif #ifdef CONFIG_DMAR -if (ret && !no_iommu && !iommu_detected && !swiotlb && - !dmar_disabled) +if (ret && !no_iommu && !iommu_detected && !dmar_disabled) iommu_detected =1 ;#endif #ifdef CONFIG_X86
drivers/pci/intel-iommu.c +4 -2
@@ -3231,7 +3231,7 @@ int __init intel_iommu_init(void)* Check the need for DMA-remapping initialization now. * Above initialization will also be used by Interrupt-remapping. */ -if (no_iommu || swiotlb || dmar_disabled) +if (no_iommu || dmar_disabled)return -ENODEV ;iommu_init_mempool ();
@@ -3252,7 +3252,9 @@ int __init intel_iommu_init(void) "PCI-DMA: Intel(R) Virtualization Technology for Directed I/O\n");init_timer (&unmap_timer); - force_iommu =1 ; +#ifdef CONFIG_SWIOTLB + swiotlb =0 ; +#endif dma_ops = &intel_dma_ops;init_iommu_sysfs ();
lib/swiotlb.c +3 -1
@@ -109,8 +109,10 @@ setup_io_tlb_npages(char *str) }if (*str ==',' ) ++str; -if (!strcmp (str,"force" )) +if (!strcmp (str,"force" )) { swiotlb_force =1 ; + swiotlb =1 ; + }return 1 ; }__setup ("swiotlb=" , setup_io_tlb_npages);
PATCH 1/1 x86: fix gart iommu using for amd 64 bit system
after
|commit 75f1cdf1dda92cae037ec848ae63690d91913eac |Author: FUJITA Tomonori <[email protected]> |Date: Tue Nov 10 19:46:20 2009 +0900 | | x86: Handle HW IOMMU initialization failure gracefully | | If HW IOMMU initialization fails (Intel VT-d often does this, | typically due to BIOS bugs), we fall back to nommu. It doesn't | work for the majority since nowadays we have more than 4GB | memory so we must use swiotlb instead of nommu.
...
amd 64 systems that
1. do not have AGP
2. do not have IOMMU
3. mem > 4g
4. BIOS do not allocate correct gart in NB.
will leave them to use SWIOTLB forcely.
also in pci_iommu_alloc()pci_swiotlb_init is stealing the preallocate range that is for gart_iommu_hole workaround.
so restore the sequence...
will get back
[ 0.000000] Your BIOS doesn't leave a aperture memory hole [ 0.000000] Please enable the IOMMU option in the BIOS setup [ 0.000000] This costs you 64 MB of RAM [ 0.000000] Mapping aperture over 65536 KB of RAM @ 20000000
--- arch/x86/kernel/aperture_64.c | 2 +- arch/x86/kernel/pci-dma.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-)
arch/x86/kernel/aperture_64.c +1 -1
@@ -458,7 +458,7 @@ out:if (aper_alloc) {/* Got the aperture from the AGP bridge */ - }else if (!valid_agp) { + }else if (swiotlb && !valid_agp) {/* Do nothing */ } else if ((!no_iommu && max_pfn > MAX_DMA32_PFN) || force_iommu ||
arch/x86/kernel/pci-dma.c +3 -2
@@ -124,11 +124,12 @@ void __init pci_iommu_alloc(void)/* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif +if (!swiotlb_force) +gart_iommu_hole_init (); +if (pci_swiotlb_init ())return ; -gart_iommu_hole_init (); -detect_calgary ();detect_intel_iommu ();
PATCH 1/1 x86: fix gart iommu using for amd 64 bit system -v2
after
|commit 75f1cdf1dda92cae037ec848ae63690d91913eac |Author: FUJITA Tomonori <[email protected]> |Date: Tue Nov 10 19:46:20 2009 +0900 | | x86: Handle HW IOMMU initialization failure gracefully | | If HW IOMMU initialization fails (Intel VT-d often does this, | typically due to BIOS bugs), we fall back to nommu. It doesn't | work for the majority since nowadays we have more than 4GB | memory so we must use swiotlb instead of nommu.
...
amd 64 systems that
1. do not have AGP
2. do not have IOMMU
3. mem > 4g
4. BIOS do not allocate correct gart in NB.
will leave them to use SWIOTLB forcely.
also in pci_iommu_alloc()pci_swiotlb_init is stealing the preallocate range that is for gart_iommu_hole workaround.
so restore the sequence...
will get back
[ 0.000000] Your BIOS doesn't leave a aperture memory hole [ 0.000000] Please enable the IOMMU option in the BIOS setup [ 0.000000] This costs you 64 MB of RAM [ 0.000000] Mapping aperture over 65536 KB of RAM @ 20000000 ... [ 12.702822] calling pci_iommu_init+0x0/0x31 @ 1 [ 12.708728] PCI-DMA: Disabling AGP. [ 12.712812] PCI-DMA: aperture base @ 20000000 size 65536 KB [ 12.718384] PCI-DMA: using GART IOMMU. [ 12.722139] PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture [ 12.736944] initcall pci_iommu_init+0x0/0x31 returned 0 after 28802 usecs
-v2: call shutdown when no agp is there
--- arch/x86/kernel/aperture_64.c | 2 +- arch/x86/kernel/pci-dma.c | 5 +++-- arch/x86/kernel/pci-gart_64.c | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-)
arch/x86/kernel/aperture_64.c +1 -1
@@ -458,7 +458,7 @@ out:if (aper_alloc) {/* Got the aperture from the AGP bridge */ - }else if (!valid_agp) { + }else if (swiotlb && !valid_agp) {/* Do nothing */ } else if ((!no_iommu && max_pfn > MAX_DMA32_PFN) || force_iommu ||
arch/x86/kernel/pci-dma.c +3 -2
@@ -124,11 +124,12 @@ void __init pci_iommu_alloc(void)/* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif +if (!swiotlb_force) +gart_iommu_hole_init (); +if (pci_swiotlb_init ())return ; -gart_iommu_hole_init (); -detect_calgary ();detect_intel_iommu ();
arch/x86/kernel/pci-gart_64.c +2 -1
@@ -710,7 +710,8 @@ static void gart_iommu_shutdown(void)struct pci_dev *dev;int i; -if (no_agp) +/* don't shutdown it if there is AGP installed */ +if (!no_agp)return ;for (i =0 ; i < num_k8_northbridges; i++) {
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
In reply to Yinghai LuQuoted 6 lines · On Sat, 21 Nov 2009 20:24:52 -0800 Yinghai Lu <[email protected]> wrote:
amd 64 systems that
1. do not have AGP
2. do not have IOMMU
3. mem > 4g
4. BIOS do not allocate correct gart in NB.
will leave them to use SWIOTLB forcely.
Sorry, I forgot about this GART workaround.
Quoted 9 lines
Index:
linux-2.6/arch/x86/kernel/pci-dma.c
===================================================================arch/x86/kernel/pci-dma.c +1
-0@@ -124,11 +124,12 @@ void __init pci_iommu_alloc(void)/* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif +if (!swiotlb_force)
arch/x86/kernel/pci-dma.c void __init pci_iommu_alloc(void) · line 135
Quoted 10 lines
arch/x86/kernel/pci-dma.c +2
-2+gart_iommu_hole_init (); +if (pci_swiotlb_init ())return ; -gart_iommu_hole_init (); -detect_calgary ();detect_intel_iommu ();
I prefer to detect all the IOMMU drivers in a consistent way; detecting only GART before swioltb doesn't look nice.
As we did before, we could detect all the IOMMU driver before swiotlb. However, I think that it's better to simply change pci_swiotlb_init() not to steal the preallocate GART workaround memory.
btw, initializing swiotlb before IOMMU detection is useful to GART too? If GART can't allocate the workaround memory, then the kernel panic now. We can use swiotlb instead in that case?
=
From: FUJITA Tomonori <[email protected]>
Subject: [PATCH] x86: stop swiotlb stealing the GART workaround memory
swiotlb wrongly uses the GART workaround memory (for bad BIOS) that dma32_reserv_bootmem allocates. We need to initialize swiotlb before dma32_free_bootmem().
--- arch/x86/kernel/pci-dma.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
arch/x86/kernel/pci-dma.c +5 -1
@@ -120,11 +120,15 @@ static void __init dma32_free_bootmem(void)void __init pci_iommu_alloc (void ) { +int use_swiotlb; + + use_swiotlb =pci_swiotlb_init (); +#ifdef CONFIG_X86_64 /* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif -if (pci_swiotlb_init ()) +if (use_swiotlb)return ;gart_iommu_hole_init ();
Signature · 1 line
1.5.6.5
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
Quoted 68 lines · FUJITA Tomonori
Quoted 6 lines · On Sat, 21 Nov 2009 20:24:52 -0800 Yinghai Lu <[email protected]> wrote:
amd 64 systems that
1. do not have AGP
2. do not have IOMMU
3. mem > 4g
4. BIOS do not allocate correct gart in NB.
will leave them to use SWIOTLB forcely.Sorry, I forgot about this GART workaround.
Quoted 9 lines
Index:
linux-2.6/arch/x86/kernel/pci-dma.c
===================================================================arch/x86/kernel/pci-dma.c +1
-0@@ -124,11 +124,12 @@ void __init pci_iommu_alloc(void)/* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif +if (!swiotlb_force)arch/x86/kernel/pci-dma.c void __init pci_iommu_alloc(void) · line 135
Quoted 10 lines
arch/x86/kernel/pci-dma.c +2
-2+gart_iommu_hole_init (); +if (pci_swiotlb_init ())return ; -gart_iommu_hole_init (); -detect_calgary ();detect_intel_iommu ();I prefer to detect all the IOMMU drivers in a consistent way; detecting only GART before swioltb doesn't look nice.
As we did before, we could detect all the IOMMU driver before swiotlb. However, I think that it's better to simply change
pci_swiotlb_init()not to steal the preallocate GART workaround memory.btw, initializing swiotlb before IOMMU detection is useful to GART too? If GART can't allocate the workaround memory, then the kernel panic now. We can use swiotlb instead in that case?
=
From: FUJITA Tomonori <[email protected]>
Subject: [PATCH] x86: stop swiotlb stealing the GART workaround memoryswiotlb wrongly uses the GART workaround memory (for bad BIOS) that
dma32_reserv_bootmemallocates. We need to initialize swiotlb beforedma32_free_bootmem().Signed-off-by FUJITA Tomonori <[email protected]>--- arch/x86/kernel/pci-dma.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)arch/x86/kernel/pci-dma.c +3
-0@@ -120,11 +120,15 @@ static void __init dma32_free_bootmem(void)void __init pci_iommu_alloc (void ) { +int use_swiotlb; + + use_swiotlb =pci_swiotlb_init ();
arch/x86/kernel/pci-dma.c static void __init dma32_free_bootmem(void) · line 134
Quoted 10 lines
arch/x86/kernel/pci-dma.c +2
-1+#ifdef CONFIG_X86_64 /* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif -if (pci_swiotlb_init ()) +if (use_swiotlb)return ;gart_iommu_hole_init ();
pci_swiotlb_init need be called after dma32_free_bootmem otherwise it could fail for system with lots of memory and numa=off
so dma32_free_bootmem will work for gart_iommu_hole_init and pci_swiotlb_init.. make sure they can get RAM < 4g.
also in gart_iommu_hole_init we need check swiotlb and !valid_agp...
- } else if (!valid_agp) {
+ } else if (swiotlb && !valid_agp) {
otherwise the the workaround will be skipped...
YH
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
Quoted 78 lines · On Tue, 24 Nov 2009 01:19:21 -0800 Yinghai Lu <[email protected]> wrote:
Quoted 77 lines · FUJITA Tomonori
Quoted 6 lines · On Sat, 21 Nov 2009 20:24:52 -0800 Yinghai Lu <[email protected]> wrote:
amd 64 systems that
1. do not have AGP
2. do not have IOMMU
3. mem > 4g
4. BIOS do not allocate correct gart in NB.
will leave them to use SWIOTLB forcely.Sorry, I forgot about this GART workaround.
Quoted 9 lines
Index:
linux-2.6/arch/x86/kernel/pci-dma.c
===================================================================arch/x86/kernel/pci-dma.c +1
-0@@ -124,11 +124,12 @@ void __init pci_iommu_alloc(void)/* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif +if (!swiotlb_force)arch/x86/kernel/pci-dma.c void __init pci_iommu_alloc(void) · line 135
Quoted 10 lines
arch/x86/kernel/pci-dma.c +2
-2+gart_iommu_hole_init (); +if (pci_swiotlb_init ())return ; -gart_iommu_hole_init (); -detect_calgary ();detect_intel_iommu ();I prefer to detect all the IOMMU drivers in a consistent way; detecting only GART before swioltb doesn't look nice.
As we did before, we could detect all the IOMMU driver before swiotlb. However, I think that it's better to simply change
pci_swiotlb_init()not to steal the preallocate GART workaround memory.btw, initializing swiotlb before IOMMU detection is useful to GART too? If GART can't allocate the workaround memory, then the kernel panic now. We can use swiotlb instead in that case?
=
From: FUJITA Tomonori <[email protected]>
Subject: [PATCH] x86: stop swiotlb stealing the GART workaround memoryswiotlb wrongly uses the GART workaround memory (for bad BIOS) that
dma32_reserv_bootmemallocates. We need to initialize swiotlb beforedma32_free_bootmem().Signed-off-by FUJITA Tomonori <[email protected]>--- arch/x86/kernel/pci-dma.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)arch/x86/kernel/pci-dma.c +5
-1@@ -120,11 +120,15 @@ static void __init dma32_free_bootmem(void)void __init pci_iommu_alloc (void ) { +int use_swiotlb; + + use_swiotlb =pci_swiotlb_init (); +#ifdef CONFIG_X86_64 /* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif -if (pci_swiotlb_init ()) +if (use_swiotlb)return ;
Quoted 4 lines
arch/x86/kernel/pci-dma.c static void __init dma32_free_bootmem(void) · line 134
Quoted 1 line
arch/x86/kernel/pci-dma.c +0
-0gart_iommu_hole_init ();
pci_swiotlb_initneed be called afterdma32_free_bootmemotherwise it could fail for system with lots of memory and numa=off
Why? swiotlb needs just 64MB (and some) in DMA32.
swiotlb had been worked fine without that hack until 2.6.26?
Only broken GART needs that hack (and I think that it's better to move that hack to GART code).
Quoted 15 lines
so
dma32_free_bootmemwill work forgart_iommu_hole_initandpci_swiotlb_init.. make sure they can get RAM < 4g.also in
gart_iommu_hole_initwe need check swiotlb and !valid_agp...(quoted diff) +1
-1- } else if (!valid_agp) { + } else if (swiotlb && !valid_agp) {otherwise the the workaround will be skipped...
YH
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
Quoted 83 lines · FUJITA Tomonori
Quoted 76 lines · On Tue, 24 Nov 2009 01:19:21 -0800 Yinghai Lu <[email protected]> wrote:
Quoted 75 lines · FUJITA Tomonori
Quoted 6 lines · On Sat, 21 Nov 2009 20:24:52 -0800 Yinghai Lu <[email protected]> wrote:
amd 64 systems that
1. do not have AGP
2. do not have IOMMU
3. mem > 4g
4. BIOS do not allocate correct gart in NB.
will leave them to use SWIOTLB forcely.Sorry, I forgot about this GART workaround.
Quoted 9 lines
Index:
linux-2.6/arch/x86/kernel/pci-dma.c
===================================================================arch/x86/kernel/pci-dma.c +1
-0@@ -124,11 +124,12 @@ void __init pci_iommu_alloc(void)/* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif +if (!swiotlb_force)arch/x86/kernel/pci-dma.c void __init pci_iommu_alloc(void) · line 135
Quoted 10 lines
arch/x86/kernel/pci-dma.c +2
-2+gart_iommu_hole_init (); +if (pci_swiotlb_init ())return ; -gart_iommu_hole_init (); -detect_calgary ();detect_intel_iommu ();I prefer to detect all the IOMMU drivers in a consistent way; detecting only GART before swioltb doesn't look nice.
As we did before, we could detect all the IOMMU driver before swiotlb. However, I think that it's better to simply change
pci_swiotlb_init()not to steal the preallocate GART workaround memory.btw, initializing swiotlb before IOMMU detection is useful to GART too? If GART can't allocate the workaround memory, then the kernel panic now. We can use swiotlb instead in that case?
=
From: FUJITA Tomonori <[email protected]>
Subject: [PATCH] x86: stop swiotlb stealing the GART workaround memoryswiotlb wrongly uses the GART workaround memory (for bad BIOS) that
dma32_reserv_bootmemallocates. We need to initialize swiotlb beforedma32_free_bootmem().Signed-off-by FUJITA Tomonori <[email protected]>--- arch/x86/kernel/pci-dma.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)arch/x86/kernel/pci-dma.c +5
-1@@ -120,11 +120,15 @@ static void __init dma32_free_bootmem(void)void __init pci_iommu_alloc (void ) { +int use_swiotlb; + + use_swiotlb =pci_swiotlb_init (); +#ifdef CONFIG_X86_64 /* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif -if (pci_swiotlb_init ()) +if (use_swiotlb)return ;Quoted 3 lines
arch/x86/kernel/pci-dma.c static void __init dma32_free_bootmem(void) · line 134
Quoted 1 line
arch/x86/kernel/pci-dma.c +0
-0gart_iommu_hole_init ();
pci_swiotlb_initneed be called afterdma32_free_bootmemotherwise it could fail for system with lots of memory and numa=off
Quoted 6 lines
Why? swiotlb needs just 64MB (and some) in DMA32.
swiotlb had been worked fine without that hack until 2.6.26?
Only broken GART needs that hack (and I think that it's better to move that hack to GART code).
gart iommu workaround will allocate 64M by default.
fail config: like system with 512g and sparse mem, and vmmap.
YH
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
Quoted 86 lines · On Tue, 24 Nov 2009 01:48:54 -0800 Yinghai Lu <[email protected]> wrote:
Quoted 85 lines · FUJITA Tomonori
Quoted 76 lines · On Tue, 24 Nov 2009 01:19:21 -0800 Yinghai Lu <[email protected]> wrote:
Quoted 75 lines · FUJITA Tomonori
Quoted 6 lines · On Sat, 21 Nov 2009 20:24:52 -0800 Yinghai Lu <[email protected]> wrote:
amd 64 systems that
1. do not have AGP
2. do not have IOMMU
3. mem > 4g
4. BIOS do not allocate correct gart in NB.
will leave them to use SWIOTLB forcely.Sorry, I forgot about this GART workaround.
Quoted 9 lines
Index:
linux-2.6/arch/x86/kernel/pci-dma.c
===================================================================arch/x86/kernel/pci-dma.c +1
-0@@ -124,11 +124,12 @@ void __init pci_iommu_alloc(void)/* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif +if (!swiotlb_force)arch/x86/kernel/pci-dma.c void __init pci_iommu_alloc(void) · line 135
Quoted 10 lines
arch/x86/kernel/pci-dma.c +2
-2+gart_iommu_hole_init (); +if (pci_swiotlb_init ())return ; -gart_iommu_hole_init (); -detect_calgary ();detect_intel_iommu ();I prefer to detect all the IOMMU drivers in a consistent way; detecting only GART before swioltb doesn't look nice.
As we did before, we could detect all the IOMMU driver before swiotlb. However, I think that it's better to simply change
pci_swiotlb_init()not to steal the preallocate GART workaround memory.btw, initializing swiotlb before IOMMU detection is useful to GART too? If GART can't allocate the workaround memory, then the kernel panic now. We can use swiotlb instead in that case?
=
From: FUJITA Tomonori <[email protected]>
Subject: [PATCH] x86: stop swiotlb stealing the GART workaround memoryswiotlb wrongly uses the GART workaround memory (for bad BIOS) that
dma32_reserv_bootmemallocates. We need to initialize swiotlb beforedma32_free_bootmem().Signed-off-by FUJITA Tomonori <[email protected]>--- arch/x86/kernel/pci-dma.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)arch/x86/kernel/pci-dma.c +5
-1@@ -120,11 +120,15 @@ static void __init dma32_free_bootmem(void)void __init pci_iommu_alloc (void ) { +int use_swiotlb; + + use_swiotlb =pci_swiotlb_init (); +#ifdef CONFIG_X86_64 /* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif -if (pci_swiotlb_init ()) +if (use_swiotlb)return ;Quoted 3 lines
arch/x86/kernel/pci-dma.c static void __init dma32_free_bootmem(void) · line 134
Quoted 1 line
arch/x86/kernel/pci-dma.c +0
-0gart_iommu_hole_init ();
pci_swiotlb_initneed be called afterdma32_free_bootmemotherwise it could fail for system with lots of memory and numa=offWhy? swiotlb needs just 64MB (and some) in DMA32.
Quoted 8 lines
Quoted 4 lines
swiotlb had been worked fine without that hack until 2.6.26?
Only broken GART needs that hack (and I think that it's better to move that hack to GART code).
gart iommu workaround will allocate 64M by default.
fail config: like system with 512g and sparse mem, and vmmap.
Well, some systems could fail but they can use swiotlb. If users configures their systems not to use swioltb by boot option, it's fair that systems don't work.
We are talking about a rare broken GART BIOS issue. I think that it's much better to remove this hack completely. As VT-d does, we can use swiotlb instead of this GART specific hack. I think that that's saner approach to handle broken IOMMU hardware.
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
Quoted 92 lines · FUJITA Tomonori
Quoted 89 lines · On Tue, 24 Nov 2009 01:48:54 -0800 Yinghai Lu <[email protected]> wrote:
Quoted 88 lines · FUJITA Tomonori
Quoted 76 lines · On Tue, 24 Nov 2009 01:19:21 -0800 Yinghai Lu <[email protected]> wrote:
Quoted 75 lines · FUJITA Tomonori
Quoted 6 lines · On Sat, 21 Nov 2009 20:24:52 -0800 Yinghai Lu <[email protected]> wrote:
amd 64 systems that
1. do not have AGP
2. do not have IOMMU
3. mem > 4g
4. BIOS do not allocate correct gart in NB.
will leave them to use SWIOTLB forcely.Sorry, I forgot about this GART workaround.
Quoted 9 lines
Index:
linux-2.6/arch/x86/kernel/pci-dma.c
===================================================================arch/x86/kernel/pci-dma.c +1
-0@@ -124,11 +124,12 @@ void __init pci_iommu_alloc(void)/* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif +if (!swiotlb_force)arch/x86/kernel/pci-dma.c void __init pci_iommu_alloc(void) · line 135
Quoted 10 lines
arch/x86/kernel/pci-dma.c +2
-2+gart_iommu_hole_init (); +if (pci_swiotlb_init ())return ; -gart_iommu_hole_init (); -detect_calgary ();detect_intel_iommu ();I prefer to detect all the IOMMU drivers in a consistent way; detecting only GART before swioltb doesn't look nice.
As we did before, we could detect all the IOMMU driver before swiotlb. However, I think that it's better to simply change
pci_swiotlb_init()not to steal the preallocate GART workaround memory.btw, initializing swiotlb before IOMMU detection is useful to GART too? If GART can't allocate the workaround memory, then the kernel panic now. We can use swiotlb instead in that case?
=
From: FUJITA Tomonori <[email protected]>
Subject: [PATCH] x86: stop swiotlb stealing the GART workaround memoryswiotlb wrongly uses the GART workaround memory (for bad BIOS) that
dma32_reserv_bootmemallocates. We need to initialize swiotlb beforedma32_free_bootmem().Signed-off-by FUJITA Tomonori <[email protected]>--- arch/x86/kernel/pci-dma.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)arch/x86/kernel/pci-dma.c +5
-1@@ -120,11 +120,15 @@ static void __init dma32_free_bootmem(void)void __init pci_iommu_alloc (void ) { +int use_swiotlb; + + use_swiotlb =pci_swiotlb_init (); +#ifdef CONFIG_X86_64 /* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif -if (pci_swiotlb_init ()) +if (use_swiotlb)return ;Quoted 3 lines
arch/x86/kernel/pci-dma.c static void __init dma32_free_bootmem(void) · line 134
Quoted 1 line
arch/x86/kernel/pci-dma.c +0
-0gart_iommu_hole_init ();
pci_swiotlb_initneed be called afterdma32_free_bootmemotherwise it could fail for system with lots of memory and numa=offWhy? swiotlb needs just 64MB (and some) in DMA32.
swiotlb had been worked fine without that hack until 2.6.26?
Only broken GART needs that hack (and I think that it's better to move that hack to GART code).
Quoted 7 lines
Quoted 3 lines
gart iommu workaround will allocate 64M by default.
fail config: like system with 512g and sparse mem, and vmmap.
Well, some systems could fail but they can use swiotlb. If users configures their systems not to use swioltb by boot option, it's fair that systems don't work.
i mean when 512g and numa = off, even swiotlb could have chance not to get that 64M ram
Quoted 5 lines
We are talking about a rare broken GART BIOS issue. I think that it's much better to remove this hack completely. As VT-d does, we can use swiotlb instead of this GART specific hack. I think that that's saner approach to handle broken IOMMU hardware.
your second patch could break swiotlb...
at GART iommu workaround : it is not rare. a lot of systems have this problem. and that workaround works well for several years.
don't think user will like to use SWIOTLB instead of swiotlb.
that gart iommu hardware is not broken, just those BIOS guys just forget to program it.
here intel vt-d is different, it seems can not make it work just program some hardware register...
please check my v2 patch, to see if it breaks your setup.
YH
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
Quoted 2 lines · On Tue, 24 Nov 2009 02:42:26 -0800 Yinghai Lu <[email protected]> wrote:
at GART iommu workaround : it is not rare. a lot of systems have this problem. and that workaround works well for several years.
swiotlb has worked too.
Quoted 1 line
don't think user will like to use SWIOTLB instead of swiotlb.
I doubt that users care about a way to fix their problems.
Quoted 3 lines
that gart iommu hardware is not broken, just those BIOS guys just forget to program it.
here intel vt-d is different, it seems can not make it work just program some hardware register...
Because BIOS is broken, IIRC. Both cases are pretty similar.
Quoted 1 line
please check my v2 patch, to see if it breaks your setup.
As I said, adding another trick only for GART is not good. And using force_iommu in pci-dma.c is confusing since force_iommu should be used only in X86_64.
The following patch works for you?
arch/x86/include/asm/swiotlb.h +6 -2
@@ -5,13 +5,17 @@#ifdef CONFIG_SWIOTLB extern int swiotlb; -extern int pci_swiotlb_init (void ); +extern int __init pci_swiotlb_detect (void ); +extern void __init pci_swiotlb_init (void );#else #define swiotlb 0 -static inline int pci_swiotlb_init (void ) +static inline int pci_swiotlb_detect (void ) {return 0 ; } +static inline void pci_swiotlb_init (void ) +{ +}#endif static inline void dma_mark_clean (void *addr,size_t size) {}
arch/x86/kernel/aperture_64.c +2 -1
@@ -401,6 +401,7 @@ void __init gart_iommu_hole_init(void) iommu_detected =1 ; gart_iommu_aperture =1 ; + swiotlb =0 ; x86_init.iommu.iommu_init = gart_iommu_init; aper_order = (read_pci_config (bus, slot,3 ,AMD64_GARTAPERTURECTL ) >>1 ) &7 ;
@@ -458,7 +459,7 @@ out:if (aper_alloc) {/* Got the aperture from the AGP bridge */ - }else if (!valid_agp) { + }else if (swiotlb && !valid_agp) {/* Do nothing */ } else if ((!no_iommu && max_pfn > MAX_DMA32_PFN) || force_iommu ||
arch/x86/kernel/pci-dma.c +4 -2
@@ -124,8 +124,8 @@ void __init pci_iommu_alloc(void)/* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif -if (pci_swiotlb_init ()) -return ; +if (pci_swiotlb_detect ()) + goto out;gart_iommu_hole_init ();
@@ -135,6 +135,8 @@ void __init pci_iommu_alloc(void)/* needs to be called after gart_iommu_hole_init */ amd_iommu_detect (); +out: +pci_swiotlb_init (); } void *dma_generic_alloc_coherent(struct device *dev, size_t size,
arch/x86/kernel/pci-gart_64.c +0 -1
@@ -847,7 +847,6 @@ int __init gart_iommu_init(void)flush_gart (); dma_ops = &gart_dma_ops; x86_platform.iommu_shutdown = gart_iommu_shutdown; - swiotlb =0 ;return 0 ; }
arch/x86/kernel/pci-swiotlb.c +7 -4
@@ -43,12 +43,12 @@ static struct dma_map_ops swiotlb_dma_ops = { };/* -* pci_swiotlb_init - initialize swiotlb if necessary +* pci_swiotlb_init - set swiotlb to 1 if necessary * * This returns non-zero if we are forced to use swiotlb (by the boot * option). */ -int __init pci_swiotlb_init (void ) +int __init pci_swiotlb_detect (void ) {/* don't initialize swiotlb if iommu=off (no_iommu=1) */ #ifdef CONFIG_X86_64
@@ -58,10 +58,13 @@ int __init pci_swiotlb_init(void)if (swiotlb_force) swiotlb =1 ; +return swiotlb_force; +} + +void __init pci_swiotlb_init (void ) +{if (swiotlb) {swiotlb_init (0 ); dma_ops = &swiotlb_dma_ops; } - -return swiotlb_force; }
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
Quoted 3 lines · FUJITA Tomonori
Quoted 1 line
don't think user will like to use SWIOTLB instead of swiotlb.
I doubt that users care about a way to fix their problems.
As far as swiotlb vs. GART goes, arguably a non-bouncing hw based solution (GART) is superior to a bouncing one (swiotlb), right?
ngo
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
Quoted 8 lines · Ingo Molnar
Quoted 2 lines · FUJITA Tomonori
Quoted 1 line
don't think user will like to use SWIOTLB instead of swiotlb.
I doubt that users care about a way to fix their problems.
As far as swiotlb vs. GART goes, arguably a non-bouncing hw based solution (GART) is superior to a bouncing one (swiotlb), right?
yes, should use GART if possible.
YH
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
In reply to Ingo MolnarQuoted 9 lines · On Tue, 24 Nov 2009 16:26:45 +0100 Ingo Molnar <[email protected]> wrote:
Quoted 3 lines · FUJITA Tomonori
Quoted 1 line
don't think user will like to use SWIOTLB instead of swiotlb.
I doubt that users care about a way to fix their problems.
As far as swiotlb vs. GART goes, arguably a non-bouncing hw based solution (GART) is superior to a bouncing one (swiotlb), right?
Yeah, but GART is not a real IOMMU that always does address translation. If users want performance, they need 64bit DMA capable devices to skip GART. With such devices, GART and SWIOTLB are same.
So this hacky GART workaround is useful for only people who use non 64bit DMA devices and broken BIOS with GART. IMO, it's not worth having the workaround.
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
Quoted 13 lines · FUJITA Tomonori
Quoted 9 lines · On Tue, 24 Nov 2009 16:26:45 +0100 Ingo Molnar <[email protected]> wrote:
Quoted 3 lines · FUJITA Tomonori
Quoted 1 line
don't think user will like to use SWIOTLB instead of swiotlb.
I doubt that users care about a way to fix their problems.
As far as swiotlb vs. GART goes, arguably a non-bouncing hw based solution (GART) is superior to a bouncing one (swiotlb), right?
Quoted 7 lines
Yeah, but GART is not a real IOMMU that always does address translation. If users want performance, they need 64bit DMA capable devices to skip GART. With such devices, GART and SWIOTLB are same.
So this hacky GART workaround is useful for only people who use non 64bit DMA devices and broken BIOS with GART. IMO, it's not worth having the workaround.
Well, what Yinghai is saying that for that (nonzero) subset of people this change is a regression, and his patch fixes that. We dont do regressions so this needs to be addressed.
Thanks,
Ingo
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
Quoted 20 lines · On Wed, 25 Nov 2009 08:25:04 +0100 Ingo Molnar <[email protected]> wrote:
Quoted 17 lines · FUJITA Tomonori
Quoted 9 lines · On Tue, 24 Nov 2009 16:26:45 +0100 Ingo Molnar <[email protected]> wrote:
Quoted 3 lines · FUJITA Tomonori
Quoted 1 line
don't think user will like to use SWIOTLB instead of swiotlb.
I doubt that users care about a way to fix their problems.
As far as swiotlb vs. GART goes, arguably a non-bouncing hw based solution (GART) is superior to a bouncing one (swiotlb), right?
Yeah, but GART is not a real IOMMU that always does address translation. If users want performance, they need 64bit DMA capable devices to skip GART. With such devices, GART and SWIOTLB are same.
Quoted 7 lines
Quoted 3 lines
So this hacky GART workaround is useful for only people who use non 64bit DMA devices and broken BIOS with GART. IMO, it's not worth having the workaround.
Well, what Yinghai is saying that for that (nonzero) subset of people this change is a regression, and his patch fixes that. We dont do regressions so this needs to be addressed.
OK, I guess that I have to wait until nobody cares about GART.
Anyway, my patch fixes his issue without any regression:
http://marc.info/?l=linux-kernel&m=125907069703595&w=2
I'll post the second version of it after you merge the following fix:
http://marc.info/?l=linux-kernel&m=125910650500523&w=2
Thanks,
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
In reply to FUJITA TomonoriQuoted 66 lines · FUJITA Tomonori
Quoted 2 lines · On Tue, 24 Nov 2009 02:42:26 -0800 Yinghai Lu <[email protected]> wrote:
at GART iommu workaround : it is not rare. a lot of systems have this problem. and that workaround works well for several years.
swiotlb has worked too.
Quoted 1 line
don't think user will like to use SWIOTLB instead of swiotlb.
I doubt that users care about a way to fix their problems.
Quoted 3 lines
that gart iommu hardware is not broken, just those BIOS guys just forget to program it.
here intel vt-d is different, it seems can not make it work just program some hardware register...
Because BIOS is broken, IIRC. Both cases are pretty similar.
Quoted 1 line
please check my v2 patch, to see if it breaks your setup.
As I said, adding another trick only for GART is not good. And using
force_iommuinpci-dma.cis confusing sinceforce_iommushould be used only inX86_64.The following patch works for you?
arch/x86/include/asm/swiotlb.h +6
-2@@ -5,13 +5,17 @@#ifdef CONFIG_SWIOTLB extern int swiotlb; -extern int pci_swiotlb_init (void ); +extern int __init pci_swiotlb_detect (void ); +extern void __init pci_swiotlb_init (void );#else #define swiotlb 0 -static inline int pci_swiotlb_init (void ) +static inline int pci_swiotlb_detect (void ) {return 0 ; } +static inline void pci_swiotlb_init (void ) +{ +}#endif static inline void dma_mark_clean (void *addr,size_t size) {}arch/x86/kernel/aperture_64.c +1
-0@@ -401,6 +401,7 @@ void __init gart_iommu_hole_init(void) iommu_detected =1 ; gart_iommu_aperture =1 ; + swiotlb =0 ; x86_init.iommu.iommu_init = gart_iommu_init; aper_order = (read_pci_config (bus, slot,3 ,AMD64_GARTAPERTURECTL ) >>1 ) &7 ;
arch/x86/kernel/aperture_64.c out: · line 463
Quoted 6 lines
arch/x86/kernel/aperture_64.c +1
-1@@ -458,7 +459,7 @@ out:if (aper_alloc) {/* Got the aperture from the AGP bridge */ - }else if (!valid_agp) { + }else if (swiotlb && !valid_agp) {/* Do nothing */
still have some problem here.
because you set swiotlb to 0 before. it will break iommu=soft
when amd 64bit system, ram > 4g, and no AGP bridge, and BIOS doesn't set gart. if the user set iommu=soft.
old way, kernel will use swiotlb.
so instead set swiotlb before, it seems you should restore
iommu_detected gart_iommu_aperture
swiotlb = 0;
x86_init.iommu.iommu_init
to make swiotlb happy later.
Quoted 43 lines
arch/x86/kernel/aperture_64.c +0
-0} else if ((!no_iommu && max_pfn > MAX_DMA32_PFN) || force_iommu ||arch/x86/kernel/pci-dma.c +4
-2@@ -124,8 +124,8 @@ void __init pci_iommu_alloc(void)/* free the range so iommu could get some range less than 4G */ dma32_free_bootmem ();#endif -if (pci_swiotlb_init ()) -return ; +if (pci_swiotlb_detect ()) + goto out;gart_iommu_hole_init ();@@ -135,6 +135,8 @@ void __init pci_iommu_alloc(void)/* needs to be called after gart_iommu_hole_init */ amd_iommu_detect (); +out: +pci_swiotlb_init (); } void *dma_generic_alloc_coherent(struct device *dev, size_t size,arch/x86/kernel/pci-gart_64.c +0
-1@@ -847,7 +847,6 @@ int __init gart_iommu_init(void)flush_gart (); dma_ops = &gart_dma_ops; x86_platform.iommu_shutdown = gart_iommu_shutdown; - swiotlb =0 ;return 0 ; }arch/x86/kernel/pci-swiotlb.c +0
-0
arch/x86/kernel/pci-swiotlb.c static struct dma_map_ops swiotlb_dma_ops = { · line 46
Quoted 5 lines
arch/x86/kernel/pci-swiotlb.c +1
-1@@ -43,12 +43,12 @@ static struct dma_map_ops swiotlb_dma_ops = { };/* -* pci_swiotlb_init - initialize swiotlb if necessary +* pci_swiotlb_init - set swiotlb to 1 if necessary
pci_swiotlb_detect ?
YH
Re: [PATCH] x86: fix gart iommu using for amd 64 bit system
Quoted 9 lines · On Tue, 24 Nov 2009 10:48:32 -0800 Yinghai Lu <[email protected]> wrote:
arch/x86/kernel/aperture_64.c out: · line 463
Quoted 5 lines
arch/x86/kernel/aperture_64.c +1
-1if (aper_alloc) {/* Got the aperture from the AGP bridge */ - }else if (!valid_agp) { + }else if (swiotlb && !valid_agp) {/* Do nothing */ still have some problem here.
because you set swiotlb to 0 before. it will break iommu=soft
Oops, thanks. However, it's not GART specific issue.
'iommu=soft' is already broken on all the configurations. It should be fixed separately. I've just sent a fix.
Quoted 20 lines
Quoted 20 lines
void *dma_generic_alloc_coherent(struct device *dev,
size_tsize,arch/x86/kernel/pci-gart_64.c +0
-1@@ -847,7 +847,6 @@ int __init gart_iommu_init(void)flush_gart (); dma_ops = &gart_dma_ops; x86_platform.iommu_shutdown = gart_iommu_shutdown; - swiotlb =0 ;return 0 ; }arch/x86/kernel/pci-swiotlb.c +0
-0@@ -43,12 +43,12 @@ static struct dma_map_ops swiotlb_dma_ops = { };
Quoted 5 lines
arch/x86/kernel/pci-swiotlb.c static struct dma_map_ops swiotlb_dma_ops = { · line 46
Quoted 3 lines
arch/x86/kernel/pci-swiotlb.c +1
-1/* -* pci_swiotlb_init - initialize swiotlb if necessary +* pci_swiotlb_init - set swiotlb to 1 if necessary
pci_swiotlb_detect?
I'll fix in the next version.
Quoted 36 lines · FUJITA Tomonori
This patchset is against tip/master.
The first version is:
http://marc.info/?l=linux-kernel&m=125671300920411&w=2
The changes since v1 are:
- replaced Chris' bootmem patches with the 6/9 patch to implement
free_bootmem_latein a simple way (thanks to Pekka).- fixed the bug to break 'iommu=soft' boot opiton (found by Joerg).
- moved
iommu_init_noop()tox86_init.c- added Muli's Acked-by to Calgary patch.
==
arch/ia64/kernel/pci-swiotlb.c | 4 +- arch/powerpc/kernel/setup_32.c | 2 +- arch/powerpc/kernel/setup_64.c | 2 +- arch/x86/include/asm/amd_iommu.h | 2 - arch/x86/include/asm/calgary.h | 2 - arch/x86/include/asm/gart.h | 5 +--- arch/x86/include/asm/iommu.h | 1 - arch/x86/include/asm/x86_init.h | 9 +++++++ arch/x86/kernel/amd_iommu.c | 2 +- arch/x86/kernel/amd_iommu_init.c | 19 +++----------- arch/x86/kernel/aperture_64.c | 4 ++- arch/x86/kernel/pci-calgary_64.c | 19 ++++----------- arch/x86/kernel/pci-dma.c | 27 ++++++++++----------- arch/x86/kernel/pci-gart_64.c | 16 ++++------- arch/x86/kernel/pci-nommu.c | 9 ------- arch/x86/kernel/pci-swiotlb.c | 10 +++---- arch/x86/kernel/x86_init.c | 5 ++++
Quoted 8 lines
drivers/pci/dmar.c | 7 ++++- drivers/pci/intel-iommu.c | 4 +- include/linux/bootmem.h | 1 + include/linux/dmar.h | 10 ------- include/linux/swiotlb.h | 5 ++- lib/swiotlb.c | 49 +++++++++++++++++++++++++++++++------ mm/bootmem.c | 24 ++++++++++++++++++ 24 files changed, 131 insertions(+), 107 deletions(-)
Nice changes! I've applied them to tip:core/iommu (with the small build fix i mentioned in the previous mail) and will push them out later today.
Thanks,
Ingo
hm, one of the swiotlb patches caused this bootup crash:
[ 8.645490] initcall ali_init+0x0/0x40 returned 0 after 61 usecs [ 8.651501] calling amd_init+0x0/0x16 @ 1 [ 8.655620] pata_amd 0000:00:06.0: version 0.4.1 [ 8.660286] BUG: unable to handle kernel NULL pointer dereference at 00000034 [ 8.663572] IP: [<c100617b>] dma_supported+0x3b/0xa4 [ 8.663572] *pde = 00000000 [ 8.663572] Oops: 0000 [#1] SMP [ 8.663572] last sysfs file: [ 8.663572] [ 8.663572] Pid: 1, comm: swapper Not tainted (2.6.32-rc6-tip-02065-gadf90fa-dirty #344) System Product Name [ 8.663572] EIP: 0060:[<c100617b>] EFLAGS: 00010246 CPU: 0 [ 8.663572] EIP is at dma_supported+0x3b/0xa4 [ 8.663572] EAX: f6ce4058 EBX: 00000000 ECX: 00000000 EDX: ffffffff [ 8.663572] ESI: 00000000 EDI: f6ce4000 EBP: f6cbbe1c ESP: f6cbbe10 [ 8.663572] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 8.663572] Process swapper (pid: 1, ti=f6cba000 task=f6cc0000 task.ti=f6cba000) [ 8.663572] Stack: [ 8.663572] c158154e f608c000 ffffffff f6cbbe30 c13e1023 f609ab8c f6ce4058 00000000 [ 8.663572] <0> f6cbbe60 c1581aa7 00000002 f609ab8c 00000003 00000000 f6ce4000 00000010 [ 8.663572] <0> f6ce4000 00000000 f609ab8c f6ce4000 f6cbbe7c c1581c20 f6cbbe8c f6ce4058 [ 8.663572] Call Trace: [ 8.663572] [<c158154e>] ? ata_port_desc+0x4e/0x53 [ 8.663572] [<c13e1023>] ? pci_set_dma_mask+0x23/0x3b [ 8.663572] [<c1581aa7>] ? ata_pci_bmdma_init+0x32/0x133 [ 8.663572] [<c1581c20>] ? ata_pci_sff_prepare_host+0x78/0xaf [ 8.663572] [<c1581cd1>] ? ata_pci_sff_init_one+0x7a/0xe7 [ 8.663572] [<c1595897>] ? amd_init_one+0xec/0xf5 [ 8.663572] [<c13e2a24>] ? local_pci_probe+0x13/0x15 [ 8.663572] [<c13e31f0>] ? pci_device_probe+0x48/0x6b [ 8.663572] [<c1519665>] ? really_probe+0x8e/0x165 [ 8.663572] [<c1519788>] ? driver_probe_device+0x4c/0x82 [ 8.663572] [<c1519806>] ? __driver_attach+0x48/0x64 [ 8.663572] [<c1518ef0>] ? bus_for_each_dev+0x42/0x6c [ 8.663572] [<c1519491>] ? driver_attach+0x19/0x1b [ 8.663572] [<c15197be>] ? __driver_attach+0x0/0x64 [ 8.663572] [<c15188b0>] ? bus_add_driver+0xfe/0x23a [ 8.663572] [<c13ca19f>] ? kset_find_obj+0x23/0x4f [ 8.663572] [<c1519a6b>] ? driver_register+0x7e/0xe5 [ 8.663572] [<c21e3c31>] ? amd_init+0x0/0x16 [ 8.663572] [<c13e33c7>] ? __pci_register_driver+0x3d/0x9a [ 8.663572] [<c21e3c31>] ? amd_init+0x0/0x16 [ 8.663572] [<c21e3c45>] ? amd_init+0x14/0x16 [ 8.663572] [<c1001143>] ? do_one_initcall+0x51/0x136 [ 8.663572] [<c21b7324>] ? do_basic_setup+0x47/0x57 [ 8.663572] [<c21b73ae>] ? kernel_init+0x7a/0xbb [ 8.663572] [<c21b7334>] ? kernel_init+0x0/0xbb [ 8.663572] [<c1002e97>] ? kernel_thread_helper+0x7/0x10 [ 8.663572] Code: 2b c2 83 f9 00 76 24 83 3d f8 38 1b c2 00 7e 1b 8b 58 08 e8 a4 fe 50 00 53 50 68 2e 67 ee c1 e8 16 f9 ad 00 31 db 83 c4 0c eb 62 <8b> 5b 34 85 db 74 06 ff d3 89 c3 eb 55 83 f9 00 77 0a 31 db 81 [ 8.663572] EIP: [<c100617b>] dma_supported+0x3b/0xa4 SS:ESP 0068:f6cbbe10 [ 8.663572] CR2: 0000000000000034
config attached.
Ingo
#
# Automatically generated make config: don't edit # Linux kernel version: 2.6.32-rc6
# Tue Nov 10 12:33:20 2009
#
# CONFIG_64BIT is not setCONFIG_X86_32=y
# CONFIG_X86_64 is not setCONFIG_X86=yCONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_GENERIC_TIME=yCONFIG_GENERIC_CMOS_UPDATE=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=yCONFIG_MMU=yCONFIG_ZONE_DMA=yCONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_IOMAP=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_HWEIGHT=yCONFIG_GENERIC_GPIO=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y CONFIG_GENERIC_CALIBRATE_DELAY=y
# CONFIG_GENERIC_TIME_VSYSCALL is not set CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_DEFAULT_IDLE=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
# CONFIG_HAVE_CPUMASK_OF_CPU_MAP is not set CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y
# CONFIG_ZONE_DMA32 is not set CONFIG_ARCH_POPULATES_NODE_MAP=y
# CONFIG_AUDIT_ARCH is not set CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_HAVE_INTEL_TXT=yCONFIG_GENERIC_HARDIRQS=y CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_PENDING_IRQ=y CONFIG_USE_GENERIC_SMP_HELPERS=y CONFIG_X86_32_SMP=yCONFIG_X86_HT=yCONFIG_X86_TRAMPOLINE=yCONFIG_X86_32_LAZY_GS=yCONFIG_KTIME_SCALAR=y CONFIG_BOOTPARAM_SUPPORT_NOT_WANTED=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y
#
# General setup
#CONFIG_EXPERIMENTAL=yCONFIG_BROKEN_BOOT_ALLOWED4=yCONFIG_BROKEN_BOOT_ALLOWED3=yCONFIG_BROKEN_BOOT_ALLOWED2=y
# CONFIG_BROKEN_BOOT_DISALLOWED is not set
# CONFIG_BROKEN_BOOT_ALLOWED is not set
# CONFIG_BROKEN_BOOT_EUROPE is not set
# CONFIG_BROKEN_BOOT_TITAN is not setCONFIG_LOCK_KERNEL=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=y
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not setCONFIG_KERNEL_LZMA=yCONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not setCONFIG_TASKSTATS=yCONFIG_TASK_DELAY_ACCT=yCONFIG_TASK_XACCT=yCONFIG_TASK_IO_ACCOUNTING=y
# CONFIG_AUDIT is not set
#
# RCU Subsystem
#CONFIG_TREE_RCU=y
# CONFIG_TREE_PREEMPT_RCU is not set
# CONFIG_TINY_RCU is not setCONFIG_RCU_TRACE=yCONFIG_RCU_FANOUT=32CONFIG_RCU_FANOUT_EXACT=yCONFIG_TREE_RCU_TRACE=yCONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=yCONFIG_LOG_BUF_SHIFT=20CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=yCONFIG_GROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=y
# CONFIG_RT_GROUP_SCHED is not setCONFIG_USER_SCHED=y
# CONFIG_CGROUP_SCHED is not setCONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not setCONFIG_CGROUP_NS=yCONFIG_CGROUP_FREEZER=yCONFIG_CGROUP_DEVICE=yCONFIG_CPUSETS=yCONFIG_PROC_PID_CPUSET=yCONFIG_CGROUP_CPUACCT=y
# CONFIG_RESOURCE_COUNTERS is not setCONFIG_SYSFS_DEPRECATED=yCONFIG_SYSFS_DEPRECATED_V2=yCONFIG_RELAY=yCONFIG_NAMESPACES=y
# CONFIG_UTS_NS is not setCONFIG_IPC_NS=yCONFIG_USER_NS=yCONFIG_PID_NS=yCONFIG_NET_NS=yCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=yCONFIG_RD_LZMA=yCONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_SYSCTL=yCONFIG_ANON_INODES=y
# CONFIG_EMBEDDED is not setCONFIG_UID16=yCONFIG_SYSCTL_SYSCALL=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=yCONFIG_KALLSYMS_EXTRA_PASS=yCONFIG_HOTPLUG=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_HAVE_PERF_EVENTS=y
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=y
# CONFIG_EVENT_PROFILE is not setCONFIG_PERF_COUNTERS=yCONFIG_VM_EVENT_COUNTERS=yCONFIG_PCI_QUIRKS=yCONFIG_SLUB_DEBUG=y
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not setCONFIG_SLUB=y
# CONFIG_SLOB is not setCONFIG_PROFILING=yCONFIG_TRACEPOINTS=yCONFIG_OPROFILE=yCONFIG_OPROFILE_IBS=yCONFIG_OPROFILE_EVENT_MULTIPLEX=yCONFIG_HAVE_OPROFILE=yCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_HAVE_DMA_ATTRS=yCONFIG_HAVE_DMA_API_DEBUG=yCONFIG_HAVE_USER_RETURN_NOTIFIER=yCONFIG_HAVE_HW_BREAKPOINT=y
#
# GCOV-based kernel profiling
#CONFIG_SLOW_WORK=yCONFIG_HAVE_GENERIC_DMA_COHERENT=yCONFIG_SLABINFO=yCONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0
# CONFIG_MODULES is not setCONFIG_STOP_MACHINE=yCONFIG_BLOCK=y
# CONFIG_LBDAF is not setCONFIG_BLK_DEV_BSG=yCONFIG_BLK_DEV_INTEGRITY=y
#
# IO Schedulers
#CONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=y
# CONFIG_IOSCHED_DEADLINE is not set
# CONFIG_IOSCHED_CFQ is not setCONFIG_DEFAULT_AS=y
# CONFIG_DEFAULT_DEADLINE is not set
# CONFIG_DEFAULT_CFQ is not set
# CONFIG_DEFAULT_NOOP is not setCONFIG_DEFAULT_IOSCHED="anticipatory"CONFIG_FREEZER=y
#
# Processor type and features
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=yCONFIG_GENERIC_CLOCKEVENTS_BUILD=y
# CONFIG_SMP_SUPPORT is not set
# CONFIG_SPARSE_IRQ is not setCONFIG_X86_MPPARSE=yCONFIG_X86_BIGSMP=y
# CONFIG_X86_EXTENDED_PLATFORM is not setCONFIG_SCHED_OMIT_FRAME_POINTER=y
# CONFIG_PARAVIRT_GUEST is not setCONFIG_MEMTEST=y
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not setCONFIG_M586MMX=y
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_MVIAC7 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not set
# CONFIG_GENERIC_CPU is not set
# CONFIG_X86_GENERIC is not setCONFIG_X86_CPU=yCONFIG_X86_L1_CACHE_BYTES=64CONFIG_X86_INTERNODE_CACHE_BYTES=64CONFIG_X86_CMPXCHG=yCONFIG_X86_L1_CACHE_SHIFT=5CONFIG_X86_XADD=yCONFIG_X86_PPRO_FENCE=yCONFIG_X86_F00F_BUG=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_X86_ALIGNMENT_16=yCONFIG_X86_INTEL_USERCOPY=yCONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_MINIMUM_CPU_FAMILY=5CONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_CYRIX_32=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_CENTAUR=yCONFIG_CPU_SUP_TRANSMETA_32=yCONFIG_CPU_SUP_UMC_32=yCONFIG_HPET_TIMER=yCONFIG_DMI=y
# CONFIG_IOMMU_HELPER is not setCONFIG_IOMMU_API=yCONFIG_NR_CPUS=32CONFIG_SCHED_SMT=yCONFIG_SCHED_MC=y
# CONFIG_PREEMPT_NONE is not setCONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not setCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=yCONFIG_X86_MCE=yCONFIG_X86_MCE_INTEL=y
# CONFIG_X86_MCE_AMD is not set
# CONFIG_X86_ANCIENT_MCE is not setCONFIG_X86_MCE_THRESHOLD=y
# CONFIG_X86_MCE_INJECT is not setCONFIG_X86_THERMAL_VECTOR=yCONFIG_VM86=yCONFIG_I8K=yCONFIG_X86_REBOOTFIXUPS=y
# CONFIG_MICROCODE is not setCONFIG_X86_MSR=yCONFIG_X86_CPUID=yCONFIG_X86_CPU_DEBUG=yCONFIG_UP_WANTED_1=y
# CONFIG_UP_WANTED_2 is not setCONFIG_SMP=y
# CONFIG_NOHIGHMEM is not setCONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not setCONFIG_PAGE_OFFSET=0xC0000000CONFIG_HIGHMEM=y
# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not setCONFIG_NEED_NODE_MEMMAP_SIZE=yCONFIG_ARCH_FLATMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_ARCH_SELECT_MEMORY_MODEL=yCONFIG_ILLEGAL_POINTER_VALUE=0CONFIG_SELECT_MEMORY_MODEL=y
# CONFIG_FLATMEM_MANUAL is not set
# CONFIG_DISCONTIGMEM_MANUAL is not setCONFIG_SPARSEMEM_MANUAL=yCONFIG_SPARSEMEM=yCONFIG_HAVE_MEMORY_PRESENT=yCONFIG_SPARSEMEM_STATIC=y
#
# Memory hotplug is currently incompatible with Software Suspend #CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_PHYS_ADDR_T_64BIT is not set CONFIG_ZONE_DMA_FLAG=1CONFIG_BOUNCE=yCONFIG_VIRT_TO_BUS=yCONFIG_HAVE_MLOCK=yCONFIG_HAVE_MLOCKED_PAGE_BIT=yCONFIG_KSM=yCONFIG_DEFAULT_MMAP_MIN_ADDR=4096
# CONFIG_HIGHPTE is not set CONFIG_X86_CHECK_BIOS_CORRUPTION=y
# CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set CONFIG_X86_RESERVE_LOW_64K=yCONFIG_MATH_EMULATION=yCONFIG_MTRR=y
# CONFIG_MTRR_SANITIZER is not setCONFIG_X86_PAT=yCONFIG_ARCH_USES_PG_UNCACHED=y
# CONFIG_EFI is not set
# CONFIG_SECCOMP is not set
# CONFIG_CC_STACKPROTECTOR is not set
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not setCONFIG_HZ_300=y
# CONFIG_HZ_1000 is not setCONFIG_HZ=300CONFIG_SCHED_HRTICK=yCONFIG_KEXEC=y
# CONFIG_CRASH_DUMP is not setCONFIG_KEXEC_JUMP=yCONFIG_PHYSICAL_START=0x1000000CONFIG_RELOCATABLE=yCONFIG_X86_NEED_RELOCS=y CONFIG_PHYSICAL_ALIGN=0x1000000CONFIG_HOTPLUG_CPU=y
# CONFIG_COMPAT_VDSO is not setCONFIG_CMDLINE_BOOL=yCONFIG_CMDLINE=""CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
#
# Power management and ACPI options
#CONFIG_PM=y
# CONFIG_PM_DEBUG is not setCONFIG_PM_SLEEP_SMP=yCONFIG_PM_SLEEP=y
# CONFIG_SUSPEND is not setCONFIG_HIBERNATION_NVS=yCONFIG_HIBERNATION=yCONFIG_PM_STD_PARTITION=""CONFIG_PM_RUNTIME=yCONFIG_ACPI=yCONFIG_ACPI_SLEEP=yCONFIG_ACPI_PROCFS=yCONFIG_ACPI_PROCFS_POWER=yCONFIG_ACPI_POWER_METER=yCONFIG_ACPI_SYSFS_POWER=yCONFIG_ACPI_PROC_EVENT=y
# CONFIG_ACPI_AC is not setCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_VIDEO=yCONFIG_ACPI_FAN=yCONFIG_ACPI_DOCK=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_HOTPLUG_CPU=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=yCONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_CUSTOM_DSDT is not setCONFIG_ACPI_BLACKLIST_YEAR=0CONFIG_ACPI_DEBUG=y
# CONFIG_ACPI_DEBUG_FUNC_TRACE is not setCONFIG_ACPI_PCI_SLOT=yCONFIG_X86_PM_TIMER=yCONFIG_ACPI_CONTAINER=y
# CONFIG_ACPI_SBS is not setCONFIG_SFI=y
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not setCONFIG_CPU_IDLE=yCONFIG_CPU_IDLE_GOV_LADDER=yCONFIG_CPU_IDLE_GOV_MENU=y
#
# Bus options (PCI etc.)
#CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not setCONFIG_PCI_GODIRECT=y
# CONFIG_PCI_GOOLPC is not set
# CONFIG_PCI_GOANY is not setCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_DOMAINS=yCONFIG_DMAR=y
# CONFIG_DMAR_DEFAULT_ON is not setCONFIG_DMAR_FLOPPY_WA=yCONFIG_PCIEPORTBUS=yCONFIG_PCIEAER=y
# CONFIG_PCIE_ECRC is not setCONFIG_PCIEAER_INJECT=y
# CONFIG_PCIEASPM is not setCONFIG_ARCH_SUPPORTS_MSI=yCONFIG_PCI_MSI=yCONFIG_PCI_LEGACY=yCONFIG_PCI_STUB=yCONFIG_HT_IRQ=yCONFIG_PCI_IOV=yCONFIG_ISA_DMA_API=yCONFIG_ISA=yCONFIG_EISA=yCONFIG_EISA_VLB_PRIMING=yCONFIG_EISA_PCI_EISA=yCONFIG_EISA_VIRTUAL_ROOT=yCONFIG_EISA_NAMES=yCONFIG_MCA=y
# CONFIG_MCA_LEGACY is not set
CONFIG_SCx200=y
# CONFIG_SCx200HR_TIMER is not set
# CONFIG_OLPC is not setCONFIG_K8_NB=yCONFIG_PCCARD=yCONFIG_PCMCIA_DEBUG=yCONFIG_PCMCIA=y
# CONFIG_PCMCIA_LOAD_CIS is not set
# CONFIG_PCMCIA_IOCTL is not setCONFIG_CARDBUS=y
#
# PC-card bridges
#CONFIG_YENTA=yCONFIG_YENTA_O2=yCONFIG_YENTA_RICOH=yCONFIG_YENTA_TI=yCONFIG_YENTA_ENE_TUNE=yCONFIG_YENTA_TOSHIBA=yCONFIG_PD6729=y
# CONFIG_I82092 is not setCONFIG_I82365=y
# CONFIG_TCIC is not setCONFIG_PCMCIA_PROBE=yCONFIG_PCCARD_NONSTATIC=y
# CONFIG_HOTPLUG_PCI is not set
#
# Executable file formats / Emulations
#CONFIG_BINFMT_ELF=yCONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=yCONFIG_HAVE_AOUT=yCONFIG_BINFMT_AOUT=yCONFIG_BINFMT_MISC=yCONFIG_HAVE_ATOMIC_IOMAP=yCONFIG_NET=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_MMAP=yCONFIG_UNIX=yCONFIG_XFRM=yCONFIG_XFRM_USER=yCONFIG_XFRM_SUB_POLICY=yCONFIG_XFRM_MIGRATE=y
# CONFIG_XFRM_STATISTICS is not setCONFIG_XFRM_IPCOMP=yCONFIG_NET_KEY=yCONFIG_NET_KEY_MIGRATE=yCONFIG_INET=yCONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not setCONFIG_IP_FIB_HASH=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=yCONFIG_IP_PNP_BOOTP=yCONFIG_IP_PNP_RARP=yCONFIG_NET_IPIP=yCONFIG_NET_IPGRE=yCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=y
# CONFIG_ARPD is not set
# CONFIG_SYN_COOKIES is not setCONFIG_INET_AH=yCONFIG_INET_ESP=yCONFIG_INET_IPCOMP=yCONFIG_INET_XFRM_TUNNEL=yCONFIG_INET_TUNNEL=y
# CONFIG_INET_XFRM_MODE_TRANSPORT is not setCONFIG_INET_XFRM_MODE_TUNNEL=yCONFIG_INET_XFRM_MODE_BEET=yCONFIG_INET_LRO=y
# CONFIG_INET_DIAG is not setCONFIG_TCP_CONG_ADVANCED=y
# CONFIG_TCP_CONG_BIC is not set
# CONFIG_TCP_CONG_CUBIC is not setCONFIG_TCP_CONG_WESTWOOD=y
# CONFIG_TCP_CONG_HTCP is not setCONFIG_TCP_CONG_HSTCP=yCONFIG_TCP_CONG_HYBLA=yCONFIG_TCP_CONG_VEGAS=yCONFIG_TCP_CONG_SCALABLE=yCONFIG_TCP_CONG_LP=yCONFIG_TCP_CONG_VENO=yCONFIG_TCP_CONG_YEAH=yCONFIG_TCP_CONG_ILLINOIS=y
# CONFIG_DEFAULT_BIC is not set
# CONFIG_DEFAULT_CUBIC is not set
# CONFIG_DEFAULT_HTCP is not set
# CONFIG_DEFAULT_VEGAS is not setCONFIG_DEFAULT_WESTWOOD=y
# CONFIG_DEFAULT_RENO is not setCONFIG_DEFAULT_TCP_CONG="westwood"CONFIG_TCP_MD5SIG=y
# CONFIG_IPV6 is not setCONFIG_NETLABEL=yCONFIG_NETWORK_SECMARK=yCONFIG_NETFILTER=yCONFIG_NETFILTER_DEBUG=yCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=y
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_NETLINK=yCONFIG_NETFILTER_NETLINK_QUEUE=yCONFIG_NETFILTER_NETLINK_LOG=y
# CONFIG_NF_CONNTRACK is not setCONFIG_NETFILTER_XTABLES=y
# CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not setCONFIG_NETFILTER_XT_TARGET_MARK=yCONFIG_NETFILTER_XT_TARGET_NFLOG=yCONFIG_NETFILTER_XT_TARGET_NFQUEUE=yCONFIG_NETFILTER_XT_TARGET_RATEEST=yCONFIG_NETFILTER_XT_TARGET_SECMARK=yCONFIG_NETFILTER_XT_TARGET_TCPMSS=y
# CONFIG_NETFILTER_XT_MATCH_COMMENT is not setCONFIG_NETFILTER_XT_MATCH_DCCP=y
# CONFIG_NETFILTER_XT_MATCH_DSCP is not set
# CONFIG_NETFILTER_XT_MATCH_ESP is not setCONFIG_NETFILTER_XT_MATCH_HASHLIMIT=y
# CONFIG_NETFILTER_XT_MATCH_HL is not setCONFIG_NETFILTER_XT_MATCH_IPRANGE=y
# CONFIG_NETFILTER_XT_MATCH_LENGTH is not set
# CONFIG_NETFILTER_XT_MATCH_LIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_MAC is not setCONFIG_NETFILTER_XT_MATCH_MARK=yCONFIG_NETFILTER_XT_MATCH_MULTIPORT=y
# CONFIG_NETFILTER_XT_MATCH_OWNER is not set
# CONFIG_NETFILTER_XT_MATCH_POLICY is not setCONFIG_NETFILTER_XT_MATCH_PHYSDEV=yCONFIG_NETFILTER_XT_MATCH_PKTTYPE=yCONFIG_NETFILTER_XT_MATCH_QUOTA=yCONFIG_NETFILTER_XT_MATCH_RATEEST=yCONFIG_NETFILTER_XT_MATCH_REALM=y
# CONFIG_NETFILTER_XT_MATCH_RECENT is not setCONFIG_NETFILTER_XT_MATCH_SCTP=yCONFIG_NETFILTER_XT_MATCH_STATISTIC=y
# CONFIG_NETFILTER_XT_MATCH_STRING is not setCONFIG_NETFILTER_XT_MATCH_TCPMSS=yCONFIG_NETFILTER_XT_MATCH_TIME=yCONFIG_NETFILTER_XT_MATCH_U32=y
# CONFIG_NETFILTER_XT_MATCH_OSF is not set
# CONFIG_IP_VS is not set
#
# IP: Netfilter Configuration
#
# CONFIG_NF_DEFRAG_IPV4 is not set
# CONFIG_IP_NF_QUEUE is not set
# CONFIG_IP_NF_IPTABLES is not set
# CONFIG_IP_NF_ARPTABLES is not setCONFIG_BRIDGE_NF_EBTABLES=y
# CONFIG_BRIDGE_EBT_BROUTE is not set
# CONFIG_BRIDGE_EBT_T_FILTER is not setCONFIG_BRIDGE_EBT_T_NAT=yCONFIG_BRIDGE_EBT_802_3=yCONFIG_BRIDGE_EBT_AMONG=yCONFIG_BRIDGE_EBT_ARP=yCONFIG_BRIDGE_EBT_IP=yCONFIG_BRIDGE_EBT_LIMIT=yCONFIG_BRIDGE_EBT_MARK=yCONFIG_BRIDGE_EBT_PKTTYPE=yCONFIG_BRIDGE_EBT_STP=y
# CONFIG_BRIDGE_EBT_VLAN is not set
# CONFIG_BRIDGE_EBT_ARPREPLY is not setCONFIG_BRIDGE_EBT_DNAT=yCONFIG_BRIDGE_EBT_MARK_T=yCONFIG_BRIDGE_EBT_REDIRECT=yCONFIG_BRIDGE_EBT_SNAT=yCONFIG_BRIDGE_EBT_LOG=y
# CONFIG_BRIDGE_EBT_ULOG is not setCONFIG_BRIDGE_EBT_NFLOG=yCONFIG_IP_DCCP=y
#
# DCCP CCIDs Configuration (EXPERIMENTAL)
#CONFIG_IP_DCCP_CCID2_DEBUG=yCONFIG_IP_DCCP_CCID3=y
# CONFIG_IP_DCCP_CCID3_DEBUG is not setCONFIG_IP_DCCP_CCID3_RTO=100CONFIG_IP_DCCP_TFRC_LIB=yCONFIG_IP_SCTP=yCONFIG_SCTP_DBG_MSG=yCONFIG_SCTP_DBG_OBJCNT=yCONFIG_SCTP_HMAC_NONE=y
# CONFIG_SCTP_HMAC_SHA1 is not set
# CONFIG_SCTP_HMAC_MD5 is not setCONFIG_RDS=yCONFIG_RDS_TCP=y
# CONFIG_RDS_DEBUG is not setCONFIG_TIPC=y
# CONFIG_TIPC_ADVANCED is not setCONFIG_TIPC_DEBUG=yCONFIG_ATM=yCONFIG_ATM_CLIP=yCONFIG_ATM_CLIP_NO_ICMP=yCONFIG_ATM_LANE=yCONFIG_ATM_MPOA=y
# CONFIG_ATM_BR2684 is not setCONFIG_STP=yCONFIG_GARP=yCONFIG_BRIDGE=yCONFIG_NET_DSA=yCONFIG_NET_DSA_TAG_DSA=y
# CONFIG_NET_DSA_TAG_EDSA is not set
# CONFIG_NET_DSA_TAG_TRAILER is not setCONFIG_NET_DSA_MV88E6XXX=y
# CONFIG_NET_DSA_MV88E6060 is not setCONFIG_NET_DSA_MV88E6XXX_NEED_PPU=yCONFIG_NET_DSA_MV88E6131=y
# CONFIG_NET_DSA_MV88E6123_61_65 is not setCONFIG_VLAN_8021Q=yCONFIG_VLAN_8021Q_GVRP=y
# CONFIG_DECNET is not setCONFIG_LLC=yCONFIG_LLC2=yCONFIG_IPX=y
# CONFIG_IPX_INTERN is not setCONFIG_ATALK=y
# CONFIG_DEV_APPLETALK is not set
# CONFIG_X25 is not setCONFIG_LAPB=yCONFIG_ECONET=yCONFIG_ECONET_AUNUDP=y
# CONFIG_ECONET_NATIVE is not set
# CONFIG_WAN_ROUTER is not setCONFIG_PHONET=yCONFIG_IEEE802154=y
# CONFIG_NET_SCHED is not setCONFIG_NET_CLS_ROUTE=y
# CONFIG_DCB is not set
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NET_DROP_MONITOR is not setCONFIG_HAMRADIO=y
#
# Packet Radio protocols
#
# CONFIG_AX25 is not setCONFIG_CAN=y
# CONFIG_CAN_RAW is not set
# CONFIG_CAN_BCM is not set
#
# CAN Device Drivers
#CONFIG_CAN_VCAN=yCONFIG_CAN_DEV=yCONFIG_CAN_CALC_BITTIMING=yCONFIG_CAN_SJA1000=yCONFIG_CAN_SJA1000_ISA=y
# CONFIG_CAN_SJA1000_PLATFORM is not setCONFIG_CAN_EMS_PCI=y
# CONFIG_CAN_EMS_USB is not set
# CONFIG_CAN_KVASER_PCI is not setCONFIG_CAN_DEBUG_DEVICES=yCONFIG_IRDA=y
#
# IrDA protocols
#CONFIG_IRLAN=yCONFIG_IRCOMM=yCONFIG_IRDA_ULTRA=y
#
# IrDA options
#CONFIG_IRDA_CACHE_LAST_LSAP=yCONFIG_IRDA_FAST_RR=yCONFIG_IRDA_DEBUG=y
#
# Infrared-port device drivers
#
#
# SIR device drivers
#CONFIG_IRTTY_SIR=y
#
# Dongle support
#
# CONFIG_DONGLE is not setCONFIG_KINGSUN_DONGLE=yCONFIG_KSDAZZLE_DONGLE=y
# CONFIG_KS959_DONGLE is not set
#
# FIR device drivers
#CONFIG_USB_IRDA=y
# CONFIG_SIGMATEL_FIR is not setCONFIG_NSC_FIR=yCONFIG_WINBOND_FIR=yCONFIG_TOSHIBA_FIR=yCONFIG_SMC_IRCC_FIR=yCONFIG_ALI_FIR=yCONFIG_VLSI_FIR=yCONFIG_VIA_FIR=yCONFIG_MCS_FIR=y
# CONFIG_BT is not setCONFIG_AF_RXRPC=yCONFIG_AF_RXRPC_DEBUG=y
# CONFIG_RXKAD is not setCONFIG_WIRELESS=y
# CONFIG_CFG80211 is not setCONFIG_CFG80211_DEFAULT_PS_VALUE=0CONFIG_WIRELESS_OLD_REGULATORY=yCONFIG_WIRELESS_EXT=yCONFIG_WIRELESS_EXT_SYSFS=yCONFIG_LIB80211=yCONFIG_LIB80211_CRYPT_WEP=yCONFIG_LIB80211_CRYPT_CCMP=yCONFIG_LIB80211_CRYPT_TKIP=y
# CONFIG_LIB80211_DEBUG is not set
#
# CFG80211 needs to be enabled for MAC80211
#CONFIG_WIMAX=yCONFIG_WIMAX_DEBUG_LEVEL=8CONFIG_RFKILL=yCONFIG_RFKILL_INPUT=y
#
# Device Drivers
#
#
# Generic Driver Options
#CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"CONFIG_DEVTMPFS=yCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=yCONFIG_FW_LOADER=yCONFIG_FIRMWARE_IN_KERNEL=yCONFIG_EXTRA_FIRMWARE=""
# CONFIG_SYS_HYPERVISOR is not setCONFIG_CONNECTOR=yCONFIG_PROC_EVENTS=y
# CONFIG_PARPORT is not setCONFIG_PNP=yCONFIG_PNP_DEBUG_MESSAGES=y
#
# Protocols
#CONFIG_ISAPNP=y
# CONFIG_PNPBIOS is not setCONFIG_PNPACPI=yCONFIG_BLK_DEV=yCONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not setCONFIG_BLK_CPQ_DA=yCONFIG_BLK_CPQ_CISS_DA=yCONFIG_CISS_SCSI_TAPE=y
# CONFIG_BLK_DEV_DAC960 is not setCONFIG_BLK_DEV_UMEM=y
# CONFIG_BLK_DEV_COW_COMMON is not setCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_DEV_CRYPTOLOOP=yCONFIG_BLK_DEV_NBD=yCONFIG_BLK_DEV_SX8=y
# CONFIG_BLK_DEV_UB is not setCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=4096CONFIG_BLK_DEV_XIP=yCONFIG_CDROM_PKTCDVD=yCONFIG_CDROM_PKTCDVD_BUFFERS=8CONFIG_CDROM_PKTCDVD_WCACHE=yCONFIG_ATA_OVER_ETH=y
# CONFIG_BLK_DEV_HD is not set
# CONFIG_MISC_DEVICES is not setCONFIG_TIFM_CORE=yCONFIG_DELL_LAPTOP=yCONFIG_HAVE_IDE=y
#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not setCONFIG_SCSI=yCONFIG_SCSI_DMA=y
# CONFIG_SCSI_TGT is not set
# CONFIG_SCSI_NETLINK is not setCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=yCONFIG_CHR_DEV_OSST=yCONFIG_BLK_DEV_SR=yCONFIG_BLK_DEV_SR_VENDOR=y
# CONFIG_CHR_DEV_SG is not setCONFIG_CHR_DEV_SCH=yCONFIG_SCSI_MULTI_LUN=yCONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not setCONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=y
# CONFIG_SCSI_FC_ATTRS is not setCONFIG_SCSI_ISCSI_ATTRS=yCONFIG_SCSI_SAS_ATTRS=yCONFIG_SCSI_SAS_LIBSAS=y
# CONFIG_SCSI_SAS_ATA is not setCONFIG_SCSI_SAS_HOST_SMP=y
# CONFIG_SCSI_SAS_LIBSAS_DEBUG is not set
# CONFIG_SCSI_LOWLEVEL is not setCONFIG_SCSI_AIC7XXX=yCONFIG_SCSI_LOWLEVEL_PCMCIA=y
# CONFIG_SCSI_DH is not set
# CONFIG_SCSI_OSD_INITIATOR is not setCONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
# CONFIG_ATA_VERBOSE_ERROR is not setCONFIG_ATA_ACPI=yCONFIG_SATA_PMP=yCONFIG_SATA_AHCI=y
# CONFIG_SATA_SIL24 is not setCONFIG_ATA_SFF=y
# CONFIG_SATA_SVW is not setCONFIG_ATA_PIIX=yCONFIG_SATA_MV=yCONFIG_SATA_NV=yCONFIG_PDC_ADMA=yCONFIG_SATA_QSTOR=yCONFIG_SATA_PROMISE=yCONFIG_SATA_SX4=yCONFIG_SATA_SIL=yCONFIG_SATA_SIS=yCONFIG_SATA_ULI=yCONFIG_SATA_VIA=yCONFIG_SATA_VITESSE=yCONFIG_SATA_INIC162X=y
# CONFIG_PATA_ACPI is not setCONFIG_PATA_ALI=yCONFIG_PATA_AMD=yCONFIG_PATA_ARTOP=yCONFIG_PATA_ATP867X=yCONFIG_PATA_ATIIXP=y
# CONFIG_PATA_CMD640_PCI is not setCONFIG_PATA_CMD64X=yCONFIG_PATA_CS5520=y
# CONFIG_PATA_CS5530 is not set
# CONFIG_PATA_CS5535 is not set
# CONFIG_PATA_CS5536 is not set
# CONFIG_PATA_CYPRESS is not setCONFIG_PATA_EFAR=yCONFIG_ATA_GENERIC=yCONFIG_PATA_HPT366=yCONFIG_PATA_HPT37X=yCONFIG_PATA_HPT3X2N=y
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_ISAPNP is not setCONFIG_PATA_IT821X=yCONFIG_PATA_IT8213=y
# CONFIG_PATA_JMICRON is not setCONFIG_PATA_LEGACY=yCONFIG_PATA_TRIFLEX=yCONFIG_PATA_MARVELL=y
# CONFIG_PATA_MPIIX is not setCONFIG_PATA_OLDPIIX=yCONFIG_PATA_NETCELL=yCONFIG_PATA_NINJA32=y
# CONFIG_PATA_NS87410 is not setCONFIG_PATA_NS87415=yCONFIG_PATA_OPTI=yCONFIG_PATA_OPTIDMA=yCONFIG_PATA_PCMCIA=yCONFIG_PATA_PDC_OLD=yCONFIG_PATA_QDI=yCONFIG_PATA_RADISYS=yCONFIG_PATA_RDC=yCONFIG_PATA_RZ1000=yCONFIG_PATA_SC1200=yCONFIG_PATA_SERVERWORKS=yCONFIG_PATA_PDC2027X=yCONFIG_PATA_SIL680=yCONFIG_PATA_SIS=yCONFIG_PATA_VIA=y
# CONFIG_PATA_WINBOND is not set
# CONFIG_PATA_WINBOND_VLB is not set
# CONFIG_PATA_SCH is not setCONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_AUTODETECT=yCONFIG_MD_LINEAR=yCONFIG_MD_RAID0=y
# CONFIG_MD_RAID1 is not setCONFIG_MD_RAID10=yCONFIG_MD_RAID456=yCONFIG_MULTICORE_RAID456=yCONFIG_MD_RAID6_PQ=y
# CONFIG_ASYNC_RAID6_TEST is not setCONFIG_MD_MULTIPATH=yCONFIG_MD_FAULTY=y
# CONFIG_BLK_DEV_DM is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#
#
# You can enable one or both FireWire driver stacks. #
#
# See the help texts for more information.
#
# CONFIG_FIREWIRE is not setCONFIG_IEEE1394=y
# CONFIG_IEEE1394_OHCI1394 is not setCONFIG_IEEE1394_PCILYNX=y
# CONFIG_IEEE1394_SBP2 is not setCONFIG_IEEE1394_ETH1394_ROM_ENTRY=yCONFIG_IEEE1394_ETH1394=yCONFIG_IEEE1394_RAWIO=yCONFIG_IEEE1394_VERBOSEDEBUG=yCONFIG_I2O=yCONFIG_I2O_LCT_NOTIFY_ON_CHANGES=y
# CONFIG_I2O_EXT_ADAPTEC is not set
# CONFIG_I2O_CONFIG is not setCONFIG_I2O_BUS=yCONFIG_I2O_BLOCK=yCONFIG_I2O_SCSI=yCONFIG_I2O_PROC=yCONFIG_MACINTOSH_DRIVERS=yCONFIG_MAC_EMUMOUSEBTN=yCONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not setCONFIG_MACVLAN=yCONFIG_EQUALIZER=y
# CONFIG_TUN is not setCONFIG_VETH=yCONFIG_NET_SB1000=yCONFIG_ARCNET=y
# CONFIG_ARCNET_1201 is not set
# CONFIG_ARCNET_1051 is not set
# CONFIG_ARCNET_RAW is not setCONFIG_ARCNET_CAP=y
# CONFIG_ARCNET_COM90xx is not set
CONFIG_ARCNET_COM90xxIO=yCONFIG_ARCNET_RIM_I=yCONFIG_ARCNET_COM20020=yCONFIG_ARCNET_COM20020_ISA=y
# CONFIG_ARCNET_COM20020_PCI is not setCONFIG_PHYLIB=y
#
# MII PHY device drivers
#CONFIG_MARVELL_PHY=y
# CONFIG_DAVICOM_PHY is not set CONFIG_QSEMI_PHY=y
# CONFIG_LXT_PHY is not set CONFIG_CICADA_PHY=y
# CONFIG_VITESSE_PHY is not set CONFIG_SMSC_PHY=y
# CONFIG_BROADCOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set CONFIG_REALTEK_PHY=y
# CONFIG_NATIONAL_PHY is not set
# CONFIG_STE10XP is not set CONFIG_LSI_ET1011C_PHY=y
# CONFIG_FIXED_PHY is not set
# CONFIG_MDIO_BITBANG is not set CONFIG_NET_ETHERNET=yCONFIG_MII=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set CONFIG_CASSINI=yCONFIG_NET_VENDOR_3COM=yCONFIG_EL1=yCONFIG_EL2=y
# CONFIG_ELPLUS is not setCONFIG_EL16=yCONFIG_EL3=yCONFIG_3C515=yCONFIG_VORTEX=yCONFIG_TYPHOON=y
# CONFIG_LANCE is not set CONFIG_NET_VENDOR_SMC=y
# CONFIG_ULTRAMCA is not set CONFIG_ULTRA=yCONFIG_ULTRA32=yCONFIG_SMC9194=yCONFIG_ENC28J60=y CONFIG_ENC28J60_WRITEVERIFY=y CONFIG_ETHOC=yCONFIG_NET_VENDOR_RACAL=yCONFIG_NI52=yCONFIG_NI65=yCONFIG_DNET=yCONFIG_NET_TULIP=y
# CONFIG_DE2104X is not set
# CONFIG_TULIP is not setCONFIG_DE4X5=y
# CONFIG_WINBOND_840 is not set
# CONFIG_DM9102 is not set CONFIG_ULI526X=yCONFIG_PCMCIA_XIRCOM=yCONFIG_AT1700=yCONFIG_DEPCA=y
# CONFIG_HP100 is not set
# CONFIG_NET_ISA is not set CONFIG_IBMLANA=y
# CONFIG_IBM_NEW_EMAC_ZMII is not set
# CONFIG_IBM_NEW_EMAC_RGMII is not set
# CONFIG_IBM_NEW_EMAC_TAH is not set
# CONFIG_IBM_NEW_EMAC_EMAC4 is not set
# CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set # CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set # CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set CONFIG_NET_PCI=y
# CONFIG_PCNET32 is not set CONFIG_AMD8111_ETH=y CONFIG_ADAPTEC_STARFIRE=y
# CONFIG_AC3200 is not set
# CONFIG_APRICOT is not setCONFIG_B44=yCONFIG_B44_PCI_AUTOSELECT=y CONFIG_B44_PCICORE_AUTOSELECT=y CONFIG_B44_PCI=yCONFIG_FORCEDETH=y
# CONFIG_FORCEDETH_NAPI is not set
# CONFIG_CS89x0 is not setCONFIG_E100=yCONFIG_LNE390=yCONFIG_FEALNX=y
# CONFIG_NATSEMI is not set CONFIG_NE2K_PCI=yCONFIG_NE3210=y
# CONFIG_ES3210 is not setCONFIG_8139CP=yCONFIG_8139TOO=yCONFIG_8139TOO_PIO=y CONFIG_8139TOO_TUNE_TWISTER=y
# CONFIG_8139TOO_8129 is not set
# CONFIG_8139_OLD_RX_RESET is not set
# CONFIG_R6040 is not set
# CONFIG_SIS900 is not set
# CONFIG_EPIC100 is not set CONFIG_SMSC9420=yCONFIG_SUNDANCE=y
# CONFIG_SUNDANCE_MMIO is not set CONFIG_TLAN=yCONFIG_KS8842=yCONFIG_KS8851=yCONFIG_KS8851_MLL=y
# CONFIG_VIA_RHINE is not set CONFIG_SC92031=y
# CONFIG_ATL2 is not set CONFIG_NETDEV_1000=yCONFIG_ACENIC=y CONFIG_ACENIC_OMIT_TIGON_I=yCONFIG_DL2K=yCONFIG_E1000=yCONFIG_E1000E=yCONFIG_IP1000=yCONFIG_IGB=yCONFIG_IGBVF=yCONFIG_NS83820=y
# CONFIG_HAMACHI is not set CONFIG_YELLOWFIN=yCONFIG_R8169=yCONFIG_R8169_VLAN=yCONFIG_SIS190=yCONFIG_SKGE=y
# CONFIG_SKGE_DEBUG is not set CONFIG_SKY2=y
# CONFIG_SKY2_DEBUG is not set
# CONFIG_VIA_VELOCITY is not set CONFIG_TIGON3=yCONFIG_BNX2=y
# CONFIG_CNIC is not set
# CONFIG_QLA3XXX is not setCONFIG_ATL1=yCONFIG_ATL1E=yCONFIG_ATL1C=yCONFIG_JME=yCONFIG_NETDEV_10000=yCONFIG_MDIO=yCONFIG_CHELSIO_T1=yCONFIG_CHELSIO_T1_1G=y CONFIG_CHELSIO_T3_DEPENDS=y CONFIG_CHELSIO_T3=yCONFIG_ENIC=y
# CONFIG_IXGBE is not set
# CONFIG_IXGB is not set
# CONFIG_S2IO is not set
# CONFIG_MYRI10GE is not setCONFIG_NIU=yCONFIG_MLX4_EN=yCONFIG_MLX4_CORE=yCONFIG_MLX4_DEBUG=y
# CONFIG_TEHUTI is not setCONFIG_BNX2X=yCONFIG_QLGE=y
# CONFIG_SFC is not setCONFIG_BE2NET=yCONFIG_TR=y
# CONFIG_IBMTR is not setCONFIG_IBMOL=y
# CONFIG_IBMLS is not set
# CONFIG_3C359 is not set CONFIG_TMS380TR=y
# CONFIG_TMSPCI is not setCONFIG_SKISA=y
# CONFIG_PROTEON is not setCONFIG_ABYSS=yCONFIG_MADGEMC=yCONFIG_SMCTR=yCONFIG_WLAN=yCONFIG_WLAN_PRE80211=y
# CONFIG_STRIP is not setCONFIG_ARLAN=y
# CONFIG_WAVELAN is not set
# CONFIG_PCMCIA_WAVELAN is not set CONFIG_PCMCIA_NETWAVE=y CONFIG_WLAN_80211=yCONFIG_PCMCIA_RAYCS=y
# CONFIG_LIBERTAS is not setCONFIG_AIRO=yCONFIG_ATMEL=yCONFIG_PCI_ATMEL=y
# CONFIG_PCMCIA_ATMEL is not set
# CONFIG_AIRO_CS is not set CONFIG_PCMCIA_WL3501=yCONFIG_PRISM54=yCONFIG_USB_ZD1201=yCONFIG_HOSTAP=yCONFIG_HOSTAP_FIRMWARE=y CONFIG_HOSTAP_FIRMWARE_NVRAM=y CONFIG_HOSTAP_PLX=yCONFIG_HOSTAP_PCI=yCONFIG_HOSTAP_CS=y
#
# WiMAX Wireless Broadband devices
#
#
# Enable MMC support to see WiMAX SDIO drivers
#
#
# USB Network Adapters
#
# CONFIG_USB_CATC is not setCONFIG_USB_KAWETH=y
# CONFIG_USB_PEGASUS is not setCONFIG_USB_RTL8150=yCONFIG_USB_USBNET=y
# CONFIG_USB_NET_AX8817X is not setCONFIG_USB_NET_CDCETHER=y
# CONFIG_USB_NET_CDC_EEM is not set
# CONFIG_USB_NET_DM9601 is not set
# CONFIG_USB_NET_SMSC95XX is not set
# CONFIG_USB_NET_GL620A is not set
# CONFIG_USB_NET_NET1080 is not setCONFIG_USB_NET_PLUSB=y
# CONFIG_USB_NET_MCS7830 is not setCONFIG_USB_NET_RNDIS_HOST=y
# CONFIG_USB_NET_CDC_SUBSET is not set
# CONFIG_USB_NET_ZAURUS is not setCONFIG_USB_HSO=yCONFIG_USB_NET_INT51X1=yCONFIG_USB_CDC_PHONET=y
# CONFIG_NET_PCMCIA is not set
# CONFIG_WAN is not set
# CONFIG_ATM_DRIVERS is not set
# CONFIG_IEEE802154_DRIVERS is not setCONFIG_FDDI=yCONFIG_DEFXX=yCONFIG_DEFXX_MMIO=y
# CONFIG_SKFP is not set
# CONFIG_HIPPI is not set
# CONFIG_PPP is not setCONFIG_SLIP=y
# CONFIG_SLIP_COMPRESSED is not setCONFIG_SLHC=yCONFIG_SLIP_SMART=y
# CONFIG_SLIP_MODE_SLIP6 is not setCONFIG_NET_FC=yCONFIG_NETCONSOLE=yCONFIG_NETCONSOLE_DYNAMIC=yCONFIG_NETPOLL=yCONFIG_NETPOLL_TRAP=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_VMXNET3=yCONFIG_ISDN=yCONFIG_ISDN_I4L=yCONFIG_ISDN_PPP=yCONFIG_ISDN_PPP_VJ=yCONFIG_ISDN_MPP=yCONFIG_IPPP_FILTER=yCONFIG_ISDN_PPP_BSDCOMP=yCONFIG_ISDN_AUDIO=yCONFIG_ISDN_TTY_FAX=y
#
# ISDN feature submodules
#
# CONFIG_ISDN_DIVERSION is not set
#
# ISDN4Linux hardware drivers
#
#
# Passive cards
#CONFIG_ISDN_DRV_HISAX=y
#
# D-channel protocol features
#CONFIG_HISAX_EURO=yCONFIG_DE_AOC=y
# CONFIG_HISAX_NO_SENDCOMPLETE is not setCONFIG_HISAX_NO_LLC=yCONFIG_HISAX_NO_KEYPAD=yCONFIG_HISAX_1TR6=y
# CONFIG_HISAX_NI1 is not setCONFIG_HISAX_MAX_CARDS=8
#
# HiSax supported cards
#
# CONFIG_HISAX_16_0 is not setCONFIG_HISAX_16_3=yCONFIG_HISAX_TELESPCI=yCONFIG_HISAX_S0BOX=yCONFIG_HISAX_AVM_A1=yCONFIG_HISAX_FRITZPCI=yCONFIG_HISAX_AVM_A1_PCMCIA=y
# CONFIG_HISAX_ELSA is not setCONFIG_HISAX_IX1MICROR2=yCONFIG_HISAX_DIEHLDIVA=yCONFIG_HISAX_ASUSCOM=y
# CONFIG_HISAX_TELEINT is not setCONFIG_HISAX_HFCS=yCONFIG_HISAX_SEDLBAUER=yCONFIG_HISAX_SPORTSTER=y
# CONFIG_HISAX_MIC is not setCONFIG_HISAX_NETJET=yCONFIG_HISAX_NETJET_U=yCONFIG_HISAX_NICCY=yCONFIG_HISAX_ISURF=y
# CONFIG_HISAX_HSTSAPHIR is not set
# CONFIG_HISAX_BKM_A4T is not setCONFIG_HISAX_SCT_QUADRO=yCONFIG_HISAX_GAZEL=yCONFIG_HISAX_HFC_PCI=yCONFIG_HISAX_W6692=y
# CONFIG_HISAX_HFC_SX is not setCONFIG_HISAX_ENTERNOW_PCI=yCONFIG_HISAX_DEBUG=y
#
# HiSax PCMCIA card service modules
#CONFIG_HISAX_SEDLBAUER_CS=yCONFIG_HISAX_AVM_A1_CS=y
# CONFIG_HISAX_TELES_CS is not set
#
# HiSax sub driver modules
#CONFIG_HISAX_ST5481=yCONFIG_HISAX_HFCUSB=yCONFIG_HISAX_HFC4S8S=y
# CONFIG_HISAX_FRITZ_PCIPNP is not set
#
# Active cards
#CONFIG_ISDN_DRV_PCBIT=y
# CONFIG_ISDN_DRV_SC is not setCONFIG_ISDN_DRV_ACT2000=yCONFIG_ISDN_HDLC=yCONFIG_ISDN_CAPI=y
# CONFIG_ISDN_DRV_AVMB1_VERBOSE_REASON is not set
# CONFIG_CAPI_TRACE is not setCONFIG_ISDN_CAPI_MIDDLEWARE=yCONFIG_ISDN_CAPI_CAPI20=y
# CONFIG_ISDN_CAPI_CAPIFS_BOOL is not setCONFIG_ISDN_CAPI_CAPIDRV=y
#
# CAPI hardware drivers
#CONFIG_CAPI_AVM=y
# CONFIG_ISDN_DRV_AVMB1_B1ISA is not setCONFIG_ISDN_DRV_AVMB1_B1PCI=yCONFIG_ISDN_DRV_AVMB1_B1PCIV4=yCONFIG_ISDN_DRV_AVMB1_T1ISA=y
# CONFIG_ISDN_DRV_AVMB1_B1PCMCIA is not set
# CONFIG_ISDN_DRV_AVMB1_T1PCI is not set
# CONFIG_ISDN_DRV_AVMB1_C4 is not set
# CONFIG_CAPI_EICON is not set
# CONFIG_ISDN_DRV_GIGASET is not set
# CONFIG_PHONE is not set
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_FF_MEMLESS=yCONFIG_INPUT_POLLDEV=y
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not setCONFIG_INPUT_EVDEV=yCONFIG_INPUT_EVBUG=y
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ADP5588=yCONFIG_KEYBOARD_ATKBD=y
# CONFIG_QT2160 is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_GPIO is not setCONFIG_KEYBOARD_MATRIX=yCONFIG_KEYBOARD_LM8323=yCONFIG_KEYBOARD_MAX7359=y
# CONFIG_KEYBOARD_NEWTON is not setCONFIG_KEYBOARD_OPENCORES=y
# CONFIG_KEYBOARD_STOWAWAY is not setCONFIG_KEYBOARD_SUNKBD=y
# CONFIG_KEYBOARD_TWL4030 is not setCONFIG_KEYBOARD_XTKBD=yCONFIG_INPUT_MOUSE=y
# CONFIG_MOUSE_PS2 is not setCONFIG_MOUSE_SERIAL=yCONFIG_MOUSE_APPLETOUCH=yCONFIG_MOUSE_BCM5974=y
# CONFIG_MOUSE_INPORT is not setCONFIG_MOUSE_LOGIBM=y
# CONFIG_MOUSE_PC110PAD is not setCONFIG_MOUSE_VSXXXAA=yCONFIG_MOUSE_GPIO=y
# CONFIG_MOUSE_SYNAPTICS_I2C is not set
# CONFIG_INPUT_JOYSTICK is not setCONFIG_INPUT_TABLET=yCONFIG_TABLET_USB_ACECAD=y
# CONFIG_TABLET_USB_AIPTEK is not set
# CONFIG_TABLET_USB_GTCO is not setCONFIG_TABLET_USB_KBTAB=yCONFIG_TABLET_USB_WACOM=yCONFIG_INPUT_TOUCHSCREEN=y
# CONFIG_TOUCHSCREEN_ADS7846 is not setCONFIG_TOUCHSCREEN_AD7877=y
# CONFIG_TOUCHSCREEN_AD7879_I2C is not setCONFIG_TOUCHSCREEN_AD7879_SPI=yCONFIG_TOUCHSCREEN_AD7879=yCONFIG_TOUCHSCREEN_EETI=yCONFIG_TOUCHSCREEN_FUJITSU=yCONFIG_TOUCHSCREEN_GUNZE=yCONFIG_TOUCHSCREEN_ELO=yCONFIG_TOUCHSCREEN_WACOM_W8001=yCONFIG_TOUCHSCREEN_MCS5000=yCONFIG_TOUCHSCREEN_MTOUCH=yCONFIG_TOUCHSCREEN_INEXIO=y
# CONFIG_TOUCHSCREEN_MK712 is not set
# CONFIG_TOUCHSCREEN_HTCPEN is not setCONFIG_TOUCHSCREEN_PENMOUNT=y
# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set
# CONFIG_TOUCHSCREEN_TOUCHWIN is not setCONFIG_TOUCHSCREEN_USB_COMPOSITE=yCONFIG_TOUCHSCREEN_USB_EGALAX=yCONFIG_TOUCHSCREEN_USB_PANJIT=yCONFIG_TOUCHSCREEN_USB_3M=yCONFIG_TOUCHSCREEN_USB_ITM=yCONFIG_TOUCHSCREEN_USB_ETURBO=yCONFIG_TOUCHSCREEN_USB_GUNZE=yCONFIG_TOUCHSCREEN_USB_DMC_TSC10=yCONFIG_TOUCHSCREEN_USB_IRTOUCH=yCONFIG_TOUCHSCREEN_USB_IDEALTEK=yCONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH=yCONFIG_TOUCHSCREEN_USB_GOTOP=yCONFIG_TOUCHSCREEN_USB_JASTEC=y
# CONFIG_TOUCHSCREEN_USB_E2I is not setCONFIG_TOUCHSCREEN_TOUCHIT213=yCONFIG_TOUCHSCREEN_TSC2007=yCONFIG_TOUCHSCREEN_PCAP=y
# CONFIG_INPUT_MISC is not set
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PCIPS2 is not setCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=yCONFIG_GAMEPORT=yCONFIG_GAMEPORT_NS558=yCONFIG_GAMEPORT_L4=y
# CONFIG_GAMEPORT_EMU10K1 is not set
# CONFIG_GAMEPORT_FM801 is not set
#
# Character devices
#CONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_DEVKMEM=y
# CONFIG_SERIAL_NONSTANDARD is not setCONFIG_NOZOMI=y
#
# Serial drivers
#CONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_SERIAL_8250_PCI=yCONFIG_SERIAL_8250_PNP=yCONFIG_SERIAL_8250_CS=yCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_8250_RUNTIME_UARTS=4CONFIG_SERIAL_8250_EXTENDED=y
# CONFIG_SERIAL_8250_MANY_PORTS is not set
# CONFIG_SERIAL_8250_SHARE_IRQ is not set
# CONFIG_SERIAL_8250_DETECT_IRQ is not setCONFIG_SERIAL_8250_RSA=y
# CONFIG_SERIAL_8250_MCA is not set
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MAX3100 is not setCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not setCONFIG_UNIX98_PTYS=yCONFIG_DEVPTS_MULTIPLE_INSTANCES=y
# CONFIG_LEGACY_PTYS is not setCONFIG_IPMI_HANDLER=y
# CONFIG_IPMI_PANIC_EVENT is not set
# CONFIG_IPMI_DEVICE_INTERFACE is not setCONFIG_IPMI_SI=y
# CONFIG_IPMI_WATCHDOG is not setCONFIG_IPMI_POWEROFF=yCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_TIMERIOMEM=y
# CONFIG_HW_RANDOM_INTEL is not setCONFIG_HW_RANDOM_AMD=yCONFIG_HW_RANDOM_GEODE=y
# CONFIG_HW_RANDOM_VIA is not setCONFIG_NVRAM=y
# CONFIG_RTC is not set
# CONFIG_GEN_RTC is not setCONFIG_DTLK=yCONFIG_R3964=y
# CONFIG_APPLICOM is not setCONFIG_SONYPI=y
#
# PCMCIA character devices
#CONFIG_SYNCLINK_CS=y
# CONFIG_CARDMAN_4000 is not setCONFIG_CARDMAN_4040=y
# CONFIG_IPWIRELESS is not set
# CONFIG_MWAVE is not set
CONFIG_SCx200_GPIO=y
# CONFIG_PC8736x_GPIO is not setCONFIG_NSC_GPIO=yCONFIG_CS5535_GPIO=yCONFIG_RAW_DRIVER=yCONFIG_MAX_RAW_DEVS=256
# CONFIG_HPET is not set
# CONFIG_HANGCHECK_TIMER is not set
# CONFIG_TCG_TPM is not setCONFIG_TELCLOCK=yCONFIG_DEVPORT=yCONFIG_I2C=yCONFIG_I2C_BOARDINFO=y
# CONFIG_I2C_COMPAT is not setCONFIG_I2C_CHARDEV=y
# CONFIG_I2C_HELPER_AUTO is not set
#
# I2C Algorithms
#CONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCF=yCONFIG_I2C_ALGOPCA=y
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#CONFIG_I2C_ALI1535=y
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not setCONFIG_I2C_AMD756=y
# CONFIG_I2C_AMD8111 is not setCONFIG_I2C_I801=y
# CONFIG_I2C_ISCH is not setCONFIG_I2C_PIIX4=yCONFIG_I2C_NFORCE2=y
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not setCONFIG_I2C_SIS96X=yCONFIG_I2C_VIA=y
# CONFIG_I2C_VIAPRO is not set
#
# ACPI drivers
#CONFIG_I2C_SCMI=y
#
# I2C system bus drivers (mostly embedded / system-on-chip) #
# CONFIG_I2C_GPIO is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_SIMTEC is not set
#
# External I2C/SMBus adapter drivers
#CONFIG_I2C_PARPORT_LIGHT=yCONFIG_I2C_TAOS_EVM=yCONFIG_I2C_TINY_USB=y
#
# Graphics adapter I2C/DDC channel drivers
#
# CONFIG_I2C_VOODOO3 is not set
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_PCA_PLATFORM=y
CONFIG_SCx200_I2C=y
CONFIG_SCx200_I2C_SCL=12
CONFIG_SCx200_I2C_SDA=13
# CONFIG_SCx200_ACB is not set
#
# Miscellaneous I2C Chip support
#CONFIG_DS1682=yCONFIG_SENSORS_TSL2550=y
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not setCONFIG_I2C_DEBUG_BUS=yCONFIG_I2C_DEBUG_CHIP=yCONFIG_SPI=yCONFIG_SPI_MASTER=y
#
# SPI Master Controller Drivers
#CONFIG_SPI_BITBANG=yCONFIG_SPI_GPIO=y
#
# SPI Protocol Masters
#CONFIG_SPI_SPIDEV=yCONFIG_SPI_TLE62X0=y
#
# PPS support
#CONFIG_PPS=yCONFIG_PPS_DEBUG=yCONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=yCONFIG_GPIOLIB=y
# CONFIG_GPIO_SYSFS is not set
#
# Memory mapped GPIO expanders:
#
#
# I2C GPIO expanders:
#
# CONFIG_GPIO_MAX732X is not setCONFIG_GPIO_PCA953X=yCONFIG_GPIO_PCF857X=yCONFIG_GPIO_TWL4030=y
#
# PCI GPIO expanders:
#CONFIG_GPIO_BT8XX=yCONFIG_GPIO_LANGWELL=y
#
# SPI GPIO expanders:
#CONFIG_GPIO_MAX7301=yCONFIG_GPIO_MCP23S08=yCONFIG_GPIO_MC33880=y
#
# AC97 GPIO expanders:
#CONFIG_W1=yCONFIG_W1_CON=y
#
# 1-wire Bus Masters
#CONFIG_W1_MASTER_MATROX=yCONFIG_W1_MASTER_DS2490=yCONFIG_W1_MASTER_DS2482=yCONFIG_W1_MASTER_GPIO=y
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=yCONFIG_W1_SLAVE_SMEM=yCONFIG_W1_SLAVE_DS2431=y
# CONFIG_W1_SLAVE_DS2433 is not setCONFIG_W1_SLAVE_DS2760=yCONFIG_W1_SLAVE_BQ27000=yCONFIG_POWER_SUPPLY=yCONFIG_POWER_SUPPLY_DEBUG=yCONFIG_PDA_POWER=yCONFIG_BATTERY_DS2760=yCONFIG_BATTERY_DS2782=y
CONFIG_BATTERY_BQ27x00=y
# CONFIG_BATTERY_MAX17040 is not setCONFIG_HWMON=yCONFIG_HWMON_VID=y
# CONFIG_HWMON_DEBUG_CHIP is not set
#
# Native drivers
#CONFIG_SENSORS_ABITUGURU=yCONFIG_SENSORS_ABITUGURU3=y
# CONFIG_SENSORS_AD7414 is not setCONFIG_SENSORS_AD7418=y
# CONFIG_SENSORS_ADCXX is not setCONFIG_SENSORS_ADM1021=yCONFIG_SENSORS_ADM1025=yCONFIG_SENSORS_ADM1026=yCONFIG_SENSORS_ADM1029=yCONFIG_SENSORS_ADM1031=yCONFIG_SENSORS_ADM9240=yCONFIG_SENSORS_ADT7462=y
# CONFIG_SENSORS_ADT7470 is not setCONFIG_SENSORS_ADT7473=yCONFIG_SENSORS_ADT7475=yCONFIG_SENSORS_K8TEMP=yCONFIG_SENSORS_ASB100=yCONFIG_SENSORS_ATXP1=yCONFIG_SENSORS_DS1621=y
# CONFIG_SENSORS_I5K_AMB is not setCONFIG_SENSORS_F71805F=yCONFIG_SENSORS_F71882FG=yCONFIG_SENSORS_F75375S=yCONFIG_SENSORS_FSCHMD=yCONFIG_SENSORS_G760A=yCONFIG_SENSORS_GL518SM=yCONFIG_SENSORS_GL520SM=yCONFIG_SENSORS_CORETEMP=yCONFIG_SENSORS_IBMAEM=yCONFIG_SENSORS_IBMPEX=y
# CONFIG_SENSORS_IT87 is not setCONFIG_SENSORS_LM63=yCONFIG_SENSORS_LM70=y
# CONFIG_SENSORS_LM75 is not setCONFIG_SENSORS_LM77=y
# CONFIG_SENSORS_LM78 is not setCONFIG_SENSORS_LM80=yCONFIG_SENSORS_LM83=yCONFIG_SENSORS_LM85=y
# CONFIG_SENSORS_LM87 is not setCONFIG_SENSORS_LTC4215=yCONFIG_SENSORS_LTC4245=y
# CONFIG_SENSORS_LM95241 is not setCONFIG_SENSORS_MAX1111=yCONFIG_SENSORS_MAX1619=y
# CONFIG_SENSORS_MAX6650 is not set
# CONFIG_SENSORS_PC87360 is not setCONFIG_SENSORS_PC87427=yCONFIG_SENSORS_PCF8591=y
# CONFIG_SENSORS_SHT15 is not setCONFIG_SENSORS_SIS5595=y
# CONFIG_SENSORS_DME1737 is not setCONFIG_SENSORS_SMSC47M1=yCONFIG_SENSORS_SMSC47M192=yCONFIG_SENSORS_SMSC47B397=y
# CONFIG_SENSORS_ADS7828 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_TMP401 is not setCONFIG_SENSORS_TMP421=yCONFIG_SENSORS_VIA686A=yCONFIG_SENSORS_VT1211=yCONFIG_SENSORS_VT8231=y
# CONFIG_SENSORS_W83781D is not setCONFIG_SENSORS_W83791D=yCONFIG_SENSORS_W83792D=y
# CONFIG_SENSORS_W83793 is not setCONFIG_SENSORS_W83L785TS=yCONFIG_SENSORS_W83L786NG=yCONFIG_SENSORS_W83627HF=yCONFIG_SENSORS_W83627EHF=yCONFIG_SENSORS_HDAPS=yCONFIG_SENSORS_APPLESMC=y
#
# ACPI drivers
#CONFIG_SENSORS_ATK0110=y
# CONFIG_SENSORS_LIS3LV02D is not setCONFIG_THERMAL=yCONFIG_THERMAL_HWMON=yCONFIG_WATCHDOG=yCONFIG_WATCHDOG_NOWAYOUT=y
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=yCONFIG_TWL4030_WATCHDOG=yCONFIG_ACQUIRE_WDT=y
# CONFIG_ADVANTECH_WDT is not setCONFIG_ALIM1535_WDT=y
# CONFIG_ALIM7101_WDT is not set
# CONFIG_SC520_WDT is not set
# CONFIG_IB700_WDT is not set
# CONFIG_IBMASR is not set
# CONFIG_WAFER_WDT is not setCONFIG_I6300ESB_WDT=y
# CONFIG_ITCO_WDT is not set
# CONFIG_IT8712F_WDT is not set
# CONFIG_IT87_WDT is not setCONFIG_HP_WATCHDOG=yCONFIG_SC1200_WDT=y
# CONFIG_SCx200_WDT is not set
# CONFIG_PC87413_WDT is not setCONFIG_60XX_WDT=yCONFIG_SBC8360_WDT=yCONFIG_SBC7240_WDT=yCONFIG_CPU5_WDT=yCONFIG_SMSC_SCH311X_WDT=y
# CONFIG_SMSC37B787_WDT is not setCONFIG_W83627HF_WDT=y
# CONFIG_W83877F_WDT is not setCONFIG_W83977F_WDT=y
# CONFIG_MACHZ_WDT is not set
# CONFIG_SBC_EPX_C3_WATCHDOG is not set
#
# ISA-based Watchdog Cards
#CONFIG_PCWATCHDOG=yCONFIG_MIXCOMWD=y
#
# PCI-based Watchdog Cards
#CONFIG_PCIPCWATCHDOG=yCONFIG_WDTPCI=y
#
# USB-based Watchdog Cards
#CONFIG_USBPCWATCHDOG=yCONFIG_SSB_POSSIBLE=y
#
# Sonics Silicon Backplane
#CONFIG_SSB=yCONFIG_SSB_SPROM=yCONFIG_SSB_PCIHOST_POSSIBLE=yCONFIG_SSB_PCIHOST=y
# CONFIG_SSB_B43_PCI_BRIDGE is not setCONFIG_SSB_PCMCIAHOST_POSSIBLE=yCONFIG_SSB_PCMCIAHOST=y
# CONFIG_SSB_DEBUG is not setCONFIG_SSB_DRIVER_PCICORE_POSSIBLE=yCONFIG_SSB_DRIVER_PCICORE=y
#
# Multifunction device drivers
#CONFIG_MFD_CORE=y
# CONFIG_MFD_SM501 is not setCONFIG_HTC_PASIC3=yCONFIG_TPS65010=yCONFIG_TWL4030_CORE=y
# CONFIG_MFD_TMIO is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X is not set
# CONFIG_MFD_PCF50633 is not setCONFIG_MFD_MC13783=yCONFIG_AB3100_CORE=y
# CONFIG_AB3100_OTP is not setCONFIG_EZX_PCAP=yCONFIG_REGULATOR=yCONFIG_REGULATOR_DEBUG=yCONFIG_REGULATOR_FIXED_VOLTAGE=yCONFIG_REGULATOR_VIRTUAL_CONSUMER=y
# CONFIG_REGULATOR_USERSPACE_CONSUMER is not setCONFIG_REGULATOR_BQ24022=y
# CONFIG_REGULATOR_MAX1586 is not set
# CONFIG_REGULATOR_TWL4030 is not setCONFIG_REGULATOR_LP3971=yCONFIG_REGULATOR_PCAP=yCONFIG_REGULATOR_MC13783=yCONFIG_REGULATOR_AB3100=y
# CONFIG_REGULATOR_TPS65023 is not setCONFIG_REGULATOR_TPS6507X=y
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#CONFIG_AGP=yCONFIG_AGP_ALI=y
# CONFIG_AGP_ATI is not setCONFIG_AGP_AMD=yCONFIG_AGP_AMD64=yCONFIG_AGP_INTEL=yCONFIG_AGP_NVIDIA=yCONFIG_AGP_SIS=y
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_AGP_EFFICEON is not setCONFIG_VGA_ARB=yCONFIG_DRM=yCONFIG_DRM_KMS_HELPER=yCONFIG_DRM_TTM=yCONFIG_DRM_TDFX=yCONFIG_DRM_R128=yCONFIG_DRM_RADEON=yCONFIG_DRM_I810=y
# CONFIG_DRM_I830 is not set
# CONFIG_DRM_I915 is not set
# CONFIG_DRM_MGA is not setCONFIG_DRM_SIS=y
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not setCONFIG_VGASTATE=yCONFIG_VIDEO_OUTPUT_CONTROL=yCONFIG_FB=yCONFIG_FIRMWARE_EDID=yCONFIG_FB_DDC=yCONFIG_FB_BOOT_VESA_SUPPORT=yCONFIG_FB_CFB_FILLRECT=yCONFIG_FB_CFB_COPYAREA=yCONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not setCONFIG_FB_SYS_FILLRECT=yCONFIG_FB_SYS_COPYAREA=yCONFIG_FB_SYS_IMAGEBLIT=yCONFIG_FB_FOREIGN_ENDIAN=yCONFIG_FB_BOTH_ENDIAN=y
# CONFIG_FB_BIG_ENDIAN is not set
# CONFIG_FB_LITTLE_ENDIAN is not setCONFIG_FB_SYS_FOPS=yCONFIG_FB_DEFERRED_IO=yCONFIG_FB_SVGALIB=y
# CONFIG_FB_MACMODES is not setCONFIG_FB_BACKLIGHT=yCONFIG_FB_MODE_HELPERS=yCONFIG_FB_TILEBLITTING=y
#
# Frame buffer hardware drivers
#
# CONFIG_FB_PM2 is not setCONFIG_FB_CYBER2000=yCONFIG_FB_ARC=yCONFIG_FB_IMSTT=y
# CONFIG_FB_UVESA is not set
# CONFIG_FB_N411 is not setCONFIG_FB_HGA=y
# CONFIG_FB_HGA_ACCEL is not set
# CONFIG_FB_S1D13XXX is not setCONFIG_FB_NVIDIA=yCONFIG_FB_NVIDIA_I2C=y
# CONFIG_FB_NVIDIA_DEBUG is not set
# CONFIG_FB_NVIDIA_BACKLIGHT is not setCONFIG_FB_RIVA=y
# CONFIG_FB_RIVA_I2C is not setCONFIG_FB_RIVA_DEBUG=yCONFIG_FB_RIVA_BACKLIGHT=yCONFIG_FB_I810=yCONFIG_FB_I810_GTF=y
# CONFIG_FB_I810_I2C is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_ATY128 is not setCONFIG_FB_ATY=yCONFIG_FB_ATY_CT=yCONFIG_FB_ATY_GENERIC_LCD=yCONFIG_FB_ATY_GX=yCONFIG_FB_ATY_BACKLIGHT=y
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not setCONFIG_FB_SIS=yCONFIG_FB_SIS_300=y
# CONFIG_FB_SIS_315 is not set
# CONFIG_FB_VIA is not setCONFIG_FB_NEOMAGIC=yCONFIG_FB_KYRO=y
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not setCONFIG_FB_VT8623=y
# CONFIG_FB_TRIDENT is not setCONFIG_FB_ARK=yCONFIG_FB_PM3=yCONFIG_FB_CARMINE=y
# CONFIG_FB_CARMINE_DRAM_EVAL is not setCONFIG_CARMINE_DRAM_CUSTOM=yCONFIG_FB_GEODE=yCONFIG_FB_GEODE_LX=yCONFIG_FB_GEODE_GX=yCONFIG_FB_GEODE_GX1=yCONFIG_FB_TMIO=y
# CONFIG_FB_TMIO_ACCELL is not setCONFIG_FB_METRONOME=yCONFIG_FB_MB862XX=y
# CONFIG_FB_MB862XX_PCI_GDC is not set
# CONFIG_FB_BROADSHEET is not setCONFIG_BACKLIGHT_LCD_SUPPORT=y
# CONFIG_LCD_CLASS_DEVICE is not setCONFIG_BACKLIGHT_CLASS_DEVICE=yCONFIG_BACKLIGHT_GENERIC=yCONFIG_BACKLIGHT_PROGEAR=yCONFIG_BACKLIGHT_MBP_NVIDIA=y
# CONFIG_BACKLIGHT_SAHARA is not set
#
# Display device support
#CONFIG_DISPLAY_SUPPORT=y
#
# Display hardware drivers
#
#
# Console display driver support
#CONFIG_VGA_CONSOLE=y CONFIG_VGACON_SOFT_SCROLLBACK=y CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64 CONFIG_DUMMY_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y CONFIG_FONTS=y
# CONFIG_FONT_8x8 is not set CONFIG_FONT_8x16=y
# CONFIG_FONT_6x11 is not set CONFIG_FONT_7x14=y
CONFIG_FONT_PEARL_8x8=y CONFIG_FONT_ACORN_8x8=y CONFIG_FONT_MINI_4x6=y
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set CONFIG_FONT_10x18=yCONFIG_LOGO=yCONFIG_LOGO_LINUX_MONO=y CONFIG_LOGO_LINUX_VGA16=y CONFIG_LOGO_LINUX_CLUT224=yCONFIG_SOUND=yCONFIG_SOUND_OSS_CORE=y CONFIG_SOUND_OSS_CORE_PRECLAIM=yCONFIG_SND=yCONFIG_SND_TIMER=yCONFIG_SND_PCM=yCONFIG_SND_HWDEP=yCONFIG_SND_RAWMIDI=yCONFIG_SND_SEQUENCER=y
# CONFIG_SND_SEQ_DUMMY is not set CONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=yCONFIG_SND_PCM_OSS=y CONFIG_SND_PCM_OSS_PLUGINS=y CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_HRTIMER is not set
# CONFIG_SND_DYNAMIC_MINORS is not set CONFIG_SND_SUPPORT_OLD_API=y
# CONFIG_SND_VERBOSE_PROCFS is not set CONFIG_SND_VERBOSE_PRINTK=y CONFIG_SND_DEBUG=y
# CONFIG_SND_DEBUG_VERBOSE is not set CONFIG_SND_DMA_SGBUF=y CONFIG_SND_RAWMIDI_SEQ=y
# CONFIG_SND_OPL3_LIB_SEQ is not set
# CONFIG_SND_OPL4_LIB_SEQ is not set
# CONFIG_SND_SBAWE_SEQ is not set
# CONFIG_SND_EMU10K1_SEQ is not set
# CONFIG_SND_DRIVERS is not set
# CONFIG_SND_ISA is not set
# CONFIG_SND_PCI is not setCONFIG_SND_SPI=yCONFIG_SND_USB=yCONFIG_SND_USB_AUDIO=yCONFIG_SND_USB_USX2Y=yCONFIG_SND_USB_CAIAQ=y CONFIG_SND_USB_CAIAQ_INPUT=y CONFIG_SND_USB_US122L=y
# CONFIG_SND_PCMCIA is not set
# CONFIG_SND_SOC is not set CONFIG_SOUND_PRIME=yCONFIG_SOUND_OSS=yCONFIG_SOUND_TRACEINIT=yCONFIG_SOUND_DMAP=y
# CONFIG_SOUND_SSCAPE is not set CONFIG_SOUND_VMIDI=yCONFIG_SOUND_TRIX=y
# CONFIG_SOUND_MSS is not set CONFIG_SOUND_MPU401=yCONFIG_SOUND_PAS=yCONFIG_PAS_JOYSTICK=yCONFIG_SOUND_PSS=y
# CONFIG_PSS_MIXER is not set CONFIG_SOUND_SB=y
# CONFIG_SOUND_YM3812 is not set CONFIG_SOUND_UART6850=y CONFIG_SOUND_AEDSP16=yCONFIG_SC6600=yCONFIG_SC6600_JOY=yCONFIG_SC6600_CDROM=4 CONFIG_SC6600_CDROMBASE=0 CONFIG_SOUND_KAHLUA=yCONFIG_HID_SUPPORT=yCONFIG_HID=y
# CONFIG_HIDRAW is not set
#
# USB Input Devices
#CONFIG_USB_HID=yCONFIG_HID_PID=yCONFIG_USB_HIDDEV=yCONFIG_USB_MOUSE=y
#
# Special HID drivers
#CONFIG_HID_A4TECH=yCONFIG_HID_APPLE=yCONFIG_HID_BELKIN=yCONFIG_HID_CHERRY=yCONFIG_HID_CHICONY=yCONFIG_HID_CYPRESS=yCONFIG_HID_DRAGONRISE=yCONFIG_DRAGONRISE_FF=yCONFIG_HID_EZKEY=yCONFIG_HID_KYE=yCONFIG_HID_GYRATION=yCONFIG_HID_TWINHAN=yCONFIG_HID_KENSINGTON=yCONFIG_HID_LOGITECH=y
# CONFIG_LOGITECH_FF is not set
# CONFIG_LOGIRUMBLEPAD2_FF is not setCONFIG_HID_MICROSOFT=yCONFIG_HID_MONTEREY=yCONFIG_HID_NTRIG=yCONFIG_HID_PANTHERLORD=yCONFIG_PANTHERLORD_FF=yCONFIG_HID_PETALYNX=yCONFIG_HID_SAMSUNG=yCONFIG_HID_SONY=yCONFIG_HID_SUNPLUS=yCONFIG_HID_GREENASIA=y
# CONFIG_GREENASIA_FF is not setCONFIG_HID_SMARTJOYPLUS=y
# CONFIG_SMARTJOYPLUS_FF is not setCONFIG_HID_TOPSEED=yCONFIG_HID_THRUSTMASTER=yCONFIG_THRUSTMASTER_FF=yCONFIG_HID_ZEROPLUS=yCONFIG_ZEROPLUS_FF=yCONFIG_USB_SUPPORT=yCONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB_ARCH_HAS_OHCI=yCONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB=y
# CONFIG_USB_DEBUG is not setCONFIG_USB_ANNOUNCE_NEW_DEVICES=y
#
# Miscellaneous USB options
#
# CONFIG_USB_DEVICEFS is not setCONFIG_USB_DEVICE_CLASS=yCONFIG_USB_DYNAMIC_MINORS=y
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_OTG is not set
# CONFIG_USB_MON is not setCONFIG_USB_WUSB=yCONFIG_USB_WUSB_CBAF=yCONFIG_USB_WUSB_CBAF_DEBUG=y
#
# USB Host Controller Drivers
#CONFIG_USB_C67X00_HCD=y
# CONFIG_USB_XHCI_HCD is not setCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=yCONFIG_USB_EHCI_TT_NEWSCHED=yCONFIG_USB_OXU210HP_HCD=yCONFIG_USB_ISP116X_HCD=yCONFIG_USB_ISP1760_HCD=yCONFIG_USB_ISP1362_HCD=yCONFIG_USB_OHCI_HCD=y
# CONFIG_USB_OHCI_HCD_SSB is not set
# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
# CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not setCONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_UHCI_HCD=yCONFIG_USB_U132_HCD=yCONFIG_USB_SL811_HCD=yCONFIG_USB_SL811_CS=yCONFIG_USB_R8A66597_HCD=yCONFIG_USB_HWA_HCD=y
#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not setCONFIG_USB_PRINTER=yCONFIG_USB_WDM=yCONFIG_USB_TMC=y
#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may #
#
# also be needed; see USB_STORAGE Help for more info # # CONFIG_USB_STORAGE is not set # CONFIG_USB_LIBUSUAL is not set
#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not setCONFIG_USB_MICROTEK=y
#
# USB port drivers
#CONFIG_USB_SERIAL=yCONFIG_USB_SERIAL_CONSOLE=yCONFIG_USB_EZUSB=yCONFIG_USB_SERIAL_GENERIC=y
# CONFIG_USB_SERIAL_AIRCABLE is not set
# CONFIG_USB_SERIAL_ARK3116 is not set
# CONFIG_USB_SERIAL_BELKIN is not setCONFIG_USB_SERIAL_CH341=y
# CONFIG_USB_SERIAL_WHITEHEAT is not setCONFIG_USB_SERIAL_DIGI_ACCELEPORT=yCONFIG_USB_SERIAL_CP210X=yCONFIG_USB_SERIAL_CYPRESS_M8=yCONFIG_USB_SERIAL_EMPEG=yCONFIG_USB_SERIAL_FTDI_SIO=yCONFIG_USB_SERIAL_FUNSOFT=yCONFIG_USB_SERIAL_VISOR=yCONFIG_USB_SERIAL_IPAQ=y
# CONFIG_USB_SERIAL_IR is not set
# CONFIG_USB_SERIAL_EDGEPORT is not setCONFIG_USB_SERIAL_EDGEPORT_TI=yCONFIG_USB_SERIAL_GARMIN=y
# CONFIG_USB_SERIAL_IPW is not setCONFIG_USB_SERIAL_IUU=yCONFIG_USB_SERIAL_KEYSPAN_PDA=yCONFIG_USB_SERIAL_KEYSPAN=y
# CONFIG_USB_SERIAL_KEYSPAN_MPR is not set
# CONFIG_USB_SERIAL_KEYSPAN_USA28 is not set
# CONFIG_USB_SERIAL_KEYSPAN_USA28X is not set
# CONFIG_USB_SERIAL_KEYSPAN_USA28XA is not setCONFIG_USB_SERIAL_KEYSPAN_USA28XB=yCONFIG_USB_SERIAL_KEYSPAN_USA19=yCONFIG_USB_SERIAL_KEYSPAN_USA18X=yCONFIG_USB_SERIAL_KEYSPAN_USA19W=y
# CONFIG_USB_SERIAL_KEYSPAN_USA19QW is not set
# CONFIG_USB_SERIAL_KEYSPAN_USA19QI is not set
# CONFIG_USB_SERIAL_KEYSPAN_USA49W is not set
# CONFIG_USB_SERIAL_KEYSPAN_USA49WLC is not set
# CONFIG_USB_SERIAL_KLSI is not set
# CONFIG_USB_SERIAL_KOBIL_SCT is not setCONFIG_USB_SERIAL_MCT_U232=yCONFIG_USB_SERIAL_MOS7720=y
# CONFIG_USB_SERIAL_MOS7840 is not set
# CONFIG_USB_SERIAL_MOTOROLA is not set
# CONFIG_USB_SERIAL_NAVMAN is not setCONFIG_USB_SERIAL_PL2303=yCONFIG_USB_SERIAL_OTI6858=y
# CONFIG_USB_SERIAL_QUALCOMM is not setCONFIG_USB_SERIAL_SPCP8X5=yCONFIG_USB_SERIAL_HP4X=yCONFIG_USB_SERIAL_SAFE=yCONFIG_USB_SERIAL_SAFE_PADDED=y
# CONFIG_USB_SERIAL_SIEMENS_MPI is not set
# CONFIG_USB_SERIAL_SIERRAWIRELESS is not setCONFIG_USB_SERIAL_SYMBOL=y
# CONFIG_USB_SERIAL_TI is not setCONFIG_USB_SERIAL_CYBERJACK=yCONFIG_USB_SERIAL_XIRCOM=yCONFIG_USB_SERIAL_OPTION=y
# CONFIG_USB_SERIAL_OMNINET is not setCONFIG_USB_SERIAL_OPTICON=yCONFIG_USB_SERIAL_DEBUG=y
#
# USB Miscellaneous drivers
#CONFIG_USB_EMI62=yCONFIG_USB_EMI26=y
# CONFIG_USB_ADUTUX is not setCONFIG_USB_SEVSEG=yCONFIG_USB_RIO500=y
# CONFIG_USB_LEGOTOWER is not setCONFIG_USB_LCD=y
# CONFIG_USB_BERRY_CHARGE is not set
# CONFIG_USB_LED is not setCONFIG_USB_CYPRESS_CY7C63=yCONFIG_USB_CYTHERM=y
# CONFIG_USB_IDMOUSE is not setCONFIG_USB_FTDI_ELAN=yCONFIG_USB_APPLEDISPLAY=yCONFIG_USB_SISUSBVGA=y
# CONFIG_USB_SISUSBVGA_CON is not set
# CONFIG_USB_LD is not setCONFIG_USB_TRANCEVIBRATOR=yCONFIG_USB_IOWARRIOR=yCONFIG_USB_TEST=y
# CONFIG_USB_ISIGHTFW is not setCONFIG_USB_VST=y
# CONFIG_USB_ATM is not set
#
# OTG and related infrastructure
#CONFIG_USB_OTG_UTILS=yCONFIG_USB_GPIO_VBUS=y
# CONFIG_NOP_USB_XCEIV is not setCONFIG_UWB=yCONFIG_UWB_HWA=y
# CONFIG_UWB_WHCI is not setCONFIG_UWB_WLP=yCONFIG_UWB_I1480U=yCONFIG_UWB_I1480U_WLP=y
# CONFIG_MMC is not setCONFIG_MEMSTICK=yCONFIG_MEMSTICK_DEBUG=y
#
# MemoryStick drivers
#CONFIG_MEMSTICK_UNSAFE_RESUME=y
# CONFIG_MSPRO_BLOCK is not set
#
# MemoryStick Host Controller Drivers
#CONFIG_MEMSTICK_TIFM_MS=yCONFIG_MEMSTICK_JMICRON_38X=yCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=y
#
# LED drivers
#
# CONFIG_LEDS_NET48XX is not set
# CONFIG_LEDS_WRAP is not setCONFIG_LEDS_ALIX2=y
# CONFIG_LEDS_PCA9532 is not setCONFIG_LEDS_GPIO=y
# CONFIG_LEDS_GPIO_PLATFORM is not set
# CONFIG_LEDS_LP3944 is not setCONFIG_LEDS_CLEVO_MAIL=yCONFIG_LEDS_PCA955X=y
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_BD2802 is not set
#
# LED Triggers
#
# CONFIG_LEDS_TRIGGERS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not setCONFIG_EDAC=y
#
# Reporting subsystems
#CONFIG_EDAC_DEBUG=yCONFIG_EDAC_DEBUG_VERBOSE=y
# CONFIG_EDAC_DECODE_MCE is not setCONFIG_EDAC_MM_EDAC=yCONFIG_EDAC_AMD76X=y
# CONFIG_EDAC_E7XXX is not setCONFIG_EDAC_E752X=yCONFIG_EDAC_I82875P=yCONFIG_EDAC_I82975X=yCONFIG_EDAC_I3000=yCONFIG_EDAC_I3200=yCONFIG_EDAC_X38=yCONFIG_EDAC_I5400=yCONFIG_EDAC_I82860=yCONFIG_EDAC_R82600=yCONFIG_EDAC_I5000=y
# CONFIG_EDAC_I5100 is not set
# CONFIG_RTC_CLASS is not set
# CONFIG_DMADEVICES is not setCONFIG_AUXDISPLAY=yCONFIG_UIO=yCONFIG_UIO_CIF=yCONFIG_UIO_PDRV=y
# CONFIG_UIO_PDRV_GENIRQ is not set
# CONFIG_UIO_SMX is not setCONFIG_UIO_AEC=y
# CONFIG_UIO_SERCOS3 is not set
# CONFIG_UIO_PCI_GENERIC is not set
#
# TI VLYNQ
#CONFIG_X86_PLATFORM_DEVICES=yCONFIG_ACER_WMI=yCONFIG_DELL_WMI=yCONFIG_FUJITSU_LAPTOP=yCONFIG_FUJITSU_LAPTOP_DEBUG=yCONFIG_TC1100_WMI=yCONFIG_HP_WMI=yCONFIG_MSI_LAPTOP=yCONFIG_PANASONIC_LAPTOP=yCONFIG_COMPAL_LAPTOP=yCONFIG_SONY_LAPTOP=yCONFIG_SONYPI_COMPAT=yCONFIG_THINKPAD_ACPI=yCONFIG_THINKPAD_ACPI_DEBUGFACILITIES=yCONFIG_THINKPAD_ACPI_DEBUG=y
# CONFIG_THINKPAD_ACPI_UNSAFE_LEDS is not setCONFIG_THINKPAD_ACPI_VIDEO=yCONFIG_THINKPAD_ACPI_HOTKEY_POLL=y
# CONFIG_INTEL_MENLOW is not setCONFIG_ACPI_WMI=yCONFIG_ACPI_ASUS=y
# CONFIG_TOPSTAR_LAPTOP is not set
# CONFIG_ACPI_TOSHIBA is not set
#
# Firmware Drivers
#
# CONFIG_EDD is not setCONFIG_FIRMWARE_MEMMAP=yCONFIG_DELL_RBU=yCONFIG_DCDBAS=y
# CONFIG_DMIID is not setCONFIG_ISCSI_IBFT_FIND=y
# CONFIG_ISCSI_IBFT is not set
#
# File systems
#CONFIG_EXT2_FS=yCONFIG_EXT2_FS_XATTR=yCONFIG_EXT2_FS_POSIX_ACL=yCONFIG_EXT2_FS_SECURITY=y
# CONFIG_EXT2_FS_XIP is not setCONFIG_EXT3_FS=yCONFIG_EXT3_DEFAULTS_TO_ORDERED=yCONFIG_EXT3_FS_XATTR=yCONFIG_EXT3_FS_POSIX_ACL=yCONFIG_EXT3_FS_SECURITY=y
# CONFIG_EXT4_FS is not setCONFIG_JBD=yCONFIG_JBD_DEBUG=yCONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not setCONFIG_FS_MBCACHE=yCONFIG_REISERFS_FS=yCONFIG_REISERFS_CHECK=yCONFIG_REISERFS_PROC_INFO=yCONFIG_REISERFS_FS_XATTR=y
# CONFIG_REISERFS_FS_POSIX_ACL is not setCONFIG_REISERFS_FS_SECURITY=yCONFIG_JFS_FS=yCONFIG_JFS_POSIX_ACL=yCONFIG_JFS_SECURITY=yCONFIG_JFS_DEBUG=yCONFIG_JFS_STATISTICS=yCONFIG_FS_POSIX_ACL=yCONFIG_XFS_FS=yCONFIG_XFS_QUOTA=yCONFIG_XFS_POSIX_ACL=yCONFIG_XFS_RT=yCONFIG_XFS_DEBUG=yCONFIG_OCFS2_FS=yCONFIG_OCFS2_FS_O2CB=yCONFIG_OCFS2_FS_STATS=yCONFIG_OCFS2_DEBUG_MASKLOG=yCONFIG_OCFS2_DEBUG_FS=yCONFIG_OCFS2_FS_POSIX_ACL=yCONFIG_BTRFS_FS=yCONFIG_BTRFS_FS_POSIX_ACL=yCONFIG_NILFS2_FS=yCONFIG_FILE_LOCKING=yCONFIG_FSNOTIFY=yCONFIG_DNOTIFY=yCONFIG_INOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_QUOTA=yCONFIG_QUOTA_NETLINK_INTERFACE=yCONFIG_PRINT_QUOTA_WARNING=yCONFIG_QUOTA_TREE=yCONFIG_QFMT_V1=yCONFIG_QFMT_V2=yCONFIG_QUOTACTL=yCONFIG_AUTOFS_FS=y
# CONFIG_AUTOFS4_FS is not setCONFIG_FUSE_FS=yCONFIG_CUSE=y
#
# Caches
#CONFIG_FSCACHE=yCONFIG_FSCACHE_STATS=yCONFIG_FSCACHE_HISTOGRAM=y
# CONFIG_FSCACHE_DEBUG is not setCONFIG_CACHEFILES=y
# CONFIG_CACHEFILES_DEBUG is not set
# CONFIG_CACHEFILES_HISTOGRAM is not set
#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not setCONFIG_UDF_FS=yCONFIG_UDF_NLS=y
#
# DOS/FAT/NT Filesystems
#
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not setCONFIG_NTFS_FS=yCONFIG_NTFS_DEBUG=yCONFIG_NTFS_RW=y
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_SYSFS=yCONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not setCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=yCONFIG_CONFIGFS_FS=yCONFIG_MISC_FILESYSTEMS=yCONFIG_ADFS_FS=yCONFIG_ADFS_FS_RW=y
# CONFIG_AFFS_FS is not setCONFIG_ECRYPT_FS=yCONFIG_HFS_FS=yCONFIG_HFSPLUS_FS=y
# CONFIG_BEFS_FS is not setCONFIG_BFS_FS=yCONFIG_EFS_FS=y
# CONFIG_CRAMFS is not set
# CONFIG_SQUASHFS is not setCONFIG_VXFS_FS=yCONFIG_MINIX_FS=y
# CONFIG_OMFS_FS is not setCONFIG_HPFS_FS=yCONFIG_QNX4FS_FS=yCONFIG_ROMFS_FS=yCONFIG_ROMFS_BACKED_BY_BLOCK=y
# CONFIG_ROMFS_BACKED_BY_MTD is not set
# CONFIG_ROMFS_BACKED_BY_BOTH is not setCONFIG_ROMFS_ON_BLOCK=yCONFIG_SYSV_FS=y
# CONFIG_UFS_FS is not setCONFIG_NETWORK_FILESYSTEMS=yCONFIG_NFS_FS=yCONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
# CONFIG_NFS_V4 is not set
# CONFIG_ROOT_NFS is not setCONFIG_NFS_FSCACHE=y
# CONFIG_NFSD is not setCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_EXPORTFS=yCONFIG_NFS_COMMON=yCONFIG_SUNRPC=yCONFIG_SUNRPC_GSS=yCONFIG_RPCSEC_GSS_KRB5=yCONFIG_RPCSEC_GSS_SPKM3=yCONFIG_SMB_FS=y
# CONFIG_SMB_NLS_DEFAULT is not setCONFIG_CIFS=yCONFIG_CIFS_STATS=y
# CONFIG_CIFS_STATS2 is not setCONFIG_CIFS_WEAK_PW_HASH=yCONFIG_CIFS_UPCALL=yCONFIG_CIFS_XATTR=yCONFIG_CIFS_POSIX=yCONFIG_CIFS_DEBUG2=yCONFIG_CIFS_DFS_UPCALL=yCONFIG_CIFS_EXPERIMENTAL=yCONFIG_NCP_FS=y
# CONFIG_NCPFS_PACKET_SIGNING is not setCONFIG_NCPFS_IOCTL_LOCKING=y
# CONFIG_NCPFS_STRONG is not set
# CONFIG_NCPFS_NFS_NS is not setCONFIG_NCPFS_OS2_NS=yCONFIG_NCPFS_SMALLDOS=y
# CONFIG_NCPFS_NLS is not setCONFIG_NCPFS_EXTRAS=y
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=yCONFIG_ACORN_PARTITION=y
# CONFIG_ACORN_PARTITION_CUMANA is not set
# CONFIG_ACORN_PARTITION_EESOX is not setCONFIG_ACORN_PARTITION_ICS=y
# CONFIG_ACORN_PARTITION_ADFS is not setCONFIG_ACORN_PARTITION_POWERTEC=yCONFIG_ACORN_PARTITION_RISCIX=y
# CONFIG_OSF_PARTITION is not setCONFIG_AMIGA_PARTITION=yCONFIG_ATARI_PARTITION=yCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=yCONFIG_MINIX_SUBPARTITION=yCONFIG_SOLARIS_X86_PARTITION=yCONFIG_UNIXWARE_DISKLABEL=yCONFIG_LDM_PARTITION=yCONFIG_LDM_DEBUG=yCONFIG_SGI_PARTITION=yCONFIG_ULTRIX_PARTITION=yCONFIG_SUN_PARTITION=yCONFIG_KARMA_PARTITION=yCONFIG_EFI_PARTITION=yCONFIG_SYSV68_PARTITION=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"
# CONFIG_NLS_CODEPAGE_437 is not setCONFIG_NLS_CODEPAGE_737=yCONFIG_NLS_CODEPAGE_775=yCONFIG_NLS_CODEPAGE_850=y
# CONFIG_NLS_CODEPAGE_852 is not setCONFIG_NLS_CODEPAGE_855=yCONFIG_NLS_CODEPAGE_857=yCONFIG_NLS_CODEPAGE_860=yCONFIG_NLS_CODEPAGE_861=yCONFIG_NLS_CODEPAGE_862=yCONFIG_NLS_CODEPAGE_863=yCONFIG_NLS_CODEPAGE_864=yCONFIG_NLS_CODEPAGE_865=yCONFIG_NLS_CODEPAGE_866=yCONFIG_NLS_CODEPAGE_869=yCONFIG_NLS_CODEPAGE_936=yCONFIG_NLS_CODEPAGE_950=y
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not setCONFIG_NLS_CODEPAGE_874=yCONFIG_NLS_ISO8859_8=y
# CONFIG_NLS_CODEPAGE_1250 is not setCONFIG_NLS_CODEPAGE_1251=y
# CONFIG_NLS_ASCII is not set
# CONFIG_NLS_ISO8859_1 is not setCONFIG_NLS_ISO8859_2=yCONFIG_NLS_ISO8859_3=yCONFIG_NLS_ISO8859_4=y
# CONFIG_NLS_ISO8859_5 is not setCONFIG_NLS_ISO8859_6=y
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not setCONFIG_NLS_ISO8859_14=yCONFIG_NLS_ISO8859_15=y
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not setCONFIG_NLS_UTF8=y
# CONFIG_DLM is not set
#
# Kernel hacking
#CONFIG_TRACE_IRQFLAGS_SUPPORT=yCONFIG_PRINTK_TIME=y
# CONFIG_ALLOW_WARNINGS is not setCONFIG_FRAME_WARN=1024CONFIG_MAGIC_SYSRQ=yCONFIG_STRIP_ASM_SYMS=y
# CONFIG_UNUSED_SYMBOLS is not setCONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not setCONFIG_DEBUG_SECTION_MISMATCH=y
# CONFIG_DEBUG_KERNEL is not setCONFIG_SCHED_DEBUG=yCONFIG_SCHEDSTATS=y
# CONFIG_SLUB_DEBUG_ON is not setCONFIG_SLUB_STATS=yCONFIG_STACKTRACE=yCONFIG_DEBUG_BUGVERBOSE=yCONFIG_DEBUG_MEMORY_INIT=yCONFIG_ARCH_WANT_FRAME_POINTERS=yCONFIG_FRAME_POINTER=y
# CONFIG_RCU_CPU_STALL_DETECTOR is not setCONFIG_LATENCYTOP=y
# CONFIG_SYSCTL_SYSCALL_CHECK is not setCONFIG_USER_STACKTRACE_SUPPORT=yCONFIG_NOP_TRACER=yCONFIG_HAVE_FTRACE_NMI_ENTER=yCONFIG_HAVE_FUNCTION_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_FP_TEST=yCONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=yCONFIG_HAVE_DYNAMIC_FTRACE=yCONFIG_HAVE_FTRACE_MCOUNT_RECORD=yCONFIG_HAVE_SYSCALL_TRACEPOINTS=yCONFIG_RING_BUFFER=yCONFIG_FTRACE_NMI_ENTER=yCONFIG_EVENT_TRACING=yCONFIG_CONTEXT_SWITCH_TRACER=yCONFIG_RING_BUFFER_ALLOW_SWAP=yCONFIG_TRACING=yCONFIG_GENERIC_TRACER=yCONFIG_TRACING_SUPPORT=yCONFIG_FTRACE=yCONFIG_FUNCTION_TRACER=y
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_SYSPROF_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_FTRACE_SYSCALLS is not set
# CONFIG_BOOT_TRACER is not setCONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
# CONFIG_PROFILE_ALL_BRANCHES is not setCONFIG_POWER_TRACER=yCONFIG_KSYM_TRACER=yCONFIG_PROFILE_KSYM_TRACER=yCONFIG_STACK_TRACER=yCONFIG_KMEMTRACE=yCONFIG_WORKQUEUE_TRACER=yCONFIG_BLK_DEV_IO_TRACE=yCONFIG_DYNAMIC_FTRACE=yCONFIG_FUNCTION_PROFILER=yCONFIG_FTRACE_MCOUNT_RECORD=y
# CONFIG_FTRACE_STARTUP_TEST is not setCONFIG_MMIOTRACE=y
# CONFIG_PROVIDE_OHCI1394_DMA_INIT is not setCONFIG_DYNAMIC_DEBUG=yCONFIG_DMA_API_DEBUG=yCONFIG_SAMPLES=yCONFIG_HAVE_ARCH_KGDB=yCONFIG_HAVE_ARCH_KMEMCHECK=yCONFIG_STRICT_DEVMEM=yCONFIG_X86_VERBOSE_BOOTUP=yCONFIG_EARLY_PRINTK=yCONFIG_EARLY_PRINTK_DBGP=y
# CONFIG_4KSTACKS is not setCONFIG_DOUBLEFAULT=yCONFIG_IOMMU_STRESS=yCONFIG_HAVE_MMIOTRACE_SUPPORT=yCONFIG_IO_DELAY_TYPE_0X80=0CONFIG_IO_DELAY_TYPE_0XED=1CONFIG_IO_DELAY_TYPE_UDELAY=2CONFIG_IO_DELAY_TYPE_NONE=3
# CONFIG_IO_DELAY_0X80 is not set
# CONFIG_IO_DELAY_0XED is not set
# CONFIG_IO_DELAY_UDELAY is not setCONFIG_IO_DELAY_NONE=yCONFIG_DEFAULT_IO_DELAY_TYPE=3
# CONFIG_OPTIMIZE_INLINING is not set
#
# Security options
#CONFIG_KEYS=yCONFIG_KEYS_DEBUG_PROC_KEYS=yCONFIG_SECURITY=yCONFIG_SECURITYFS=yCONFIG_SECURITY_NETWORK=y
# CONFIG_SECURITY_NETWORK_XFRM is not setCONFIG_SECURITY_PATH=yCONFIG_SECURITY_FILE_CAPABILITIES=yCONFIG_INTEL_TXT=y
# CONFIG_SECURITY_TOMOYO is not set
# CONFIG_IMA is not setCONFIG_XOR_BLOCKS=yCONFIG_ASYNC_CORE=yCONFIG_ASYNC_MEMCPY=yCONFIG_ASYNC_XOR=yCONFIG_ASYNC_PQ=yCONFIG_ASYNC_RAID6_RECOV=yCONFIG_CRYPTO=y
#
# Crypto core or helper
#
# CONFIG_CRYPTO_FIPS is not setCONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD=yCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_BLKCIPHER=yCONFIG_CRYPTO_BLKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG=yCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_PCOMP=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=yCONFIG_CRYPTO_GF128MUL=y
# CONFIG_CRYPTO_NULL is not setCONFIG_CRYPTO_WORKQUEUE=yCONFIG_CRYPTO_CRYPTD=yCONFIG_CRYPTO_AUTHENC=y
#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not set
# CONFIG_CRYPTO_GCM is not set
# CONFIG_CRYPTO_SEQIV is not set
#
# Block modes
#CONFIG_CRYPTO_CBC=y
# CONFIG_CRYPTO_CTR is not set
# CONFIG_CRYPTO_CTS is not setCONFIG_CRYPTO_ECB=yCONFIG_CRYPTO_LRW=yCONFIG_CRYPTO_PCBC=y
# CONFIG_CRYPTO_XTS is not set
#
# Hash modes
#CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_XCBC is not setCONFIG_CRYPTO_VMAC=y
#
# Digest
#CONFIG_CRYPTO_CRC32C=yCONFIG_CRYPTO_CRC32C_INTEL=yCONFIG_CRYPTO_GHASH=yCONFIG_CRYPTO_MD4=yCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_MICHAEL_MIC=yCONFIG_CRYPTO_RMD128=yCONFIG_CRYPTO_RMD160=yCONFIG_CRYPTO_RMD256=yCONFIG_CRYPTO_RMD320=yCONFIG_CRYPTO_SHA1=yCONFIG_CRYPTO_SHA256=y
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_TGR192 is not setCONFIG_CRYPTO_WP512=y
#
# Ciphers
#CONFIG_CRYPTO_AES=yCONFIG_CRYPTO_AES_586=yCONFIG_CRYPTO_ANUBIS=yCONFIG_CRYPTO_ARC4=y
# CONFIG_CRYPTO_BLOWFISH is not setCONFIG_CRYPTO_CAMELLIA=yCONFIG_CRYPTO_CAST5=y
# CONFIG_CRYPTO_CAST6 is not setCONFIG_CRYPTO_DES=yCONFIG_CRYPTO_FCRYPT=y
# CONFIG_CRYPTO_KHAZAD is not setCONFIG_CRYPTO_SALSA20=yCONFIG_CRYPTO_SALSA20_586=yCONFIG_CRYPTO_SEED=yCONFIG_CRYPTO_SERPENT=y
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not setCONFIG_CRYPTO_TWOFISH_COMMON=yCONFIG_CRYPTO_TWOFISH_586=y
#
# Compression
#CONFIG_CRYPTO_DEFLATE=y
# CONFIG_CRYPTO_ZLIB is not set
# CONFIG_CRYPTO_LZO is not set
#
# Random Number Generation
#CONFIG_CRYPTO_ANSI_CPRNG=y
# CONFIG_CRYPTO_HW is not setCONFIG_HAVE_KVM=y
# CONFIG_VIRTUALIZATION is not setCONFIG_BINARY_PRINTF=y
#
# Library routines
#CONFIG_BITREVERSE=yCONFIG_GENERIC_FIND_FIRST_BIT=yCONFIG_GENERIC_FIND_NEXT_BIT=yCONFIG_GENERIC_FIND_LAST_BIT=yCONFIG_CRC_CCITT=y
# CONFIG_CRC16 is not setCONFIG_CRC_T10DIF=yCONFIG_CRC_ITU_T=yCONFIG_CRC32=y
# CONFIG_CRC7 is not setCONFIG_LIBCRC32C=yCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=yCONFIG_DECOMPRESS_GZIP=yCONFIG_DECOMPRESS_BZIP2=yCONFIG_DECOMPRESS_LZMA=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT=yCONFIG_HAS_DMA=yCONFIG_NLATTR=yCONFIG_FORCE_SUCCESSFUL_BUILD=yCONFIG_FORCE_MINIMAL_CONFIG=yCONFIG_FORCE_MINIMAL_CONFIG_PHYS=yCONFIG_X86_32_ALWAYS_ON=y
Quoted 2 lines · On Tue, 10 Nov 2009 12:55:55 +0100 Ingo Molnar <[email protected]> wrote:
hm, one of the swiotlb patches caused this bootup crash:
Sorry about that. I totally forgot about x86_32.
the following patch fixes this? Sorry that I'm away from the workplace and can't test it.
arch/x86/kernel/pci-dma.c +2 -0
@@ -129,6 +129,8 @@ void __init pci_iommu_alloc(void)#ifdef CONFIG_X86_64 /* free the range so iommu could get some range less than 4G */ dma32_free_bootmem (); +#else + dma_ops = &nommu_dma_ops;#endif pci_swiotlb_init ();if (use_swiotlb)
Quoted 48 lines · Ingo Molnar
Quoted 43 lines · FUJITA Tomonori
This patchset is against tip/master.
The first version is:
http://marc.info/?l=linux-kernel&m=125671300920411&w=2
The changes since v1 are:
- replaced Chris' bootmem patches with the 6/9 patch to implement
free_bootmem_latein a simple way (thanks to Pekka).- fixed the bug to break 'iommu=soft' boot opiton (found by Joerg).
- moved
iommu_init_noop()tox86_init.c- added Muli's Acked-by to Calgary patch.
==
arch/ia64/kernel/pci-swiotlb.c | 4 +- arch/powerpc/kernel/setup_32.c | 2 +- arch/powerpc/kernel/setup_64.c | 2 +-arch/x86/include/asm/amd_iommu.h | 2 -
arch/x86/include/asm/calgary.h| 2 -arch/x86/include/asm/gart.h| 5 +---arch/x86/include/asm/iommu.h| 1 -arch/x86/include/asm/x86_init.h| 9 +++++++arch/x86/kernel/amd_iommu.c| 2 +-arch/x86/kernel/amd_iommu_init.c| 19 +++-----------arch/x86/kernel/aperture_64.c| 4 ++-arch/x86/kernel/pci-calgary_64.c| 19 ++++-----------arch/x86/kernel/pci-dma.c| 27 ++++++++++-----------arch/x86/kernel/pci-gart_64.c| 16 ++++-------arch/x86/kernel/pci-nommu.c| 9 -------arch/x86/kernel/pci-swiotlb.c| 10 +++----arch/x86/kernel/x86_init.c| 5 ++++
drivers/pci/dmar.c | 7 ++++-drivers/pci/intel-iommu.c| 4 +-include/linux/bootmem.h| 1 +
include/linux/dmar.h | 10 -------include/linux/swiotlb.h| 5 ++-
lib/swiotlb.c | 49 +++++++++++++++++++++++++++++++------mm/bootmem.c| 24 ++++++++++++++++++Quoted 1 line
24 files changed, 131 insertions(+), 107 deletions(-)
Quoted 4 lines
Nice changes! I've applied them to tip:core/iommu (with the small build fix i mentioned in the previous mail) and will push them out later today.
this patch set will break some AMD system
amd 64 systems that
1. do not have AGP
2. do not have IOMMU
3. mem > 4g
4. BIOS do not allocate correct gart in NB.
will leave them to use SWIOTLB forcely.
following code that allocate some RAM as aperture will be called anymore for them
} else if (!valid_agp) {
/* Do nothing */
} else if ((!no_iommu && max_pfn > MAX_DMA32_PFN) ||
force_iommu ||
valid_agp ||
fallback_aper_force) {
printk(KERN_INFO
"Your BIOS doesn't leave a aperture memory hole\n");
printk(KERN_INFO
"Please enable the IOMMU option in the BIOS setup\n");
printk(KERN_INFO
"This costs you %d MB of RAM\n",
32 << fallback_aper_order);
aper_order = fallback_aper_order;
aper_alloc = allocate_aperture();
if (!aper_alloc) {
/*
* Could disable AGP and IOMMU here, but it's
* probably not worth it. But the later users
* cannot deal with bad apertures and turning
* on the aperture over memory causes very
* strange problems, so it's better to panic
* early.
*/
panic("Not enough memory for aperture");
}also in
void __init pci_iommu_alloc(void)
{
#ifdef CONFIG_X86_64
/* free the range so iommu could get some range less than 4G */
dma32_free_bootmem();
#endif
if (pci_swiotlb_init())
return;
gart_iommu_hole_init();
detect_calgary();
detect_intel_iommu();
/* needs to be called after gart_iommu_hole_init */
amd_iommu_detect();
}pci_swiotlb_init is stealing the preallocate range that is gart_iommu_hole workaround.
so please move back swiotlb_init to the end.
there is no point to allocate swiotlb at first and then free it if some iommu is there.
YH