x86: Cleanup and simplify cpu-specific data
Subsystems (6)
v4 cover x86: Cleanup and simplify cpu-specific data
Various per-cpu fields are define in arch/x86/kernel/smpboot.c that are basically equivalent to the cpu-specific data in struct cpuinfo_x86. By moving these fields into the structure, a number of codepaths can be simplified since they no longer need to care about those fields not existing on !SMP builds.
The size effects on allno (UP) and allyes (MAX_SMP) kernels are as follows:
text data bss dec hex filename
1586721 304864 506208 2397793 249661 vmlinux.allno
1588517 304928 505920 2399365 249c85 vmlinux.allno.after
84706053 13212311 42434560 140352924 85d9d9c vmlinux.allyes
84705333 13213799 42434560 140353692 85da09c vmlinux.allyes.afte
As can be seen, the kernels get slighly larger, but the code reduction/ simplification should be enough to compensate for it.
Kevin Winchester (5):
x86: Move per cpu cpu_llc_shared_map to a field in struct cpuinfo_x86
x86: Move per cpu cpu_llc_id to a field in struct cpuinfo_x86
x86: Move per cpu cpu_sibling_map to a field in struct cpuinfo_x86
x86: Move per cpu cpu_core_map to a field in struct cpuinfo_x86
x86: Remove #ifdef CONFIG_SMP sections by moving smp_num_siblings
into common.c
arch/x86/include/asm/perf_event_p4.h | 14 +---- arch/x86/include/asm/processor.h | 10 ++++ arch/x86/include/asm/smp.h | 26 +--------- arch/x86/include/asm/topology.h | 10 ++-- arch/x86/kernel/apic/apic_numachip.c | 2 +- arch/x86/kernel/cpu/amd.c | 18 ++----- arch/x86/kernel/cpu/common.c | 7 ++- arch/x86/kernel/cpu/intel_cacheinfo.c | 19 ++----- arch/x86/kernel/cpu/mcheck/mce_amd.c | 9 ++-- arch/x86/kernel/cpu/perf_event_p4.c | 4 +- arch/x86/kernel/cpu/proc.c | 8 +-- arch/x86/kernel/cpu/topology.c | 2 - arch/x86/kernel/process.c | 3 +- arch/x86/kernel/smpboot.c | 95 +++++++++++++-------------------- arch/x86/kernel/tsc_sync.c | 2 +- arch/x86/oprofile/nmi_int.c | 6 -- arch/x86/oprofile/op_model_p4.c | 11 +---- arch/x86/xen/smp.c | 6 -- drivers/cpufreq/acpi-cpufreq.c | 2 +- drivers/cpufreq/p4-clockmod.c | 4 +- drivers/cpufreq/powernow-k8.c | 13 +---- drivers/cpufreq/speedstep-ich.c | 6 +- drivers/hwmon/coretemp.c | 6 +-- 23 files changed, 92 insertions(+), 191 deletions(-)
Signature · 1 line
1.7.9.1
PATCH v4 1/5 x86: Move per cpu cpu_llc_shared_map to a field in struct cpuinfo_x86
Commit 141168c36cde ("x86: Simplify code by removing a !SMP #ifdefs from 'struct cpuinfo_x86'") caused the compilation error:
mce_amd.c:(.cpuinit.text+0x4723): undefined reference to 'cpu_llc_shared_map'
by removing an #ifdef CONFIG_SMP around a block containing a reference to cpu_llc_shared_map. Rather than replace the #ifdef, move cpu_llc_shared_map to be a new cpumask_t field llc_shared_map in struct cpuinfo_x86 and adjust all references to cpu_llc_shared_map.
The size effects on various kernels are as follows:
text data bss dec hex filename
5281572 513296 1044480 6839348 685c34 vmlinux.up
5281572 513296 1044480 6839348 685c34 vmlinux.up.patched
5548860 516792 1110016 7175668 6d7df4 vmlinux.smp.2
5548837 516792 1110016 7175645 6d7ddd vmlinux.smp.2.patched
5595965 706840 1310720 7613525 742c55 vmlinux.smp.max
5595876 707880 1310720 7614476 74300c vmlinux.smp.max.patched
It can be seen that this change has no effect on UP, a minor effect for SMP with Max 2 CPUs, and a more substantial but still not overly large effect for MAXSMP.
--- arch/x86/include/asm/processor.h | 2 ++ arch/x86/include/asm/smp.h | 7 ------- arch/x86/kernel/cpu/intel_cacheinfo.c | 4 ++-- arch/x86/kernel/cpu/mcheck/mce_amd.c | 9 ++++----- arch/x86/kernel/smpboot.c | 15 ++++++--------- arch/x86/xen/smp.c | 1 - 6 files changed, 14 insertions(+), 24 deletions(-)
arch/x86/include/asm/processor.h +2 -0
@@ -110,6 +110,8 @@ struct cpuinfo_x86 {/* Index into per_cpu list: */ u16 cpu_index;u32 microcode; +/* CPUs sharing the last level cache: */ +cpumask_t llc_shared_map; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +0 -7
@@ -33,8 +33,6 @@ static inline bool cpu_has_ht_siblings(void)DECLARE_PER_CPU (cpumask_var_t, cpu_sibling_map);DECLARE_PER_CPU (cpumask_var_t, cpu_core_map); -/* cpus sharing the last level cache: */ -DECLARE_PER_CPU (cpumask_var_t, cpu_llc_shared_map);DECLARE_PER_CPU (u16, cpu_llc_id);DECLARE_PER_CPU (int, cpu_number);
@@ -48,11 +46,6 @@ static inline struct cpumask *cpu_core_mask(int cpu)return per_cpu (cpu_core_map, cpu); } -static inline struct cpumask *cpu_llc_shared_mask (int cpu) -{ -return per_cpu (cpu_llc_shared_map, cpu); -} -DECLARE_EARLY_PER_CPU (u16, x86_cpu_to_apicid);DECLARE_EARLY_PER_CPU (u16, x86_bios_cpu_apicid);#if defined(CONFIG_X86_LOCAL_APIC ) && defined(CONFIG_X86_32 )
arch/x86/kernel/cpu/intel_cacheinfo.c +2 -2
@@ -734,11 +734,11 @@ static int __cpuinit cache_shared_amd_cpu_map_setup(unsigned int cpu, int index) ret =0 ;if (index ==3 ) { ret =1 ; -for_each_cpu (i,cpu_llc_shared_mask (cpu)) { +for_each_cpu (i, &c->llc_shared_map) {if (!per_cpu (ici_cpuid4_info, i))continue ; this_leaf =CPUID4_INFO_IDX (i, index); -for_each_cpu (sibling,cpu_llc_shared_mask (cpu)) { +for_each_cpu (sibling, &c->llc_shared_map) {if (!cpu_online (sibling))continue ;set_bit (sibling, this_leaf->shared_cpu_map);
arch/x86/kernel/cpu/mcheck/mce_amd.c +4 -5
@@ -525,12 +525,12 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank)struct threshold_bank *b =NULL ;struct device *dev = mce_device[cpu];char name[32 ]; +struct cpuinfo_x86 *c = &cpu_data (cpu);sprintf (name,"threshold_bank%i" , bank); -#ifdef CONFIG_SMP -if (cpu_data (cpu).cpu_core_id && shared_bank[bank]) {/* symlink */ - i =cpumask_first (cpu_llc_shared_mask (cpu)); +if (c->cpu_core_id && shared_bank[bank]) {/* symlink */ + i =cpumask_first (&c->llc_shared_map);/* first core not up yet */ if (cpu_data (i).cpu_core_id)
@@ -549,12 +549,11 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank)if (err) goto out; -cpumask_copy (b->cpus,cpu_llc_shared_mask (cpu)); +cpumask_copy (b->cpus, &c->llc_shared_map);per_cpu (threshold_banks, cpu)[bank] = b; goto out; } -#endif b =kzalloc (sizeof (struct threshold_bank ),GFP_KERNEL );if (!b) {
arch/x86/kernel/smpboot.c +6 -9
@@ -127,8 +127,6 @@ EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);DEFINE_PER_CPU (cpumask_var_t, cpu_core_map);EXPORT_PER_CPU_SYMBOL (cpu_core_map); -DEFINE_PER_CPU (cpumask_var_t, cpu_llc_shared_map); -/* Per CPU bogomips and other parameters */ DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);EXPORT_PER_CPU_SYMBOL (cpu_info);
@@ -337,8 +335,8 @@ static void __cpuinit link_thread_siblings(int cpu1, int cpu2)cpumask_set_cpu (cpu2,cpu_sibling_mask (cpu1));cpumask_set_cpu (cpu1,cpu_core_mask (cpu2));cpumask_set_cpu (cpu2,cpu_core_mask (cpu1)); -cpumask_set_cpu (cpu1,cpu_llc_shared_mask (cpu2)); -cpumask_set_cpu (cpu2,cpu_llc_shared_mask (cpu1)); +cpumask_set_cpu (cpu1, &cpu_data (cpu2).llc_shared_map); +cpumask_set_cpu (cpu2, &cpu_data (cpu1).llc_shared_map); }
@@ -367,7 +365,7 @@ void __cpuinit set_cpu_sibling_map(int cpu)cpumask_set_cpu (cpu,cpu_sibling_mask (cpu)); } -cpumask_set_cpu (cpu,cpu_llc_shared_mask (cpu)); +cpumask_set_cpu (cpu, &c->llc_shared_map);if (__this_cpu_read (cpu_info.x86_max_cores) ==1 ) {cpumask_copy (cpu_core_mask (cpu),cpu_sibling_mask (cpu));
@@ -378,8 +376,8 @@ void __cpuinit set_cpu_sibling_map(int cpu)for_each_cpu (i, cpu_sibling_setup_mask) {if (per_cpu (cpu_llc_id, cpu) !=BAD_APICID &&per_cpu (cpu_llc_id, cpu) ==per_cpu (cpu_llc_id, i)) { -cpumask_set_cpu (i,cpu_llc_shared_mask (cpu)); -cpumask_set_cpu (cpu,cpu_llc_shared_mask (i)); +cpumask_set_cpu (i, &c->llc_shared_map); +cpumask_set_cpu (cpu, &cpu_data (i).llc_shared_map); }if (c->phys_proc_id ==cpu_data (i).phys_proc_id) {cpumask_set_cpu (i,cpu_core_mask (cpu));
@@ -418,7 +416,7 @@ const struct cpumask *cpu_coregroup_mask(int cpu) !(cpu_has(c, X86_FEATURE_AMD_DCM))) return cpu_core_mask(cpu); else - return cpu_llc_shared_mask(cpu); + return &c->llc_shared_map; }static void impress_friends (void )
@@ -1052,7 +1050,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)for_each_possible_cpu (i) {zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); -zalloc_cpumask_var (&per_cpu (cpu_llc_shared_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
arch/x86/xen/smp.c +0 -1
@@ -225,7 +225,6 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus)for_each_possible_cpu (i) {zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); -zalloc_cpumask_var (&per_cpu (cpu_llc_shared_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
Signature · 1 line
1.7.9.1
PATCH v4 2/5 x86: Move per cpu cpu_llc_id to a field in struct cpuinfo_x86
In reply to Kevin WinchesterThis simplifies the various code paths using this field as it groups the per-cpu data together.
--- arch/x86/include/asm/processor.h | 1 + arch/x86/include/asm/smp.h | 1 - arch/x86/kernel/apic/apic_numachip.c | 2 +- arch/x86/kernel/cpu/amd.c | 14 ++++---------- arch/x86/kernel/cpu/common.c | 1 + arch/x86/kernel/cpu/intel_cacheinfo.c | 11 ++--------- arch/x86/kernel/smpboot.c | 18 ++++++++---------- 7 files changed, 17 insertions(+), 31 deletions(-)
arch/x86/include/asm/processor.h +1 -0
@@ -112,6 +112,7 @@ struct cpuinfo_x86 {u32 microcode;/* CPUs sharing the last level cache: */ cpumask_t llc_shared_map; +u16 llc_id; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +0 -1
@@ -33,7 +33,6 @@ static inline bool cpu_has_ht_siblings(void)DECLARE_PER_CPU (cpumask_var_t, cpu_sibling_map);DECLARE_PER_CPU (cpumask_var_t, cpu_core_map); -DECLARE_PER_CPU (u16, cpu_llc_id);DECLARE_PER_CPU (int, cpu_number);static inline struct cpumask *cpu_sibling_mask (int cpu)
arch/x86/kernel/apic/apic_numachip.c +1 -1
@@ -202,7 +202,7 @@ static void __init map_csrs(void)static void fixup_cpu_id (struct cpuinfo_x86 *c,int node) { c->phys_proc_id = node; -per_cpu (cpu_llc_id,smp_processor_id ()) = node; + c->llc_id = node; }static int __init numachip_system_init (void )
arch/x86/kernel/cpu/amd.c +4 -10
@@ -268,7 +268,6 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c) {u32 nodes, cores_per_cu =1 ;u8 node_id; -int cpu =smp_processor_id ();/* get information required for multi-node processors */ if (cpu_has (c,X86_FEATURE_TOPOEXT )) {
@@ -301,7 +300,7 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c) cus_per_node = cores_per_node / cores_per_cu;/* store NodeID, use llc_shared_map to store sibling info */ -per_cpu (cpu_llc_id, cpu) = node_id; + c->llc_id = node_id;/* core id has to be in the [0 .. cores_per_node - 1] range */ c->cpu_core_id %= cores_per_node;
@@ -318,7 +317,6 @@ static void __cpuinit amd_detect_cmp(struct cpuinfo_x86 *c) {#ifdef CONFIG_X86_HT unsigned bits; -int cpu =smp_processor_id (); bits = c->x86_coreid_bits;/* Low order bits define the core id (index of core in socket) */
@@ -326,18 +324,14 @@ static void __cpuinit amd_detect_cmp(struct cpuinfo_x86 *c)/* Convert the initial APIC ID into the socket ID */ c->phys_proc_id = c->initial_apicid >> bits;/* use socket ID also for last level cache */ -per_cpu (cpu_llc_id, cpu) = c->phys_proc_id; + c->llc_id = c->phys_proc_id;amd_get_topology (c);#endif }int amd_get_nb_id (int cpu) { -int id =0 ; -#ifdef CONFIG_SMP - id =per_cpu (cpu_llc_id, cpu); -#endif -return id; +return cpu_data (cpu).llc_id; }EXPORT_SYMBOL_GPL (amd_get_nb_id);
@@ -350,7 +344,7 @@ static void __cpuinit srat_detect_node(struct cpuinfo_x86 *c) node =numa_cpu_node (cpu);if (node ==NUMA_NO_NODE ) - node =per_cpu (cpu_llc_id, cpu); + node = c->llc_id;/* * If core numbers are inconsistent, it's likely a multi-fabric platform,
arch/x86/kernel/cpu/common.c +1 -0
@@ -788,6 +788,7 @@ static void __cpuinit identify_cpu(struct cpuinfo_x86 *c) c->x86_model_id[0 ] ='\0' ;/* Unset */ c->x86_max_cores =1 ; c->x86_coreid_bits =0 ; + c->llc_id =BAD_APICID ;#ifdef CONFIG_X86_64 c->x86_clflush_size =64 ; c->x86_phys_bits =36 ;
arch/x86/kernel/cpu/intel_cacheinfo.c +2 -9
@@ -579,9 +579,6 @@ unsigned int __cpuinit init_intel_cacheinfo(struct cpuinfo_x86 *c)unsigned int new_l1d =0 , new_l1i =0 ;/* Cache sizes from cpuid(4) */ unsigned int new_l2 =0 , new_l3 =0 , i;/* Cache sizes from cpuid(4) */ unsigned int l2_id =0 , l3_id =0 , num_threads_sharing, index_msb; -#ifdef CONFIG_X86_HT -unsigned int cpu = c->cpu_index; -#endif if (c->cpuid_level >3 ) {static int is_initialized;
@@ -700,16 +697,12 @@ unsigned int __cpuinit init_intel_cacheinfo(struct cpuinfo_x86 *c)if (new_l2) { l2 = new_l2; -#ifdef CONFIG_X86_HT -per_cpu (cpu_llc_id, cpu) = l2_id; -#endif + c->llc_id = l2_id; }if (new_l3) { l3 = new_l3; -#ifdef CONFIG_X86_HT -per_cpu (cpu_llc_id, cpu) = l3_id; -#endif + c->llc_id = l3_id; } c->x86_cache_size = l3 ? l3 : (l2 ? l2 : (l1i+l1d));
arch/x86/kernel/smpboot.c +8 -10
@@ -116,9 +116,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;int smp_num_siblings =1 ;EXPORT_SYMBOL (smp_num_siblings); -/* Last level cache ID of each logical CPU */ -DEFINE_PER_CPU (u16, cpu_llc_id) =BAD_APICID ; -/* representing HT siblings of each logical CPU */ DEFINE_PER_CPU (cpumask_var_t, cpu_sibling_map);EXPORT_PER_CPU_SYMBOL (cpu_sibling_map);
@@ -353,7 +350,7 @@ void __cpuinit set_cpu_sibling_map(int cpu)if (cpu_has (c,X86_FEATURE_TOPOEXT )) {if (c->phys_proc_id == o->phys_proc_id && -per_cpu (cpu_llc_id, cpu) ==per_cpu (cpu_llc_id, i) && + c->llc_id == o->llc_id && c->compute_unit_id == o->compute_unit_id)link_thread_siblings (cpu, i); } else if (c->phys_proc_id == o->phys_proc_id &&
@@ -374,12 +371,13 @@ void __cpuinit set_cpu_sibling_map(int cpu) }for_each_cpu (i, cpu_sibling_setup_mask) { -if (per_cpu (cpu_llc_id, cpu) !=BAD_APICID && -per_cpu (cpu_llc_id, cpu) ==per_cpu (cpu_llc_id, i)) { +struct cpuinfo_x86 *o = &cpu_data (i); + +if (c->llc_id !=BAD_APICID && c->llc_id == o->llc_id) {cpumask_set_cpu (i, &c->llc_shared_map); -cpumask_set_cpu (cpu, &cpu_data (i).llc_shared_map); +cpumask_set_cpu (cpu, &o->llc_shared_map); } -if (c->phys_proc_id ==cpu_data (i).phys_proc_id) { +if (c->phys_proc_id == o->phys_proc_id) {cpumask_set_cpu (i,cpu_core_mask (cpu));cpumask_set_cpu (cpu,cpu_core_mask (i));/*
@@ -397,9 +395,9 @@ void __cpuinit set_cpu_sibling_map(int cpu)* the other cpus in this package */ if (i != cpu) -cpu_data (i).booted_cores++; + o->booted_cores++; }else if (i != cpu && !c->booted_cores) - c->booted_cores =cpu_data (i).booted_cores; + c->booted_cores = o->booted_cores; } } }
Signature · 1 line
1.7.9.1
PATCH v4 3/5 x86: Move per cpu cpu_sibling_map to a field in struct cpuinfo_x86
In reply to Kevin WinchesterThis simplifies the various code paths using this field as it groups the per-cpu data together.
--- arch/x86/include/asm/perf_event_p4.h | 2 +- arch/x86/include/asm/processor.h | 2 ++ arch/x86/include/asm/smp.h | 6 ------ arch/x86/include/asm/topology.h | 2 +- arch/x86/kernel/cpu/intel_cacheinfo.c | 4 ++-- arch/x86/kernel/smpboot.c | 27 +++++++++++---------------- arch/x86/oprofile/op_model_p4.c | 5 +---- arch/x86/xen/smp.c | 1 - drivers/cpufreq/p4-clockmod.c | 4 +--- drivers/cpufreq/speedstep-ich.c | 6 +++--- drivers/hwmon/coretemp.c | 6 +----- 11 files changed, 23 insertions(+), 42 deletions(-)
arch/x86/include/asm/perf_event_p4.h +1 -1
@@ -189,7 +189,7 @@ static inline int p4_ht_thread(int cpu) {#ifdef CONFIG_SMP if (smp_num_siblings ==2 ) -return cpu !=cpumask_first (__get_cpu_var (cpu_sibling_map)); + return cpu != cpumask_first(&cpu_data(cpu).sibling_map));#endif return 0 ; }
arch/x86/include/asm/processor.h +2 -0
@@ -113,6 +113,8 @@ struct cpuinfo_x86 {/* CPUs sharing the last level cache: */ cpumask_t llc_shared_map;u16 llc_id; +/* representing HT siblings of each logical CPU */ +cpumask_t sibling_map; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +0 -6
@@ -31,15 +31,9 @@ static inline bool cpu_has_ht_siblings(void)return has_siblings; } -DECLARE_PER_CPU (cpumask_var_t, cpu_sibling_map);DECLARE_PER_CPU (cpumask_var_t, cpu_core_map);DECLARE_PER_CPU (int, cpu_number); -static inline struct cpumask *cpu_sibling_mask (int cpu) -{ -return per_cpu (cpu_sibling_map, cpu); -} -static inline struct cpumask *cpu_core_mask (int cpu) {return per_cpu (cpu_core_map, cpu);
arch/x86/include/asm/topology.h +1 -1
@@ -161,7 +161,7 @@ extern const struct cpumask *cpu_coregroup_mask(int cpu);#define topology_physical_package_id (cpu) (cpu_data(cpu).phys_proc_id)#define topology_core_id (cpu) (cpu_data(cpu).cpu_core_id)#define topology_core_cpumask (cpu) (per_cpu(cpu_core_map, cpu)) -#define topology_thread_cpumask (cpu) (per_cpu(cpu_sibling_map, cpu)) +#define topology_thread_cpumask (cpu) (&cpu_data(cpu).sibling_map)/* indicates that pointers to the topology cpumask_t maps are valid */ #define arch_provides_topology_pointers yes
arch/x86/kernel/cpu/intel_cacheinfo.c +2 -2
@@ -739,11 +739,11 @@ static int __cpuinit cache_shared_amd_cpu_map_setup(unsigned int cpu, int index) } }else if ((c->x86 ==0x15 ) && ((index ==1 ) || (index ==2 ))) { ret =1 ; -for_each_cpu (i,cpu_sibling_mask (cpu)) { +for_each_cpu (i, &c->sibling_map) {if (!per_cpu (ici_cpuid4_info, i))continue ; this_leaf =CPUID4_INFO_IDX (i, index); -for_each_cpu (sibling,cpu_sibling_mask (cpu)) { +for_each_cpu (sibling, &c->sibling_map) {if (!cpu_online (sibling))continue ;set_bit (sibling, this_leaf->shared_cpu_map);
arch/x86/kernel/smpboot.c +11 -16
@@ -116,10 +116,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;int smp_num_siblings =1 ;EXPORT_SYMBOL (smp_num_siblings); -/* representing HT siblings of each logical CPU */ -DEFINE_PER_CPU (cpumask_var_t, cpu_sibling_map); -EXPORT_PER_CPU_SYMBOL (cpu_sibling_map); -/* representing HT and core siblings of each logical CPU */ DEFINE_PER_CPU (cpumask_var_t, cpu_core_map);EXPORT_PER_CPU_SYMBOL (cpu_core_map);
@@ -328,8 +324,8 @@ void __cpuinit smp_store_cpu_info(int id)static void __cpuinit link_thread_siblings (int cpu1,int cpu2) { -cpumask_set_cpu (cpu1,cpu_sibling_mask (cpu2)); -cpumask_set_cpu (cpu2,cpu_sibling_mask (cpu1)); +cpumask_set_cpu (cpu1, &cpu_data (cpu2).sibling_map); +cpumask_set_cpu (cpu2, &cpu_data (cpu1).sibling_map);cpumask_set_cpu (cpu1,cpu_core_mask (cpu2));cpumask_set_cpu (cpu2,cpu_core_mask (cpu1));cpumask_set_cpu (cpu1, &cpu_data (cpu2).llc_shared_map);
@@ -359,13 +355,13 @@ void __cpuinit set_cpu_sibling_map(int cpu) } } }else { -cpumask_set_cpu (cpu,cpu_sibling_mask (cpu)); +cpumask_set_cpu (cpu, &c->sibling_map); }cpumask_set_cpu (cpu, &c->llc_shared_map);if (__this_cpu_read (cpu_info.x86_max_cores) ==1 ) { -cpumask_copy (cpu_core_mask (cpu),cpu_sibling_mask (cpu)); +cpumask_copy (cpu_core_mask (cpu), &c->sibling_map); c->booted_cores =1 ;return ; }
@@ -383,12 +379,12 @@ void __cpuinit set_cpu_sibling_map(int cpu)/* * Does this new cpu bringup a new core? */ -if (cpumask_weight (cpu_sibling_mask (cpu)) ==1 ) { +if (cpumask_weight (&c->sibling_map) ==1 ) {/* * for each core in package, increment * the booted_cores for this new cpu */ -if (cpumask_first (cpu_sibling_mask (i)) == i) +if (cpumask_first (&o->sibling_map) == i) c->booted_cores++;/* * increment the core count for all
@@ -908,7 +904,7 @@ static __init void disable_smp(void)physid_set_mask_of_physid (boot_cpu_physical_apicid, &phys_cpu_present_map); else physid_set_mask_of_physid(0, &phys_cpu_present_map); -cpumask_set_cpu (0 ,cpu_sibling_mask (0 )); +cpumask_set_cpu (0 , &cpu_data (0 ).sibling_map);cpumask_set_cpu (0 ,cpu_core_mask (0 )); }
@@ -1046,7 +1042,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)current_thread_info ()->cpu =0 ;/* needed? */ for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
@@ -1241,13 +1236,13 @@ static void remove_siblinginfo(int cpu)/*/ * last thread sibling in this cpu core going down */ -if (cpumask_weight (cpu_sibling_mask (cpu)) ==1 ) +if (cpumask_weight (&c->sibling_map) ==1 )cpu_data (sibling).booted_cores--; } -for_each_cpu (sibling,cpu_sibling_mask (cpu)) -cpumask_clear_cpu (cpu,cpu_sibling_mask (sibling)); -cpumask_clear (cpu_sibling_mask (cpu)); +for_each_cpu (sibling, &c->sibling_map) +cpumask_clear_cpu (cpu, &c->sibling_map); +cpumask_clear (&c->sibling_map);cpumask_clear (cpu_core_mask (cpu)); c->phys_proc_id =0 ; c->cpu_core_id =0 ;
arch/x86/oprofile/op_model_p4.c +1 -4
@@ -370,11 +370,8 @@ static struct p4_event_binding p4_events[NUM_EVENTS] = {or "odd" part of all the divided resources. */ static unsigned int get_stagger (void ) { -#ifdef CONFIG_SMP int cpu =smp_processor_id (); -return cpu !=cpumask_first (__get_cpu_var (cpu_sibling_map)); -#endif -return 0 ; +return cpu !=cpumask_first (&cpu_data (cpu).sibling_map); }
arch/x86/xen/smp.c +0 -1
@@ -223,7 +223,6 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus)cpu_data (0 ).x86_max_cores =1 ;for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
drivers/cpufreq/p4-clockmod.c +1 -3
@@ -203,9 +203,7 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy)int cpuid =0 ;unsigned int i; -#ifdef CONFIG_SMP -cpumask_copy (policy->cpus,cpu_sibling_mask (policy->cpu)); -#endif +cpumask_copy (policy->cpus, &c->sibling_map);/* Errata workaround */ cpuid = (c->x86 <<8 ) | (c->x86_model <<4 ) | c->x86_mask;
drivers/cpufreq/speedstep-ich.c +3 -3
@@ -326,14 +326,14 @@ static void get_freqs_on_cpu(void *_get_freqs)static int speedstep_cpu_init (struct cpufreq_policy *policy) { +struct cpuinfo_x86 *c = &cpu_data (policy->cpu);int result;unsigned int policy_cpu, speed;struct get_freqs gf;/* only run on CPU to be set, or on its sibling */ -#ifdef CONFIG_SMP -cpumask_copy (policy->cpus,cpu_sibling_mask (policy->cpu)); -#endif +cpumask_copy (policy->cpus, c->sibling_map); + policy_cpu =cpumask_any_and (policy->cpus, cpu_online_mask);/* detect low and high frequency and transition latency */
drivers/hwmon/coretemp.c +1 -5
@@ -61,11 +61,7 @@ MODULE_PARM_DESC(tjmax, "TjMax value in degrees Celsius");#define TO_CORE_ID (cpu) cpu_data(cpu).cpu_core_id#define TO_ATTR_NO (cpu) (TO_CORE_ID(cpu) + BASE_SYSFS_ATTR_NO) -#ifdef CONFIG_SMP -#define for_each_sibling (i, cpu) for_each_cpu(i, cpu_sibling_mask(cpu)) -#else -#define for_each_sibling (i, cpu) for (i = 0; false; ) -#endif +#define for_each_sibling (i, cpu) for_each_cpu(i, &cpu_data(cpu).sibling_map)/* * Per-Core Temperature Data
Signature · 1 line
1.7.9.1
PATCH v4 4/5 x86: Move per cpu cpu_core_map to a field in struct cpuinfo_x86
In reply to Kevin WinchesterThis simplifies the various code paths using this field as it groups the per-cpu data together.
--- arch/x86/include/asm/processor.h | 5 +++++ arch/x86/include/asm/smp.h | 6 ------ arch/x86/include/asm/topology.h | 4 ++-- arch/x86/kernel/cpu/proc.c | 3 +-- arch/x86/kernel/smpboot.c | 35 ++++++++++++++--------------------- arch/x86/kernel/tsc_sync.c | 2 +- arch/x86/xen/smp.c | 4 ---- drivers/cpufreq/acpi-cpufreq.c | 2 +- drivers/cpufreq/powernow-k8.c | 13 +++---------- 9 files changed, 27 insertions(+), 47 deletions(-)
arch/x86/include/asm/processor.h +5 -0
@@ -115,6 +115,11 @@ struct cpuinfo_x86 {u16 llc_id;/* representing HT siblings of each logical CPU */ cpumask_t sibling_map; +/* +* representing all execution threads on a logical CPU, i.e. per +* physical socket +*/ +cpumask_t core_map; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +0 -6
@@ -31,14 +31,8 @@ static inline bool cpu_has_ht_siblings(void)return has_siblings; } -DECLARE_PER_CPU (cpumask_var_t, cpu_core_map);DECLARE_PER_CPU (int, cpu_number); -static inline struct cpumask *cpu_core_mask (int cpu) -{ -return per_cpu (cpu_core_map, cpu); -} -DECLARE_EARLY_PER_CPU (u16, x86_cpu_to_apicid);DECLARE_EARLY_PER_CPU (u16, x86_bios_cpu_apicid);#if defined(CONFIG_X86_LOCAL_APIC ) && defined(CONFIG_X86_32 )
arch/x86/include/asm/topology.h +2 -2
@@ -160,7 +160,7 @@ extern const struct cpumask *cpu_coregroup_mask(int cpu);#ifdef ENABLE_TOPO_DEFINES #define topology_physical_package_id (cpu) (cpu_data(cpu).phys_proc_id)#define topology_core_id (cpu) (cpu_data(cpu).cpu_core_id) -#define topology_core_cpumask (cpu) (per_cpu(cpu_core_map, cpu)) +#define topology_core_cpumask (cpu) (&cpu_data(cpu).core_map)#define topology_thread_cpumask (cpu) (&cpu_data(cpu).sibling_map)/* indicates that pointers to the topology cpumask_t maps are valid */
@@ -176,7 +176,7 @@ void x86_pci_root_bus_resources(int bus, struct list_head *resources);#ifdef CONFIG_SMP #define mc_capable () ((boot_cpu_data.x86_max_cores > 1) && \ - (cpumask_weight(cpu_core_mask(0)) != nr_cpu_ids)) + (cpumask_weight(&boot_cpu_data.core_map) != nr_cpu_ids))#define smt_capable () (smp_num_siblings > 1)#endif
arch/x86/kernel/cpu/proc.c +1 -2
@@ -13,8 +13,7 @@ static void show_cpuinfo_core(struct seq_file *m, struct cpuinfo_x86 *c,#ifdef CONFIG_SMP if (c->x86_max_cores * smp_num_siblings >1 ) {seq_printf (m,"physical id\t: %d\n" , c->phys_proc_id); -seq_printf (m,"siblings\t: %d\n" , -cpumask_weight (cpu_core_mask (cpu))); +seq_printf (m,"siblings\t: %d\n" ,cpumask_weight (&c->core_map));seq_printf (m,"core id\t\t: %d\n" , c->cpu_core_id);seq_printf (m,"cpu cores\t: %d\n" , c->booted_cores);seq_printf (m,"apicid\t\t: %d\n" , c->apicid);
arch/x86/kernel/smpboot.c +14 -21
@@ -116,10 +116,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;int smp_num_siblings =1 ;EXPORT_SYMBOL (smp_num_siblings); -/* representing HT and core siblings of each logical CPU */ -DEFINE_PER_CPU (cpumask_var_t, cpu_core_map); -EXPORT_PER_CPU_SYMBOL (cpu_core_map); -/* Per CPU bogomips and other parameters */ DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);EXPORT_PER_CPU_SYMBOL (cpu_info);
@@ -326,8 +322,8 @@ static void __cpuinit link_thread_siblings(int cpu1, int cpu2) {cpumask_set_cpu (cpu1, &cpu_data (cpu2).sibling_map);cpumask_set_cpu (cpu2, &cpu_data (cpu1).sibling_map); -cpumask_set_cpu (cpu1,cpu_core_mask (cpu2)); -cpumask_set_cpu (cpu2,cpu_core_mask (cpu1)); +cpumask_set_cpu (cpu1, &cpu_data (cpu2).core_map); +cpumask_set_cpu (cpu2, &cpu_data (cpu1).core_map);cpumask_set_cpu (cpu1, &cpu_data (cpu2).llc_shared_map);cpumask_set_cpu (cpu2, &cpu_data (cpu1).llc_shared_map); }
@@ -361,7 +357,7 @@ void __cpuinit set_cpu_sibling_map(int cpu)cpumask_set_cpu (cpu, &c->llc_shared_map);if (__this_cpu_read (cpu_info.x86_max_cores) ==1 ) { -cpumask_copy (cpu_core_mask (cpu), &c->sibling_map); +cpumask_copy (&c->core_map, &c->sibling_map); c->booted_cores =1 ;return ; }
@@ -374,8 +370,8 @@ void __cpuinit set_cpu_sibling_map(int cpu)cpumask_set_cpu (cpu, &o->llc_shared_map); }if (c->phys_proc_id == o->phys_proc_id) { -cpumask_set_cpu (i,cpu_core_mask (cpu)); -cpumask_set_cpu (cpu,cpu_core_mask (i)); +cpumask_set_cpu (i, &c->core_map); +cpumask_set_cpu (cpu, &o->core_map);/* * Does this new cpu bringup a new core? */
@@ -404,11 +400,11 @@ const struct cpumask *cpu_coregroup_mask(int cpu)struct cpuinfo_x86 *c = &cpu_data (cpu);/* * For perf, we return last level cache shared map. -* And for power savings, we return cpu_core_map +* And for power savings, we return core map. */ if ((sched_mc_power_savings || sched_smt_power_savings) && !(cpu_has (c,X86_FEATURE_AMD_DCM ))) -return cpu_core_mask (cpu); +return &c->core_map;else return &c->llc_shared_map; }
@@ -905,7 +901,7 @@ static __init void disable_smp(void)else physid_set_mask_of_physid (0 , &phys_cpu_present_map);cpumask_set_cpu (0 , &cpu_data (0 ).sibling_map); -cpumask_set_cpu (0 ,cpu_core_mask (0 )); +cpumask_set_cpu (0 , &cpu_data (0 ).core_map); }/*
@@ -1028,8 +1024,6 @@ static void __init smp_cpu_index_default(void)*/ void __init native_smp_prepare_cpus (unsigned int max_cpus) { -unsigned int i; -preempt_disable ();smp_cpu_index_default ();
@@ -1041,9 +1035,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)mb ();current_thread_info ()->cpu =0 ;/* needed? */ -for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); - }set_cpu_sibling_map (0 );
@@ -1231,19 +1222,21 @@ static void remove_siblinginfo(int cpu)int sibling;struct cpuinfo_x86 *c = &cpu_data (cpu); -for_each_cpu (sibling,cpu_core_mask (cpu)) { -cpumask_clear_cpu (cpu,cpu_core_mask (sibling)); +for_each_cpu (sibling, &c->core_map) { +struct cpuinfo_x86 *o = &cpu_data (sibling); + +cpumask_clear_cpu (cpu, &o->core_map);/*/ * last thread sibling in this cpu core going down */ if (cpumask_weight (&c->sibling_map) ==1 ) -cpu_data (sibling).booted_cores--; + o->booted_cores--; }for_each_cpu (sibling, &c->sibling_map)cpumask_clear_cpu (cpu, &c->sibling_map);cpumask_clear (&c->sibling_map); -cpumask_clear (cpu_core_mask (cpu)); +cpumask_clear (&c->core_map); c->phys_proc_id =0 ; c->cpu_core_id =0 ;cpumask_clear_cpu (cpu, cpu_sibling_setup_mask);
arch/x86/kernel/tsc_sync.c +1 -1
@@ -114,7 +114,7 @@ static __cpuinit void check_tsc_warp(unsigned int timeout)*/ static inline unsigned int loop_timeout (int cpu) { -return (cpumask_weight (cpu_core_mask (cpu)) >1 ) ?2 :20 ; +return (cpumask_weight (&cpu_data (cpu).core_map) >1 ) ?2 :20 ; }/*
arch/x86/xen/smp.c +0 -4
@@ -206,7 +206,6 @@ static void __init xen_smp_prepare_boot_cpu(void)static void __init xen_smp_prepare_cpus (unsigned int max_cpus) {unsigned cpu; -unsigned int i;if (skip_ioapic_setup) { char *m = (max_cpus == 0) ?
@@ -222,9 +221,6 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus)smp_store_cpu_info (0 );cpu_data (0 ).x86_max_cores =1 ; -for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); - }set_cpu_sibling_map (0 );if (xen_smp_intr_init (0 ))
drivers/cpufreq/acpi-cpufreq.c +1 -1
@@ -557,7 +557,7 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)dmi_check_system (sw_any_bug_dmi_table);if (bios_with_sw_any_bug &&cpumask_weight (policy->cpus) ==1 ) { policy->shared_type =CPUFREQ_SHARED_TYPE_ALL ; -cpumask_copy (policy->cpus,cpu_core_mask (cpu)); +cpumask_copy (policy->cpus, &c->core_map); }#endif
drivers/cpufreq/powernow-k8.c +3 -10
@@ -66,13 +66,6 @@ static struct msr __percpu *msrs;static struct cpufreq_driver cpufreq_amd64_driver; -#ifndef CONFIG_SMP -static inline const struct cpumask *cpu_core_mask (int cpu) -{ -return cpumask_of (0 ); -} -#endif -/* Return a frequency in MHz, given an input fid */ static u32 find_freq_from_fid (u32 fid) {
@@ -715,7 +708,7 @@ static int fill_powernow_table(struct powernow_k8_data *data,pr_debug ("cfid 0x%x, cvid 0x%x\n" , data->currfid, data->currvid); data->powernow_table = powernow_table; -if (cpumask_first (cpu_core_mask (data->cpu)) == data->cpu) +if (cpumask_first (&cpu_data (data->cpu).core_map) == data->cpu)print_basics (data);for (j =0 ; j < data->numps; j++)
@@ -884,7 +877,7 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data) powernow_table[data->acpi_data.state_count].index =0 ; data->powernow_table = powernow_table; -if (cpumask_first (cpu_core_mask (data->cpu)) == data->cpu) +if (cpumask_first (&cpu_data (data->cpu).core_map) == data->cpu)print_basics (data);/* notify BIOS that we exist */
@@ -1326,7 +1319,7 @@ static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol)if (cpu_family ==CPU_HW_PSTATE )cpumask_copy (pol->cpus,cpumask_of (pol->cpu));else -cpumask_copy (pol->cpus,cpu_core_mask (pol->cpu)); +cpumask_copy (pol->cpus, &c->core_map); data->available_cores = pol->cpus;if (cpu_family ==CPU_HW_PSTATE )
Signature · 1 line
1.7.9.1
PATCH v4 5/5 x86: Remove #ifdef CONFIG_SMP sections by moving smp_num_siblings into common.c
In reply to Kevin Winchestersmp_num_siblings was defined in arch/x86/kernel/smpboot.c, making it necessary to wrap any UP relevant code referencing it with #ifdef CONFIG_SMP.
Instead, move the definition to arch/x86/kernel/cpu/common.c, thus making it available always.
--- arch/x86/include/asm/perf_event_p4.h | 14 +++----------- arch/x86/include/asm/smp.h | 6 +----- arch/x86/include/asm/topology.h | 4 +--- arch/x86/kernel/cpu/amd.c | 4 ---- arch/x86/kernel/cpu/common.c | 6 ++++-- arch/x86/kernel/cpu/perf_event_p4.c | 4 ++-- arch/x86/kernel/cpu/proc.c | 5 ++--- arch/x86/kernel/cpu/topology.c | 2 -- arch/x86/kernel/process.c | 3 +-- arch/x86/kernel/smpboot.c | 4 ---- arch/x86/oprofile/nmi_int.c | 6 ------ arch/x86/oprofile/op_model_p4.c | 6 ------ 12 files changed, 14 insertions(+), 50 deletions(-)
arch/x86/include/asm/perf_event_p4.h +3 -11
@@ -8,6 +8,8 @@#include <linux/cpu.h> #include <linux/bitops.h> +#include <asm/smp.h> +/* * NetBurst has performance MSRs shared between * threads if HT is turned on, ie for both logical
@@ -177,20 +179,10 @@ static inline u64 p4_clear_ht_bit(u64 config)return config & ~P4_CONFIG_HT ; } -static inline int p4_ht_active (void ) -{ -#ifdef CONFIG_SMP -return smp_num_siblings >1 ; -#endif -return 0 ; -} -static inline int p4_ht_thread (int cpu) { -#ifdef CONFIG_SMP if (smp_num_siblings ==2 ) - return cpu != cpumask_first(&cpu_data(cpu).sibling_map)); -#endif +return cpu !=cpumask_first (&cpu_data (cpu).sibling_map);return 0 ; }
arch/x86/include/asm/smp.h +1 -5
@@ -24,11 +24,7 @@ extern unsigned int num_processors;static inline bool cpu_has_ht_siblings (void ) { -bool has_siblings = false; -#ifdef CONFIG_SMP - has_siblings = cpu_has_ht && smp_num_siblings >1 ; -#endif -return has_siblings; +return cpu_has_ht && smp_num_siblings >1 ; }DECLARE_PER_CPU (int, cpu_number);
arch/x86/include/asm/topology.h +1 -3
@@ -174,11 +174,9 @@ static inline void arch_fix_phys_package_id(int num, u32 slot)struct pci_bus ;void x86_pci_root_bus_resources (int bus,struct list_head *resources); -#ifdef CONFIG_SMP #define mc_capable () ((boot_cpu_data.x86_max_cores > 1) && \ (cpumask_weight(&boot_cpu_data.core_map) != nr_cpu_ids)) -#define smt_capable () (smp_num_siblings > 1) -#endif +#define smt_capable () (smp_num_siblings > 1)#ifdef CONFIG_NUMA extern int get_mp_bus_to_node (int busnum);
arch/x86/kernel/cpu/amd.c +0 -4
@@ -263,7 +263,6 @@ static int __cpuinit nearby_node(int apicid)* Assumption: Number of cores in each internal node is the same. * (2) AMD processors supporting compute units */ -#ifdef CONFIG_X86_HT static void __cpuinit amd_get_topology (struct cpuinfo_x86 *c) {u32 nodes, cores_per_cu =1 ;
@@ -307,7 +306,6 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c) c->compute_unit_id %= cus_per_node; } } -#endif /* * On a AMD dual core setup the lower bits of the APIC id distingush the cores.
@@ -315,7 +313,6 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c)*/ static void __cpuinit amd_detect_cmp (struct cpuinfo_x86 *c) { -#ifdef CONFIG_X86_HT unsigned bits; bits = c->x86_coreid_bits;
@@ -326,7 +323,6 @@ static void __cpuinit amd_detect_cmp(struct cpuinfo_x86 *c)/* use socket ID also for last level cache */ c->llc_id = c->phys_proc_id;amd_get_topology (c); -#endif }int amd_get_nb_id (int cpu)
arch/x86/kernel/cpu/common.c +4 -2
@@ -48,6 +48,10 @@ cpumask_var_t cpu_initialized_mask;cpumask_var_t cpu_callout_mask;cpumask_var_t cpu_callin_mask; +/* Number of siblings per CPU package */ +int smp_num_siblings =1 ; +EXPORT_SYMBOL (smp_num_siblings); +/* representing cpus for which sibling maps can be computed */ cpumask_var_t cpu_sibling_setup_mask;
@@ -453,7 +457,6 @@ void __cpuinit cpu_detect_cache_sizes(struct cpuinfo_x86 *c)void __cpuinit detect_ht (struct cpuinfo_x86 *c) { -#ifdef CONFIG_X86_HT u32 eax, ebx, ecx, edx;int index_msb, core_bits;static bool printed;
@@ -499,7 +502,6 @@ out: c->cpu_core_id); printed =1 ; } -#endif }static void __cpuinit get_cpu_vendor (struct cpuinfo_x86 *c)
arch/x86/kernel/cpu/perf_event_p4.c +2 -2
@@ -775,7 +775,7 @@ static int p4_validate_raw_event(struct perf_event *event)* if an event is shared across the logical threads * the user needs special permissions to be able to use it */ -if (p4_ht_active () && p4_event_bind_map[v].shared) { +if (smt_capable () && p4_event_bind_map[v].shared) {if (perf_paranoid_cpu () && !capable (CAP_SYS_ADMIN ))return -EACCES ; }
@@ -816,7 +816,7 @@ static int p4_hw_config(struct perf_event *event) event->hw.config =p4_config_pack_escr (escr) |p4_config_pack_cccr (cccr); -if (p4_ht_active () &&p4_ht_thread (cpu)) +if (smt_capable () &&p4_ht_thread (cpu)) event->hw.config =p4_set_ht_bit (event->hw.config);if (event->attr.type ==PERF_TYPE_RAW ) {
arch/x86/kernel/cpu/proc.c +2 -3
@@ -1,16 +1,16 @@ -#include <linux/smp.h> #include <linux/timex.h> #include <linux/string.h> #include <linux/seq_file.h> #include <linux/cpufreq.h> +#include <asm/smp.h> +/* * Get CPU information for use by the procfs. */ static void show_cpuinfo_core (struct seq_file *m,struct cpuinfo_x86 *c,unsigned int cpu) { -#ifdef CONFIG_SMP if (c->x86_max_cores * smp_num_siblings >1 ) {seq_printf (m,"physical id\t: %d\n" , c->phys_proc_id);seq_printf (m,"siblings\t: %d\n" ,cpumask_weight (&c->core_map));
@@ -19,7 +19,6 @@ static void show_cpuinfo_core(struct seq_file *m, struct cpuinfo_x86 *c,seq_printf (m,"apicid\t\t: %d\n" , c->apicid);seq_printf (m,"initial apicid\t: %d\n" , c->initial_apicid); } -#endif }#ifdef CONFIG_X86_32
arch/x86/kernel/cpu/topology.c +0 -2
@@ -28,7 +28,6 @@*/ void __cpuinit detect_extended_topology (struct cpuinfo_x86 *c) { -#ifdef CONFIG_SMP unsigned int eax, ebx, ecx, edx, sub_index;unsigned int ht_mask_width, core_plus_mask_width;unsigned int core_select_mask, core_level_siblings;
@@ -95,5 +94,4 @@ void __cpuinit detect_extended_topology(struct cpuinfo_x86 *c) printed =1 ; }return ; -#endif }
arch/x86/kernel/process.c +1 -2
@@ -587,12 +587,11 @@ static void amd_e400_idle(void)void __cpuinit select_idle_routine (const struct cpuinfo_x86 *c) { -#ifdef CONFIG_SMP if (pm_idle == poll_idle && smp_num_siblings >1 ) {printk_once (KERN_WARNING "WARNING: polling idle and HT enabled," " performance may degrade.\n" ); } -#endif +if (pm_idle)return ;
arch/x86/kernel/smpboot.c +0 -4
@@ -112,10 +112,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;#define set_idle_for_cpu (x, p) (idle_thread_array[(x)] = (p))#endif -/* Number of siblings per CPU package */ -int smp_num_siblings =1 ; -EXPORT_SYMBOL (smp_num_siblings); -/* Per CPU bogomips and other parameters */ DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);EXPORT_PER_CPU_SYMBOL (cpu_info);
arch/x86/oprofile/nmi_int.c +0 -6
@@ -572,11 +572,6 @@ static int __init p4_init(char **cpu_type)if (cpu_model >6 || cpu_model ==5 )return 0 ; -#ifndef CONFIG_SMP - *cpu_type ="i386/p4" ; - model = &op_p4_spec; -return 1 ; -#else switch (smp_num_siblings) {case 1 : *cpu_type ="i386/p4" ;
@@ -588,7 +583,6 @@ static int __init p4_init(char **cpu_type) model = &op_p4_ht2_spec;return 1 ; } -#endif printk (KERN_INFO "oprofile: P4 HyperThreading detected with > 2 threads\n" );printk (KERN_INFO "oprofile: Reverting to timer mode.\n" );
arch/x86/oprofile/op_model_p4.c +0 -6
@@ -42,21 +42,15 @@ static unsigned int num_controls = NUM_CONTROLS_NON_HT;kernel boot-time. */ static inline void setup_num_counters (void ) { -#ifdef CONFIG_SMP if (smp_num_siblings ==2 ) { num_counters =NUM_COUNTERS_HT2 ; num_controls =NUM_CONTROLS_HT2 ; } -#endif }static inline int addr_increment (void ) { -#ifdef CONFIG_SMP return smp_num_siblings ==2 ?2 :1 ; -#else -return 1 ; -#endif }
Signature · 1 line
1.7.9.1
Borislav Petkov
maintainerQuoted 9 lines · Kevin Winchester
Various per-cpu fields are define in
arch/x86/kernel/smpboot.cthat are basically equivalent to the cpu-specific data in structcpuinfo_x86. By moving these fields into the structure, a number of codepaths can be simplified since they no longer need to care about those fields not existing on !SMP builds.The size effects on allno (UP) and allyes (
MAX_SMP) kernels are as follows:
Quoted 8 lines
text data bss dec hex filename
1586721 304864 506208 2397793 249661 vmlinux.allno
1588517 304928 505920 2399365 249c85 vmlinux.allno.after
84706053 13212311 42434560 140352924 85d9d9c vmlinux.allyes
84705333 13213799 42434560 140353692 85da09c vmlinux.allyes.afteAs can be seen, the kernels get slighly larger, but the code reduction/ simplification should be enough to compensate for it.
Just a hint for the future: when you're sending multiple versions of a patchset, it would be really helpful to have changelog in the 0/n message so that the reviewer can know what happened in each version. I.e.,
v4:
Rediff changes against -rc4
v3:
Small cleanups, integrate comments.
etc.
Otherwise, we have to go look at the older patches and compare what changed.
HTH.
Signature · 2 lines
Regards/Gruss, Boris.
Quoted 9 lines · Borislav Petkov
Just a hint for the future: when you're sending multiple versions of a patchset, it would be really helpful to have changelog in the 0/n message so that the reviewer can know what happened in each version. I.e.,
v4:
Rediff changes against -rc4
Quoted 8 lines
v3:
Small cleanups, integrate comments.etc.
Otherwise, we have to go look at the older patches and compare what changed.
Yes, of course, I'm sorry. I've been reading LKML for years...You would think that when I finally get the chance to contribute I would have learned something by this time.
Signature · 1 line
Kevin Winchester
Borislav Petkov
maintainerQuoted 3 lines · Kevin Winchester
Yes, of course, I'm sorry. I've been reading LKML for years...You would think that when I finally get the chance to contribute I would have learned something by this time.
Nah, no worries, you'll get the hang of it with time. Keep up the good work! :-)
Thanks.
Signature · 2 lines
Regards/Gruss, Boris.
Quoted 5 lines · Kevin Winchester
Various per-cpu fields are define in
arch/x86/kernel/smpboot.cthat are basically equivalent to the cpu-specific data in structcpuinfo_x86. By moving these fields into the structure, a number of codepaths can be simplified since they no longer need to care about those fields not existing on !SMP builds.
Works mostly fine, except with the attached 32-bit UP !APIC config I get various build failures (resolved via the patch below) and a link failure (not resolved):
make[1]: Nothing to be done for `all'.
arch/x86/built-in.o:vdso32-setup.c:function detect_extended_topology: error: undefined reference to 'apic' arch/x86/built-in.o:vdso32-setup.c:function detect_extended_topology: error: undefined reference to 'apic' arch/x86/built-in.o:vdso32-setup.c:function detect_extended_topology: error: undefined reference to 'apic' arch/x86/built-in.o:vdso32-setup.c:function detect_ht: error: undefined reference to 'apic' arch/x86/built-in.o:vdso32-setup.c:function x86_msi: error: undefined reference to 'native_setup_msi_irqs' arch/x86/built-in.o:vdso32-setup.c:function x86_msi: error: undefined reference to 'native_teardown_msi_irq'
make: *** [.tmp_vmlinux1] Error 1
Thanks,
Ingo
------------>
arch/x86/kernel/cpu/amd.c | 1 + arch/x86/kernel/cpu/topology.c | 1 + arch/x86/kernel/process.c | 1 + 3 files changed, 3 insertions(+), 0 deletions(-)
arch/x86/kernel/cpu/amd.c +1 -0
@@ -8,6 +8,7 @@#include <linux/sched.h> #include <asm/processor.h> #include <asm/apic.h> +#include <asm/smp.h> #include <asm/cpu.h> #include <asm/pci-direct.h>
arch/x86/kernel/cpu/topology.c +1 -0
@@ -6,6 +6,7 @@#include <linux/cpu.h> #include <asm/apic.h> +#include <asm/smp.h> #include <asm/pat.h> #include <asm/processor.h>
arch/x86/kernel/process.c +1 -0
@@ -18,6 +18,7 @@#include <asm/system.h> #include <asm/apic.h> #include <asm/syscalls.h> +#include <asm/smp.h> #include <asm/idle.h> #include <asm/uaccess.h> #include <asm/i387.h>
#
# Automatically generated file; DO NOT EDIT.
# Linux/i386 3.3.0-rc5 Kernel Configuration
#
# CONFIG_64BIT is not setCONFIG_X86_32=y
# CONFIG_X86_64 is not setCONFIG_X86=yCONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_GENERIC_CMOS_UPDATE=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_LOCKDEP_SUPPORT=yCONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=yCONFIG_MMU=yCONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=yCONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_HWEIGHT=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_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y
# CONFIG_ZONE_DMA32 is not set
# CONFIG_AUDIT_ARCH is not set CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=yCONFIG_X86_HT=y CONFIG_ARCH_HWEIGHT_CFLAGS="-fcall-saved-ecx -fcall-saved-edx" CONFIG_KTIME_SCALAR=y CONFIG_ARCH_CPU_PROBE_RELEASE=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_HAVE_IRQ_WORK=yCONFIG_IRQ_WORK=y
#
# General setup
#CONFIG_EXPERIMENTAL=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_CROSS_COMPILE=""CONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_HAVE_KERNEL_XZ=yCONFIG_HAVE_KERNEL_LZO=y
# CONFIG_KERNEL_GZIP is not setCONFIG_KERNEL_BZIP2=y
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not setCONFIG_DEFAULT_HOSTNAME="(none)"CONFIG_SWAP=y
# CONFIG_SYSVIPC is not setCONFIG_POSIX_MQUEUE=yCONFIG_POSIX_MQUEUE_SYSCTL=yCONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not setCONFIG_FHANDLE=yCONFIG_TASKSTATS=y
# CONFIG_TASK_DELAY_ACCT is not setCONFIG_TASK_XACCT=yCONFIG_TASK_IO_ACCOUNTING=yCONFIG_AUDIT=y
# CONFIG_AUDITSYSCALL is not setCONFIG_AUDIT_LOGINUID_IMMUTABLE=yCONFIG_HAVE_GENERIC_HARDIRQS=y
#
# IRQ subsystem
#CONFIG_GENERIC_HARDIRQS=yCONFIG_HAVE_SPARSE_IRQ=yCONFIG_GENERIC_IRQ_PROBE=yCONFIG_GENERIC_IRQ_SHOW=yCONFIG_GENERIC_PENDING_IRQ=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=y
#
# RCU Subsystem
#CONFIG_TREE_RCU=y
# CONFIG_PREEMPT_RCU is not set
# CONFIG_RCU_TRACE is not setCONFIG_RCU_FANOUT=32
# CONFIG_RCU_FANOUT_EXACT is not set
# CONFIG_TREE_RCU_TRACE is not setCONFIG_IKCONFIG=mCONFIG_IKCONFIG_PROC=yCONFIG_LOG_BUF_SHIFT=20CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=yCONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not setCONFIG_CGROUP_FREEZER=y
# CONFIG_CGROUP_DEVICE is not setCONFIG_CPUSETS=yCONFIG_PROC_PID_CPUSET=yCONFIG_CGROUP_CPUACCT=y
# CONFIG_RESOURCE_COUNTERS is not set
# CONFIG_CGROUP_PERF is not setCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=y
# CONFIG_CFS_BANDWIDTH is not setCONFIG_RT_GROUP_SCHED=yCONFIG_BLK_CGROUP=mCONFIG_DEBUG_BLK_CGROUP=y
# CONFIG_CHECKPOINT_RESTORE is not setCONFIG_NAMESPACES=y
# CONFIG_UTS_NS is not setCONFIG_IPC_NS=yCONFIG_USER_NS=y
# CONFIG_PID_NS is not setCONFIG_NET_NS=yCONFIG_SCHED_AUTOGROUP=yCONFIG_SYSFS_DEPRECATED=y
# CONFIG_SYSFS_DEPRECATED_V2 is not setCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=yCONFIG_RD_LZMA=yCONFIG_RD_XZ=yCONFIG_RD_LZO=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not setCONFIG_SYSCTL=yCONFIG_ANON_INODES=y
# CONFIG_EXPERT is not setCONFIG_UID16=y
# CONFIG_SYSCTL_SYSCALL is not setCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=yCONFIG_HOTPLUG=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_HAVE_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=y
# CONFIG_EMBEDDED is not setCONFIG_HAVE_PERF_EVENTS=yCONFIG_PERF_USE_VMALLOC=y
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=yCONFIG_PERF_COUNTERS=yCONFIG_DEBUG_PERF_USE_VMALLOC=yCONFIG_VM_EVENT_COUNTERS=yCONFIG_PCI_QUIRKS=yCONFIG_SLUB_DEBUG=y
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not setCONFIG_SLUB=yCONFIG_PROFILING=yCONFIG_OPROFILE=m
# CONFIG_OPROFILE_EVENT_MULTIPLEX is not setCONFIG_HAVE_OPROFILE=yCONFIG_OPROFILE_NMI_TIMER=yCONFIG_KPROBES=yCONFIG_JUMP_LABEL=yCONFIG_OPTPROBES=yCONFIG_UPROBES=yCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_KRETPROBES=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_OPTPROBES=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_HAVE_DMA_ATTRS=yCONFIG_USE_GENERIC_SMP_HELPERS=yCONFIG_HAVE_REGS_AND_STACK_ACCESS_API=yCONFIG_HAVE_DMA_API_DEBUG=yCONFIG_HAVE_HW_BREAKPOINT=yCONFIG_HAVE_MIXED_BREAKPOINTS_REGS=yCONFIG_HAVE_USER_RETURN_NOTIFIER=yCONFIG_HAVE_PERF_EVENTS_NMI=yCONFIG_HAVE_ARCH_JUMP_LABEL=yCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=yCONFIG_HAVE_ALIGNED_STRUCT_PAGE=yCONFIG_HAVE_CMPXCHG_LOCAL=yCONFIG_HAVE_CMPXCHG_DOUBLE=y
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not setCONFIG_HAVE_GENERIC_DMA_COHERENT=yCONFIG_SLABINFO=yCONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULES=yCONFIG_MODULE_FORCE_LOAD=yCONFIG_MODULE_UNLOAD=yCONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODVERSIONS is not setCONFIG_MODULE_SRCVERSION_ALL=yCONFIG_STOP_MACHINE=yCONFIG_BLOCK=yCONFIG_LBDAF=yCONFIG_BLK_DEV_BSG=yCONFIG_BLK_DEV_BSGLIB=y
# CONFIG_BLK_DEV_INTEGRITY is not set
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not setCONFIG_ATARI_PARTITION=yCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=y
# CONFIG_MINIX_SUBPARTITION is not set
# CONFIG_SOLARIS_X86_PARTITION is not set
# CONFIG_UNIXWARE_DISKLABEL is not set
# CONFIG_LDM_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not setCONFIG_SUN_PARTITION=yCONFIG_KARMA_PARTITION=yCONFIG_EFI_PARTITION=yCONFIG_SYSV68_PARTITION=y
#
# IO Schedulers
#CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_DEADLINE is not set CONFIG_IOSCHED_CFQ=m
# CONFIG_CFQ_GROUP_IOSCHED is not set CONFIG_DEFAULT_NOOP=y CONFIG_DEFAULT_IOSCHED="noop"
# CONFIG_INLINE_SPIN_TRYLOCK is not set
# CONFIG_INLINE_SPIN_TRYLOCK_BH is not set # CONFIG_INLINE_SPIN_LOCK is not set
# CONFIG_INLINE_SPIN_LOCK_BH is not set
# CONFIG_INLINE_SPIN_LOCK_IRQ is not set
# CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set # CONFIG_INLINE_SPIN_UNLOCK is not set
# CONFIG_INLINE_SPIN_UNLOCK_BH is not set # CONFIG_INLINE_SPIN_UNLOCK_IRQ is not set # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set # CONFIG_INLINE_READ_TRYLOCK is not set
# CONFIG_INLINE_READ_LOCK is not set
# CONFIG_INLINE_READ_LOCK_BH is not set
# CONFIG_INLINE_READ_LOCK_IRQ is not set
# CONFIG_INLINE_READ_LOCK_IRQSAVE is not set # CONFIG_INLINE_READ_UNLOCK is not set
# CONFIG_INLINE_READ_UNLOCK_BH is not set # CONFIG_INLINE_READ_UNLOCK_IRQ is not set # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set # CONFIG_INLINE_WRITE_TRYLOCK is not set
# CONFIG_INLINE_WRITE_LOCK is not set
# CONFIG_INLINE_WRITE_LOCK_BH is not set
# CONFIG_INLINE_WRITE_LOCK_IRQ is not set # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set # CONFIG_INLINE_WRITE_UNLOCK is not set
# CONFIG_INLINE_WRITE_UNLOCK_BH is not set # CONFIG_INLINE_WRITE_UNLOCK_IRQ is not set # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set # CONFIG_MUTEX_SPIN_ON_OWNER is not set CONFIG_FREEZER=y
#
# Processor type and features
#CONFIG_ZONE_DMA=yCONFIG_TICK_ONESHOT=y
# CONFIG_NO_HZ is not set CONFIG_HIGH_RES_TIMERS=y CONFIG_GENERIC_CLOCKEVENTS_BUILD=y CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y CONFIG_SMP=yCONFIG_X86_MPPARSE=y
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_EXTENDED_PLATFORM is not set CONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_X86_32_IRIS is not set
# CONFIG_SCHED_OMIT_FRAME_POINTER is not set CONFIG_KVMTOOL_TEST_ENABLE=y
# CONFIG_PARAVIRT_GUEST is not set CONFIG_NO_BOOTMEM=y
# CONFIG_MEMTEST is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not setCONFIG_M686=y
# 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_MELAN 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_MCORE2 is not set
# CONFIG_MATOM is not set
# CONFIG_X86_GENERIC is not set CONFIG_X86_INTERNODE_CACHE_SHIFT=5 CONFIG_X86_CMPXCHG=yCONFIG_X86_L1_CACHE_SHIFT=5CONFIG_X86_XADD=y
# CONFIG_X86_PPRO_FENCE is not set CONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=y CONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=y CONFIG_X86_MINIMUM_CPU_FAMILY=5 CONFIG_X86_DEBUGCTLMSR=yCONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_CYRIX_32=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_CENTAUR=y CONFIG_CPU_SUP_TRANSMETA_32=y CONFIG_CPU_SUP_UMC_32=y
# CONFIG_HPET_TIMER is not setCONFIG_DMI=y
# CONFIG_IOMMU_HELPER is not set CONFIG_NR_CPUS=8
# CONFIG_SCHED_SMT is not setCONFIG_SCHED_MC=yCONFIG_IRQ_TIME_ACCOUNTING=y CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set CONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=y
# CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS is not set CONFIG_X86_MCE=yCONFIG_X86_MCE_INTEL=yCONFIG_X86_MCE_AMD=yCONFIG_X86_ANCIENT_MCE=y CONFIG_X86_MCE_THRESHOLD=y CONFIG_X86_MCE_INJECT=m CONFIG_X86_THERMAL_VECTOR=yCONFIG_VM86=y
# CONFIG_TOSHIBA is not setCONFIG_I8K=mCONFIG_X86_REBOOTFIXUPS=y
# CONFIG_MICROCODE is not setCONFIG_X86_MSR=mCONFIG_X86_CPUID=m
# CONFIG_NOHIGHMEM is not setCONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not set CONFIG_PAGE_OFFSET=0xC0000000CONFIG_HIGHMEM=y
# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set
# CONFIG_ARCH_DMA_ADDR_T_64BIT is not set CONFIG_ARCH_FLATMEM_ENABLE=y CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SELECT_MEMORY_MODEL=y CONFIG_ILLEGAL_POINTER_VALUE=0 CONFIG_SELECT_MEMORY_MODEL=y CONFIG_FLATMEM_MANUAL=y
# CONFIG_SPARSEMEM_MANUAL is not set CONFIG_FLATMEM=yCONFIG_FLAT_NODE_MEM_MAP=y CONFIG_SPARSEMEM_STATIC=yCONFIG_HAVE_MEMBLOCK=y CONFIG_HAVE_MEMBLOCK_NODE_MAP=y CONFIG_ARCH_DISCARD_MEMBLOCK=y CONFIG_PAGEFLAGS_EXTENDED=y CONFIG_SPLIT_PTLOCK_CPUS=999999 CONFIG_COMPACTION=yCONFIG_MIGRATION=y
# CONFIG_PHYS_ADDR_T_64BIT is not set CONFIG_ZONE_DMA_FLAG=1CONFIG_BOUNCE=yCONFIG_VIRT_TO_BUS=yCONFIG_KSM=yCONFIG_DEFAULT_MMAP_MIN_ADDR=4096 CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_MEMORY_FAILURE is not set
# CONFIG_TRANSPARENT_HUGEPAGE is not set
# CONFIG_CLEANCACHE is not setCONFIG_HIGHPTE=y CONFIG_X86_CHECK_BIOS_CORRUPTION=y
# CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set CONFIG_X86_RESERVE_LOW=64
# CONFIG_MATH_EMULATION is not setCONFIG_MTRR=yCONFIG_MTRR_SANITIZER=y CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=0 CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1 CONFIG_X86_PAT=yCONFIG_ARCH_USES_PG_UNCACHED=y CONFIG_ARCH_RANDOM=yCONFIG_SECCOMP=yCONFIG_CC_STACKPROTECTOR=y
# CONFIG_HZ_100 is not setCONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=250CONFIG_SCHED_HRTICK=yCONFIG_KEXEC=yCONFIG_CRASH_DUMP=yCONFIG_KEXEC_JUMP=y CONFIG_PHYSICAL_START=0x1000000
# CONFIG_RELOCATABLE is not set CONFIG_PHYSICAL_ALIGN=0x1000000 CONFIG_HOTPLUG_CPU=y
# CONFIG_COMPAT_VDSO is not set
# CONFIG_CMDLINE_BOOL is not set CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
#
# Power management and ACPI options
#
# CONFIG_SUSPEND is not setCONFIG_HIBERNATE_CALLBACKS=yCONFIG_HIBERNATION=yCONFIG_PM_STD_PARTITION=""CONFIG_PM_SLEEP=yCONFIG_PM_SLEEP_SMP=yCONFIG_PM_RUNTIME=yCONFIG_PM=yCONFIG_PM_DEBUG=y
# CONFIG_PM_ADVANCED_DEBUG is not setCONFIG_CAN_PM_TRACE=y
# CONFIG_PM_TRACE_RTC is not set
# CONFIG_ACPI is not set
# CONFIG_SFI is not set
# CONFIG_APM is not set
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=yCONFIG_CPU_FREQ_TABLE=m CONFIG_CPU_FREQ_STAT=m
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set # CONFIG_CPU_FREQ_GOV_PERFORMANCE is not set # CONFIG_CPU_FREQ_GOV_POWERSAVE is not set CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=m
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
#
# x86 CPU frequency scaling drivers # CONFIG_X86_POWERNOW_K6=m CONFIG_X86_POWERNOW_K7=m CONFIG_X86_GX_SUSPMOD=m CONFIG_X86_SPEEDSTEP_CENTRINO=m CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y CONFIG_X86_SPEEDSTEP_ICH=m CONFIG_X86_SPEEDSTEP_SMI=m # CONFIG_X86_P4_CLOCKMOD is not set CONFIG_X86_CPUFREQ_NFORCE2=m # CONFIG_X86_LONGRUN is not set # CONFIG_X86_E_POWERSAVER is not set
#
# shared options # CONFIG_X86_SPEEDSTEP_LIB=m # CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK is not set CONFIG_CPU_IDLE=y CONFIG_CPU_IDLE_GOV_LADDER=y # CONFIG_INTEL_IDLE is not set
#
# Bus options (PCI etc.)
#CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not setCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_DOMAINS=y
# CONFIG_PCI_CNB20LE_QUIRK is not set
# CONFIG_PCIEPORTBUS is not setCONFIG_ARCH_SUPPORTS_MSI=yCONFIG_PCI_MSI=yCONFIG_PCI_DEBUG=yCONFIG_PCI_STUB=mCONFIG_HT_IRQ=yCONFIG_PCI_ATS=yCONFIG_PCI_IOV=y
# CONFIG_PCI_PRI is not set
# CONFIG_PCI_PASID is not setCONFIG_PCI_LABEL=yCONFIG_ISA_DMA_API=y
# CONFIG_ISA is not setCONFIG_MCA=yCONFIG_MCA_LEGACY=yCONFIG_MCA_PROC_FS=y
# CONFIG_SCx200 is not set
# CONFIG_OLPC is not set
# CONFIG_ALIX is not setCONFIG_AMD_NB=y
# CONFIG_PCCARD is not set
# CONFIG_HOTPLUG_PCI is not setCONFIG_RAPIDIO=yCONFIG_RAPIDIO_DISC_TIMEOUT=30CONFIG_RAPIDIO_ENABLE_RX_TX_PORTS=y
# CONFIG_RAPIDIO_DEBUG is not setCONFIG_RAPIDIO_TSI57X=yCONFIG_RAPIDIO_CPS_XX=yCONFIG_RAPIDIO_TSI568=y
# CONFIG_RAPIDIO_CPS_GEN2 is not set
# CONFIG_RAPIDIO_TSI500 is not set
#
# Executable file formats / Emulations
#CONFIG_BINFMT_ELF=yCONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=yCONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=yCONFIG_HAVE_AOUT=yCONFIG_BINFMT_AOUT=m
# CONFIG_BINFMT_MISC is not setCONFIG_HAVE_ATOMIC_IOMAP=yCONFIG_HAVE_TEXT_POKE_SMP=yCONFIG_NET=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_UNIX=yCONFIG_UNIX_DIAG=mCONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
# CONFIG_XFRM_SUB_POLICY is not setCONFIG_XFRM_MIGRATE=y
# CONFIG_XFRM_STATISTICS is not setCONFIG_XFRM_IPCOMP=m
# CONFIG_NET_KEY is not setCONFIG_INET=yCONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not setCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=yCONFIG_IP_PNP_BOOTP=y
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not setCONFIG_NET_IPGRE_DEMUX=m
# CONFIG_NET_IPGRE is not setCONFIG_IP_MROUTE=y
# CONFIG_IP_PIMSM_V1 is not set
# CONFIG_IP_PIMSM_V2 is not set
# CONFIG_ARPD is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not setCONFIG_INET_IPCOMP=mCONFIG_INET_XFRM_TUNNEL=mCONFIG_INET_TUNNEL=m
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_BEET is not setCONFIG_INET_LRO=mCONFIG_INET_DIAG=mCONFIG_INET_TCP_DIAG=mCONFIG_INET_UDP_DIAG=mCONFIG_TCP_CONG_ADVANCED=yCONFIG_TCP_CONG_BIC=mCONFIG_TCP_CONG_CUBIC=mCONFIG_TCP_CONG_WESTWOOD=mCONFIG_TCP_CONG_HTCP=mCONFIG_TCP_CONG_HSTCP=m
# CONFIG_TCP_CONG_HYBLA is not set
# CONFIG_TCP_CONG_VEGAS is not setCONFIG_TCP_CONG_SCALABLE=mCONFIG_TCP_CONG_LP=m
# CONFIG_TCP_CONG_VENO is not set
# CONFIG_TCP_CONG_YEAH is not setCONFIG_TCP_CONG_ILLINOIS=mCONFIG_DEFAULT_RENO=yCONFIG_DEFAULT_TCP_CONG="reno"CONFIG_TCP_MD5SIG=y
# CONFIG_IPV6 is not setCONFIG_NETLABEL=yCONFIG_NETWORK_SECMARK=yCONFIG_NETWORK_PHY_TIMESTAMPING=y
# CONFIG_NETFILTER is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not setCONFIG_RDS=m
# CONFIG_RDS_RDMA is not setCONFIG_RDS_TCP=m
# CONFIG_RDS_DEBUG is not set
# CONFIG_TIPC is not setCONFIG_ATM=m
# CONFIG_ATM_CLIP is not set
# CONFIG_ATM_LANE is not setCONFIG_ATM_BR2684=mCONFIG_ATM_BR2684_IPFILTER=yCONFIG_L2TP=m
# CONFIG_L2TP_DEBUGFS is not set
# CONFIG_L2TP_V3 is not setCONFIG_STP=mCONFIG_GARP=m
# CONFIG_BRIDGE is not set
# CONFIG_NET_DSA is not setCONFIG_VLAN_8021Q=mCONFIG_VLAN_8021Q_GVRP=yCONFIG_DECNET=m
# CONFIG_DECNET_ROUTER is not setCONFIG_LLC=m
# CONFIG_LLC2 is not setCONFIG_IPX=mCONFIG_IPX_INTERN=y
# CONFIG_ATALK is not setCONFIG_X25=m
# CONFIG_LAPB is not set
# CONFIG_ECONET is not setCONFIG_WAN_ROUTER=m
# CONFIG_PHONET is not set
# CONFIG_IEEE802154 is not set
# CONFIG_NET_SCHED is not set
# CONFIG_DCB is not setCONFIG_DNS_RESOLVER=yCONFIG_BATMAN_ADV=mCONFIG_BATMAN_ADV_DEBUG=y
# CONFIG_OPENVSWITCH is not setCONFIG_RPS=yCONFIG_RFS_ACCEL=yCONFIG_XPS=y
# CONFIG_NETPRIO_CGROUP is not setCONFIG_BQL=y
#
# Network testing
#CONFIG_NET_PKTGEN=m
# CONFIG_NET_TCPPROBE is not set
# CONFIG_HAMRADIO is not setCONFIG_CAN=mCONFIG_CAN_RAW=mCONFIG_CAN_BCM=m
# CONFIG_CAN_GW is not set
#
# CAN Device Drivers
#CONFIG_CAN_VCAN=mCONFIG_CAN_SLCAN=mCONFIG_CAN_DEV=m
# CONFIG_CAN_CALC_BITTIMING is not setCONFIG_CAN_JANZ_ICAN3=m
# CONFIG_PCH_CAN is not set
# CONFIG_CAN_SJA1000 is not set
# CONFIG_CAN_C_CAN is not set
# CONFIG_CAN_CC770 is not set
#
# CAN USB interfaces
#CONFIG_CAN_EMS_USB=m
# CONFIG_CAN_ESD_USB2 is not set
# CONFIG_CAN_SOFTING is not setCONFIG_CAN_DEBUG_DEVICES=y
# CONFIG_IRDA is not set
# CONFIG_BT is not setCONFIG_AF_RXRPC=m
# CONFIG_AF_RXRPC_DEBUG is not setCONFIG_RXKAD=mCONFIG_WIRELESS=yCONFIG_CFG80211=mCONFIG_NL80211_TESTMODE=y
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_REG_DEBUG is not set
# CONFIG_CFG80211_DEFAULT_PS is not set
# CONFIG_CFG80211_DEBUGFS is not set
# CONFIG_CFG80211_INTERNAL_REGDB is not set
# CONFIG_CFG80211_WEXT is not setCONFIG_LIB80211=mCONFIG_LIB80211_DEBUG=yCONFIG_MAC80211=mCONFIG_MAC80211_HAS_RC=yCONFIG_MAC80211_RC_MINSTREL=yCONFIG_MAC80211_RC_MINSTREL_HT=yCONFIG_MAC80211_RC_DEFAULT_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
# CONFIG_MAC80211_MESH is not set
# CONFIG_MAC80211_LEDS is not set
# CONFIG_MAC80211_DEBUGFS is not setCONFIG_MAC80211_DEBUG_MENU=y
# CONFIG_MAC80211_NOINLINE is not set
# CONFIG_MAC80211_VERBOSE_DEBUG is not setCONFIG_MAC80211_HT_DEBUG=yCONFIG_MAC80211_TKIP_DEBUG=y
# CONFIG_MAC80211_IBSS_DEBUG is not set
# CONFIG_MAC80211_VERBOSE_PS_DEBUG is not setCONFIG_MAC80211_VERBOSE_TDLS_DEBUG=y
# CONFIG_WIMAX is not set
# CONFIG_RFKILL is not set
# CONFIG_RFKILL_REGULATOR is not setCONFIG_NET_9P=yCONFIG_NET_9P_VIRTIO=yCONFIG_NET_9P_RDMA=mCONFIG_NET_9P_DEBUG=yCONFIG_CAIF=mCONFIG_CAIF_DEBUG=yCONFIG_CAIF_NETDEV=m
# CONFIG_CAIF_USB is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
#
# Device Drivers
#
#
# Generic Driver Options
#CONFIG_UEVENT_HELPER_PATH=""CONFIG_DEVTMPFS=y
# CONFIG_DEVTMPFS_MOUNT is not setCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=yCONFIG_FW_LOADER=y
# CONFIG_FIRMWARE_IN_KERNEL is not setCONFIG_EXTRA_FIRMWARE=""
# CONFIG_DEBUG_DRIVER is not setCONFIG_DEBUG_DEVRES=y
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not setCONFIG_REGMAP=yCONFIG_REGMAP_I2C=m
# CONFIG_DMA_SHARED_BUFFER is not setCONFIG_CONNECTOR=m
# CONFIG_MTD is not set
# CONFIG_PARPORT is not setCONFIG_BLK_DEV=yCONFIG_BLK_DEV_FD=mCONFIG_BLK_CPQ_DA=y
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not setCONFIG_BLK_DEV_LOOP=mCONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_CRYPTOLOOP is not setCONFIG_BLK_DEV_DRBD=mCONFIG_DRBD_FAULT_INJECTION=yCONFIG_BLK_DEV_NBD=m
# CONFIG_BLK_DEV_NVME is not setCONFIG_BLK_DEV_SX8=m
# CONFIG_BLK_DEV_UB is not set
# CONFIG_BLK_DEV_RAM is not setCONFIG_CDROM_PKTCDVD=mCONFIG_CDROM_PKTCDVD_BUFFERS=8CONFIG_CDROM_PKTCDVD_WCACHE=yCONFIG_ATA_OVER_ETH=mCONFIG_VIRTIO_BLK=y
# CONFIG_BLK_DEV_HD is not set
# CONFIG_BLK_DEV_RBD is not set
#
# Misc devices
#
# CONFIG_SENSORS_LIS3LV02D is not set
# CONFIG_AD525X_DPOT is not set
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not setCONFIG_INTEL_MID_PTI=mCONFIG_SGI_IOC4=mCONFIG_TIFM_CORE=mCONFIG_TIFM_7XX1=mCONFIG_ICS932S401=mCONFIG_ENCLOSURE_SERVICES=mCONFIG_CS5535_MFGPT=mCONFIG_CS5535_MFGPT_DEFAULT_IRQ=7CONFIG_CS5535_CLOCK_EVENT_SRC=mCONFIG_HP_ILO=m
# CONFIG_APDS9802ALS is not setCONFIG_ISL29003=mCONFIG_ISL29020=m
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_SENSORS_BH1780 is not set
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_SENSORS_APDS990X is not setCONFIG_HMC6352=m
# CONFIG_DS1682 is not setCONFIG_VMWARE_BALLOON=m
# CONFIG_BMP085 is not setCONFIG_PCH_PHUB=mCONFIG_USB_SWITCH_FSA9480=m
# CONFIG_C2PORT is not set
#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_LEGACY is not set
# CONFIG_EEPROM_MAX6875 is not setCONFIG_EEPROM_93CX6=mCONFIG_CB710_CORE=mCONFIG_CB710_DEBUG=yCONFIG_CB710_DEBUG_ASSUMPTIONS=y
#
# Texas Instruments shared transport line discipline #
# CONFIG_SENSORS_LIS3_I2C is not set
#
# Altera FPGA firmware download module
#CONFIG_ALTERA_STAPL=mCONFIG_HAVE_IDE=y
# CONFIG_IDE is not set
#
# SCSI device support
#CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not setCONFIG_SCSI=yCONFIG_SCSI_DMA=y
# CONFIG_SCSI_TGT is not setCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=m
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not setCONFIG_CHR_DEV_SG=mCONFIG_CHR_DEV_SCH=mCONFIG_SCSI_ENCLOSURE=m
# CONFIG_SCSI_MULTI_LUN is not setCONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not setCONFIG_SCSI_SCAN_ASYNC=yCONFIG_SCSI_WAIT_SCAN=m
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=yCONFIG_SCSI_FC_ATTRS=mCONFIG_SCSI_ISCSI_ATTRS=mCONFIG_SCSI_SAS_ATTRS=mCONFIG_SCSI_SAS_LIBSAS=mCONFIG_SCSI_SAS_ATA=y
# CONFIG_SCSI_SAS_HOST_SMP is not set
# CONFIG_SCSI_SRP_ATTRS is not setCONFIG_SCSI_LOWLEVEL=yCONFIG_ISCSI_TCP=mCONFIG_ISCSI_BOOT_SYSFS=m
# CONFIG_SCSI_CXGB3_ISCSI is not setCONFIG_SCSI_CXGB4_ISCSI=m
# CONFIG_SCSI_BNX2_ISCSI is not setCONFIG_SCSI_BNX2X_FCOE=mCONFIG_BE2ISCSI=m
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not setCONFIG_SCSI_3W_9XXX=mCONFIG_SCSI_3W_SAS=m
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not setCONFIG_SCSI_AIC7XXX=yCONFIG_AIC7XXX_CMDS_PER_DEVICE=32CONFIG_AIC7XXX_RESET_DELAY_MS=5000CONFIG_AIC7XXX_DEBUG_ENABLE=yCONFIG_AIC7XXX_DEBUG_MASK=0CONFIG_AIC7XXX_REG_PRETTY_PRINT=y
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not setCONFIG_SCSI_AIC94XX=mCONFIG_AIC94XX_DEBUG=y
# CONFIG_SCSI_MVSAS is not setCONFIG_SCSI_MVUMI=m
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not setCONFIG_MEGARAID_NEWGEN=yCONFIG_MEGARAID_MM=mCONFIG_MEGARAID_MAILBOX=mCONFIG_MEGARAID_LEGACY=m
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_MPT2SAS is not setCONFIG_SCSI_HPTIOP=m
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_VMWARE_PVSCSI is not setCONFIG_LIBFC=mCONFIG_LIBFCOE=m
# CONFIG_FCOE is not set
# CONFIG_FCOE_FNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not setCONFIG_SCSI_FUTURE_DOMAIN=mCONFIG_SCSI_FD_MCS=m
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_ISCI is not set
# CONFIG_SCSI_IBMMCA is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not setCONFIG_SCSI_INIA100=mCONFIG_SCSI_NCR_D700=mCONFIG_SCSI_STEX=m
# CONFIG_SCSI_SYM53C8XX_2 is not setCONFIG_SCSI_IPR=m
# CONFIG_SCSI_IPR_TRACE is not setCONFIG_SCSI_IPR_DUMP=yCONFIG_SCSI_NCR_Q720=mCONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32CONFIG_SCSI_NCR53C8XX_SYNC=20CONFIG_SCSI_QLOGIC_1280=mCONFIG_SCSI_QLA_FC=mCONFIG_SCSI_QLA_ISCSI=m
# CONFIG_SCSI_LPFC is not setCONFIG_SCSI_SIM710=m
# CONFIG_SCSI_DC395x is not setCONFIG_SCSI_DC390T=mCONFIG_SCSI_NSP32=m
# CONFIG_SCSI_DEBUG is not setCONFIG_SCSI_PMCRAID=m
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_SRP is not set
# CONFIG_SCSI_BFA_FC is not set
# CONFIG_SCSI_DH is not setCONFIG_SCSI_OSD_INITIATOR=m
# CONFIG_SCSI_OSD_ULD is not setCONFIG_SCSI_OSD_DPRINT_SENSE=1CONFIG_SCSI_OSD_DEBUG=yCONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not setCONFIG_ATA_VERBOSE_ERROR=yCONFIG_SATA_PMP=y
#
# Controllers with non-SFF native interface
#CONFIG_SATA_AHCI=y
# CONFIG_SATA_AHCI_PLATFORM is not setCONFIG_SATA_INIC162X=m
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not setCONFIG_ATA_SFF=y
#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not setCONFIG_SATA_QSTOR=mCONFIG_SATA_SX4=mCONFIG_ATA_BMDMA=y
#
# SATA SFF controllers with BMDMA
#CONFIG_ATA_PIIX=yCONFIG_SATA_MV=mCONFIG_SATA_NV=yCONFIG_SATA_PROMISE=mCONFIG_SATA_SIL=m
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not setCONFIG_SATA_VITESSE=m
#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not setCONFIG_PATA_AMD=y
# CONFIG_PATA_ARTOP is not setCONFIG_PATA_ATIIXP=m
# CONFIG_PATA_ATP867X is not setCONFIG_PATA_CMD64X=m
# CONFIG_PATA_CS5520 is not set
# CONFIG_PATA_CS5530 is not set
# CONFIG_PATA_CS5535 is not setCONFIG_PATA_CS5536=mCONFIG_PATA_CYPRESS=m
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not setCONFIG_PATA_HPT37X=mCONFIG_PATA_HPT3X2N=m
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not setCONFIG_PATA_JMICRON=mCONFIG_PATA_MARVELL=mCONFIG_PATA_NETCELL=m
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not setCONFIG_PATA_OLDPIIX=yCONFIG_PATA_OPTIDMA=m
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
# CONFIG_PATA_SC1200 is not setCONFIG_PATA_SCH=m
# CONFIG_PATA_SERVERWORKS is not setCONFIG_PATA_SIL680=mCONFIG_PATA_SIS=mCONFIG_PATA_TOSHIBA=mCONFIG_PATA_TRIFLEX=mCONFIG_PATA_VIA=y
# CONFIG_PATA_WINBOND is not set
#
# PIO-only SFF controllers
#CONFIG_PATA_CMD640_PCI=m
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not setCONFIG_PATA_OPTI=mCONFIG_PATA_RZ1000=m
#
# Generic fallback / legacy drivers
#
# CONFIG_ATA_GENERIC is not setCONFIG_PATA_LEGACY=mCONFIG_MD=yCONFIG_BLK_DEV_MD=mCONFIG_MD_LINEAR=m
# CONFIG_MD_RAID0 is not setCONFIG_MD_RAID1=mCONFIG_MD_RAID10=mCONFIG_MD_RAID456=m
# CONFIG_MULTICORE_RAID456 is not set
# CONFIG_MD_MULTIPATH is not set
# CONFIG_MD_FAULTY is not setCONFIG_BLK_DEV_DM=mCONFIG_DM_DEBUG=y
# CONFIG_DM_CRYPT is not set
# CONFIG_DM_SNAPSHOT is not set
# CONFIG_DM_THIN_PROVISIONING is not setCONFIG_DM_MIRROR=mCONFIG_DM_RAID=mCONFIG_DM_LOG_USERSPACE=mCONFIG_DM_ZERO=mCONFIG_DM_MULTIPATH=mCONFIG_DM_MULTIPATH_QL=m
# CONFIG_DM_MULTIPATH_ST is not set
# CONFIG_DM_DELAY is not setCONFIG_DM_UEVENT=yCONFIG_DM_FLAKEY=m
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not setCONFIG_FIREWIRE_NOSY=mCONFIG_I2O=mCONFIG_I2O_LCT_NOTIFY_ON_CHANGES=y
# CONFIG_I2O_EXT_ADAPTEC is not set
# CONFIG_I2O_CONFIG is not setCONFIG_I2O_BUS=mCONFIG_I2O_BLOCK=mCONFIG_I2O_SCSI=m
# CONFIG_I2O_PROC is not set
# CONFIG_MACINTOSH_DRIVERS is not setCONFIG_NETDEVICES=yCONFIG_NET_CORE=yCONFIG_BONDING=m
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not setCONFIG_MII=y
# CONFIG_NET_TEAM is not setCONFIG_MACVLAN=m
# CONFIG_MACVTAP is not setCONFIG_NETCONSOLE=yCONFIG_NETPOLL=yCONFIG_NETPOLL_TRAP=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_RIONET=mCONFIG_RIONET_TX_SIZE=128CONFIG_RIONET_RX_SIZE=128
# CONFIG_TUN is not setCONFIG_VETH=mCONFIG_VIRTIO_NET=yCONFIG_ARCNET=m
# CONFIG_ARCNET_1201 is not set
# CONFIG_ARCNET_1051 is not setCONFIG_ARCNET_RAW=mCONFIG_ARCNET_CAP=m
CONFIG_ARCNET_COM90xx=m
CONFIG_ARCNET_COM90xxIO=mCONFIG_ARCNET_RIM_I=mCONFIG_ARCNET_COM20020=mCONFIG_ARCNET_COM20020_PCI=m
# CONFIG_ATM_DRIVERS is not set
#
# CAIF transport drivers
#CONFIG_CAIF_TTY=mCONFIG_CAIF_SPI_SLAVE=m
# CONFIG_CAIF_SPI_SYNC is not set
# CONFIG_CAIF_HSI is not setCONFIG_ETHERNET=yCONFIG_MDIO=mCONFIG_NET_VENDOR_3COM=y
# CONFIG_EL3 is not setCONFIG_VORTEX=y
# CONFIG_TYPHOON is not set
# CONFIG_NET_VENDOR_ADAPTEC is not setCONFIG_NET_VENDOR_ALTEON=y
# CONFIG_ACENIC is not setCONFIG_NET_VENDOR_AMD=yCONFIG_AMD8111_ETH=m
# CONFIG_PCNET32 is not setCONFIG_DEPCA=mCONFIG_NET_VENDOR_ATHEROS=yCONFIG_ATL2=mCONFIG_ATL1=mCONFIG_ATL1E=m
# CONFIG_ATL1C is not setCONFIG_NET_VENDOR_BROADCOM=yCONFIG_B44=mCONFIG_B44_PCI_AUTOSELECT=yCONFIG_B44_PCICORE_AUTOSELECT=yCONFIG_B44_PCI=yCONFIG_BNX2=mCONFIG_CNIC=mCONFIG_TIGON3=yCONFIG_BNX2X=mCONFIG_NET_VENDOR_BROCADE=y
# CONFIG_BNA is not set
# CONFIG_NET_CALXEDA_XGMAC is not setCONFIG_NET_VENDOR_CHELSIO=yCONFIG_CHELSIO_T1=mCONFIG_CHELSIO_T1_1G=yCONFIG_CHELSIO_T3=mCONFIG_CHELSIO_T4=m
# CONFIG_CHELSIO_T4VF is not setCONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not set
# CONFIG_DNET is not set
# CONFIG_NET_VENDOR_DEC is not setCONFIG_NET_VENDOR_DLINK=yCONFIG_DL2K=m
# CONFIG_SUNDANCE is not setCONFIG_NET_VENDOR_EMULEX=y
# CONFIG_BE2NET is not set
# CONFIG_NET_VENDOR_EXAR is not set
# CONFIG_NET_VENDOR_FUJITSU is not setCONFIG_NET_VENDOR_HP=yCONFIG_HP100=mCONFIG_NET_VENDOR_IBM=y
# CONFIG_IBM_EMAC_ZMII is not set
# CONFIG_IBM_EMAC_RGMII is not set
# CONFIG_IBM_EMAC_TAH is not set
# CONFIG_IBM_EMAC_EMAC4 is not set
# CONFIG_IBM_EMAC_NO_FLOW_CTRL is not set
# CONFIG_IBM_EMAC_MAL_CLR_ICINTSTAT is not set
# CONFIG_IBM_EMAC_MAL_COMMON_ERR is not set
# CONFIG_NET_VENDOR_INTEL is not setCONFIG_IP1000=mCONFIG_JME=m
# CONFIG_NET_VENDOR_MARVELL is not setCONFIG_NET_VENDOR_MELLANOX=yCONFIG_MLX4_EN=mCONFIG_MLX4_CORE=mCONFIG_MLX4_DEBUG=y
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MYRI is not set
# CONFIG_FEALNX is not set
# CONFIG_NET_VENDOR_NATSEMI is not setCONFIG_NET_VENDOR_NVIDIA=yCONFIG_FORCEDETH=yCONFIG_NET_VENDOR_OKI=y
# CONFIG_PCH_GBE is not set
# CONFIG_ETHOC is not set
# CONFIG_NET_PACKET_ENGINE is not setCONFIG_NET_VENDOR_QLOGIC=yCONFIG_QLA3XXX=mCONFIG_QLCNIC=mCONFIG_QLGE=m
# CONFIG_NETXEN_NIC is not setCONFIG_NET_VENDOR_REALTEK=yCONFIG_8139CP=mCONFIG_8139TOO=yCONFIG_8139TOO_PIO=yCONFIG_8139TOO_TUNE_TWISTER=y
# CONFIG_8139TOO_8129 is not set
# CONFIG_8139_OLD_RX_RESET is not set
# CONFIG_R8169 is not setCONFIG_NET_VENDOR_RDC=yCONFIG_R6040=m
# CONFIG_NET_VENDOR_SEEQ is not set
# CONFIG_NET_VENDOR_SILAN is not set
# CONFIG_NET_VENDOR_SIS is not setCONFIG_SFC=m
# CONFIG_NET_VENDOR_SMSC is not setCONFIG_NET_VENDOR_STMICRO=yCONFIG_STMMAC_ETH=mCONFIG_STMMAC_PLATFORM=m
# CONFIG_STMMAC_PCI is not set
# CONFIG_STMMAC_DEBUG_FS is not setCONFIG_STMMAC_DA=y
# CONFIG_STMMAC_RING is not setCONFIG_STMMAC_CHAINED=y
# CONFIG_NET_VENDOR_SUN is not set
# CONFIG_NET_VENDOR_TEHUTI is not setCONFIG_NET_VENDOR_TI=y
# CONFIG_TLAN is not set
# CONFIG_NET_VENDOR_VIA is not setCONFIG_FDDI=m
# CONFIG_DEFXX is not set
# CONFIG_SKFP is not set
# CONFIG_HIPPI is not setCONFIG_PHYLIB=y
#
# MII PHY device drivers
#
# CONFIG_MARVELL_PHY is not setCONFIG_DAVICOM_PHY=m
# CONFIG_QSEMI_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_CICADA_PHY is not setCONFIG_VITESSE_PHY=mCONFIG_SMSC_PHY=m
# CONFIG_BROADCOM_PHY is not set
# CONFIG_ICPLUS_PHY is not setCONFIG_REALTEK_PHY=m
# CONFIG_NATIONAL_PHY is not set
# CONFIG_STE10XP is not setCONFIG_LSI_ET1011C_PHY=m
# CONFIG_MICREL_PHY is not set
# CONFIG_FIXED_PHY is not setCONFIG_MDIO_BITBANG=m
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_TR is not set
#
# USB Network Adapters
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not setCONFIG_USB_RTL8150=m
# CONFIG_USB_USBNET is not setCONFIG_USB_IPHETH=m
# CONFIG_WLAN is not set
#
# Enable WiMAX (Networking options) to see the WiMAX drivers #
# CONFIG_WAN is not setCONFIG_VMXNET3=m
# CONFIG_ISDN is not set
# CONFIG_PHONE is not set
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_FF_MEMLESS=mCONFIG_INPUT_POLLDEV=y
# CONFIG_INPUT_SPARSEKMAP is not set
#
# 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=mCONFIG_INPUT_EVBUG=m
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 is not setCONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_KEYBOARD_QT2160 is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_TCA6416 is not setCONFIG_KEYBOARD_TCA8418=mCONFIG_KEYBOARD_LM8323=m
# CONFIG_KEYBOARD_MAX7359 is not setCONFIG_KEYBOARD_MCS=m
# CONFIG_KEYBOARD_MPR121 is not setCONFIG_KEYBOARD_NEWTON=mCONFIG_KEYBOARD_OPENCORES=mCONFIG_KEYBOARD_STOWAWAY=mCONFIG_KEYBOARD_SUNKBD=m
# CONFIG_KEYBOARD_XTKBD is not setCONFIG_INPUT_MOUSE=y
# CONFIG_MOUSE_PS2 is not set
# CONFIG_MOUSE_SERIAL is not setCONFIG_MOUSE_APPLETOUCH=mCONFIG_MOUSE_BCM5974=mCONFIG_MOUSE_VSXXXAA=mCONFIG_MOUSE_SYNAPTICS_I2C=m
# CONFIG_INPUT_JOYSTICK is not setCONFIG_INPUT_TABLET=yCONFIG_TABLET_USB_ACECAD=m
# CONFIG_TABLET_USB_AIPTEK is not set
# CONFIG_TABLET_USB_GTCO is not set
# CONFIG_TABLET_USB_HANWANG is not set
# CONFIG_TABLET_USB_KBTAB is not set
# CONFIG_TABLET_USB_WACOM is not setCONFIG_INPUT_TOUCHSCREEN=yCONFIG_TOUCHSCREEN_AD7879=m
# CONFIG_TOUCHSCREEN_AD7879_I2C is not set
# CONFIG_TOUCHSCREEN_ATMEL_MXT is not set
# CONFIG_TOUCHSCREEN_BU21013 is not setCONFIG_TOUCHSCREEN_DYNAPRO=m
# CONFIG_TOUCHSCREEN_HAMPSHIRE is not setCONFIG_TOUCHSCREEN_EETI=m
# CONFIG_TOUCHSCREEN_EGALAX is not setCONFIG_TOUCHSCREEN_FUJITSU=mCONFIG_TOUCHSCREEN_GUNZE=m
# CONFIG_TOUCHSCREEN_ELO is not setCONFIG_TOUCHSCREEN_WACOM_W8001=m
# CONFIG_TOUCHSCREEN_MAX11801 is not set
# CONFIG_TOUCHSCREEN_MCS5000 is not setCONFIG_TOUCHSCREEN_MTOUCH=mCONFIG_TOUCHSCREEN_INEXIO=mCONFIG_TOUCHSCREEN_MK712=m
# CONFIG_TOUCHSCREEN_PENMOUNT is not setCONFIG_TOUCHSCREEN_TOUCHRIGHT=mCONFIG_TOUCHSCREEN_TOUCHWIN=m
# CONFIG_TOUCHSCREEN_PIXCIR is not set
# CONFIG_TOUCHSCREEN_WM97XX is not setCONFIG_TOUCHSCREEN_USB_COMPOSITE=mCONFIG_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=yCONFIG_TOUCHSCREEN_USB_ELO=y
# CONFIG_TOUCHSCREEN_USB_E2I is not setCONFIG_TOUCHSCREEN_USB_ZYTRONIC=yCONFIG_TOUCHSCREEN_USB_ETT_TC45USB=yCONFIG_TOUCHSCREEN_USB_NEXIO=yCONFIG_TOUCHSCREEN_TOUCHIT213=mCONFIG_TOUCHSCREEN_TSC_SERIO=mCONFIG_TOUCHSCREEN_TSC2007=mCONFIG_TOUCHSCREEN_ST1232=m
# CONFIG_TOUCHSCREEN_TPS6507X is not set
# CONFIG_INPUT_MISC is not set
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=m
# CONFIG_SERIO_CT82C710 is not setCONFIG_SERIO_PCIPS2=mCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=mCONFIG_SERIO_ALTERA_PS2=mCONFIG_SERIO_PS2MULT=mCONFIG_GAMEPORT=m
# CONFIG_GAMEPORT_NS558 is not setCONFIG_GAMEPORT_L4=m
# CONFIG_GAMEPORT_EMU10K1 is not set
# CONFIG_GAMEPORT_FM801 is not set
#
# Character devices
#CONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_VT_CONSOLE_SLEEP=yCONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not setCONFIG_UNIX98_PTYS=y
# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
# CONFIG_LEGACY_PTYS is not setCONFIG_SERIAL_NONSTANDARD=yCONFIG_ROCKETPORT=m
# CONFIG_CYCLADES is not set
# CONFIG_MOXA_INTELLIO is not setCONFIG_MOXA_SMARTIO=m
# CONFIG_SYNCLINK is not set
# CONFIG_SYNCLINKMP is not setCONFIG_SYNCLINK_GT=m
# CONFIG_NOZOMI is not setCONFIG_ISI=m
# CONFIG_N_HDLC is not set
# CONFIG_N_GSM is not set
# CONFIG_TRACE_ROUTER is not setCONFIG_TRACE_SINK=m
# CONFIG_DEVKMEM is not set
# CONFIG_STALDRV is not set
#
# Serial drivers
#CONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_SERIAL_8250_PCI=yCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set
# CONFIG_SERIAL_8250_MCA is not set
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MFD_HSU is not setCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_CONSOLE_POLL=yCONFIG_SERIAL_JSM=mCONFIG_SERIAL_TIMBERDALE=m
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not setCONFIG_SERIAL_PCH_UART=mCONFIG_SERIAL_XILINX_PS_UART=mCONFIG_HVC_DRIVER=yCONFIG_VIRTIO_CONSOLE=y
# CONFIG_IPMI_HANDLER is not setCONFIG_HW_RANDOM=m
# CONFIG_HW_RANDOM_TIMERIOMEM is not setCONFIG_HW_RANDOM_INTEL=m
# CONFIG_HW_RANDOM_AMD is not set
# CONFIG_HW_RANDOM_GEODE is not setCONFIG_HW_RANDOM_VIA=m
# CONFIG_HW_RANDOM_VIRTIO is not set
# CONFIG_NVRAM is not setCONFIG_RTC=mCONFIG_GEN_RTC=mCONFIG_GEN_RTC_X=yCONFIG_R3964=mCONFIG_APPLICOM=m
# CONFIG_SONYPI is not set
# CONFIG_MWAVE is not set
CONFIG_PC8736x_GPIO=mCONFIG_NSC_GPIO=m
# CONFIG_RAW_DRIVER is not setCONFIG_HANGCHECK_TIMER=mCONFIG_TCG_TPM=yCONFIG_TCG_TIS=yCONFIG_TCG_NSC=mCONFIG_TCG_ATMEL=mCONFIG_TELCLOCK=mCONFIG_DEVPORT=y
# CONFIG_RAMOOPS is not setCONFIG_I2C=mCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=mCONFIG_I2C_MUX=m
#
# Multiplexer I2C Chip support
#
# CONFIG_I2C_MUX_PCA9541 is not set
CONFIG_I2C_MUX_PCA954x=m
# CONFIG_I2C_HELPER_AUTO is not setCONFIG_I2C_SMBUS=m
#
# I2C Algorithms
#CONFIG_I2C_ALGOBIT=mCONFIG_I2C_ALGOPCF=mCONFIG_I2C_ALGOPCA=m
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not setCONFIG_I2C_ALI1563=mCONFIG_I2C_ALI15X3=m
# CONFIG_I2C_AMD756 is not setCONFIG_I2C_AMD8111=m
# CONFIG_I2C_I801 is not set
# CONFIG_I2C_ISCH is not setCONFIG_I2C_PIIX4=mCONFIG_I2C_NFORCE2=mCONFIG_I2C_NFORCE2_S4985=mCONFIG_I2C_SIS5595=mCONFIG_I2C_SIS630=mCONFIG_I2C_SIS96X=mCONFIG_I2C_VIA=mCONFIG_I2C_VIAPRO=m
#
# I2C system bus drivers (mostly embedded / system-on-chip) #CONFIG_I2C_DESIGNWARE_PCI=m
# CONFIG_I2C_INTEL_MID is not set
# CONFIG_I2C_OCORES is not set CONFIG_I2C_PCA_PLATFORM=m
# CONFIG_I2C_PXA_PCI is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_XILINX is not set
# CONFIG_I2C_EG20T is not set
#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_TAOS_EVM is not setCONFIG_I2C_TINY_USB=m
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_STUB=m
# CONFIG_SCx200_ACB is not set
# CONFIG_I2C_DEBUG_CORE is not setCONFIG_I2C_DEBUG_ALGO=yCONFIG_I2C_DEBUG_BUS=y
# CONFIG_SPI is not set
#
# PPS support
#
# CONFIG_PPS is not set
#
# PPS generators support
#
#
# PTP clock support
#
#
# Enable Device Drivers -> PPS to see the PTP clock options. #CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
# CONFIG_GPIOLIB is not setCONFIG_W1=m
# CONFIG_W1_CON is not set
#
# 1-wire Bus Masters
#CONFIG_W1_MASTER_MATROX=m
# CONFIG_W1_MASTER_DS2490 is not set
# CONFIG_W1_MASTER_DS2482 is not set
# CONFIG_W1_MASTER_DS1WM is not set
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=mCONFIG_W1_SLAVE_SMEM=mCONFIG_W1_SLAVE_DS2408=m
# CONFIG_W1_SLAVE_DS2423 is not setCONFIG_W1_SLAVE_DS2431=mCONFIG_W1_SLAVE_DS2433=m
# CONFIG_W1_SLAVE_DS2433_CRC is not set
# CONFIG_W1_SLAVE_DS2760 is not setCONFIG_W1_SLAVE_DS2780=m
# CONFIG_W1_SLAVE_BQ27000 is not setCONFIG_POWER_SUPPLY=mCONFIG_POWER_SUPPLY_DEBUG=y
# CONFIG_PDA_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_BATTERY_DS2780 is not setCONFIG_BATTERY_DS2782=mCONFIG_BATTERY_SBS=m
CONFIG_BATTERY_BQ27x00=m
# CONFIG_BATTERY_BQ27X00_I2C is not set
# CONFIG_BATTERY_BQ27X00_PLATFORM is not set
# CONFIG_BATTERY_MAX17040 is not set
# CONFIG_BATTERY_MAX17042 is not set
# CONFIG_CHARGER_ISP1704 is not set
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_LP8727 is not setCONFIG_HWMON=mCONFIG_HWMON_VID=mCONFIG_HWMON_DEBUG_CHIP=y
#
# Native drivers
#CONFIG_SENSORS_ABITUGURU=m
# CONFIG_SENSORS_ABITUGURU3 is not set
# CONFIG_SENSORS_AD7414 is not setCONFIG_SENSORS_AD7418=m
# CONFIG_SENSORS_ADM1021 is not setCONFIG_SENSORS_ADM1025=m
# CONFIG_SENSORS_ADM1026 is not setCONFIG_SENSORS_ADM1029=m
# CONFIG_SENSORS_ADM1031 is not setCONFIG_SENSORS_ADM9240=m
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not set
# CONFIG_SENSORS_ADT7470 is not set
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_ASC7621 is not setCONFIG_SENSORS_K8TEMP=mCONFIG_SENSORS_K10TEMP=m
# CONFIG_SENSORS_FAM15H_POWER is not set
# CONFIG_SENSORS_ASB100 is not set
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_I5K_AMB is not setCONFIG_SENSORS_F71805F=m
# CONFIG_SENSORS_F71882FG is not set
# CONFIG_SENSORS_F75375S is not set
# CONFIG_SENSORS_FSCHMD is not set
# CONFIG_SENSORS_G760A is not set
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not setCONFIG_SENSORS_CORETEMP=m
# CONFIG_SENSORS_IT87 is not setCONFIG_SENSORS_JC42=m
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LM63 is not set
# CONFIG_SENSORS_LM73 is not set
# CONFIG_SENSORS_LM75 is not setCONFIG_SENSORS_LM77=m
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not setCONFIG_SENSORS_LM83=m
# CONFIG_SENSORS_LM85 is not setCONFIG_SENSORS_LM87=m
# CONFIG_SENSORS_LM90 is not set
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LTC4151 is not setCONFIG_SENSORS_LTC4215=mCONFIG_SENSORS_LTC4245=mCONFIG_SENSORS_LTC4261=mCONFIG_SENSORS_LM95241=m
# CONFIG_SENSORS_LM95245 is not setCONFIG_SENSORS_MAX16065=m
# CONFIG_SENSORS_MAX1619 is not set
# CONFIG_SENSORS_MAX1668 is not set
# CONFIG_SENSORS_MAX6639 is not set
# CONFIG_SENSORS_MAX6642 is not setCONFIG_SENSORS_MAX6650=mCONFIG_SENSORS_NTC_THERMISTOR=mCONFIG_SENSORS_PC87360=mCONFIG_SENSORS_PC87427=m
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not setCONFIG_SENSORS_SHT21=m
# CONFIG_SENSORS_SIS5595 is not setCONFIG_SENSORS_SMM665=mCONFIG_SENSORS_DME1737=m
# CONFIG_SENSORS_EMC1403 is not set
# CONFIG_SENSORS_EMC2103 is not setCONFIG_SENSORS_EMC6W201=m
# CONFIG_SENSORS_SMSC47M1 is not setCONFIG_SENSORS_SMSC47M192=mCONFIG_SENSORS_SMSC47B397=mCONFIG_SENSORS_SCH56XX_COMMON=mCONFIG_SENSORS_SCH5627=m
# CONFIG_SENSORS_SCH5636 is not setCONFIG_SENSORS_ADS1015=m
# CONFIG_SENSORS_ADS7828 is not setCONFIG_SENSORS_AMC6821=mCONFIG_SENSORS_THMC50=m
# CONFIG_SENSORS_TMP102 is not setCONFIG_SENSORS_TMP401=mCONFIG_SENSORS_TMP421=mCONFIG_SENSORS_VIA_CPUTEMP=mCONFIG_SENSORS_VIA686A=m
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not setCONFIG_SENSORS_W83781D=m
# CONFIG_SENSORS_W83791D is not setCONFIG_SENSORS_W83792D=m
# CONFIG_SENSORS_W83793 is not setCONFIG_SENSORS_W83795=m
# CONFIG_SENSORS_W83795_FANCTRL is not set
# CONFIG_SENSORS_W83L785TS is not set
# CONFIG_SENSORS_W83L786NG is not set
# CONFIG_SENSORS_W83627HF is not setCONFIG_SENSORS_W83627EHF=mCONFIG_SENSORS_APPLESMC=mCONFIG_THERMAL=mCONFIG_THERMAL_HWMON=yCONFIG_WATCHDOG=yCONFIG_WATCHDOG_CORE=yCONFIG_WATCHDOG_NOWAYOUT=y
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=mCONFIG_ACQUIRE_WDT=m
# CONFIG_ADVANTECH_WDT is not set
# CONFIG_ALIM1535_WDT is not set
# CONFIG_ALIM7101_WDT is not set
# CONFIG_F71808E_WDT is not set
# CONFIG_SP5100_TCO is not set
# CONFIG_GEODE_WDT is not setCONFIG_SC520_WDT=m
# CONFIG_SBC_FITPC2_WATCHDOG is not set
# CONFIG_EUROTECH_WDT is not setCONFIG_IB700_WDT=m
# CONFIG_IBMASR is not set
# CONFIG_WAFER_WDT is not set
# CONFIG_I6300ESB_WDT is not setCONFIG_ITCO_WDT=m
# CONFIG_ITCO_VENDOR_SUPPORT is not set
# CONFIG_IT8712F_WDT is not setCONFIG_IT87_WDT=mCONFIG_HP_WATCHDOG=mCONFIG_HPWDT_NMI_DECODING=y
# CONFIG_SC1200_WDT is not setCONFIG_PC87413_WDT=m
# CONFIG_NV_TCO is not setCONFIG_60XX_WDT=m
# CONFIG_SBC8360_WDT is not set
# CONFIG_SBC7240_WDT is not set
# CONFIG_CPU5_WDT is not set
# CONFIG_SMSC_SCH311X_WDT is not set
# CONFIG_SMSC37B787_WDT is not setCONFIG_VIA_WDT=mCONFIG_W83627HF_WDT=m
# CONFIG_W83697HF_WDT is not set
# CONFIG_W83697UG_WDT is not setCONFIG_W83877F_WDT=mCONFIG_W83977F_WDT=mCONFIG_MACHZ_WDT=m
# CONFIG_SBC_EPX_C3_WATCHDOG is not set
#
# PCI-based Watchdog Cards
#
# CONFIG_PCIPCWATCHDOG is not setCONFIG_WDTPCI=m
#
# USB-based Watchdog Cards
#CONFIG_USBPCWATCHDOG=mCONFIG_SSB_POSSIBLE=y
#
# Sonics Silicon Backplane
#CONFIG_SSB=mCONFIG_SSB_SPROM=yCONFIG_SSB_PCIHOST_POSSIBLE=yCONFIG_SSB_PCIHOST=y
# CONFIG_SSB_B43_PCI_BRIDGE is not set
# CONFIG_SSB_DEBUG is not setCONFIG_SSB_DRIVER_PCICORE_POSSIBLE=yCONFIG_SSB_DRIVER_PCICORE=yCONFIG_BCMA_POSSIBLE=y
#
# Broadcom specific AMBA
#CONFIG_BCMA=mCONFIG_BCMA_HOST_PCI_POSSIBLE=y
# CONFIG_BCMA_HOST_PCI is not setCONFIG_BCMA_DEBUG=y
#
# Multifunction device drivers
#CONFIG_MFD_CORE=yCONFIG_MFD_SM501=mCONFIG_HTC_PASIC3=m
# CONFIG_TPS6105X is not setCONFIG_TPS6507X=m
# CONFIG_MFD_TMIO is not setCONFIG_MFD_WM8400=m
# CONFIG_MFD_PCF50633 is not setCONFIG_ABX500_CORE=yCONFIG_AB8500_CORE=yCONFIG_AB8500_DEBUG=yCONFIG_MFD_CS5535=m
# CONFIG_LPC_SCH is not set
# CONFIG_MFD_RDC321X is not setCONFIG_MFD_JANZ_CMODIO=m
# CONFIG_MFD_VX855 is not setCONFIG_MFD_WL1273_CORE=mCONFIG_REGULATOR=y
# CONFIG_REGULATOR_DEBUG is not setCONFIG_REGULATOR_DUMMY=y
# CONFIG_REGULATOR_FIXED_VOLTAGE is not set
# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not setCONFIG_REGULATOR_USERSPACE_CONSUMER=mCONFIG_REGULATOR_BQ24022=mCONFIG_REGULATOR_MAX1586=m
# CONFIG_REGULATOR_MAX8649 is not set
# CONFIG_REGULATOR_MAX8660 is not set
# CONFIG_REGULATOR_MAX8952 is not setCONFIG_REGULATOR_WM8400=m
# CONFIG_REGULATOR_LP3971 is not set
# CONFIG_REGULATOR_LP3972 is not set
# CONFIG_REGULATOR_TPS65023 is not setCONFIG_REGULATOR_TPS6507X=m
# CONFIG_REGULATOR_ISL6271A is not setCONFIG_REGULATOR_AD5398=m
# CONFIG_REGULATOR_AB8500 is not setCONFIG_MEDIA_SUPPORT=m
#
# Multimedia core support
#
# CONFIG_MEDIA_CONTROLLER is not set
# CONFIG_VIDEO_DEV is not set
# CONFIG_DVB_CORE is not set
# CONFIG_VIDEO_MEDIA is not set
#
# Multimedia drivers
#CONFIG_RC_CORE=mCONFIG_LIRC=mCONFIG_RC_MAP=mCONFIG_IR_NEC_DECODER=m
# CONFIG_IR_RC5_DECODER is not setCONFIG_IR_RC6_DECODER=mCONFIG_IR_JVC_DECODER=mCONFIG_IR_SONY_DECODER=mCONFIG_IR_RC5_SZ_DECODER=mCONFIG_IR_SANYO_DECODER=mCONFIG_IR_MCE_KBD_DECODER=m
# CONFIG_IR_LIRC_CODEC is not set
# CONFIG_RC_ATI_REMOTE is not set
# CONFIG_IR_IMON is not setCONFIG_IR_MCEUSB=mCONFIG_IR_REDRAT3=m
# CONFIG_IR_STREAMZAP is not setCONFIG_RC_LOOPBACK=m
#
# Graphics support
#
# CONFIG_AGP is not setCONFIG_VGA_ARB=yCONFIG_VGA_ARB_MAX_GPUS=16
# CONFIG_DRM is not setCONFIG_STUB_POULSBO=m
# CONFIG_VGASTATE is not set
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
# CONFIG_FB is not setCONFIG_BACKLIGHT_LCD_SUPPORT=y
# CONFIG_LCD_CLASS_DEVICE is not setCONFIG_BACKLIGHT_CLASS_DEVICE=m
# CONFIG_BACKLIGHT_GENERIC is not set
# CONFIG_BACKLIGHT_PROGEAR is not set
# CONFIG_BACKLIGHT_SAHARA is not setCONFIG_BACKLIGHT_ADP8860=m
# CONFIG_BACKLIGHT_ADP8870 is not set
#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not setCONFIG_DUMMY_CONSOLE=yCONFIG_SOUND=mCONFIG_SOUND_OSS_CORE=y
# CONFIG_SOUND_OSS_CORE_PRECLAIM is not setCONFIG_SND=mCONFIG_SND_TIMER=mCONFIG_SND_PCM=mCONFIG_SND_HWDEP=mCONFIG_SND_RAWMIDI=mCONFIG_SND_JACK=yCONFIG_SND_SEQUENCER=mCONFIG_SND_SEQ_DUMMY=mCONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=mCONFIG_SND_PCM_OSS=m
# CONFIG_SND_PCM_OSS_PLUGINS is not setCONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_HRTIMER is not set
# CONFIG_SND_RTCTIMER is not setCONFIG_SND_DYNAMIC_MINORS=y
# CONFIG_SND_SUPPORT_OLD_API is not set
# CONFIG_SND_VERBOSE_PROCFS is not setCONFIG_SND_VERBOSE_PRINTK=yCONFIG_SND_DEBUG=yCONFIG_SND_DEBUG_VERBOSE=yCONFIG_SND_VMASTER=yCONFIG_SND_KCTL_JACK=yCONFIG_SND_DMA_SGBUF=yCONFIG_SND_RAWMIDI_SEQ=mCONFIG_SND_OPL3_LIB_SEQ=m
# CONFIG_SND_OPL4_LIB_SEQ is not set
# CONFIG_SND_SBAWE_SEQ is not setCONFIG_SND_EMU10K1_SEQ=mCONFIG_SND_MPU401_UART=mCONFIG_SND_OPL3_LIB=mCONFIG_SND_AC97_CODEC=mCONFIG_SND_DRIVERS=y
# CONFIG_SND_PCSP is not set
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_ALOOP is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not setCONFIG_SND_AC97_POWER_SAVE=yCONFIG_SND_AC97_POWER_SAVE_DEFAULT=0CONFIG_SND_SB_COMMON=mCONFIG_SND_SB16_DSP=mCONFIG_SND_PCI=y
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not setCONFIG_SND_ALI5451=mCONFIG_SND_ASIHPI=mCONFIG_SND_ATIIXP=mCONFIG_SND_ATIIXP_MODEM=m
# CONFIG_SND_AU8810 is not setCONFIG_SND_AU8820=mCONFIG_SND_AU8830=mCONFIG_SND_AW2=mCONFIG_SND_AZT3328=m
# CONFIG_SND_BT87X is not setCONFIG_SND_CA0106=m
# CONFIG_SND_CMIPCI is not setCONFIG_SND_OXYGEN_LIB=mCONFIG_SND_OXYGEN=mCONFIG_SND_CS4281=m
# CONFIG_SND_CS46XX is not setCONFIG_SND_CS5530=m
# CONFIG_SND_CS5535AUDIO is not set
# CONFIG_SND_CTXFI is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not setCONFIG_SND_DARLA24=m
# CONFIG_SND_GINA24 is not setCONFIG_SND_LAYLA24=mCONFIG_SND_MONA=m
# CONFIG_SND_MIA is not setCONFIG_SND_ECHO3G=m
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_INDIGOIOX is not set
# CONFIG_SND_INDIGODJX is not setCONFIG_SND_EMU10K1=m
# CONFIG_SND_EMU10K1X is not setCONFIG_SND_ENS1370=mCONFIG_SND_ENS1371=mCONFIG_SND_ES1938=m
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not setCONFIG_SND_HDA_INTEL=mCONFIG_SND_HDA_PREALLOC_SIZE=64
# CONFIG_SND_HDA_HWDEP is not set
# CONFIG_SND_HDA_INPUT_BEEP is not setCONFIG_SND_HDA_INPUT_JACK=y
# CONFIG_SND_HDA_PATCH_LOADER is not setCONFIG_SND_HDA_CODEC_REALTEK=yCONFIG_SND_HDA_ENABLE_REALTEK_QUIRKS=y
# CONFIG_SND_HDA_CODEC_ANALOG is not setCONFIG_SND_HDA_CODEC_SIGMATEL=y
# CONFIG_SND_HDA_CODEC_VIA is not setCONFIG_SND_HDA_CODEC_HDMI=y
# CONFIG_SND_HDA_CODEC_CIRRUS is not setCONFIG_SND_HDA_CODEC_CONEXANT=yCONFIG_SND_HDA_CODEC_CA0110=y
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not setCONFIG_SND_HDA_CODEC_SI3054=y
# CONFIG_SND_HDA_GENERIC is not set
# CONFIG_SND_HDA_POWER_SAVE is not setCONFIG_SND_HDSP=m
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not setCONFIG_SND_ICE1724=mCONFIG_SND_INTEL8X0=mCONFIG_SND_INTEL8X0M=mCONFIG_SND_KORG1212=mCONFIG_SND_LOLA=mCONFIG_SND_LX6464ES=mCONFIG_SND_MAESTRO3=m
# CONFIG_SND_MAESTRO3_INPUT is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not setCONFIG_SND_RIPTIDE=m
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not setCONFIG_SND_RME9652=m
# CONFIG_SND_SIS7019 is not setCONFIG_SND_SONICVIBES=mCONFIG_SND_TRIDENT=m
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VIRTUOSO is not set
# CONFIG_SND_VX222 is not setCONFIG_SND_YMFPCI=mCONFIG_SND_USB=y
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_UA101 is not setCONFIG_SND_USB_USX2Y=m
# CONFIG_SND_USB_CAIAQ is not setCONFIG_SND_USB_US122L=mCONFIG_SND_USB_6FIRE=mCONFIG_SND_SOC=mCONFIG_SND_SOC_I2C_AND_SPI=mCONFIG_SND_SOC_ALL_CODECS=mCONFIG_SND_SOC_WM_HUBS=mCONFIG_SND_SOC_AD193X=mCONFIG_SND_SOC_AD73311=mCONFIG_SND_SOC_ADAU1373=mCONFIG_SND_SOC_ADAV80X=mCONFIG_SND_SOC_ADS117X=mCONFIG_SND_SOC_AK4535=mCONFIG_SND_SOC_AK4641=mCONFIG_SND_SOC_AK4642=mCONFIG_SND_SOC_AK4671=mCONFIG_SND_SOC_ALC5623=mCONFIG_SND_SOC_ALC5632=mCONFIG_SND_SOC_CS42L51=mCONFIG_SND_SOC_CS42L73=mCONFIG_SND_SOC_CS4270=mCONFIG_SND_SOC_CS4271=mCONFIG_SND_SOC_CX20442=mCONFIG_SND_SOC_JZ4740_CODEC=mCONFIG_SND_SOC_L3=mCONFIG_SND_SOC_DA7210=mCONFIG_SND_SOC_DFBMCS320=mCONFIG_SND_SOC_MAX98088=mCONFIG_SND_SOC_MAX98095=mCONFIG_SND_SOC_MAX9850=mCONFIG_SND_SOC_PCM3008=mCONFIG_SND_SOC_RT5631=mCONFIG_SND_SOC_SGTL5000=mCONFIG_SND_SOC_SPDIF=mCONFIG_SND_SOC_SSM2602=mCONFIG_SND_SOC_STA32X=mCONFIG_SND_SOC_TLV320AIC23=mCONFIG_SND_SOC_TLV320AIC32X4=mCONFIG_SND_SOC_TLV320AIC3X=mCONFIG_SND_SOC_TLV320DAC33=mCONFIG_SND_SOC_UDA134X=mCONFIG_SND_SOC_UDA1380=mCONFIG_SND_SOC_WL1273=mCONFIG_SND_SOC_WM1250_EV1=mCONFIG_SND_SOC_WM2000=mCONFIG_SND_SOC_WM5100=mCONFIG_SND_SOC_WM8400=mCONFIG_SND_SOC_WM8510=mCONFIG_SND_SOC_WM8523=mCONFIG_SND_SOC_WM8580=mCONFIG_SND_SOC_WM8711=mCONFIG_SND_SOC_WM8727=mCONFIG_SND_SOC_WM8728=mCONFIG_SND_SOC_WM8731=mCONFIG_SND_SOC_WM8737=mCONFIG_SND_SOC_WM8741=mCONFIG_SND_SOC_WM8750=mCONFIG_SND_SOC_WM8753=mCONFIG_SND_SOC_WM8776=mCONFIG_SND_SOC_WM8782=mCONFIG_SND_SOC_WM8804=mCONFIG_SND_SOC_WM8900=mCONFIG_SND_SOC_WM8903=mCONFIG_SND_SOC_WM8904=mCONFIG_SND_SOC_WM8940=mCONFIG_SND_SOC_WM8955=mCONFIG_SND_SOC_WM8960=mCONFIG_SND_SOC_WM8961=mCONFIG_SND_SOC_WM8962=mCONFIG_SND_SOC_WM8971=mCONFIG_SND_SOC_WM8974=mCONFIG_SND_SOC_WM8978=mCONFIG_SND_SOC_WM8983=mCONFIG_SND_SOC_WM8985=mCONFIG_SND_SOC_WM8988=mCONFIG_SND_SOC_WM8990=mCONFIG_SND_SOC_WM8991=mCONFIG_SND_SOC_WM8993=mCONFIG_SND_SOC_WM8995=mCONFIG_SND_SOC_WM8996=mCONFIG_SND_SOC_WM9081=mCONFIG_SND_SOC_WM9090=mCONFIG_SND_SOC_LM4857=mCONFIG_SND_SOC_MAX9877=mCONFIG_SND_SOC_TPA6130A2=mCONFIG_SOUND_PRIME=m
# CONFIG_SOUND_OSS is not setCONFIG_AC97_BUS=mCONFIG_HID_SUPPORT=yCONFIG_HID=mCONFIG_HID_BATTERY_STRENGTH=y
# CONFIG_HIDRAW is not set
#
# USB Input Devices
#CONFIG_USB_HID=m
# CONFIG_HID_PID is not set
# CONFIG_USB_HIDDEV is not set
#
# Special HID drivers
#CONFIG_HID_A4TECH=m
# CONFIG_HID_ACRUX is not setCONFIG_HID_APPLE=mCONFIG_HID_BELKIN=mCONFIG_HID_CHERRY=mCONFIG_HID_CHICONY=mCONFIG_HID_PRODIKEYS=mCONFIG_HID_CYPRESS=m
# CONFIG_HID_DRAGONRISE is not set
# CONFIG_HID_EMS_FF is not setCONFIG_HID_EZKEY=mCONFIG_HID_HOLTEK=m
# CONFIG_HOLTEK_FF is not set
# CONFIG_HID_KEYTOUCH is not setCONFIG_HID_KYE=mCONFIG_HID_UCLOGIC=mCONFIG_HID_WALTOP=m
# CONFIG_HID_GYRATION is not set
# CONFIG_HID_TWINHAN is not setCONFIG_HID_KENSINGTON=m
# CONFIG_HID_LCPOWER is not setCONFIG_HID_LOGITECH=mCONFIG_HID_LOGITECH_DJ=mCONFIG_LOGITECH_FF=yCONFIG_LOGIRUMBLEPAD2_FF=y
# CONFIG_LOGIG940_FF is not setCONFIG_LOGIWHEELS_FF=yCONFIG_HID_MICROSOFT=mCONFIG_HID_MONTEREY=m
# CONFIG_HID_MULTITOUCH is not setCONFIG_HID_NTRIG=mCONFIG_HID_ORTEK=m
# CONFIG_HID_PANTHERLORD is not setCONFIG_HID_PETALYNX=mCONFIG_HID_PICOLCD=mCONFIG_HID_PICOLCD_BACKLIGHT=yCONFIG_HID_PICOLCD_LEDS=yCONFIG_HID_PRIMAX=m
# CONFIG_HID_ROCCAT is not set
# CONFIG_HID_SAMSUNG is not set
# CONFIG_HID_SONY is not setCONFIG_HID_SPEEDLINK=mCONFIG_HID_SUNPLUS=mCONFIG_HID_GREENASIA=mCONFIG_GREENASIA_FF=yCONFIG_HID_SMARTJOYPLUS=m
# CONFIG_SMARTJOYPLUS_FF is not setCONFIG_HID_TOPSEED=mCONFIG_HID_THRUSTMASTER=mCONFIG_THRUSTMASTER_FF=yCONFIG_HID_ZEROPLUS=m
# CONFIG_ZEROPLUS_FF is not setCONFIG_HID_ZYDACRON=mCONFIG_USB_SUPPORT=yCONFIG_USB_COMMON=yCONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB_ARCH_HAS_OHCI=yCONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB_ARCH_HAS_XHCI=yCONFIG_USB=yCONFIG_USB_DEBUG=y
# CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set
#
# Miscellaneous USB options
#CONFIG_USB_DEVICEFS=yCONFIG_USB_DEVICE_CLASS=yCONFIG_USB_DYNAMIC_MINORS=y
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_DWC3 is not set
# CONFIG_USB_MON is not set
# CONFIG_USB_WUSB is not setCONFIG_USB_WUSB_CBAF=mCONFIG_USB_WUSB_CBAF_DEBUG=y
#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not setCONFIG_USB_XHCI_HCD=mCONFIG_USB_XHCI_HCD_DEBUGGING=yCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=yCONFIG_USB_EHCI_TT_NEWSCHED=y
# CONFIG_USB_EHCI_MV is not setCONFIG_USB_OXU210HP_HCD=mCONFIG_USB_ISP116X_HCD=mCONFIG_USB_ISP1760_HCD=m
# CONFIG_USB_ISP1362_HCD is not setCONFIG_USB_OHCI_HCD=y
# 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_SL811_HCD=m
# CONFIG_USB_SL811_HCD_ISO is not setCONFIG_USB_R8A66597_HCD=mCONFIG_USB_RENESAS_USBHS_HCD=m
# CONFIG_USB_WHCI_HCD is not set
# CONFIG_USB_HWA_HCD is not setCONFIG_USB_MUSB_HDRC=m
# CONFIG_USB_MUSB_TUSB6010 is not setCONFIG_MUSB_PIO_ONLY=yCONFIG_USB_RENESAS_USBHS=m
#
# USB Device Class drivers
#CONFIG_USB_ACM=mCONFIG_USB_PRINTER=mCONFIG_USB_WDM=m
# CONFIG_USB_TMC is not set
#
# 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_UAS is not set CONFIG_USB_LIBUSUAL=y
#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not setCONFIG_USB_MICROTEK=m
#
# USB port drivers
#
# CONFIG_USB_SERIAL is not set
#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not setCONFIG_USB_EMI26=m
# CONFIG_USB_ADUTUX is not setCONFIG_USB_SEVSEG=mCONFIG_USB_RIO500=mCONFIG_USB_LEGOTOWER=mCONFIG_USB_LCD=m
# CONFIG_USB_LED is not setCONFIG_USB_CYPRESS_CY7C63=m
# CONFIG_USB_CYTHERM is not setCONFIG_USB_IDMOUSE=m
# CONFIG_USB_FTDI_ELAN is not setCONFIG_USB_APPLEDISPLAY=mCONFIG_USB_SISUSBVGA=m
# CONFIG_USB_SISUSBVGA_CON is not setCONFIG_USB_LD=mCONFIG_USB_TRANCEVIBRATOR=m
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not set
# CONFIG_USB_ATM is not setCONFIG_USB_GADGET=m
# CONFIG_USB_GADGET_DEBUG is not set
# CONFIG_USB_GADGET_DEBUG_FILES is not set
# CONFIG_USB_GADGET_DEBUG_FS is not setCONFIG_USB_GADGET_VBUS_DRAW=2CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2CONFIG_USB_FUSB300=mCONFIG_USB_R8A66597=m
# CONFIG_USB_RENESAS_USBHS_UDC is not setCONFIG_USB_MV_UDC=mCONFIG_USB_GADGET_MUSB_HDRC=m
# CONFIG_USB_M66592 is not setCONFIG_USB_AMD5536UDC=mCONFIG_USB_CI13XXX_PCI=m
# CONFIG_USB_NET2272 is not set
# CONFIG_USB_NET2280 is not set
# CONFIG_USB_GOKU is not setCONFIG_USB_LANGWELL=m
# CONFIG_USB_EG20T is not set
# CONFIG_USB_DUMMY_HCD is not setCONFIG_USB_GADGET_DUALSPEED=yCONFIG_USB_ZERO=m
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_ETH is not set
# CONFIG_USB_G_NCM is not setCONFIG_USB_GADGETFS=mCONFIG_USB_FUNCTIONFS=m
# CONFIG_USB_FUNCTIONFS_ETH is not setCONFIG_USB_FUNCTIONFS_RNDIS=y
# CONFIG_USB_FUNCTIONFS_GENERIC is not set
# CONFIG_USB_FILE_STORAGE is not set
# CONFIG_USB_MASS_STORAGE is not setCONFIG_USB_G_SERIAL=m
# CONFIG_USB_MIDI_GADGET is not set
# CONFIG_USB_G_PRINTER is not set
# CONFIG_USB_CDC_COMPOSITE is not setCONFIG_USB_G_ACM_MS=m
# CONFIG_USB_G_MULTI is not set
# CONFIG_USB_G_HID is not setCONFIG_USB_G_DBGP=m
# CONFIG_USB_G_DBGP_PRINTK is not setCONFIG_USB_G_DBGP_SERIAL=y
#
# OTG and related infrastructure
#CONFIG_USB_OTG_UTILS=yCONFIG_NOP_USB_XCEIV=mCONFIG_AB8500_USB=mCONFIG_UWB=mCONFIG_UWB_HWA=mCONFIG_UWB_WHCI=m
# CONFIG_UWB_I1480U is not set
# CONFIG_MMC is not set
# CONFIG_MEMSTICK is not setCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=y
#
# LED drivers
#CONFIG_LEDS_LM3530=mCONFIG_LEDS_PCA9532=m
# CONFIG_LEDS_LP3944 is not setCONFIG_LEDS_LP5521=mCONFIG_LEDS_LP5523=mCONFIG_LEDS_CLEVO_MAIL=m
# CONFIG_LEDS_PCA955X is not setCONFIG_LEDS_REGULATOR=mCONFIG_LEDS_BD2802=mCONFIG_LEDS_INTEL_SS4200=mCONFIG_LEDS_TCA6507=mCONFIG_LEDS_OT200=mCONFIG_LEDS_TRIGGERS=y
#
# LED Triggers
#
# CONFIG_LEDS_TRIGGER_TIMER is not set
# CONFIG_LEDS_TRIGGER_HEARTBEAT is not setCONFIG_LEDS_TRIGGER_BACKLIGHT=m
# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set
#
# iptables trigger is under Netfilter config (LED target) # CONFIG_ACCESSIBILITY=y # CONFIG_A11Y_BRAILLE_CONSOLE is not set CONFIG_INFINIBAND=m CONFIG_INFINIBAND_USER_MAD=m CONFIG_INFINIBAND_USER_ACCESS=m CONFIG_INFINIBAND_USER_MEM=y CONFIG_INFINIBAND_ADDR_TRANS=y CONFIG_INFINIBAND_MTHCA=m CONFIG_INFINIBAND_MTHCA_DEBUG=y CONFIG_INFINIBAND_AMSO1100=m CONFIG_INFINIBAND_AMSO1100_DEBUG=y # CONFIG_INFINIBAND_CXGB3 is not set CONFIG_INFINIBAND_CXGB4=m # CONFIG_MLX4_INFINIBAND is not set CONFIG_INFINIBAND_NES=m # CONFIG_INFINIBAND_NES_DEBUG is not set # CONFIG_INFINIBAND_IPOIB is not set # CONFIG_INFINIBAND_SRP is not set CONFIG_INFINIBAND_ISER=m CONFIG_EDAC=y
#
# Reporting subsystems
#CONFIG_EDAC_DEBUG=yCONFIG_EDAC_DECODE_MCE=y
# CONFIG_EDAC_MCE_INJ is not set
# CONFIG_EDAC_MM_EDAC is not set
# CONFIG_RTC_CLASS is not set
# CONFIG_DMADEVICES is not setCONFIG_AUXDISPLAY=yCONFIG_UIO=m
# CONFIG_UIO_CIF is not setCONFIG_UIO_PDRV=mCONFIG_UIO_PDRV_GENIRQ=mCONFIG_UIO_AEC=m
# CONFIG_UIO_SERCOS3 is not setCONFIG_UIO_PCI_GENERIC=mCONFIG_UIO_NETX=mCONFIG_VIRTIO=yCONFIG_VIRTIO_RING=y
#
# Virtio drivers
#CONFIG_VIRTIO_PCI=yCONFIG_VIRTIO_BALLOON=mCONFIG_VIRTIO_MMIO=m
#
# Microsoft Hyper-V guest support
#
# CONFIG_STAGING is not set
# CONFIG_X86_PLATFORM_DEVICES is not set
#
# Hardware Spinlock drivers
#CONFIG_CLKSRC_I8253=yCONFIG_CLKEVT_I8253=yCONFIG_I8253_LOCK=yCONFIG_CLKBLD_I8253=yCONFIG_IOMMU_SUPPORT=yCONFIG_VIRT_DRIVERS=yCONFIG_PM_DEVFREQ=y
#
# DEVFREQ Governors
#CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=y
# CONFIG_DEVFREQ_GOV_PERFORMANCE is not set
# CONFIG_DEVFREQ_GOV_POWERSAVE is not set
# CONFIG_DEVFREQ_GOV_USERSPACE is not set
#
# DEVFREQ Drivers
#
#
# Firmware Drivers
#CONFIG_EDD=m
# CONFIG_EDD_OFF is not setCONFIG_FIRMWARE_MEMMAP=y
# CONFIG_DELL_RBU is not set
# CONFIG_DCDBAS is not setCONFIG_DMIID=yCONFIG_DMI_SYSFS=m
# CONFIG_ISCSI_IBFT_FIND is not set
# CONFIG_GOOGLE_FIRMWARE is not set
#
# File systems
#CONFIG_EXT2_FS=m
# CONFIG_EXT2_FS_XATTR is not setCONFIG_EXT2_FS_XIP=yCONFIG_EXT3_FS=y
# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not setCONFIG_EXT3_FS_XATTR=yCONFIG_EXT3_FS_POSIX_ACL=yCONFIG_EXT3_FS_SECURITY=y
# CONFIG_EXT4_FS is not setCONFIG_FS_XIP=yCONFIG_JBD=y
# CONFIG_JBD_DEBUG is not setCONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not setCONFIG_XFS_FS=mCONFIG_XFS_QUOTA=yCONFIG_XFS_POSIX_ACL=yCONFIG_XFS_RT=y
# CONFIG_XFS_DEBUG is not setCONFIG_GFS2_FS=m
# CONFIG_GFS2_FS_LOCKING_DLM is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not setCONFIG_FS_POSIX_ACL=yCONFIG_EXPORTFS=yCONFIG_FILE_LOCKING=yCONFIG_FSNOTIFY=y
# CONFIG_DNOTIFY is not set
# CONFIG_INOTIFY_USER is not setCONFIG_FANOTIFY=y
# CONFIG_FANOTIFY_ACCESS_PERMISSIONS is not set
# CONFIG_QUOTA is not setCONFIG_QUOTA_NETLINK_INTERFACE=yCONFIG_QUOTACTL=yCONFIG_AUTOFS4_FS=m
# CONFIG_FUSE_FS is not set
#
# Caches
#CONFIG_FSCACHE=m
# CONFIG_FSCACHE_STATS is not set
# CONFIG_FSCACHE_HISTOGRAM is not setCONFIG_FSCACHE_DEBUG=yCONFIG_FSCACHE_OBJECT_LIST=y
# CONFIG_CACHEFILES is not set
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=m
# CONFIG_JOLIET is not set
# CONFIG_ZISOFS is not setCONFIG_UDF_FS=mCONFIG_UDF_NLS=y
#
# DOS/FAT/NT Filesystems
#CONFIG_FAT_FS=mCONFIG_MSDOS_FS=mCONFIG_VFAT_FS=mCONFIG_FAT_DEFAULT_CODEPAGE=437CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_PROC_VMCORE=yCONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_SYSFS=y
# CONFIG_TMPFS is not set
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_CONFIGFS_FS is not setCONFIG_MISC_FILESYSTEMS=yCONFIG_ADFS_FS=mCONFIG_ADFS_FS_RW=yCONFIG_AFFS_FS=mCONFIG_ECRYPT_FS=mCONFIG_HFS_FS=m
# CONFIG_HFSPLUS_FS is not setCONFIG_BEFS_FS=mCONFIG_BEFS_DEBUG=y
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_LOGFS is not setCONFIG_CRAMFS=m
# CONFIG_SQUASHFS is not setCONFIG_VXFS_FS=mCONFIG_MINIX_FS=m
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not setCONFIG_QNX4FS_FS=mCONFIG_ROMFS_FS=mCONFIG_ROMFS_BACKED_BY_BLOCK=yCONFIG_ROMFS_ON_BLOCK=y
# CONFIG_PSTORE is not set
# CONFIG_SYSV_FS is not setCONFIG_UFS_FS=m
# CONFIG_UFS_FS_WRITE is not setCONFIG_UFS_DEBUG=yCONFIG_NETWORK_FILESYSTEMS=yCONFIG_NFS_FS=m
# CONFIG_NFS_V3 is not setCONFIG_NFS_V4=yCONFIG_NFS_V4_1=yCONFIG_PNFS_FILE_LAYOUT=mCONFIG_PNFS_BLOCK=m
# CONFIG_NFS_FSCACHE is not set
# CONFIG_NFS_USE_LEGACY_DNS is not setCONFIG_NFS_USE_KERNEL_DNS=yCONFIG_NFS_USE_NEW_IDMAPPER=y
# CONFIG_NFSD is not setCONFIG_LOCKD=mCONFIG_NFS_COMMON=yCONFIG_SUNRPC=mCONFIG_SUNRPC_GSS=mCONFIG_SUNRPC_BACKCHANNEL=yCONFIG_SUNRPC_XPRT_RDMA=m
# CONFIG_CEPH_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not setCONFIG_AFS_FS=m
# CONFIG_AFS_DEBUG is not set
# CONFIG_AFS_FSCACHE is not setCONFIG_9P_FS=yCONFIG_9P_FS_POSIX_ACL=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"
# CONFIG_NLS_CODEPAGE_437 is not set
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not setCONFIG_NLS_CODEPAGE_850=mCONFIG_NLS_CODEPAGE_852=mCONFIG_NLS_CODEPAGE_855=m
# CONFIG_NLS_CODEPAGE_857 is not setCONFIG_NLS_CODEPAGE_860=m
# CONFIG_NLS_CODEPAGE_861 is not setCONFIG_NLS_CODEPAGE_862=m
# CONFIG_NLS_CODEPAGE_863 is not setCONFIG_NLS_CODEPAGE_864=mCONFIG_NLS_CODEPAGE_865=mCONFIG_NLS_CODEPAGE_866=mCONFIG_NLS_CODEPAGE_869=mCONFIG_NLS_CODEPAGE_936=m
# CONFIG_NLS_CODEPAGE_950 is not setCONFIG_NLS_CODEPAGE_932=mCONFIG_NLS_CODEPAGE_949=m
# CONFIG_NLS_CODEPAGE_874 is not setCONFIG_NLS_ISO8859_8=mCONFIG_NLS_CODEPAGE_1250=m
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not set
# CONFIG_NLS_ISO8859_1 is not set
# CONFIG_NLS_ISO8859_2 is not setCONFIG_NLS_ISO8859_3=mCONFIG_NLS_ISO8859_4=m
# CONFIG_NLS_ISO8859_5 is not setCONFIG_NLS_ISO8859_6=mCONFIG_NLS_ISO8859_7=m
# CONFIG_NLS_ISO8859_9 is not setCONFIG_NLS_ISO8859_13=mCONFIG_NLS_ISO8859_14=mCONFIG_NLS_ISO8859_15=mCONFIG_NLS_KOI8_R=m
# CONFIG_NLS_KOI8_U is not setCONFIG_NLS_UTF8=m
#
# Kernel hacking
#CONFIG_TRACE_IRQFLAGS_SUPPORT=y
# CONFIG_PRINTK_TIME is not set CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4 CONFIG_ENABLE_WARN_DEPRECATED=y
# CONFIG_ENABLE_MUST_CHECK is not set CONFIG_FRAME_WARN=1024CONFIG_MAGIC_SYSRQ=y
# CONFIG_STRIP_ASM_SYMS is not set CONFIG_UNUSED_SYMBOLS=yCONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_SHIRQ is not set CONFIG_LOCKUP_DETECTOR=y CONFIG_HARDLOCKUP_DETECTOR=y
# CONFIG_BOOTPARAM_HARDLOCKUP_PANIC is not set CONFIG_BOOTPARAM_HARDLOCKUP_PANIC_VALUE=0 CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=1 CONFIG_DETECT_HUNG_TASK=y CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 CONFIG_SCHED_DEBUG=yCONFIG_SCHEDSTATS=yCONFIG_TIMER_STATS=yCONFIG_DEBUG_OBJECTS=y CONFIG_DEBUG_OBJECTS_SELFTEST=y
# CONFIG_DEBUG_OBJECTS_FREE is not set CONFIG_DEBUG_OBJECTS_TIMERS=y
# CONFIG_DEBUG_OBJECTS_WORK is not set CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
# CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER is not set CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_SLUB_STATS is not set
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_RT_MUTEX_TESTER is not set CONFIG_DEBUG_SPINLOCK=y CONFIG_DEBUG_MUTEXES=y CONFIG_DEBUG_LOCK_ALLOC=y
# CONFIG_PROVE_LOCKING is not set
# CONFIG_SPARSE_RCU_POINTER is not set CONFIG_LOCKDEP=yCONFIG_LOCK_STAT=yCONFIG_DEBUG_LOCKDEP=y
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set CONFIG_STACKTRACE=y CONFIG_DEBUG_STACK_USAGE=y
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_HIGHMEM is not set CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_INFO is not set CONFIG_DEBUG_VM=y
# CONFIG_DEBUG_VIRTUAL is not set
# CONFIG_DEBUG_WRITECOUNT is not set CONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DEBUG_LIST is not set CONFIG_TEST_LIST_SORT=y
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set CONFIG_DEBUG_CREDENTIALS=y CONFIG_ARCH_WANT_FRAME_POINTERS=y CONFIG_FRAME_POINTER=y CONFIG_BOOT_PRINTK_DELAY=y CONFIG_RCU_TORTURE_TEST=m CONFIG_RCU_CPU_STALL_TIMEOUT=60
# CONFIG_KPROBES_SANITY_TEST is not set CONFIG_BACKTRACE_SELF_TEST=m
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set # CONFIG_DEBUG_PER_CPU_MAPS is not set
# CONFIG_LKDTM is not set
# CONFIG_CPU_NOTIFIER_ERROR_INJECT is not set CONFIG_FAULT_INJECTION=y
# CONFIG_FAILSLAB is not set
# CONFIG_FAIL_PAGE_ALLOC is not set
# CONFIG_FAIL_MAKE_REQUEST is not set CONFIG_FAIL_IO_TIMEOUT=y CONFIG_FAULT_INJECTION_DEBUG_FS=y
# CONFIG_FAULT_INJECTION_STACKTRACE_FILTER is not set CONFIG_LATENCYTOP=y
# CONFIG_SYSCTL_SYSCALL_CHECK is not set
# CONFIG_DEBUG_PAGEALLOC is not set CONFIG_USER_STACKTRACE_SUPPORT=y CONFIG_HAVE_FUNCTION_TRACER=y CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST=y CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=y CONFIG_HAVE_DYNAMIC_FTRACE=y CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y CONFIG_HAVE_SYSCALL_TRACEPOINTS=y CONFIG_HAVE_C_RECORDMCOUNT=y CONFIG_RING_BUFFER=y CONFIG_RING_BUFFER_ALLOW_SWAP=y CONFIG_TRACING_SUPPORT=y
# CONFIG_FTRACE is not set CONFIG_PROVIDE_OHCI1394_DMA_INIT=y
# CONFIG_DYNAMIC_DEBUG is not set CONFIG_DMA_API_DEBUG=y CONFIG_ATOMIC64_SELFTEST=y CONFIG_ASYNC_RAID6_TEST=m
# CONFIG_SAMPLES is not set CONFIG_HAVE_ARCH_KGDB=yCONFIG_KGDB=yCONFIG_KGDB_SERIAL_CONSOLE=y
# CONFIG_KGDB_TESTS is not set CONFIG_KGDB_LOW_LEVEL_TRAP=y
# CONFIG_KGDB_KDB is not set CONFIG_HAVE_ARCH_KMEMCHECK=y
# CONFIG_KMEMCHECK is not set CONFIG_TEST_KSTRTOX=m
# CONFIG_STRICT_DEVMEM is not set
# CONFIG_X86_VERBOSE_BOOTUP is not set CONFIG_EARLY_PRINTK=y
# CONFIG_EARLY_PRINTK_DBGP is not set CONFIG_DEBUG_STACKOVERFLOW=y
# CONFIG_X86_PTDUMP is not set CONFIG_DEBUG_RODATA=y
# CONFIG_DEBUG_RODATA_TEST is not set
# CONFIG_DEBUG_SET_MODULE_RONX is not set
# CONFIG_DEBUG_NX_TEST is not set CONFIG_DOUBLEFAULT=yCONFIG_IOMMU_STRESS=y CONFIG_HAVE_MMIOTRACE_SUPPORT=y CONFIG_X86_DECODER_SELFTEST=y CONFIG_IO_DELAY_TYPE_0X80=0 CONFIG_IO_DELAY_TYPE_0XED=1 CONFIG_IO_DELAY_TYPE_UDELAY=2 CONFIG_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 set CONFIG_IO_DELAY_NONE=y CONFIG_DEFAULT_IO_DELAY_TYPE=3 CONFIG_DEBUG_BOOT_PARAMS=yCONFIG_CPA_DEBUG=yCONFIG_OPTIMIZE_INLINING=y CONFIG_DEBUG_STRICT_USER_COPY_CHECKS=y
# CONFIG_DEBUG_NMI_SELFTEST is not set
#
# Security options
#CONFIG_KEYS=yCONFIG_TRUSTED_KEYS=mCONFIG_ENCRYPTED_KEYS=mCONFIG_KEYS_DEBUG_PROC_KEYS=yCONFIG_SECURITY_DMESG_RESTRICT=yCONFIG_SECURITY=yCONFIG_SECURITYFS=y
# CONFIG_SECURITY_NETWORK is not setCONFIG_SECURITY_PATH=y
# CONFIG_SECURITY_TOMOYO is not set
# CONFIG_SECURITY_APPARMOR is not setCONFIG_INTEGRITY=yCONFIG_INTEGRITY_SIGNATURE=yCONFIG_IMA=yCONFIG_IMA_MEASURE_PCR_IDX=10CONFIG_IMA_AUDIT=yCONFIG_DEFAULT_SECURITY_DAC=yCONFIG_DEFAULT_SECURITY=""CONFIG_XOR_BLOCKS=mCONFIG_ASYNC_CORE=mCONFIG_ASYNC_MEMCPY=mCONFIG_ASYNC_XOR=mCONFIG_ASYNC_PQ=mCONFIG_ASYNC_RAID6_RECOV=mCONFIG_CRYPTO=y
#
# Crypto core or helper
#CONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD=mCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_BLKCIPHER=mCONFIG_CRYPTO_BLKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG=mCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_PCOMP2=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not setCONFIG_CRYPTO_MANAGER_DISABLE_TESTS=yCONFIG_CRYPTO_GF128MUL=m
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_PCRYPT is not setCONFIG_CRYPTO_WORKQUEUE=yCONFIG_CRYPTO_CRYPTD=mCONFIG_CRYPTO_AUTHENC=m
# CONFIG_CRYPTO_TEST is not set
#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not setCONFIG_CRYPTO_GCM=mCONFIG_CRYPTO_SEQIV=m
#
# Block modes
#CONFIG_CRYPTO_CBC=mCONFIG_CRYPTO_CTR=m
# CONFIG_CRYPTO_CTS is not setCONFIG_CRYPTO_ECB=mCONFIG_CRYPTO_LRW=mCONFIG_CRYPTO_PCBC=mCONFIG_CRYPTO_XTS=m
#
# Hash modes
#CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_VMAC is not set
#
# Digest
#CONFIG_CRYPTO_CRC32C=mCONFIG_CRYPTO_CRC32C_INTEL=mCONFIG_CRYPTO_GHASH=m
# CONFIG_CRYPTO_MD4 is not setCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_MICHAEL_MIC=mCONFIG_CRYPTO_RMD128=mCONFIG_CRYPTO_RMD160=mCONFIG_CRYPTO_RMD256=mCONFIG_CRYPTO_RMD320=mCONFIG_CRYPTO_SHA1=yCONFIG_CRYPTO_SHA256=mCONFIG_CRYPTO_SHA512=m
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_WP512 is not set
#
# Ciphers
#CONFIG_CRYPTO_AES=mCONFIG_CRYPTO_AES_586=mCONFIG_CRYPTO_AES_NI_INTEL=m
# CONFIG_CRYPTO_ANUBIS is not setCONFIG_CRYPTO_ARC4=m
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_CAMELLIA is not setCONFIG_CRYPTO_CAST5=mCONFIG_CRYPTO_CAST6=m
# CONFIG_CRYPTO_DES is not setCONFIG_CRYPTO_FCRYPT=m
# CONFIG_CRYPTO_KHAZAD is not setCONFIG_CRYPTO_SALSA20=mCONFIG_CRYPTO_SALSA20_586=m
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_SERPENT_SSE2_586 is not setCONFIG_CRYPTO_TEA=mCONFIG_CRYPTO_TWOFISH=mCONFIG_CRYPTO_TWOFISH_COMMON=mCONFIG_CRYPTO_TWOFISH_586=m
#
# Compression
#CONFIG_CRYPTO_DEFLATE=m
# CONFIG_CRYPTO_ZLIB is not setCONFIG_CRYPTO_LZO=m
#
# Random Number Generation
#CONFIG_CRYPTO_ANSI_CPRNG=mCONFIG_CRYPTO_USER_API=m
# CONFIG_CRYPTO_USER_API_HASH is not setCONFIG_CRYPTO_USER_API_SKCIPHER=m
# CONFIG_CRYPTO_HW is not setCONFIG_HAVE_KVM=yCONFIG_VIRTUALIZATION=y
# CONFIG_KVM is not set
# CONFIG_VHOST_NET is not setCONFIG_LGUEST=m
# CONFIG_BINARY_PRINTF is not set
#
# Library routines
#CONFIG_RAID6_PQ=mCONFIG_BITREVERSE=yCONFIG_GENERIC_FIND_FIRST_BIT=yCONFIG_GENERIC_PCI_IOMAP=yCONFIG_GENERIC_IOMAP=yCONFIG_CRC_CCITT=mCONFIG_CRC16=mCONFIG_CRC_T10DIF=mCONFIG_CRC_ITU_T=mCONFIG_CRC32=yCONFIG_CRC7=mCONFIG_LIBCRC32C=mCONFIG_CRC8=mCONFIG_AUDIT_GENERIC=yCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=mCONFIG_LZO_COMPRESS=yCONFIG_LZO_DECOMPRESS=yCONFIG_XZ_DEC=yCONFIG_XZ_DEC_X86=yCONFIG_XZ_DEC_POWERPC=yCONFIG_XZ_DEC_IA64=yCONFIG_XZ_DEC_ARM=yCONFIG_XZ_DEC_ARMTHUMB=yCONFIG_XZ_DEC_SPARC=yCONFIG_XZ_DEC_BCJ=yCONFIG_XZ_DEC_TEST=mCONFIG_DECOMPRESS_GZIP=yCONFIG_DECOMPRESS_BZIP2=yCONFIG_DECOMPRESS_LZMA=yCONFIG_DECOMPRESS_XZ=yCONFIG_DECOMPRESS_LZO=yCONFIG_GENERIC_ALLOCATOR=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT=yCONFIG_HAS_DMA=yCONFIG_CHECK_SIGNATURE=yCONFIG_CPU_RMAP=yCONFIG_DQL=yCONFIG_NLATTR=yCONFIG_LRU_CACHE=mCONFIG_AVERAGE=yCONFIG_CLZ_TAB=yCONFIG_CORDIC=mCONFIG_MPILIB=yCONFIG_SIGNATURE=y
Quoted 9 lines · Ingo Molnar
Quoted 5 lines · Kevin Winchester
Various per-cpu fields are define in
arch/x86/kernel/smpboot.cthat are basically equivalent to the cpu-specific data in structcpuinfo_x86. By moving these fields into the structure, a number of codepaths can be simplified since they no longer need to care about those fields not existing on !SMP builds.
Quoted 4 lines
Works mostly fine, except with the attached 32-bit UP !APIC config I get various build failures (resolved via the patch below) and a link failure (not resolved):
I get the following failure before I get to link time:
In file included from /home/kevin/linux/linux-2.6/arch/x86/include/asm/uaccess.h:573:0,
from/home/kevin/linux/linux-2.6/arch/x86/include/asm/sections.h:5,
from/home/kevin/linux/linux-2.6/arch/x86/include/asm/hw_irq.h:26,
from include/linux/irq.h:357,
from
/home/kevin/linux/linux-2.6/arch/x86/include/asm/hardirq.h:5,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:12,
from net/core/pktgen.c:135:In function ‘copy_from_user’,
inlined from ‘pktgen_if_write’ at net/core/pktgen.c:877:20:/home/kevin/linux/linux-2.6/arch/x86/include/asm/uaccess_32.h:211:26:
error: call to ‘copy_from_user_overflow’ declared with attribute
error: copy_from_user() buffer size is not provably correct make[2]: *** [net/core/pktgen.o] Error 1
On:
gcc (GCC) 4.6.2 20120120 (prerelease)
Is that my fault, or something else?
Kevin
H. Peter Anvin
reviewerQuoted 36 lines · Kevin Winchester
Quoted 9 lines · Ingo Molnar
Quoted 5 lines · Kevin Winchester
Various per-cpu fields are define in
arch/x86/kernel/smpboot.cthat are basically equivalent to the cpu-specific data in structcpuinfo_x86. By moving these fields into the structure, a number of codepaths can be simplified since they no longer need to care about those fields not existing on !SMP builds.Quoted 4 lines
Works mostly fine, except with the attached 32-bit UP !APIC config I get various build failures (resolved via the patch below) and a link failure (not resolved):
I get the following failure before I get to link time:
In file included from
/home/kevin/linux/linux-2.6/arch/x86/include/asm/uaccess.h:573:0,
from/home/kevin/linux/linux-2.6/arch/x86/include/asm/sections.h:5,
from/home/kevin/linux/linux-2.6/arch/x86/include/asm/hw_irq.h:26,from include/linux/irq.h:357, from /home/kevin/linux/linux-2.6/arch/x86/include/asm/hardirq.h:5, from include/linux/hardirq.h:7, from include/linux/interrupt.h:12, from net/core/pktgen.c:135:In function ‘copy_from_user’,
inlined from ‘pktgen_if_write’ atnet/core/pktgen.c:877:20:/home/kevin/linux/linux-2.6/arch/x86/include/asm/uaccess_32.h:211:26:
error: call to ‘copy_from_user_overflow’ declared with attribute
error:copy_from_user()buffer size is not provably correct make[2]: *** [net/core/pktgen.o] Error 1
Quoted 8 lines
On:
gcc (GCC) 4.6.2 20120120 (prerelease)
Is that my fault, or something else?
Kevin
That comes from compiling with warnings as errors. Not that someone shouldn't look at that kind of problem.
-hpa
Quoted 11 lines · H. Peter Anvin
Quoted 11 lines
In function ‘copy_from_user’,
inlined from ‘pktgen_if_write’ atnet/core/pktgen.c:877:20:/home/kevin/linux/linux-2.6/arch/x86/include/asm/uaccess_32.h:211:26:
error: call to ‘copy_from_user_overflow’ declared with attribute
error:copy_from_user()buffer size is not provably correct make[2]: *** [net/core/pktgen.o] Error 1On:
gcc (GCC) 4.6.2 20120120 (prerelease)
Quoted 7 lines
Quoted 4 lines
Is that my fault, or something else?
Kevin
That comes from compiling with warnings as errors. Not that someone shouldn't look at that kind of problem.
Can probably be worked around by disabling:
CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
Thanks,
Ingo
H. Peter Anvin
reviewerBetter yet, fix the problem...
Quoted 30 lines · Ingo Molnar
Quoted 12 lines · H. Peter Anvin
Quoted 2 lines
In function ‘copy_from_user’,
inlined from ‘pktgen_if_write’ atnet/core/pktgen.c:877:20:
/home/kevin/linux/linux-2.6/arch/x86/include/asm/uaccess_32.h:211:26:Quoted 8 lines
error: call to ‘copy_from_user_overflow’ declared with attribute
error:copy_from_user()buffer size is not provably correct make[2]: *** [net/core/pktgen.o] Error 1On:
gcc (GCC) 4.6.2 20120120 (prerelease)
Quoted 7 lines
Quoted 4 lines
Is that my fault, or something else?
Kevin
That comes from compiling with warnings as errors. Not that someone shouldn't look at that kind of problem.
Can probably be worked around by disabling:
CONFIG_DEBUG_STRICT_USER_COPY_CHECKSThanks,
Ingo
Signature · 1 line
Sent from my mobile phone. Please excuse my brevity and lack of formatting.
Quoted 2 lines · H. Peter Anvin
Better yet, fix the problem...
It appears that some attempts have been made at fixing this problem already:
https://lkml.org/lkml/2011/7/6/6
https://lkml.org/lkml/2011/7/7/480
So perhaps I can just turn off that config setting for now. I'm going away for a few days, but I'll try to fix up the patch series next week.
Quoted 29 lines
Quoted 27 lines · Ingo Molnar
Quoted 12 lines · H. Peter Anvin
Quoted 2 lines
In function ‘copy_from_user’,
inlined from ‘pktgen_if_write’ atnet/core/pktgen.c:877:20:
/home/kevin/linux/linux-2.6/arch/x86/include/asm/uaccess_32.h:211:26:Quoted 8 lines
error: call to ‘copy_from_user_overflow’ declared with attribute
error:copy_from_user()buffer size is not provably correct make[2]: *** [net/core/pktgen.o] Error 1On:
gcc (GCC) 4.6.2 20120120 (prerelease)
Quoted 7 lines
Quoted 4 lines
Is that my fault, or something else?
Kevin
That comes from compiling with warnings as errors. Not that someone shouldn't look at that kind of problem.
Can probably be worked around by disabling:
CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
Quoted 4 lines · Kevin Winchester
Quoted 2 lines · H. Peter Anvin
Better yet, fix the problem...
Quoted 8 lines
It appears that some attempts have been made at fixing this problem already:
https://lkml.org/lkml/2011/7/6/6
https://lkml.org/lkml/2011/7/7/480So perhaps I can just turn off that config setting for now. I'm going away for a few days, but I'll try to fix up the patch series next week.
Nor does that build warning/failure appear to be caused by your patches, it just happened to trigger in the config I sent you.
Thanks,
Ingo
v5 cover x86: Cleanup and simplify cpu-specific data
In reply to Ingo MolnarVarious per-cpu fields are define in arch/x86/kernel/smpboot.c that are basically equivalent to the cpu-specific data in struct cpuinfo_x86. By moving these fields into the structure, a number of codepaths can be simplified since they no longer need to care about those fields not existing on !SMP builds.
The size effects on allno (UP) and allyes (MAX_SMP) kernels are as follows:
text data bss dec hex filename 1369227 181536 1399180 2949943 2d0337 vmlinux.i386.allno 1370216 181600 1399012 2950828 2d06ac vmlinux.i386.allno.after 1608231 310968 505088 2424287 24fddf vmlinux.x86_64.allno 1609232 311032 504896 2425160 250148 vmlinux.x86_64.allno.after 97643748 6891747 34668544 139204039 84c15c7 vmlinux.i386.allyes 97643582 6892011 34668544 139204137 84c1629 vmlinux.i386.allyes.after 85869519 13567071 44511232 143947822 894782e vmlinux.x86_64.allyes 85869134 13568607 44511232 143948973 8947cad vmlinux.x86_64.allyes.after
As can be seen, the kernels get slighly larger, but the code reduction/ simplification should be enough to compensate for it.
Changes in v5:
- Reduced the number of files affected in the patchset by keeping helper functions in arch/x86/include/asm/smp.h
- Rebased to latest tip/master
Kevin Winchester (5):
x86: Move per cpu cpu_llc_shared_map to a field in struct cpuinfo_x86
x86: Move per cpu cpu_llc_id to a field in struct cpuinfo_x86
x86: Move per cpu cpu_sibling_map to a field in struct cpuinfo_x86
x86: Move per cpu cpu_core_map to a field in struct cpuinfo_x86
x86: Remove #ifdef CONFIG_SMP sections by moving smp_num_siblings
into common.c
arch/x86/include/asm/perf_event_p4.h | 14 +++--------- arch/x86/include/asm/processor.h | 10 +++++++++ arch/x86/include/asm/smp.h | 17 ++++---------- arch/x86/include/asm/topology.h | 8 +++---- arch/x86/kernel/apic/apic_numachip.c | 2 +- arch/x86/kernel/cpu/amd.c | 19 +++++----------- arch/x86/kernel/cpu/common.c | 5 +++++ arch/x86/kernel/cpu/intel_cacheinfo.c | 11 ++-------- arch/x86/kernel/cpu/mcheck/mce_amd.c | 2 -- arch/x86/kernel/cpu/perf_event_p4.c | 4 ++-- arch/x86/kernel/cpu/proc.c | 5 ++--- arch/x86/kernel/process.c | 5 ++--- arch/x86/kernel/smpboot.c | 39 +++++++-------------------------- arch/x86/oprofile/nmi_int.c | 6 ----- arch/x86/oprofile/op_model_p4.c | 11 +--------- arch/x86/xen/smp.c | 6 ----- drivers/cpufreq/p4-clockmod.c | 2 -- drivers/cpufreq/powernow-k8.c | 7 ------ drivers/cpufreq/speedstep-ich.c | 2 -- drivers/hwmon/coretemp.c | 4 ---- 20 files changed, 48 insertions(+), 131 deletions(-)
Signature · 1 line
1.7.9.5
PATCH v5 1/5 x86: Move per cpu cpu_llc_shared_map to a field in struct cpuinfo_x86
Commit 141168c36cde ("x86: Simplify code by removing a !SMP #ifdefs from 'struct cpuinfo_x86'") caused the compilation error:
mce_amd.c:(.cpuinit.text+0x4723): undefined reference to 'cpu_llc_shared_map'
by removing an #ifdef CONFIG_SMP around a block containing a reference to cpu_llc_shared_map. Rather than replace the #ifdef, move cpu_llc_shared_map to be a new cpumask_t field llc_shared_map in struct cpuinfo_x86 and adjust all references to cpu_llc_shared_map.
--- arch/x86/include/asm/processor.h | 2 ++ arch/x86/include/asm/smp.h | 4 +--- arch/x86/kernel/cpu/mcheck/mce_amd.c | 2 -- arch/x86/kernel/smpboot.c | 3 --- arch/x86/xen/smp.c | 1 - 5 files changed, 3 insertions(+), 9 deletions(-)
arch/x86/include/asm/processor.h +2 -0
@@ -110,6 +110,8 @@ struct cpuinfo_x86 {/* Index into per_cpu list: */ u16 cpu_index;u32 microcode; +/* CPUs sharing the last level cache: */ +cpumask_t llc_shared_map; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +1 -3
@@ -33,8 +33,6 @@ static inline bool cpu_has_ht_siblings(void)DECLARE_PER_CPU (cpumask_var_t, cpu_sibling_map);DECLARE_PER_CPU (cpumask_var_t, cpu_core_map); -/* cpus sharing the last level cache: */ -DECLARE_PER_CPU (cpumask_var_t, cpu_llc_shared_map);DECLARE_PER_CPU (u16, cpu_llc_id);DECLARE_PER_CPU (int, cpu_number);
@@ -50,7 +48,7 @@ static inline struct cpumask *cpu_core_mask(int cpu)static inline struct cpumask *cpu_llc_shared_mask (int cpu) { -return per_cpu (cpu_llc_shared_map, cpu); +return &cpu_data (cpu).llc_shared_map; }DECLARE_EARLY_PER_CPU (u16, x86_cpu_to_apicid);
arch/x86/kernel/cpu/mcheck/mce_amd.c +0 -2
@@ -528,7 +528,6 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank)sprintf (name,"threshold_bank%i" , bank); -#ifdef CONFIG_SMP if (cpu_data (cpu).cpu_core_id && shared_bank[bank]) {/* symlink */ i =cpumask_first (cpu_llc_shared_mask (cpu));
@@ -554,7 +553,6 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank) goto out; } -#endif b =kzalloc (sizeof (struct threshold_bank ),GFP_KERNEL );if (!b) {
arch/x86/kernel/smpboot.c +0 -3
@@ -127,8 +127,6 @@ EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);DEFINE_PER_CPU (cpumask_var_t, cpu_core_map);EXPORT_PER_CPU_SYMBOL (cpu_core_map); -DEFINE_PER_CPU (cpumask_var_t, cpu_llc_shared_map); -/* Per CPU bogomips and other parameters */ DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);EXPORT_PER_CPU_SYMBOL (cpu_info);
@@ -1039,7 +1037,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)for_each_possible_cpu (i) {zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); -zalloc_cpumask_var (&per_cpu (cpu_llc_shared_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
arch/x86/xen/smp.c +0 -1
@@ -231,7 +231,6 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus)for_each_possible_cpu (i) {zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); -zalloc_cpumask_var (&per_cpu (cpu_llc_shared_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
Signature · 1 line
1.7.9.5
PATCH v5 2/5 x86: Move per cpu cpu_llc_id to a field in struct cpuinfo_x86
In reply to Kevin WinchesterThis simplifies the various code paths using this field as it groups the per-cpu data together.
--- arch/x86/include/asm/processor.h | 1 + arch/x86/include/asm/smp.h | 1 - arch/x86/kernel/apic/apic_numachip.c | 2 +- arch/x86/kernel/cpu/amd.c | 14 ++++---------- arch/x86/kernel/cpu/common.c | 1 + arch/x86/kernel/cpu/intel_cacheinfo.c | 11 ++--------- arch/x86/kernel/smpboot.c | 16 +++++++--------- 7 files changed, 16 insertions(+), 30 deletions(-)
arch/x86/include/asm/processor.h +1 -0
@@ -112,6 +112,7 @@ struct cpuinfo_x86 {u32 microcode;/* CPUs sharing the last level cache: */ cpumask_t llc_shared_map; +u16 llc_id; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +0 -1
@@ -33,7 +33,6 @@ static inline bool cpu_has_ht_siblings(void)DECLARE_PER_CPU (cpumask_var_t, cpu_sibling_map);DECLARE_PER_CPU (cpumask_var_t, cpu_core_map); -DECLARE_PER_CPU (u16, cpu_llc_id);DECLARE_PER_CPU (int, cpu_number);static inline struct cpumask *cpu_sibling_mask (int cpu)
arch/x86/kernel/apic/apic_numachip.c +1 -1
@@ -208,7 +208,7 @@ static void __init map_csrs(void)static void fixup_cpu_id (struct cpuinfo_x86 *c,int node) { c->phys_proc_id = node; -per_cpu (cpu_llc_id,smp_processor_id ()) = node; + c->llc_id = node; }static int __init numachip_system_init (void )
arch/x86/kernel/cpu/amd.c +4 -10
@@ -268,7 +268,6 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c) {u32 nodes, cores_per_cu =1 ;u8 node_id; -int cpu =smp_processor_id ();/* get information required for multi-node processors */ if (cpu_has (c,X86_FEATURE_TOPOEXT )) {
@@ -301,7 +300,7 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c) cus_per_node = cores_per_node / cores_per_cu;/* store NodeID, use llc_shared_map to store sibling info */ -per_cpu (cpu_llc_id, cpu) = node_id; + c->llc_id = node_id;/* core id has to be in the [0 .. cores_per_node - 1] range */ c->cpu_core_id %= cores_per_node;
@@ -318,7 +317,6 @@ static void __cpuinit amd_detect_cmp(struct cpuinfo_x86 *c) {#ifdef CONFIG_X86_HT unsigned bits; -int cpu =smp_processor_id (); bits = c->x86_coreid_bits;/* Low order bits define the core id (index of core in socket) */
@@ -326,18 +324,14 @@ static void __cpuinit amd_detect_cmp(struct cpuinfo_x86 *c)/* Convert the initial APIC ID into the socket ID */ c->phys_proc_id = c->initial_apicid >> bits;/* use socket ID also for last level cache */ -per_cpu (cpu_llc_id, cpu) = c->phys_proc_id; + c->llc_id = c->phys_proc_id;amd_get_topology (c);#endif }int amd_get_nb_id (int cpu) { -int id =0 ; -#ifdef CONFIG_SMP - id =per_cpu (cpu_llc_id, cpu); -#endif -return id; +return cpu_data (cpu).llc_id; }EXPORT_SYMBOL_GPL (amd_get_nb_id);
@@ -350,7 +344,7 @@ static void __cpuinit srat_detect_node(struct cpuinfo_x86 *c) node =numa_cpu_node (cpu);if (node ==NUMA_NO_NODE ) - node =per_cpu (cpu_llc_id, cpu); + node = c->llc_id;/* * If core numbers are inconsistent, it's likely a multi-fabric platform,
arch/x86/kernel/cpu/common.c +1 -0
@@ -789,6 +789,7 @@ static void __cpuinit identify_cpu(struct cpuinfo_x86 *c) c->x86_model_id[0 ] ='\0' ;/* Unset */ c->x86_max_cores =1 ; c->x86_coreid_bits =0 ; + c->llc_id =BAD_APICID ;#ifdef CONFIG_X86_64 c->x86_clflush_size =64 ; c->x86_phys_bits =36 ;
arch/x86/kernel/cpu/intel_cacheinfo.c +2 -9
@@ -579,9 +579,6 @@ unsigned int __cpuinit init_intel_cacheinfo(struct cpuinfo_x86 *c)unsigned int new_l1d =0 , new_l1i =0 ;/* Cache sizes from cpuid(4) */ unsigned int new_l2 =0 , new_l3 =0 , i;/* Cache sizes from cpuid(4) */ unsigned int l2_id =0 , l3_id =0 , num_threads_sharing, index_msb; -#ifdef CONFIG_X86_HT -unsigned int cpu = c->cpu_index; -#endif if (c->cpuid_level >3 ) {static int is_initialized;
@@ -700,16 +697,12 @@ unsigned int __cpuinit init_intel_cacheinfo(struct cpuinfo_x86 *c)if (new_l2) { l2 = new_l2; -#ifdef CONFIG_X86_HT -per_cpu (cpu_llc_id, cpu) = l2_id; -#endif + c->llc_id = l2_id; }if (new_l3) { l3 = new_l3; -#ifdef CONFIG_X86_HT -per_cpu (cpu_llc_id, cpu) = l3_id; -#endif + c->llc_id = l3_id; } c->x86_cache_size = l3 ? l3 : (l2 ? l2 : (l1i+l1d));
arch/x86/kernel/smpboot.c +7 -9
@@ -116,9 +116,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;int smp_num_siblings =1 ;EXPORT_SYMBOL (smp_num_siblings); -/* Last level cache ID of each logical CPU */ -DEFINE_PER_CPU (u16, cpu_llc_id) =BAD_APICID ; -/* representing HT siblings of each logical CPU */ DEFINE_PER_CPU (cpumask_var_t, cpu_sibling_map);EXPORT_PER_CPU_SYMBOL (cpu_sibling_map);
@@ -340,7 +337,7 @@ void __cpuinit set_cpu_sibling_map(int cpu)if (cpu_has (c,X86_FEATURE_TOPOEXT )) {if (c->phys_proc_id == o->phys_proc_id && -per_cpu (cpu_llc_id, cpu) ==per_cpu (cpu_llc_id, i) && + c->llc_id == o->llc_id && c->compute_unit_id == o->compute_unit_id)link_thread_siblings (cpu, i); } else if (c->phys_proc_id == o->phys_proc_id &&
@@ -361,12 +358,13 @@ void __cpuinit set_cpu_sibling_map(int cpu) }for_each_cpu (i, cpu_sibling_setup_mask) { -if (per_cpu (cpu_llc_id, cpu) !=BAD_APICID && -per_cpu (cpu_llc_id, cpu) ==per_cpu (cpu_llc_id, i)) { +struct cpuinfo_x86 *o = &cpu_data (i); + +if (c->llc_id !=BAD_APICID && c->llc_id == o->llc_id) {cpumask_set_cpu (i,cpu_llc_shared_mask (cpu));cpumask_set_cpu (cpu,cpu_llc_shared_mask (i)); } -if (c->phys_proc_id ==cpu_data (i).phys_proc_id) { +if (c->phys_proc_id == o->phys_proc_id) {cpumask_set_cpu (i,cpu_core_mask (cpu));cpumask_set_cpu (cpu,cpu_core_mask (i));/*
@@ -384,9 +382,9 @@ void __cpuinit set_cpu_sibling_map(int cpu)* the other cpus in this package */ if (i != cpu) -cpu_data (i).booted_cores++; + o->booted_cores++; }else if (i != cpu && !c->booted_cores) - c->booted_cores =cpu_data (i).booted_cores; + c->booted_cores = o->booted_cores; } } }
Signature · 1 line
1.7.9.5
PATCH v5 3/5 x86: Move per cpu cpu_sibling_map to a field in struct cpuinfo_x86
In reply to Kevin WinchesterThis simplifies the various code paths using this field as it groups the per-cpu data together.
--- arch/x86/include/asm/perf_event_p4.h | 2 +- arch/x86/include/asm/processor.h | 2 ++ arch/x86/include/asm/smp.h | 3 +-- arch/x86/include/asm/topology.h | 2 +- arch/x86/kernel/smpboot.c | 5 ----- arch/x86/oprofile/op_model_p4.c | 5 +---- arch/x86/xen/smp.c | 1 - drivers/cpufreq/p4-clockmod.c | 2 -- drivers/cpufreq/speedstep-ich.c | 2 -- drivers/hwmon/coretemp.c | 4 ---- 10 files changed, 6 insertions(+), 22 deletions(-)
arch/x86/include/asm/perf_event_p4.h +1 -1
@@ -189,7 +189,7 @@ static inline int p4_ht_thread(int cpu) {#ifdef CONFIG_SMP if (smp_num_siblings ==2 ) -return cpu !=cpumask_first (__get_cpu_var (cpu_sibling_map)); + return cpu != cpumask_first(&cpu_data(cpu).sibling_map));#endif return 0 ; }
arch/x86/include/asm/processor.h +2 -0
@@ -113,6 +113,8 @@ struct cpuinfo_x86 {/* CPUs sharing the last level cache: */ cpumask_t llc_shared_map;u16 llc_id; +/* representing HT siblings of each logical CPU */ +cpumask_t sibling_map; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +1 -2
@@ -31,13 +31,12 @@ static inline bool cpu_has_ht_siblings(void)return has_siblings; } -DECLARE_PER_CPU (cpumask_var_t, cpu_sibling_map);DECLARE_PER_CPU (cpumask_var_t, cpu_core_map);DECLARE_PER_CPU (int, cpu_number);static inline struct cpumask *cpu_sibling_mask (int cpu) { -return per_cpu (cpu_sibling_map, cpu); +return &cpu_data (cpu).sibling_map; }static inline struct cpumask *cpu_core_mask (int cpu)
arch/x86/include/asm/topology.h +1 -1
@@ -161,7 +161,7 @@ extern const struct cpumask *cpu_coregroup_mask(int cpu);#define topology_physical_package_id (cpu) (cpu_data(cpu).phys_proc_id)#define topology_core_id (cpu) (cpu_data(cpu).cpu_core_id)#define topology_core_cpumask (cpu) (per_cpu(cpu_core_map, cpu)) -#define topology_thread_cpumask (cpu) (per_cpu(cpu_sibling_map, cpu)) +#define topology_thread_cpumask (cpu) (&cpu_data(cpu).sibling_map)/* indicates that pointers to the topology cpumask_t maps are valid */ #define arch_provides_topology_pointers yes
arch/x86/kernel/smpboot.c +0 -5
@@ -116,10 +116,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;int smp_num_siblings =1 ;EXPORT_SYMBOL (smp_num_siblings); -/* representing HT siblings of each logical CPU */ -DEFINE_PER_CPU (cpumask_var_t, cpu_sibling_map); -EXPORT_PER_CPU_SYMBOL (cpu_sibling_map); -/* representing HT and core siblings of each logical CPU */ DEFINE_PER_CPU (cpumask_var_t, cpu_core_map);EXPORT_PER_CPU_SYMBOL (cpu_core_map);
@@ -1033,7 +1029,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)current_thread_info ()->cpu =0 ;/* needed? */ for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
arch/x86/oprofile/op_model_p4.c +1 -4
@@ -370,11 +370,8 @@ static struct p4_event_binding p4_events[NUM_EVENTS] = {or "odd" part of all the divided resources. */ static unsigned int get_stagger (void ) { -#ifdef CONFIG_SMP int cpu =smp_processor_id (); -return cpu !=cpumask_first (__get_cpu_var (cpu_sibling_map)); -#endif -return 0 ; +return cpu !=cpumask_first (&cpu_data (cpu).sibling_map); }
arch/x86/xen/smp.c +0 -1
@@ -229,7 +229,6 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus)cpu_data (0 ).x86_max_cores =1 ;for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
drivers/cpufreq/p4-clockmod.c +0 -2
@@ -204,9 +204,7 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy)int cpuid =0 ;unsigned int i; -#ifdef CONFIG_SMP cpumask_copy (policy->cpus,cpu_sibling_mask (policy->cpu)); -#endif /* Errata workaround */ cpuid = (c->x86 <<8 ) | (c->x86_model <<4 ) | c->x86_mask;
drivers/cpufreq/speedstep-ich.c +0 -2
@@ -333,9 +333,7 @@ static int speedstep_cpu_init(struct cpufreq_policy *policy)struct get_freqs gf;/* only run on CPU to be set, or on its sibling */ -#ifdef CONFIG_SMP cpumask_copy (policy->cpus,cpu_sibling_mask (policy->cpu)); -#endif policy_cpu =cpumask_any_and (policy->cpus, cpu_online_mask);/* detect low and high frequency and transition latency */
drivers/hwmon/coretemp.c +0 -4
@@ -62,11 +62,7 @@ MODULE_PARM_DESC(tjmax, "TjMax value in degrees Celsius");#define TO_CORE_ID (cpu) (cpu_data(cpu).cpu_core_id)#define TO_ATTR_NO (cpu) (TO_CORE_ID(cpu) + BASE_SYSFS_ATTR_NO) -#ifdef CONFIG_SMP #define for_each_sibling (i, cpu) for_each_cpu(i, cpu_sibling_mask(cpu)) -#else -#define for_each_sibling (i, cpu) for (i = 0; false; ) -#endif /* * Per-Core Temperature Data
Signature · 1 line
1.7.9.5
PATCH v5 4/5 x86: Move per cpu cpu_core_map to a field in struct cpuinfo_x86
In reply to Kevin WinchesterThis simplifies the various code paths using this field as it groups the per-cpu data together.
--- arch/x86/include/asm/processor.h | 5 +++++ arch/x86/include/asm/smp.h | 3 +-- arch/x86/include/asm/topology.h | 2 +- arch/x86/kernel/smpboot.c | 11 +---------- arch/x86/xen/smp.c | 4 ---- drivers/cpufreq/powernow-k8.c | 7 ------- 6 files changed, 8 insertions(+), 24 deletions(-)
arch/x86/include/asm/processor.h +5 -0
@@ -115,6 +115,11 @@ struct cpuinfo_x86 {u16 llc_id;/* representing HT siblings of each logical CPU */ cpumask_t sibling_map; +/* +* representing all execution threads on a logical CPU, i.e. per +* physical socket +*/ +cpumask_t core_map; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +1 -2
@@ -31,7 +31,6 @@ static inline bool cpu_has_ht_siblings(void)return has_siblings; } -DECLARE_PER_CPU (cpumask_var_t, cpu_core_map);DECLARE_PER_CPU (int, cpu_number);static inline struct cpumask *cpu_sibling_mask (int cpu)
@@ -41,7 +40,7 @@ static inline struct cpumask *cpu_sibling_mask(int cpu)static inline struct cpumask *cpu_core_mask (int cpu) { -return per_cpu (cpu_core_map, cpu); +return &cpu_data (cpu).core_map; }static inline struct cpumask *cpu_llc_shared_mask (int cpu)
arch/x86/include/asm/topology.h +1 -1
@@ -160,7 +160,7 @@ extern const struct cpumask *cpu_coregroup_mask(int cpu);#ifdef ENABLE_TOPO_DEFINES #define topology_physical_package_id (cpu) (cpu_data(cpu).phys_proc_id)#define topology_core_id (cpu) (cpu_data(cpu).cpu_core_id) -#define topology_core_cpumask (cpu) (per_cpu(cpu_core_map, cpu)) +#define topology_core_cpumask (cpu) (&cpu_data(cpu).core_map)#define topology_thread_cpumask (cpu) (&cpu_data(cpu).sibling_map)/* indicates that pointers to the topology cpumask_t maps are valid */
arch/x86/kernel/smpboot.c +1 -10
@@ -116,10 +116,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;int smp_num_siblings =1 ;EXPORT_SYMBOL (smp_num_siblings); -/* representing HT and core siblings of each logical CPU */ -DEFINE_PER_CPU (cpumask_var_t, cpu_core_map); -EXPORT_PER_CPU_SYMBOL (cpu_core_map); -/* Per CPU bogomips and other parameters */ DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);EXPORT_PER_CPU_SYMBOL (cpu_info);
@@ -391,7 +387,7 @@ const struct cpumask *cpu_coregroup_mask(int cpu)struct cpuinfo_x86 *c = &cpu_data (cpu);/* * For perf, we return last level cache shared map. -* And for power savings, we return cpu_core_map +* And for power savings, we return core map. */ if ((sched_mc_power_savings || sched_smt_power_savings) && !(cpu_has (c,X86_FEATURE_AMD_DCM )))
@@ -1015,8 +1011,6 @@ static void __init smp_cpu_index_default(void)*/ void __init native_smp_prepare_cpus (unsigned int max_cpus) { -unsigned int i; -preempt_disable ();smp_cpu_index_default ();
@@ -1028,9 +1022,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)mb ();current_thread_info ()->cpu =0 ;/* needed? */ -for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); - }set_cpu_sibling_map (0 );
arch/x86/xen/smp.c +0 -4
@@ -212,7 +212,6 @@ static void __init xen_smp_prepare_boot_cpu(void)static void __init xen_smp_prepare_cpus (unsigned int max_cpus) {unsigned cpu; -unsigned int i;if (skip_ioapic_setup) { char *m = (max_cpus == 0) ?
@@ -228,9 +227,6 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus)smp_store_cpu_info (0 );cpu_data (0 ).x86_max_cores =1 ; -for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); - }set_cpu_sibling_map (0 );if (xen_smp_intr_init (0 ))
drivers/cpufreq/powernow-k8.c +0 -7
@@ -67,13 +67,6 @@ static struct msr __percpu *msrs;static struct cpufreq_driver cpufreq_amd64_driver; -#ifndef CONFIG_SMP -static inline const struct cpumask *cpu_core_mask (int cpu) -{ -return cpumask_of (0 ); -} -#endif -/* Return a frequency in MHz, given an input fid */ static u32 find_freq_from_fid (u32 fid) {
Signature · 1 line
1.7.9.5
PATCH v5 5/5 x86: Remove #ifdef CONFIG_SMP sections by moving smp_num_siblings into common.c
In reply to Kevin Winchestersmp_num_siblings was defined in arch/x86/kernel/smpboot.c, making it necessary to wrap any UP relevant code referencing it with #ifdef CONFIG_SMP.
Instead, move the definition to arch/x86/kernel/cpu/common.c, thus making it available always.
--- arch/x86/include/asm/perf_event_p4.h | 14 +++----------- arch/x86/include/asm/smp.h | 6 +----- arch/x86/include/asm/topology.h | 4 +--- arch/x86/kernel/cpu/amd.c | 5 +---- arch/x86/kernel/cpu/common.c | 4 ++++ arch/x86/kernel/cpu/perf_event_p4.c | 4 ++-- arch/x86/kernel/cpu/proc.c | 5 ++--- arch/x86/kernel/process.c | 5 ++--- arch/x86/kernel/smpboot.c | 4 ---- arch/x86/oprofile/nmi_int.c | 6 ------ arch/x86/oprofile/op_model_p4.c | 6 ------ 11 files changed, 16 insertions(+), 47 deletions(-)
arch/x86/include/asm/perf_event_p4.h +3 -11
@@ -8,6 +8,8 @@#include <linux/cpu.h> #include <linux/bitops.h> +#include <asm/smp.h> +/* * NetBurst has performance MSRs shared between * threads if HT is turned on, ie for both logical
@@ -177,20 +179,10 @@ static inline u64 p4_clear_ht_bit(u64 config)return config & ~P4_CONFIG_HT ; } -static inline int p4_ht_active (void ) -{ -#ifdef CONFIG_SMP -return smp_num_siblings >1 ; -#endif -return 0 ; -} -static inline int p4_ht_thread (int cpu) { -#ifdef CONFIG_SMP if (smp_num_siblings ==2 ) - return cpu != cpumask_first(&cpu_data(cpu).sibling_map)); -#endif +return cpu !=cpumask_first (&cpu_data (cpu).sibling_map);return 0 ; }
arch/x86/include/asm/smp.h +1 -5
@@ -24,11 +24,7 @@ extern unsigned int num_processors;static inline bool cpu_has_ht_siblings (void ) { -bool has_siblings = false; -#ifdef CONFIG_SMP - has_siblings = cpu_has_ht && smp_num_siblings >1 ; -#endif -return has_siblings; +return cpu_has_ht && smp_num_siblings >1 ; }DECLARE_PER_CPU (int, cpu_number);
arch/x86/include/asm/topology.h +1 -3
@@ -174,11 +174,9 @@ static inline void arch_fix_phys_package_id(int num, u32 slot)struct pci_bus ;void x86_pci_root_bus_resources (int bus,struct list_head *resources); -#ifdef CONFIG_SMP #define mc_capable () ((boot_cpu_data.x86_max_cores > 1) && \ (cpumask_weight(cpu_core_mask(0)) != nr_cpu_ids)) -#define smt_capable () (smp_num_siblings > 1) -#endif +#define smt_capable () (smp_num_siblings > 1)#ifdef CONFIG_NUMA extern int get_mp_bus_to_node (int busnum);
arch/x86/kernel/cpu/amd.c +1 -4
@@ -9,6 +9,7 @@#include <asm/processor.h> #include <asm/apic.h> #include <asm/cpu.h> +#include <asm/smp.h> #include <asm/pci-direct.h> #ifdef CONFIG_X86_64
@@ -263,7 +264,6 @@ static int __cpuinit nearby_node(int apicid)* Assumption: Number of cores in each internal node is the same. * (2) AMD processors supporting compute units */ -#ifdef CONFIG_X86_HT static void __cpuinit amd_get_topology (struct cpuinfo_x86 *c) {u32 nodes, cores_per_cu =1 ;
@@ -307,7 +307,6 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c) c->compute_unit_id %= cus_per_node; } } -#endif /* * On a AMD dual core setup the lower bits of the APIC id distingush the cores.
@@ -315,7 +314,6 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c)*/ static void __cpuinit amd_detect_cmp (struct cpuinfo_x86 *c) { -#ifdef CONFIG_X86_HT unsigned bits; bits = c->x86_coreid_bits;
@@ -326,7 +324,6 @@ static void __cpuinit amd_detect_cmp(struct cpuinfo_x86 *c)/* use socket ID also for last level cache */ c->llc_id = c->phys_proc_id;amd_get_topology (c); -#endif }int amd_get_nb_id (int cpu)
arch/x86/kernel/cpu/common.c +4 -0
@@ -49,6 +49,10 @@ cpumask_var_t cpu_initialized_mask;cpumask_var_t cpu_callout_mask;cpumask_var_t cpu_callin_mask; +/* Number of siblings per CPU package */ +int smp_num_siblings =1 ; +EXPORT_SYMBOL (smp_num_siblings); +/* representing cpus for which sibling maps can be computed */ cpumask_var_t cpu_sibling_setup_mask;
arch/x86/kernel/cpu/perf_event_p4.c +2 -2
@@ -775,7 +775,7 @@ static int p4_validate_raw_event(struct perf_event *event)* if an event is shared across the logical threads * the user needs special permissions to be able to use it */ -if (p4_ht_active () && p4_event_bind_map[v].shared) { +if (smt_capable () && p4_event_bind_map[v].shared) {if (perf_paranoid_cpu () && !capable (CAP_SYS_ADMIN ))return -EACCES ; }
@@ -816,7 +816,7 @@ static int p4_hw_config(struct perf_event *event) event->hw.config =p4_config_pack_escr (escr) |p4_config_pack_cccr (cccr); -if (p4_ht_active () &&p4_ht_thread (cpu)) +if (smt_capable () &&p4_ht_thread (cpu)) event->hw.config =p4_set_ht_bit (event->hw.config);if (event->attr.type ==PERF_TYPE_RAW ) {
arch/x86/kernel/cpu/proc.c +2 -3
@@ -1,16 +1,16 @@ -#include <linux/smp.h> #include <linux/timex.h> #include <linux/string.h> #include <linux/seq_file.h> #include <linux/cpufreq.h> +#include <asm/smp.h> +/* * Get CPU information for use by the procfs. */ static void show_cpuinfo_core (struct seq_file *m,struct cpuinfo_x86 *c,unsigned int cpu) { -#ifdef CONFIG_SMPif (c->x86_max_cores * smp_num_siblings >1 ) {seq_printf (m,"physical id\t: %d\n" , c->phys_proc_id); seq_printf(m, "siblings\t: %d\n",
@@ -20,7 +20,6 @@ static void show_cpuinfo_core(struct seq_file *m, struct cpuinfo_x86 *c,seq_printf (m,"apicid\t\t: %d\n" , c->apicid);seq_printf (m,"initial apicid\t: %d\n" , c->initial_apicid); } -#endif }#ifdef CONFIG_X86_32
arch/x86/kernel/process.c +2 -3
@@ -1,7 +1,6 @@#include <linux/errno.h> #include <linux/kernel.h> #include <linux/mm.h> -#include <linux/smp.h> #include <linux/prctl.h> #include <linux/slab.h> #include <linux/sched.h>
@@ -17,6 +16,7 @@#include <asm/cpu.h> #include <asm/system.h> #include <asm/apic.h> +#include <asm/smp.h> #include <asm/syscalls.h> #include <asm/idle.h> #include <asm/uaccess.h>
@@ -587,12 +587,11 @@ static void amd_e400_idle(void)void __cpuinit select_idle_routine (const struct cpuinfo_x86 *c) { -#ifdef CONFIG_SMP if (pm_idle == poll_idle && smp_num_siblings >1 ) {printk_once (KERN_WARNING "WARNING: polling idle and HT enabled," " performance may degrade.\n" ); } -#endif +if (pm_idle)return ;
arch/x86/kernel/smpboot.c +0 -4
@@ -112,10 +112,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;#define set_idle_for_cpu (x, p) (idle_thread_array[(x)] = (p))#endif -/* Number of siblings per CPU package */ -int smp_num_siblings =1 ; -EXPORT_SYMBOL (smp_num_siblings); -/* Per CPU bogomips and other parameters */ DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);EXPORT_PER_CPU_SYMBOL (cpu_info);
arch/x86/oprofile/nmi_int.c +0 -6
@@ -572,11 +572,6 @@ static int __init p4_init(char **cpu_type)if (cpu_model >6 || cpu_model ==5 )return 0 ; -#ifndef CONFIG_SMP - *cpu_type ="i386/p4" ; - model = &op_p4_spec; -return 1 ; -#else switch (smp_num_siblings) {case 1 : *cpu_type ="i386/p4" ;
@@ -588,7 +583,6 @@ static int __init p4_init(char **cpu_type) model = &op_p4_ht2_spec;return 1 ; } -#endif printk (KERN_INFO "oprofile: P4 HyperThreading detected with > 2 threads\n" );printk (KERN_INFO "oprofile: Reverting to timer mode.\n" );
arch/x86/oprofile/op_model_p4.c +0 -6
@@ -42,21 +42,15 @@ static unsigned int num_controls = NUM_CONTROLS_NON_HT;kernel boot-time. */ static inline void setup_num_counters (void ) { -#ifdef CONFIG_SMP if (smp_num_siblings ==2 ) { num_counters =NUM_COUNTERS_HT2 ; num_controls =NUM_CONTROLS_HT2 ; } -#endif }static inline int addr_increment (void ) { -#ifdef CONFIG_SMP return smp_num_siblings ==2 ?2 :1 ; -#else -return 1 ; -#endif }
Signature · 1 line
1.7.9.5
Quoted 49 lines · Kevin Winchester
Various per-cpu fields are define in
arch/x86/kernel/smpboot.cthat are basically equivalent to the cpu-specific data in structcpuinfo_x86. By moving these fields into the structure, a number of codepaths can be simplified since they no longer need to care about those fields not existing on !SMP builds.The size effects on allno (UP) and allyes (
MAX_SMP) kernels are as follows:text data bss dec hex filename 1369227 181536 1399180 2949943 2d0337 vmlinux.i386.allno 1370216 181600 1399012 2950828 2d06ac vmlinux.i386.allno.after 1608231 310968 505088 2424287 24fddf vmlinux.x86_64.allno 1609232 311032 504896 2425160 250148 vmlinux.x86_64.allno.after 97643748 6891747 34668544 139204039 84c15c7 vmlinux.i386.allyes 97643582 6892011 34668544 139204137 84c1629 vmlinux.i386.allyes.after 85869519 13567071 44511232 143947822 894782e vmlinux.x86_64.allyes 85869134 13568607 44511232 143948973 8947cad vmlinux.x86_64.allyes.after
As can be seen, the kernels get slighly larger, but the code reduction/ simplification should be enough to compensate for it.
Changes in v5:
- Reduced the number of files affected in the patchset by keeping helper functions inarch/x86/include/asm/smp.h
- Rebased to latest tip/masterKevin Winchester (5):
x86: Move per cpucpu_llc_shared_mapto a field in structcpuinfo_x86
x86: Move per cpucpu_llc_idto a field in structcpuinfo_x86
x86: Move per cpucpu_sibling_mapto a field in structcpuinfo_x86
x86: Move per cpucpu_core_mapto a field in structcpuinfo_x86
x86: Remove #ifdefCONFIG_SMPsections by movingsmp_num_siblingsintocommon.carch/x86/include/asm/perf_event_p4.h | 14 +++---------
arch/x86/include/asm/processor.h| 10 +++++++++arch/x86/include/asm/smp.h| 17 ++++----------arch/x86/include/asm/topology.h| 8 +++----arch/x86/kernel/apic/apic_numachip.c| 2 +-arch/x86/kernel/cpu/amd.c| 19 +++++-----------arch/x86/kernel/cpu/common.c| 5 +++++arch/x86/kernel/cpu/intel_cacheinfo.c| 11 ++--------arch/x86/kernel/cpu/mcheck/mce_amd.c| 2 --arch/x86/kernel/cpu/perf_event_p4.c| 4 ++--arch/x86/kernel/cpu/proc.c | 5 ++--- arch/x86/kernel/process.c | 5 ++--- arch/x86/kernel/smpboot.c | 39 +++++++--------------------------
Quoted 9 lines
arch/x86/oprofile/nmi_int.c | 6 -----
arch/x86/oprofile/op_model_p4.c| 11 +---------arch/x86/xen/smp.c| 6 -----drivers/cpufreq/p4-clockmod.c| 2 --drivers/cpufreq/powernow-k8.c| 7 ------drivers/cpufreq/speedstep-ich.c| 2 --drivers/hwmon/coretemp.c| 4 ----20 files changed, 48 insertions(+), 131 deletions(-)
I know I sent this right at the last merge window, so it likely slipped under your radar. If you still want it, please let me know if there is anything that you think should be improved.
Signature · 1 line
Kevin
H. Peter Anvin
reviewerQuoted 27 lines · Kevin Winchester
Various per-cpu fields are define in
arch/x86/kernel/smpboot.cthat are basically equivalent to the cpu-specific data in structcpuinfo_x86. By moving these fields into the structure, a number of codepaths can be simplified since they no longer need to care about those fields not existing on !SMP builds.The size effects on allno (UP) and allyes (
MAX_SMP) kernels are as follows:text data bss dec hex filename 1369227 181536 1399180 2949943 2d0337 vmlinux.i386.allno 1370216 181600 1399012 2950828 2d06ac vmlinux.i386.allno.after 1608231 310968 505088 2424287 24fddf vmlinux.x86_64.allno 1609232 311032 504896 2425160 250148 vmlinux.x86_64.allno.after 97643748 6891747 34668544 139204039 84c15c7 vmlinux.i386.allyes 97643582 6892011 34668544 139204137 84c1629 vmlinux.i386.allyes.after 85869519 13567071 44511232 143947822 894782e vmlinux.x86_64.allyes 85869134 13568607 44511232 143948973 8947cad vmlinux.x86_64.allyes.afterAs can be seen, the kernels get slighly larger, but the code reduction/ simplification should be enough to compensate for it.
Changes in v5:
- Reduced the number of files affected in the patchset by keeping helper functions inarch/x86/include/asm/smp.h
- Rebased to latest tip/master
Quoted 8 lines
Kevin Winchester (5):
x86: Move per cpucpu_llc_shared_mapto a field in structcpuinfo_x86
x86: Move per cpucpu_llc_idto a field in structcpuinfo_x86
x86: Move per cpucpu_sibling_mapto a field in structcpuinfo_x86
x86: Move per cpucpu_core_mapto a field in structcpuinfo_x86
x86: Remove #ifdefCONFIG_SMPsections by movingsmp_num_siblings
intocommon.c
I applied this patchset on top of v3.4-rc4 (to get a clean topic branch) and ran into the following build problems:
i386 "allnoconfig":
/home/hpa/kernel/tip.x86-cpu/arch/x86/kernel/process.c: In function ‘select_idle_routine’:/home/hpa/kernel/tip.x86-cpu/arch/x86/kernel/process.c:679:30: error:
‘smp_num_siblings’ undeclared (first use in this function) /home/hpa/kernel/tip.x86-cpu/arch/x86/kernel/process.c:679:30: note:
each undeclared identifier is reported only once for each function it appears in
i386 "allyesconfig" and "allmodconfig":
/home/hpa/kernel/tip.x86-cpu/drivers/cpufreq/speedstep-ich.c: In function ‘speedstep_cpu_init’:/home/hpa/kernel/tip.x86-cpu/drivers/cpufreq/speedstep-ich.c:337:2:
error: incompatible type for argument 2 of ‘cpumask_copy’ /home/hpa/kernel/tip.x86-cpu/include/linux/cpumask.h:483:20: note:
expected ‘const struct cpumask *’ but argument is of type ‘cpumask_t’
I will try it again against tip:master, but it looks to have the same problems.
-hpa
A message that is not in the archive (sent off-list or not yet received): CAELBVzAi_yndZbDc0TkXhbqzn2wULpnsFMA_dop=Uvaii8tkqg@mail.gmail.com
H. Peter Anvin
reviewerAgainst mainline would be better, unless it actively conflicts with something in tip.
Quoted 88 lines · Kevin Winchester
Quoted 3 lines · H. Peter Anvin
Quoted 1 line · Kevin Winchester
Various per-cpu fields are define in
arch/x86/kernel/smpboot.cthatare
Quoted 1 line
Quoted 1 line
basically equivalent to the cpu-specific data in struct
cpuinfo_x86.Quoted 1 line
Quoted 1 line
By moving these fields into the structure, a number of codepaths
can be
Quoted 8 lines
Quoted 8 lines
simplified since they no longer need to care about those fields not existing on !SMP builds.
The size effects on allno (UP) and allyes (
MAX_SMP) kernels are as follows:text data bss dec hex filename
1369227 181536 1399180 2949943 2d0337vmlinux.i386.allno
Quoted 1 line
Quoted 1 line
1370216 181600 1399012 2950828 2d06ac
vmlinux.i386.allno.after
Quoted 1 line
Quoted 1 line
1608231 310968 505088 2424287 24fddf
vmlinux.x86_64.allno
Quoted 1 line
Quoted 1 line
1609232 311032 504896 2425160 250148
vmlinux.x86_64.allno.after
Quoted 1 line
Quoted 1 line
97643748 6891747 34668544 139204039 84c15c7
vmlinux.i386.allyes
Quoted 1 line
Quoted 1 line
97643582 6892011 34668544 139204137 84c1629
vmlinux.i386.allyes.after
Quoted 1 line
Quoted 1 line
85869519 13567071 44511232 143947822 894782e
vmlinux.x86_64.allyes
Quoted 1 line
Quoted 1 line
85869134 13568607 44511232 143948973 8947cad
vmlinux.x86_64.allyes.after
Quoted 2 lines
Quoted 2 lines
As can be seen, the kernels get slighly larger, but the code
reduction/
Quoted 4 lines
Quoted 4 lines
simplification should be enough to compensate for it.
Changes in v5:
- Reduced the number of files affected in the patchset by keepinghelper
Quoted 5 lines
Quoted 5 lines
functions in
arch/x86/include/asm/smp.h
- Rebased to latest tip/masterKevin Winchester (5):
x86: Move per cpucpu_llc_shared_mapto a field in struct
cpuinfo_x86Quoted 2 lines
Quoted 2 lines
x86: Move per cpu
cpu_llc_idto a field in structcpuinfo_x86
x86: Move per cpucpu_sibling_mapto a field in struct
cpuinfo_x86Quoted 6 lines
Quoted 4 lines
x86: Move per cpu
cpu_core_mapto a field in structcpuinfo_x86
x86: Remove #ifdefCONFIG_SMPsections by movingsmp_num_siblings
intocommon.cI applied this patchset on top of v3.4-rc4 (to get a clean topic
branch)
Quoted 21 lines
and ran into the following build problems:
i386 "allnoconfig":
/home/hpa/kernel/tip.x86-cpu/arch/x86/kernel/process.c: In function ‘select_idle_routine’:/home/hpa/kernel/tip.x86-cpu/arch/x86/kernel/process.c:679:30: error:
‘smp_num_siblings’ undeclared (first use in this function)/home/hpa/kernel/tip.x86-cpu/arch/x86/kernel/process.c:679:30: note:
each undeclared identifier is reported only once for each function it appears ini386 "allyesconfig" and "allmodconfig":
/home/hpa/kernel/tip.x86-cpu/drivers/cpufreq/speedstep-ich.c: In function ‘speedstep_cpu_init’:/home/hpa/kernel/tip.x86-cpu/drivers/cpufreq/speedstep-ich.c:337:2:
error: incompatible type for argument 2 of ‘cpumask_copy’/home/hpa/kernel/tip.x86-cpu/include/linux/cpumask.h:483:20: note:
expected ‘const struct cpumask *’ but argument is of type ‘cpumask_t’Quoted 3 lines
I will try it again against tip:master, but it looks to have the same problems.
I'm pretty sure I tested at least some of those configurations, so maybe
something has changed since I last tried it against tip/master. I'll rebase
and fix up - would you prefer the series against mainline or tip?Kevin
Signature · 1 line
Sent from my mobile phone. Please excuse brevity and lack of formatting.
Quoted 2 lines · H. Peter Anvin
Against mainline would be better, unless it actively conflicts with something in tip.
Alright, my git/make skills must be lacking. I just checked out 3.4-rc4 to a new branch, and then git cherry-picked my 5 patches onto that branch. Then I ran:
$ make ARCH=i386 allnoconfig $ make ARCH=i386
And the build completed without warnings or errors. Should that be equivalent to what you did to build i386 allnoconfig? If so, then I wonder why I would not see those problems.
Can anyone offer any advice?
Thanks,
Signature · 1 line
Kevin
Quoted 3 lines · Kevin Winchester
Alright, my git/make skills must be lacking. I just checked out 3.4-rc4 to a new branch, and then git cherry-picked my 5 patches onto that branch.
FWIW,
you probably would need to rediff them again because they don't apply cleanly on current linus (v3.4-rc4-308-gf7b006931751):
x86: Move per cpu cpu_llc_id to a field in struct cpuinfo_x86
This simplifies the various code paths using this field as it groups the per-cpu data together.
--------------------------
Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all y
Applying: x86: Move per cpu cpu_llc_id to a field in struct cpuinfo_x86
error: patch failed: arch/x86/kernel/apic/apic_numachip.c:208
error: arch/x86/kernel/apic/apic_numachip.c: patch does not apply
error: patch failed: arch/x86/kernel/cpu/amd.c:350
error: arch/x86/kernel/cpu/amd.c: patch does not apply
Patch failed at 0002 x86: Move per cpu cpu_llc_id to a field in struct cpuinfo_x86 When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort".
Or it could be due to fuzz which git cannot stomach but patch can.
Anyway, applying the mbox of your 5 patches on -rc4 got me further but choked on the last patch:
Applying: x86: Remove #ifdef CONFIG_SMP sections by moving smp_num_siblings into common.c
error: patch failed: arch/x86/kernel/process.c:17
error: arch/x86/kernel/process.c: patch does not apply
Patch failed at 0005 x86: Remove #ifdef CONFIG_SMP sections by moving smp_num_siblings into common.c When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
Applying it with patch worked though, probably due to fuzziness.
Quoted 10 lines
Then I ran:
$ make ARCH=i386 allnoconfig $ make ARCH=i386And the build completed without warnings or errors. Should that be equivalent to what you did to build i386 allnoconfig? If so, then I wonder why I would not see those problems.
Can anyone offer any advice?
Other than that, i386 all{no,yes,mod}config seem to build fine here.
Signature · 2 lines
Regards/Gruss,
Boris.Quoted 42 lines · Borislav Petkov
Quoted 3 lines · Kevin Winchester
Alright, my git/make skills must be lacking. I just checked out 3.4-rc4 to a new branch, and then git cherry-picked my 5 patches onto that branch.
FWIW,
you probably would need to rediff them again because they don't apply cleanly on current linus (v3.4-rc4-308-gf7b006931751):
x86: Move per cpu
cpu_llc_idto a field in structcpuinfo_x86This simplifies the various code paths using this field as it groups the per-cpu data together.
Acked-by Borislav Petkov <[email protected]>Signed-off-by Kevin Winchester <[email protected]>--------------------------
Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all y
Applying: x86: Move per cpucpu_llc_idto a field in structcpuinfo_x86
error: patch failed:arch/x86/kernel/apic/apic_numachip.c:208
error:arch/x86/kernel/apic/apic_numachip.c: patch does not apply
error: patch failed:arch/x86/kernel/cpu/amd.c:350
error:arch/x86/kernel/cpu/amd.c: patch does not apply
Patch failed at 0002 x86: Move per cpucpu_llc_idto a field in structcpuinfo_x86When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort".Or it could be due to fuzz which git cannot stomach but patch can.
Anyway, applying the mbox of your 5 patches on -rc4 got me further but choked on the last patch:
Applying: x86: Remove #ifdef
CONFIG_SMPsections by movingsmp_num_siblingsintocommon.c
error: patch failed:arch/x86/kernel/process.c:17
error:arch/x86/kernel/process.c: patch does not apply
Patch failed at 0005 x86: Remove #ifdefCONFIG_SMPsections by movingsmp_num_siblingsintocommon.cWhen you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
Quoted 1 line
Applying it with patch worked though, probably due to fuzziness.
Perhaps I sent the wrong set of patches in my last mailing, as that would explain why everyone else is having trouble that I am not. I'll try to confirm and resend.
Quoted 6 lines
Quoted 6 lines
Then I ran:
$ make ARCH=i386 allnoconfig $ make ARCH=i386
Quoted 8 lines
Quoted 5 lines
And the build completed without warnings or errors. Should that be equivalent to what you did to build i386 allnoconfig? If so, then I wonder why I would not see those problems.
Can anyone offer any advice?
Other than that, i386 all{no,yes,mod}config seem to build fine here.
That's good at least, since it seems to concur with my experience here.
Thanks,
Signature · 1 line
Kevin
v6 cover x86: Cleanup and simplify cpu-specific data
In reply to H. Peter AnvinVarious per-cpu fields are define in arch/x86/kernel/smpboot.c that are basically equivalent to the cpu-specific data in struct cpuinfo_x86. By moving these fields into the structure, a number of codepaths can be simplified since they no longer need to care about those fields not existing on !SMP builds.
The size effects on allno (UP) and allyes (MAX_SMP) kernels are as follows:
text data bss dec hex filename 1369227 181536 1399180 2949943 2d0337 vmlinux.i386.allno 1370216 181600 1399012 2950828 2d06ac vmlinux.i386.allno.after 1608231 310968 505088 2424287 24fddf vmlinux.x86_64.allno 1609232 311032 504896 2425160 250148 vmlinux.x86_64.allno.after 97643748 6891747 34668544 139204039 84c15c7 vmlinux.i386.allyes 97643582 6892011 34668544 139204137 84c1629 vmlinux.i386.allyes.after 85869519 13567071 44511232 143947822 894782e vmlinux.x86_64.allyes 85869134 13568607 44511232 143948973 8947cad vmlinux.x86_64.allyes.after
As can be seen, the kernels get slighly larger, but the code reduction/ simplification should be enough to compensate for it.
Changes in v6:
- Rebased series against mainline 3.4-rc5
Changes in v5:
- Reduced the number of files affected in the patchset by keeping helper functions in arch/x86/include/asm/smp.h
- Rebased to latest tip/master
Kevin Winchester (5):
x86: Move per cpu cpu_llc_shared_map to a field in struct cpuinfo_x86
x86: Move per cpu cpu_llc_id to a field in struct cpuinfo_x86
x86: Move per cpu cpu_sibling_map to a field in struct cpuinfo_x86
x86: Move per cpu cpu_core_map to a field in struct cpuinfo_x86
x86: Remove #ifdef CONFIG_SMP sections by moving smp_num_siblings
into common.c
arch/x86/include/asm/perf_event_p4.h | 14 +++--------- arch/x86/include/asm/processor.h | 10 +++++++++ arch/x86/include/asm/smp.h | 17 ++++---------- arch/x86/include/asm/topology.h | 8 +++---- arch/x86/kernel/apic/apic_numachip.c | 3 +-- arch/x86/kernel/cpu/amd.c | 19 +++++----------- arch/x86/kernel/cpu/common.c | 5 +++++ arch/x86/kernel/cpu/intel_cacheinfo.c | 11 ++-------- arch/x86/kernel/cpu/mcheck/mce_amd.c | 2 -- arch/x86/kernel/cpu/perf_event_p4.c | 4 ++-- arch/x86/kernel/cpu/proc.c | 5 ++--- arch/x86/kernel/process.c | 5 ++--- arch/x86/kernel/smpboot.c | 39 +++++++-------------------------- arch/x86/oprofile/nmi_int.c | 6 ----- arch/x86/oprofile/op_model_p4.c | 11 +--------- arch/x86/xen/smp.c | 6 ----- drivers/cpufreq/p4-clockmod.c | 2 -- drivers/cpufreq/powernow-k8.c | 7 ------ drivers/cpufreq/speedstep-ich.c | 2 -- drivers/hwmon/coretemp.c | 4 ---- 20 files changed, 48 insertions(+), 132 deletions(-)
Signature · 1 line
1.7.10
PATCH v6 1/5 x86: Move per cpu cpu_llc_shared_map to a field in struct cpuinfo_x86
Commit 141168c36cde ("x86: Simplify code by removing a !SMP #ifdefs from 'struct cpuinfo_x86'") caused the compilation error:
mce_amd.c:(.cpuinit.text+0x4723): undefined reference to 'cpu_llc_shared_map'
by removing an #ifdef CONFIG_SMP around a block containing a reference to cpu_llc_shared_map. Rather than replace the #ifdef, move cpu_llc_shared_map to be a new cpumask_t field llc_shared_map in struct cpuinfo_x86 and adjust all references to cpu_llc_shared_map.
--- arch/x86/include/asm/processor.h | 2 ++ arch/x86/include/asm/smp.h | 4 +--- arch/x86/kernel/cpu/mcheck/mce_amd.c | 2 -- arch/x86/kernel/smpboot.c | 3 --- arch/x86/xen/smp.c | 1 - 5 files changed, 3 insertions(+), 9 deletions(-)
arch/x86/include/asm/processor.h +2 -0
@@ -119,6 +119,8 @@ struct cpuinfo_x86 {/* Index into per_cpu list: */ u16 cpu_index;u32 microcode; +/* CPUs sharing the last level cache: */ +cpumask_t llc_shared_map; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +1 -3
@@ -33,8 +33,6 @@ static inline bool cpu_has_ht_siblings(void)DECLARE_PER_CPU (cpumask_var_t, cpu_sibling_map);DECLARE_PER_CPU (cpumask_var_t, cpu_core_map); -/* cpus sharing the last level cache: */ -DECLARE_PER_CPU (cpumask_var_t, cpu_llc_shared_map);DECLARE_PER_CPU (u16, cpu_llc_id);DECLARE_PER_CPU (int, cpu_number);
@@ -50,7 +48,7 @@ static inline struct cpumask *cpu_core_mask(int cpu)static inline struct cpumask *cpu_llc_shared_mask (int cpu) { -return per_cpu (cpu_llc_shared_map, cpu); +return &cpu_data (cpu).llc_shared_map; }DECLARE_EARLY_PER_CPU (u16, x86_cpu_to_apicid);
arch/x86/kernel/cpu/mcheck/mce_amd.c +0 -2
@@ -528,7 +528,6 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank)sprintf (name,"threshold_bank%i" , bank); -#ifdef CONFIG_SMP if (cpu_data (cpu).cpu_core_id && shared_bank[bank]) {/* symlink */ i =cpumask_first (cpu_llc_shared_mask (cpu));
@@ -554,7 +553,6 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank) goto out; } -#endif b =kzalloc (sizeof (struct threshold_bank ),GFP_KERNEL );if (!b) {
arch/x86/kernel/smpboot.c +0 -3
@@ -128,8 +128,6 @@ EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);DEFINE_PER_CPU (cpumask_var_t, cpu_core_map);EXPORT_PER_CPU_SYMBOL (cpu_core_map); -DEFINE_PER_CPU (cpumask_var_t, cpu_llc_shared_map); -/* Per CPU bogomips and other parameters */ DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);EXPORT_PER_CPU_SYMBOL (cpu_info);
@@ -1036,7 +1034,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)for_each_possible_cpu (i) {zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); -zalloc_cpumask_var (&per_cpu (cpu_llc_shared_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
arch/x86/xen/smp.c +0 -1
@@ -246,7 +246,6 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus)for_each_possible_cpu (i) {zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); -zalloc_cpumask_var (&per_cpu (cpu_llc_shared_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
Signature · 1 line
1.7.10
H. Peter Anvin
reviewerRe: [PATCH v6 1/5] x86: Move per cpu cpu_llc_shared_map to a field in struct cpuinfo_x86
Quoted 10 lines · Kevin Winchester
Commit
141168c36cde("x86: Simplify code by removing a !SMP #ifdefs from 'structcpuinfo_x86'") caused the compilation error:mce_amd.c:(.cpuinit.text+0x4723): undefined reference to '
cpu_llc_shared_map'by removing an #ifdef
CONFIG_SMParound a block containing a reference tocpu_llc_shared_map. Rather than replace the #ifdef, movecpu_llc_shared_mapto be a newcpumask_tfieldllc_shared_mapin structcpuinfo_x86and adjust all references tocpu_llc_shared_map.
Okay... I must not get this.
Why is this better than just moving the DEFINE_PER_CPU to a place which isn't dependent on SMP?
-hpa
Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
Re: [PATCH v6 1/5] x86: Move per cpu cpu_llc_shared_map to a field in struct cpuinfo_x86
Quoted 12 lines · H. Peter Anvin
Quoted 10 lines · Kevin Winchester
Commit
141168c36cde("x86: Simplify code by removing a !SMP #ifdefs from 'structcpuinfo_x86'") caused the compilation error:mce_amd.c:(.cpuinit.text+0x4723): undefined reference to '
cpu_llc_shared_map'by removing an #ifdef
CONFIG_SMParound a block containing a reference tocpu_llc_shared_map. Rather than replace the #ifdef, movecpu_llc_shared_mapto be a newcpumask_tfieldllc_shared_mapin structcpuinfo_x86and adjust all references tocpu_llc_shared_map.
Quoted 5 lines
Okay... I must not get this.
Why is this better than just moving the
DEFINE_PER_CPUto a place which isn't dependent on SMP?
To be honest, the idea was suggested by Ingo a while back, and I just volunteered to implement it. I believe the idea was to work towards gathering all CPU-specific data for SMP and !SMP into one place. That said, moving the DEFINE_PER_CPU elsewhere would likely still give the same benefits as my patch in terms of ifdef reduction. I cannot really see a benefit/downside either way, really.
Perhaps Ingo will chime in, and you and he (and anyone else with an opinion) can figure out the best way of accomplishing this simplification, and then I can adjust my series accordingly.
Signature · 1 line
Kevin
Re: [PATCH v6 1/5] x86: Move per cpu cpu_llc_shared_map to a field in struct cpuinfo_x86
Quoted 27 lines · Kevin Winchester
Quoted 12 lines · H. Peter Anvin
Quoted 10 lines · Kevin Winchester
Commit
141168c36cde("x86: Simplify code by removing a !SMP #ifdefs from 'structcpuinfo_x86'") caused the compilation error:mce_amd.c:(.cpuinit.text+0x4723): undefined reference to '
cpu_llc_shared_map'by removing an #ifdef
CONFIG_SMParound a block containing a reference tocpu_llc_shared_map. Rather than replace the #ifdef, movecpu_llc_shared_mapto be a newcpumask_tfieldllc_shared_mapin structcpuinfo_x86and adjust all references tocpu_llc_shared_map.Quoted 5 lines
Okay... I must not get this.
Why is this better than just moving the
DEFINE_PER_CPUto a place which isn't dependent on SMP?To be honest, the idea was suggested by Ingo a while back, and I just volunteered to implement it. I believe the idea was to work towards gathering all CPU-specific data for SMP and !SMP into one place. That said, moving the
DEFINE_PER_CPUelsewhere would likely still give the same benefits as my patch in terms of ifdef reduction. I cannot really see a benefit/downside either way, really.
Quoted 4 lines
Perhaps Ingo will chime in, and you and he (and anyone else with an opinion) can figure out the best way of accomplishing this simplification, and then I can adjust my series accordingly.
Well, cpu_llc_shared_map is really a CPU attribute and as such I think the logical place for it is "struct cpuinfo_x86". Peter, any objections to that?
Thanks,
Ingo
PATCH v6 2/5 x86: Move per cpu cpu_llc_id to a field in struct cpuinfo_x86
In reply to Kevin WinchesterThis simplifies the various code paths using this field as it groups the per-cpu data together.
--- arch/x86/include/asm/processor.h | 1 + arch/x86/include/asm/smp.h | 1 - arch/x86/kernel/apic/apic_numachip.c | 3 +-- arch/x86/kernel/cpu/amd.c | 14 ++++---------- arch/x86/kernel/cpu/common.c | 1 + arch/x86/kernel/cpu/intel_cacheinfo.c | 11 ++--------- arch/x86/kernel/smpboot.c | 16 +++++++--------- 7 files changed, 16 insertions(+), 31 deletions(-)
arch/x86/include/asm/processor.h +1 -0
@@ -121,6 +121,7 @@ struct cpuinfo_x86 {u32 microcode;/* CPUs sharing the last level cache: */ cpumask_t llc_shared_map; +u16 llc_id; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +0 -1
@@ -33,7 +33,6 @@ static inline bool cpu_has_ht_siblings(void)DECLARE_PER_CPU (cpumask_var_t, cpu_sibling_map);DECLARE_PER_CPU (cpumask_var_t, cpu_core_map); -DECLARE_PER_CPU (u16, cpu_llc_id);DECLARE_PER_CPU (int, cpu_number);static inline struct cpumask *cpu_sibling_mask (int cpu)
arch/x86/kernel/apic/apic_numachip.c +1 -2
@@ -207,10 +207,9 @@ static void __init map_csrs(void)static void fixup_cpu_id (struct cpuinfo_x86 *c,int node) { -if (c->phys_proc_id != node) { c->phys_proc_id = node; -per_cpu (cpu_llc_id,smp_processor_id ()) = node; + c->llc_id = node; } }
arch/x86/kernel/cpu/amd.c +4 -10
@@ -268,7 +268,6 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c) {u32 nodes, cores_per_cu =1 ;u8 node_id; -int cpu =smp_processor_id ();/* get information required for multi-node processors */ if (cpu_has (c,X86_FEATURE_TOPOEXT )) {
@@ -301,7 +300,7 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c) cus_per_node = cores_per_node / cores_per_cu;/* store NodeID, use llc_shared_map to store sibling info */ -per_cpu (cpu_llc_id, cpu) = node_id; + c->llc_id = node_id;/* core id has to be in the [0 .. cores_per_node - 1] range */ c->cpu_core_id %= cores_per_node;
@@ -318,7 +317,6 @@ static void __cpuinit amd_detect_cmp(struct cpuinfo_x86 *c) {#ifdef CONFIG_X86_HT unsigned bits; -int cpu =smp_processor_id (); bits = c->x86_coreid_bits;/* Low order bits define the core id (index of core in socket) */
@@ -326,18 +324,14 @@ static void __cpuinit amd_detect_cmp(struct cpuinfo_x86 *c)/* Convert the initial APIC ID into the socket ID */ c->phys_proc_id = c->initial_apicid >> bits;/* use socket ID also for last level cache */ -per_cpu (cpu_llc_id, cpu) = c->phys_proc_id; + c->llc_id = c->phys_proc_id;amd_get_topology (c);#endif }int amd_get_nb_id (int cpu) { -int id =0 ; -#ifdef CONFIG_SMP - id =per_cpu (cpu_llc_id, cpu); -#endif -return id; +return cpu_data (cpu).llc_id; }EXPORT_SYMBOL_GPL (amd_get_nb_id);
@@ -350,7 +344,7 @@ static void __cpuinit srat_detect_node(struct cpuinfo_x86 *c) node =numa_cpu_node (cpu);if (node ==NUMA_NO_NODE ) - node =per_cpu (cpu_llc_id, cpu); + node = c->llc_id;/* * On multi-fabric platform (e.g. Numascale NumaChip) a
arch/x86/kernel/cpu/common.c +1 -0
@@ -789,6 +789,7 @@ static void __cpuinit identify_cpu(struct cpuinfo_x86 *c) c->x86_model_id[0 ] ='\0' ;/* Unset */ c->x86_max_cores =1 ; c->x86_coreid_bits =0 ; + c->llc_id =BAD_APICID ;#ifdef CONFIG_X86_64 c->x86_clflush_size =64 ; c->x86_phys_bits =36 ;
arch/x86/kernel/cpu/intel_cacheinfo.c +2 -9
@@ -579,9 +579,6 @@ unsigned int __cpuinit init_intel_cacheinfo(struct cpuinfo_x86 *c)unsigned int new_l1d =0 , new_l1i =0 ;/* Cache sizes from cpuid(4) */ unsigned int new_l2 =0 , new_l3 =0 , i;/* Cache sizes from cpuid(4) */ unsigned int l2_id =0 , l3_id =0 , num_threads_sharing, index_msb; -#ifdef CONFIG_X86_HT -unsigned int cpu = c->cpu_index; -#endif if (c->cpuid_level >3 ) {static int is_initialized;
@@ -700,16 +697,12 @@ unsigned int __cpuinit init_intel_cacheinfo(struct cpuinfo_x86 *c)if (new_l2) { l2 = new_l2; -#ifdef CONFIG_X86_HT -per_cpu (cpu_llc_id, cpu) = l2_id; -#endif + c->llc_id = l2_id; }if (new_l3) { l3 = new_l3; -#ifdef CONFIG_X86_HT -per_cpu (cpu_llc_id, cpu) = l3_id; -#endif + c->llc_id = l3_id; } c->x86_cache_size = l3 ? l3 : (l2 ? l2 : (l1i+l1d));
arch/x86/kernel/smpboot.c +7 -9
@@ -117,9 +117,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;int smp_num_siblings =1 ;EXPORT_SYMBOL (smp_num_siblings); -/* Last level cache ID of each logical CPU */ -DEFINE_PER_CPU (u16, cpu_llc_id) =BAD_APICID ; -/* representing HT siblings of each logical CPU */ DEFINE_PER_CPU (cpumask_var_t, cpu_sibling_map);EXPORT_PER_CPU_SYMBOL (cpu_sibling_map);
@@ -337,7 +334,7 @@ void __cpuinit set_cpu_sibling_map(int cpu)if (cpu_has (c,X86_FEATURE_TOPOEXT )) {if (c->phys_proc_id == o->phys_proc_id && -per_cpu (cpu_llc_id, cpu) ==per_cpu (cpu_llc_id, i) && + c->llc_id == o->llc_id && c->compute_unit_id == o->compute_unit_id)link_thread_siblings (cpu, i); } else if (c->phys_proc_id == o->phys_proc_id &&
@@ -358,12 +355,13 @@ void __cpuinit set_cpu_sibling_map(int cpu) }for_each_cpu (i, cpu_sibling_setup_mask) { -if (per_cpu (cpu_llc_id, cpu) !=BAD_APICID && -per_cpu (cpu_llc_id, cpu) ==per_cpu (cpu_llc_id, i)) { +struct cpuinfo_x86 *o = &cpu_data (i); + +if (c->llc_id !=BAD_APICID && c->llc_id == o->llc_id) {cpumask_set_cpu (i,cpu_llc_shared_mask (cpu));cpumask_set_cpu (cpu,cpu_llc_shared_mask (i)); } -if (c->phys_proc_id ==cpu_data (i).phys_proc_id) { +if (c->phys_proc_id == o->phys_proc_id) {cpumask_set_cpu (i,cpu_core_mask (cpu));cpumask_set_cpu (cpu,cpu_core_mask (i));/*
@@ -381,9 +379,9 @@ void __cpuinit set_cpu_sibling_map(int cpu)* the other cpus in this package */ if (i != cpu) -cpu_data (i).booted_cores++; + o->booted_cores++; }else if (i != cpu && !c->booted_cores) - c->booted_cores =cpu_data (i).booted_cores; + c->booted_cores = o->booted_cores; } } }
Signature · 1 line
1.7.10
PATCH v6 3/5 x86: Move per cpu cpu_sibling_map to a field in struct cpuinfo_x86
In reply to Kevin WinchesterThis simplifies the various code paths using this field as it groups the per-cpu data together.
--- arch/x86/include/asm/perf_event_p4.h | 2 +- arch/x86/include/asm/processor.h | 2 ++ arch/x86/include/asm/smp.h | 3 +-- arch/x86/include/asm/topology.h | 2 +- arch/x86/kernel/smpboot.c | 5 ----- arch/x86/oprofile/op_model_p4.c | 5 +---- arch/x86/xen/smp.c | 1 - drivers/cpufreq/p4-clockmod.c | 2 -- drivers/cpufreq/speedstep-ich.c | 2 -- drivers/hwmon/coretemp.c | 4 ---- 10 files changed, 6 insertions(+), 22 deletions(-)
arch/x86/include/asm/perf_event_p4.h +1 -1
@@ -189,7 +189,7 @@ static inline int p4_ht_thread(int cpu) {#ifdef CONFIG_SMP if (smp_num_siblings ==2 ) -return cpu !=cpumask_first (__get_cpu_var (cpu_sibling_map)); + return cpu != cpumask_first(&cpu_data(cpu).sibling_map));#endif return 0 ; }
arch/x86/include/asm/processor.h +2 -0
@@ -122,6 +122,8 @@ struct cpuinfo_x86 {/* CPUs sharing the last level cache: */ cpumask_t llc_shared_map;u16 llc_id; +/* representing HT siblings of each logical CPU */ +cpumask_t sibling_map; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +1 -2
@@ -31,13 +31,12 @@ static inline bool cpu_has_ht_siblings(void)return has_siblings; } -DECLARE_PER_CPU (cpumask_var_t, cpu_sibling_map);DECLARE_PER_CPU (cpumask_var_t, cpu_core_map);DECLARE_PER_CPU (int, cpu_number);static inline struct cpumask *cpu_sibling_mask (int cpu) { -return per_cpu (cpu_sibling_map, cpu); +return &cpu_data (cpu).sibling_map; }static inline struct cpumask *cpu_core_mask (int cpu)
arch/x86/include/asm/topology.h +1 -1
@@ -161,7 +161,7 @@ extern const struct cpumask *cpu_coregroup_mask(int cpu);#define topology_physical_package_id (cpu) (cpu_data(cpu).phys_proc_id)#define topology_core_id (cpu) (cpu_data(cpu).cpu_core_id)#define topology_core_cpumask (cpu) (per_cpu(cpu_core_map, cpu)) -#define topology_thread_cpumask (cpu) (per_cpu(cpu_sibling_map, cpu)) +#define topology_thread_cpumask (cpu) (&cpu_data(cpu).sibling_map)/* indicates that pointers to the topology cpumask_t maps are valid */ #define arch_provides_topology_pointers yes
arch/x86/kernel/smpboot.c +0 -5
@@ -117,10 +117,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;int smp_num_siblings =1 ;EXPORT_SYMBOL (smp_num_siblings); -/* representing HT siblings of each logical CPU */ -DEFINE_PER_CPU (cpumask_var_t, cpu_sibling_map); -EXPORT_PER_CPU_SYMBOL (cpu_sibling_map); -/* representing HT and core siblings of each logical CPU */ DEFINE_PER_CPU (cpumask_var_t, cpu_core_map);EXPORT_PER_CPU_SYMBOL (cpu_core_map);
@@ -1030,7 +1026,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)current_thread_info ()->cpu =0 ;/* needed? */ for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
arch/x86/oprofile/op_model_p4.c +1 -4
@@ -370,11 +370,8 @@ static struct p4_event_binding p4_events[NUM_EVENTS] = {or "odd" part of all the divided resources. */ static unsigned int get_stagger (void ) { -#ifdef CONFIG_SMP int cpu =smp_processor_id (); -return cpu !=cpumask_first (__get_cpu_var (cpu_sibling_map)); -#endif -return 0 ; +return cpu !=cpumask_first (&cpu_data (cpu).sibling_map); }
arch/x86/xen/smp.c +0 -1
@@ -244,7 +244,6 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus)cpu_data (0 ).x86_max_cores =1 ;for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_sibling_map, i),GFP_KERNEL );zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); }set_cpu_sibling_map (0 );
drivers/cpufreq/p4-clockmod.c +0 -2
@@ -204,9 +204,7 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy)int cpuid =0 ;unsigned int i; -#ifdef CONFIG_SMP cpumask_copy (policy->cpus,cpu_sibling_mask (policy->cpu)); -#endif /* Errata workaround */ cpuid = (c->x86 <<8 ) | (c->x86_model <<4 ) | c->x86_mask;
drivers/cpufreq/speedstep-ich.c +0 -2
@@ -333,9 +333,7 @@ static int speedstep_cpu_init(struct cpufreq_policy *policy)struct get_freqs gf;/* only run on CPU to be set, or on its sibling */ -#ifdef CONFIG_SMP cpumask_copy (policy->cpus,cpu_sibling_mask (policy->cpu)); -#endif policy_cpu =cpumask_any_and (policy->cpus, cpu_online_mask);/* detect low and high frequency and transition latency */
drivers/hwmon/coretemp.c +0 -4
@@ -62,11 +62,7 @@ MODULE_PARM_DESC(tjmax, "TjMax value in degrees Celsius");#define TO_CORE_ID (cpu) (cpu_data(cpu).cpu_core_id)#define TO_ATTR_NO (cpu) (TO_CORE_ID(cpu) + BASE_SYSFS_ATTR_NO) -#ifdef CONFIG_SMP #define for_each_sibling (i, cpu) for_each_cpu(i, cpu_sibling_mask(cpu)) -#else -#define for_each_sibling (i, cpu) for (i = 0; false; ) -#endif /* * Per-Core Temperature Data
Signature · 1 line
1.7.10
PATCH v6 4/5 x86: Move per cpu cpu_core_map to a field in struct cpuinfo_x86
In reply to Kevin WinchesterThis simplifies the various code paths using this field as it groups the per-cpu data together.
--- arch/x86/include/asm/processor.h | 5 +++++ arch/x86/include/asm/smp.h | 3 +-- arch/x86/include/asm/topology.h | 2 +- arch/x86/kernel/smpboot.c | 11 +---------- arch/x86/xen/smp.c | 4 ---- drivers/cpufreq/powernow-k8.c | 7 ------- 6 files changed, 8 insertions(+), 24 deletions(-)
arch/x86/include/asm/processor.h +5 -0
@@ -124,6 +124,11 @@ struct cpuinfo_x86 {u16 llc_id;/* representing HT siblings of each logical CPU */ cpumask_t sibling_map; +/* +* representing all execution threads on a logical CPU, i.e. per +* physical socket +*/ +cpumask_t core_map; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
arch/x86/include/asm/smp.h +1 -2
@@ -31,7 +31,6 @@ static inline bool cpu_has_ht_siblings(void)return has_siblings; } -DECLARE_PER_CPU (cpumask_var_t, cpu_core_map);DECLARE_PER_CPU (int, cpu_number);static inline struct cpumask *cpu_sibling_mask (int cpu)
@@ -41,7 +40,7 @@ static inline struct cpumask *cpu_sibling_mask(int cpu)static inline struct cpumask *cpu_core_mask (int cpu) { -return per_cpu (cpu_core_map, cpu); +return &cpu_data (cpu).core_map; }static inline struct cpumask *cpu_llc_shared_mask (int cpu)
arch/x86/include/asm/topology.h +1 -1
@@ -160,7 +160,7 @@ extern const struct cpumask *cpu_coregroup_mask(int cpu);#ifdef ENABLE_TOPO_DEFINES #define topology_physical_package_id (cpu) (cpu_data(cpu).phys_proc_id)#define topology_core_id (cpu) (cpu_data(cpu).cpu_core_id) -#define topology_core_cpumask (cpu) (per_cpu(cpu_core_map, cpu)) +#define topology_core_cpumask (cpu) (&cpu_data(cpu).core_map)#define topology_thread_cpumask (cpu) (&cpu_data(cpu).sibling_map)/* indicates that pointers to the topology cpumask_t maps are valid */
arch/x86/kernel/smpboot.c +1 -10
@@ -117,10 +117,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;int smp_num_siblings =1 ;EXPORT_SYMBOL (smp_num_siblings); -/* representing HT and core siblings of each logical CPU */ -DEFINE_PER_CPU (cpumask_var_t, cpu_core_map); -EXPORT_PER_CPU_SYMBOL (cpu_core_map); -/* Per CPU bogomips and other parameters */ DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);EXPORT_PER_CPU_SYMBOL (cpu_info);
@@ -388,7 +384,7 @@ const struct cpumask *cpu_coregroup_mask(int cpu)struct cpuinfo_x86 *c = &cpu_data (cpu);/* * For perf, we return last level cache shared map. -* And for power savings, we return cpu_core_map +* And for power savings, we return core map. */ if ((sched_mc_power_savings || sched_smt_power_savings) && !(cpu_has (c,X86_FEATURE_AMD_DCM )))
@@ -1012,8 +1008,6 @@ static void __init smp_cpu_index_default(void)*/ void __init native_smp_prepare_cpus (unsigned int max_cpus) { -unsigned int i; -preempt_disable ();smp_cpu_index_default ();
@@ -1025,9 +1019,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)mb ();current_thread_info ()->cpu =0 ;/* needed? */ -for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); - }set_cpu_sibling_map (0 );
arch/x86/xen/smp.c +0 -4
@@ -227,7 +227,6 @@ static void __init xen_smp_prepare_boot_cpu(void)static void __init xen_smp_prepare_cpus (unsigned int max_cpus) {unsigned cpu; -unsigned int i;if (skip_ioapic_setup) { char *m = (max_cpus == 0) ?
@@ -243,9 +242,6 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus)smp_store_cpu_info (0 );cpu_data (0 ).x86_max_cores =1 ; -for_each_possible_cpu (i) { -zalloc_cpumask_var (&per_cpu (cpu_core_map, i),GFP_KERNEL ); - }set_cpu_sibling_map (0 );if (xen_smp_intr_init (0 ))
drivers/cpufreq/powernow-k8.c +0 -7
@@ -67,13 +67,6 @@ static struct msr __percpu *msrs;static struct cpufreq_driver cpufreq_amd64_driver; -#ifndef CONFIG_SMP -static inline const struct cpumask *cpu_core_mask (int cpu) -{ -return cpumask_of (0 ); -} -#endif -/* Return a frequency in MHz, given an input fid */ static u32 find_freq_from_fid (u32 fid) {
Signature · 1 line
1.7.10
PATCH v6 5/5 x86: Remove #ifdef CONFIG_SMP sections by moving smp_num_siblings into common.c
In reply to Kevin Winchestersmp_num_siblings was defined in arch/x86/kernel/smpboot.c, making it necessary to wrap any UP relevant code referencing it with #ifdef CONFIG_SMP.
Instead, move the definition to arch/x86/kernel/cpu/common.c, thus making it available always.
--- arch/x86/include/asm/perf_event_p4.h | 14 +++----------- arch/x86/include/asm/smp.h | 6 +----- arch/x86/include/asm/topology.h | 4 +--- arch/x86/kernel/cpu/amd.c | 5 +---- arch/x86/kernel/cpu/common.c | 4 ++++ arch/x86/kernel/cpu/perf_event_p4.c | 4 ++-- arch/x86/kernel/cpu/proc.c | 5 ++--- arch/x86/kernel/process.c | 5 ++--- arch/x86/kernel/smpboot.c | 4 ---- arch/x86/oprofile/nmi_int.c | 6 ------ arch/x86/oprofile/op_model_p4.c | 6 ------ 11 files changed, 16 insertions(+), 47 deletions(-)
arch/x86/include/asm/perf_event_p4.h +3 -11
@@ -8,6 +8,8 @@#include <linux/cpu.h> #include <linux/bitops.h> +#include <asm/smp.h> +/* * NetBurst has performance MSRs shared between * threads if HT is turned on, ie for both logical
@@ -177,20 +179,10 @@ static inline u64 p4_clear_ht_bit(u64 config)return config & ~P4_CONFIG_HT ; } -static inline int p4_ht_active (void ) -{ -#ifdef CONFIG_SMP -return smp_num_siblings >1 ; -#endif -return 0 ; -} -static inline int p4_ht_thread (int cpu) { -#ifdef CONFIG_SMP if (smp_num_siblings ==2 ) - return cpu != cpumask_first(&cpu_data(cpu).sibling_map)); -#endif +return cpu !=cpumask_first (&cpu_data (cpu).sibling_map);return 0 ; }
arch/x86/include/asm/smp.h +1 -5
@@ -24,11 +24,7 @@ extern unsigned int num_processors;static inline bool cpu_has_ht_siblings (void ) { -bool has_siblings = false; -#ifdef CONFIG_SMP - has_siblings = cpu_has_ht && smp_num_siblings >1 ; -#endif -return has_siblings; +return cpu_has_ht && smp_num_siblings >1 ; }DECLARE_PER_CPU (int, cpu_number);
arch/x86/include/asm/topology.h +1 -3
@@ -174,11 +174,9 @@ static inline void arch_fix_phys_package_id(int num, u32 slot)struct pci_bus ;void x86_pci_root_bus_resources (int bus,struct list_head *resources); -#ifdef CONFIG_SMP #define mc_capable () ((boot_cpu_data.x86_max_cores > 1) && \ (cpumask_weight(cpu_core_mask(0)) != nr_cpu_ids)) -#define smt_capable () (smp_num_siblings > 1) -#endif +#define smt_capable () (smp_num_siblings > 1)#ifdef CONFIG_NUMA extern int get_mp_bus_to_node (int busnum);
arch/x86/kernel/cpu/amd.c +1 -4
@@ -9,6 +9,7 @@#include <asm/processor.h> #include <asm/apic.h> #include <asm/cpu.h> +#include <asm/smp.h> #include <asm/pci-direct.h> #ifdef CONFIG_X86_64
@@ -263,7 +264,6 @@ static int __cpuinit nearby_node(int apicid)* Assumption: Number of cores in each internal node is the same. * (2) AMD processors supporting compute units */ -#ifdef CONFIG_X86_HT static void __cpuinit amd_get_topology (struct cpuinfo_x86 *c) {u32 nodes, cores_per_cu =1 ;
@@ -307,7 +307,6 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c) c->compute_unit_id %= cus_per_node; } } -#endif /* * On a AMD dual core setup the lower bits of the APIC id distingush the cores.
@@ -315,7 +314,6 @@ static void __cpuinit amd_get_topology(struct cpuinfo_x86 *c)*/ static void __cpuinit amd_detect_cmp (struct cpuinfo_x86 *c) { -#ifdef CONFIG_X86_HT unsigned bits; bits = c->x86_coreid_bits;
@@ -326,7 +324,6 @@ static void __cpuinit amd_detect_cmp(struct cpuinfo_x86 *c)/* use socket ID also for last level cache */ c->llc_id = c->phys_proc_id;amd_get_topology (c); -#endif }int amd_get_nb_id (int cpu)
arch/x86/kernel/cpu/common.c +4 -0
@@ -49,6 +49,10 @@ cpumask_var_t cpu_initialized_mask;cpumask_var_t cpu_callout_mask;cpumask_var_t cpu_callin_mask; +/* Number of siblings per CPU package */ +int smp_num_siblings =1 ; +EXPORT_SYMBOL (smp_num_siblings); +/* representing cpus for which sibling maps can be computed */ cpumask_var_t cpu_sibling_setup_mask;
arch/x86/kernel/cpu/perf_event_p4.c +2 -2
@@ -775,7 +775,7 @@ static int p4_validate_raw_event(struct perf_event *event)* if an event is shared across the logical threads * the user needs special permissions to be able to use it */ -if (p4_ht_active () && p4_event_bind_map[v].shared) { +if (smt_capable () && p4_event_bind_map[v].shared) {if (perf_paranoid_cpu () && !capable (CAP_SYS_ADMIN ))return -EACCES ; }
@@ -816,7 +816,7 @@ static int p4_hw_config(struct perf_event *event) event->hw.config =p4_config_pack_escr (escr) |p4_config_pack_cccr (cccr); -if (p4_ht_active () &&p4_ht_thread (cpu)) +if (smt_capable () &&p4_ht_thread (cpu)) event->hw.config =p4_set_ht_bit (event->hw.config);if (event->attr.type ==PERF_TYPE_RAW ) {
arch/x86/kernel/cpu/proc.c +2 -3
@@ -1,16 +1,16 @@ -#include <linux/smp.h> #include <linux/timex.h> #include <linux/string.h> #include <linux/seq_file.h> #include <linux/cpufreq.h> +#include <asm/smp.h> +/* * Get CPU information for use by the procfs. */ static void show_cpuinfo_core (struct seq_file *m,struct cpuinfo_x86 *c,unsigned int cpu) { -#ifdef CONFIG_SMPif (c->x86_max_cores * smp_num_siblings >1 ) {seq_printf (m,"physical id\t: %d\n" , c->phys_proc_id); seq_printf(m, "siblings\t: %d\n",
@@ -20,7 +20,6 @@ static void show_cpuinfo_core(struct seq_file *m, struct cpuinfo_x86 *c,seq_printf (m,"apicid\t\t: %d\n" , c->apicid);seq_printf (m,"initial apicid\t: %d\n" , c->initial_apicid); } -#endif }#ifdef CONFIG_X86_32
arch/x86/kernel/process.c +2 -3
@@ -1,7 +1,6 @@#include <linux/errno.h> #include <linux/kernel.h> #include <linux/mm.h> -#include <linux/smp.h> #include <linux/prctl.h> #include <linux/slab.h> #include <linux/sched.h>
@@ -19,6 +18,7 @@#include <linux/hw_breakpoint.h> #include <asm/cpu.h> #include <asm/apic.h> +#include <asm/smp.h> #include <asm/syscalls.h> #include <asm/idle.h> #include <asm/uaccess.h>
@@ -676,12 +676,11 @@ static void amd_e400_idle(void)void __cpuinit select_idle_routine (const struct cpuinfo_x86 *c) { -#ifdef CONFIG_SMP if (pm_idle == poll_idle && smp_num_siblings >1 ) {printk_once (KERN_WARNING "WARNING: polling idle and HT enabled," " performance may degrade.\n" ); } -#endif +if (pm_idle)return ;
arch/x86/kernel/smpboot.c +0 -4
@@ -113,10 +113,6 @@ static struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;#define set_idle_for_cpu (x, p) (idle_thread_array[(x)] = (p))#endif -/* Number of siblings per CPU package */ -int smp_num_siblings =1 ; -EXPORT_SYMBOL (smp_num_siblings); -/* Per CPU bogomips and other parameters */ DEFINE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);EXPORT_PER_CPU_SYMBOL (cpu_info);
arch/x86/oprofile/nmi_int.c +0 -6
@@ -572,11 +572,6 @@ static int __init p4_init(char **cpu_type)if (cpu_model >6 || cpu_model ==5 )return 0 ; -#ifndef CONFIG_SMP - *cpu_type ="i386/p4" ; - model = &op_p4_spec; -return 1 ; -#else switch (smp_num_siblings) {case 1 : *cpu_type ="i386/p4" ;
@@ -588,7 +583,6 @@ static int __init p4_init(char **cpu_type) model = &op_p4_ht2_spec;return 1 ; } -#endif printk (KERN_INFO "oprofile: P4 HyperThreading detected with > 2 threads\n" );printk (KERN_INFO "oprofile: Reverting to timer mode.\n" );
arch/x86/oprofile/op_model_p4.c +0 -6
@@ -42,21 +42,15 @@ static unsigned int num_controls = NUM_CONTROLS_NON_HT;kernel boot-time. */ static inline void setup_num_counters (void ) { -#ifdef CONFIG_SMP if (smp_num_siblings ==2 ) { num_counters =NUM_COUNTERS_HT2 ; num_controls =NUM_CONTROLS_HT2 ; } -#endif }static inline int addr_increment (void ) { -#ifdef CONFIG_SMP return smp_num_siblings ==2 ?2 :1 ; -#else -return 1 ; -#endif }
Signature · 1 line
1.7.10