Re: x86/non-x86: percpu, node ids, apic ids x86.git fixup

2008-01-30 Thread Mike Travis
Luck, Tony wrote: >> Could you check the patch below? With this applied to latest -git, ia64 >> buils fine for me in a cross-compiling environment. (but i dont know >> whether it boots ...) > > Uni-processor build still fails with this patch (config is > arch/ia64/configs/tiger_defconfig > with

Re: x86/non-x86: percpu, node ids, apic ids x86.git fixup

2008-01-30 Thread Mike Travis
Luck, Tony wrote: >> Could you check the patch below? With this applied to latest -git, ia64 >> buils fine for me in a cross-compiling environment. (but i dont know >> whether it boots ...) > > Uni-processor build still fails with this patch (config is > arch/ia64/configs/tiger_defconfig > with

Re: x86/non-x86: percpu, node ids, apic ids x86.git fixup

2008-01-30 Thread Mike Travis
he length of the per cpu area > > * Removes the &__per_cpu_x in lockdep. The __per_cpu_x are already > pointers. There is no need to take the address. > > * Changes generic setup_per_cpu_areas to allocate per_cpu space in > node local memory. This requires a gener

Re: x86/non-x86: percpu, node ids, apic ids x86.git fixup

2008-01-30 Thread Mike Travis
4dbf2038f4d >> Parent: 3212bff370c2f22e4987c6679ba485654cefb178 >> Author: Mike Travis <[EMAIL PROTECTED]> >> AuthorDate: Wed Jan 30 13:33:32 2008 +0100 >> Committer: Ingo Molnar <[EMAIL PROTECTED]> >> CommitDate: Wed Jan 30 13:33:32 2008 +0100

Re: [PATCH 08/10] ia64: Convert cpu_sibling_map to a per_cpu data array (v3)

2007-10-03 Thread Mike Travis
Hi Paul, I just now found this. I'll take a look immediately. I tried it on a couple of systems but not margin. Thanks, Mike Paul Jackson wrote: > Mike, > > I think there is a bug either in this ia64 patch, or in the related > generic arch patch: Convert cpu_sibling_map to be a per cpu varia

[PATCH 0/1] ppc64: Convert cpu_sibling_map to a per_cpu data array ppc64 v2

2007-09-17 Thread travis
Stephen Rothwell wrote: > On Mon, 17 Sep 2007 16:28:31 +1000 Stephen Rothwell <[EMAIL PROTECTED]> wrote: >> the topology (on my POWERPC5+ box) is not correct: >> >> cpu0/topology/thread_siblings:000f >> cpu1/topology/thread_siblings:000f >> cpu2/topology/thread_siblings:000f >> cp

[PATCH 1/1] ppc64: Convert cpu_sibling_map to a per_cpu data array ppc64 v2

2007-09-17 Thread travis
y original submission.] Original Notes: Convert cpu_sibling_map to a per_cpu cpumask_t array for the ppc64 architecture. This fixes build errors in block/blktrace.c and kernel/sched.c when CONFIG_SCHED_SMT is defined. Note: these changes have not been built nor tested. Signed-off-by: Mike Trav

Re: [PATCH 09/10] ppc64: Convert cpu_sibling_map to a per_cpu data array (v3)

2007-09-17 Thread Mike Travis
Stephen Rothwell wrote: > On Tue, 11 Sep 2007 18:56:53 -0700 [EMAIL PROTECTED] wrote: >> Convert cpu_sibling_map to a per_cpu cpumask_t array for the ppc64 >> architecture. This fixes build errors in block/blktrace.c and >> kernel/sched.c when CONFIG_SCHED_SMT is defined. >> >> Note: these changes

[PATCH 08/10] ia64: Convert cpu_sibling_map to a per_cpu data array (v3)

2007-09-11 Thread travis
per_cpu area is setup. Tested and verified on an A4700. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/ia64/kernel/setup.c|4 arch/ia64/kernel/smpboot.c | 18 ++ arch/ia64/mm/contig.c |6 ++ include/asm-ia64/smp.h |2 +- inclu

[PATCH 09/10] ppc64: Convert cpu_sibling_map to a per_cpu data array (v3)

2007-09-11 Thread travis
Convert cpu_sibling_map to a per_cpu cpumask_t array for the ppc64 architecture. This fixes build errors in block/blktrace.c and kernel/sched.c when CONFIG_SCHED_SMT is defined. Note: these changes have not been built nor tested. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/p

[PATCH 10/10] sparc64: Convert cpu_sibling_map to a per_cpu data array (v3)

2007-09-11 Thread travis
Convert cpu_sibling_map to a per_cpu cpumask_t array for the sparc64 architecture. This fixes build errors in block/blktrace.c and kernel/sched.c when CONFIG_SCHED_SMT is defined. Note: these changes have not been built nor tested. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> ---

[PATCH 07/10] x86: acpi-use-cpu_physical_id (v3)

2007-09-11 Thread travis
Lameter <[EMAIL PROTECTED]> Additionally, boot_cpu_id needed to be exported to fix compile errors in dma code when !CONFIG_SMP. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/x86_64/kernel/mpparse.c |2 ++ drivers/acpi/processor_core.c |8 +--- 2 files changed,

[PATCH 05/10] x86: Convert x86_cpu_to_apicid to be a per cpu variable (v3)

2007-09-11 Thread travis
x86_64. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/i386/kernel/acpi/boot.c |2 +- arch/i386/kernel/smp.c|2 +- arch/i386/kernel/smpboot.c| 22 +++--- arch/x86_64/kernel/genapic.c | 15 --- arch/x86_64/

[PATCH 06/10] x86: Convert cpu_llc_id to be a per cpu variable (v3)

2007-09-11 Thread travis
h the same type in ARCH x86_64. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/i386/kernel/cpu/intel_cacheinfo.c |4 ++-- arch/i386/kernel/smpboot.c |6 +++--- arch/x86_64/kernel/smpboot.c |6 +++--- include/asm-i386/processor.h |6

[PATCH 02/10] x86: fix cpu_to_node references (v3)

2007-09-11 Thread travis
Fix four instances where cpu_to_node is referenced by array instead of via the cpu_to_node macro. This is preparation to moving it to the per_cpu data area. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/x86_64/kernel/vsyscall.c |2 +- arch/x86_64/mm/numa.c

[PATCH 04/10] x86: Convert cpu_sibling_map to be a per cpu variable (v3)

2007-09-11 Thread travis
Convert cpu_sibling_map from a static array sized by NR_CPUS to a per_cpu variable. This saves sizeof(cpumask_t) * NR unused cpus. Access is mostly from startup and CPU HOTPLUG functions. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/i386/kernel/cpu/cpufreq/p4-clockmod.c

[PATCH 03/10] x86: Convert cpu_core_map to be a per cpu variable (v3)

2007-09-11 Thread travis
allocated. I commented the code out. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c |2 - arch/i386/kernel/cpu/cpufreq/powernow-k8.c | 10 arch/

[PATCH 01/10] x86: remove x86_cpu_to_log_apicid array (v3)

2007-09-11 Thread travis
This is a copy of an older patch that is in rc3-mm1. It's needed to allow the remaining patches to integrate correctly. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/x86_64/kernel/genapic.c |2 -- arch/x86_64/kernel/genapic_flat.c |1 - arch/x86_64/kerne

[PATCH 00/10] x86: Reduce Memory Usage and Inter-Node message traffic (v3)

2007-09-11 Thread travis
Note: This patch consolidates all the previous patches regarding the conversion of static arrays sized by NR_CPUS into per_cpu data arrays and is referenced against 2.6.23-rc6 . v1 Intro: In x86_64 and i386 architectures most arrays that are sized using NR_CPUS lay in local memory on node 0.