[PATCH 2/4] init: move setup of nr_cpu_ids to as early as possible

2008-02-01 Thread travis
Move the setting of nr_cpu_ids from sched_init() to init/main.c, so that it's available as early as possible. Based on the linux-2.6.git + x86.git Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- init/main.c| 21 + kernel/sched.c |7 --- 2 files

[PATCH 0/4] percpu: Optimize percpu accesses

2008-02-01 Thread travis
it + x86.git Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- Notes: (1 - had to disable CONFIG_SIS190 to build) (2 - no modules) Configs built and booted: x86_64-default x86_64-defconfig (2) x86_64-nonuma (2)

[PATCH 4/4] x86_64: Cleanup non-smp usage of cpu maps

2008-02-01 Thread travis
Cleanup references to the early cpu maps for the non-SMP configuration and remove some functions called for SMP configurations only. Based on linux-2.6.git + x86.git Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/x86/kernel/genapic_64.c |2 ++ arch/x86/kernel/mpparse_64.c

[PATCH 3/4] x86_64: Fold pda into per cpu area

2008-02-01 Thread travis
tion. * This also supports further integration of x86_32/64. Based on linux-2.6.git + x86.git Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/x86/Kconfig |3 + arch/x86/kernel/head64.c

[PATCH 1/4] generic: Percpu infrastructure to rebase the per cpu area to zero

2008-02-01 Thread travis
ph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-generic/percpu.h |5 + include/asm-generic/sections.h| 10 ++ include/asm-generic/vmlinux.lds.h | 14 ++ kernel/lockdep.c |4

[PATCH 07/10] Powerpc: Use generic per cpu

2008-01-07 Thread travis
ying x86_64). Cc: Paul Mackerras <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-powerpc/percpu.h | 29 ++--- 1 file changed, 2 insertions(+), 27 deletions(-) --- a

[PATCH 01/10] percpu: Use a kconfig variable to signal arch specific percpu setup

2008-01-07 Thread travis
n <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/ia64/Kconfig|3 +++ arch/powerpc/Kconfig |3 +++ arch/sparc64/Kconfig |3 +++ arch/x86/Kconfig

[PATCH 06/10] s390: Use generic percpu

2008-01-07 Thread travis
s390 percpu code works fine: > > Acked-by: Martin Schwidefsky <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-s390/percpu.h | 42 +-

[PATCH 09/10] ia64: Use generic percpu

2008-01-07 Thread travis
TED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/ia64/kernel/module.c | 11 --- include/asm-ia64/percpu.h | 29 +++-- include/linux/percpu.h|4 3 files changed, 7 insertions(+

[PATCH 10/10] x86: Unify percpu.h

2008-01-07 Thread travis
Form a single percpu.h from percpu_32.h and percpu_64.h. Both are now pretty small so this is simply adding them together. Cc: Rusty Russell <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Tr

[PATCH 03/10] percpu: Make the asm-generic/percpu.h more "generic"

2008-01-07 Thread travis
pecial percpu arch implementations may be later consolidated so that there are less cases to deal with.) Cc: Rusty Russell <[EMAIL PROTECTED]> Cc: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]>

[PATCH 05/10] x86_64: Use generic percpu

2008-01-07 Thread travis
toph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-x86/percpu_64.h | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) --- a/include/asm-x86/percpu_64.h +++ b/include/asm-x86/percpu_64.h @@ -12,21 +12,10

[PATCH 04/10] x86_32: Use generic percpu.h

2008-01-07 Thread travis
x86_32 only provides a special way to obtain the local per cpu area offset via x86_read_percpu. Otherwise it can fully use the generic handling. Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike

[PATCH 08/10] Sparc64: Use generic percpu

2008-01-07 Thread travis
kup. Cc: David Miller <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/sparc64/mm/init.c |5 + include/asm-sparc64/percpu.h | 22 +++--- 2 files changed, 8 insert

[PATCH 02/10] percpu: Move arch XX_PER_CPU_XX definitions into linux/percpu.h

2008-01-07 Thread travis
e some include files just include asm/percpu.h to avoid include recursion problems. Cc: Rusty Russell <[EMAIL PROTECTED]> Cc: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- inclu

[PATCH 00/10] percpu: Per cpu code simplification V3

2008-01-07 Thread travis
TED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH 00/10] percpu: Per cpu code simplification V4

2008-01-08 Thread travis
patchset on 2.6.24-rc6-mm1 (removes the percpu_modcopy changes that are already in.) - change config ARCH_SETS_UP_PER_CPU_AREA to a global var and use select HAVE_SETUP_PER_CPU_AREA to specify. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[

[PATCH 05/10] x86_64: Use generic percpu

2008-01-08 Thread travis
toph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-x86/percpu_64.h | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) --- a/include/asm-x86/percpu_64.h +++ b/include/asm-x86/percpu_64.h @@ -12,31 +12,12

[PATCH 01/10] percpu: Use a kconfig variable to signal arch specific percpu setup

2008-01-08 Thread travis
EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- V1->V2: - Use def_bool as suggested by Randy. V3->v4: - change config ARCH_SETS_UP_PER_CPU_AREA to a global var and use select HAVE_SETUP_PER_CP

[PATCH 04/10] x86_32: Use generic percpu.h

2008-01-08 Thread travis
x86_32 only provides a special way to obtain the local per cpu area offset via x86_read_percpu. Otherwise it can fully use the generic handling. Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike

[PATCH 03/10] percpu: Make the asm-generic/percpu.h more "generic"

2008-01-08 Thread travis
Russell <[EMAIL PROTECTED]> Cc: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- V1->V2: - add support for PER_CPU_ATTRIBUTES V2->V3: - fix generic smp percpu_modcopy to use per_cpu_off

[PATCH 02/10] percpu: Move arch XX_PER_CPU_XX definitions into linux/percpu.h

2008-01-08 Thread travis
y: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- V1->V2: - Special consideration for IA64: Add the ability to specify arch specific per cpu flags V2->V3: - remove .data.percpu attribute from DEFINE_PER_CPU for non-smp case. --- inclu

[PATCH 06/10] s390: Use generic percpu

2008-01-08 Thread travis
Change s390 percpu.h to use asm-generic/percpu.h Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- V2->V3: On Thu, 29 Nov 2007, Martin Schwidefsky wrote: > On Wed, 2007-11-28 at 13:09 -0800, Chris

[PATCH 09/10] ia64: Use generic percpu

2008-01-08 Thread travis
ia64 has a special processor specific mapping that can be used to locate the offset for the current per cpu area. Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- V1->V2: - Merge

[PATCH 08/10] Sparc64: Use generic percpu

2008-01-08 Thread travis
TED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- V2->V3: - use generic percpy_modcopy() --- arch/sparc64/mm/init.c |5 + include/asm-sparc64/percpu.h | 12 ++-- 2 files changed, 7 insertions(+), 1

[PATCH 07/10] Powerpc: Use generic per cpu

2008-01-08 Thread travis
: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- V1->V2: - add missing #endif V2->V3: - use generic percpy_modcopy() --- include/asm-powerpc/percpu.h | 20 ++-- 1 file changed, 2 insertions(+), 18 deletions(-) --- a/inclu

[PATCH 10/10] x86: Unify percpu.h

2008-01-08 Thread travis
Form a single percpu.h from percpu_32.h and percpu_64.h. Both are now pretty small so this is simply adding them together. Cc: Rusty Russell <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Tr

[PATCH 0/7] percpu: Per cpu code simplification fixup

2008-01-18 Thread travis
Based on: 2.6.24-rc8-mm1 Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- fixup: - rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1 (removed changes that are in the git-x86.patch) - added back in missing fold-percpu_modcopy pi

[PATCH 1/7] Modules: Fold percpu_modcopy into module.c

2008-01-18 Thread travis
eter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/ia64/kernel/module.c| 11 --- include/asm-generic/percpu.h |8 include/asm-ia64/percpu.h|5 - include/asm-powerpc/percpu.h |9 - include/asm

[PATCH 5/5] x86: Add debug of invalid per_cpu map accesses

2008-01-18 Thread travis
Provide a means to trap usages of per_cpu map variables before they are setup. Define CONFIG_DEBUG_PER_CPU_MAPS to activate. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/x86/Kconfig.debug | 12 arch/x86/mm/numa_64.c |3 +++ include/asm-x86/topo

[PATCH 2/5] x86: Change NR_CPUS arrays in numa_64 fixup

2008-01-18 Thread travis
Change the following static arrays sized by NR_CPUS to per_cpu data variables: char cpu_to_node_map[NR_CPUS]; Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- fixup: - Split cpu_to_node function into "early&quo

[PATCH 3/7] Sparc64: Use generic percpu

2008-01-18 Thread travis
TED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/sparc64/mm/init.c |5 + include/asm-sparc64/percpu.h | 22 +++--- 2 files changed, 8 insertions(+), 19 deletions(-) --- a/arch/sparc64/mm

[PATCH 7/7] percpu: Add debug detection of uninitialized usage of per_cpu variable

2008-01-18 Thread travis
Provide a means to trap usages of per_cpu variables before the per_cpu_areas are setup. Define CONFIG_DEBUG_PER_CPU to activate. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-generic/percpu.h | 11 ++- lib/Kconfig.debug| 12 2 files c

[PATCH 0/5] x86: Reduce memory usage for large count NR_CPUs fixup

2008-01-18 Thread travis
Fixup change NR_CPUS patchset by rebasing on 2.6.24-rc8-mm1 from 2.6.24-rc6-mm1) and adding changes suggested by reviews. Additionally, some new config options have been added to enable large SMP configurations. Based on 2.6.24-rc8-mm1 Signed-off-by: Mike Travis <[EMAIL PROTEC

[PATCH 1/5] x86: Change size of node ids from u8 to u16 fixup

2008-01-18 Thread travis
Change the size of node ids for X86_64 from 8 bits to 16 bits to accomodate more than 256 nodes. Introduce a "numanode_t" type for x86-generic usage. Cc: Eric Dumazet <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EM

[PATCH 4/7] ia64: Use generic percpu

2008-01-18 Thread travis
ia64 has a special processor specific mapping that can be used to locate the offset for the current per cpu area. Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- V1->V2: - Merge

[PATCH 5/7] Powerpc: Use generic per cpu

2008-01-18 Thread travis
: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- V1->V2: - add missing #endif V2->V3: - use generic percpy_modcopy() --- include/asm-powerpc/percpu.h | 20 ++-- 1 file changed, 2 insertions(+), 18 deletions(-) --- a/inclu

[PATCH 2/7] percpu: Change Kconfig ARCH_SETS_UP_PER_CPU_AREA to HAVE_SETUP_PER_CPU_AREA

2008-01-18 Thread travis
Change "config ARCH_SETS_UP_PER_CPU_AREA" to "select HAVE_SETUP_PER_CPU_AREA" as suggested by Sam. Cc: Rusty Russell <[EMAIL PROTECTED]> Cc: Andi Kleen <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTE

[PATCH 6/7] s390: Use generic percpu

2008-01-18 Thread travis
Change s390 percpu.h to use asm-generic/percpu.h Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- V2->V3: On Thu, 29 Nov 2007, Martin Schwidefsky wrote: > On Wed, 2007-11-28 at 13:09 -0800, Chris

[PATCH 3/5] x86: Change bios_cpu_apicid to percpu data variable fixup

2008-01-18 Thread travis
called after smp_set_apicids() has setup the percpu version of bios_cpu_apicid. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- V1->V2: - Removed extraneous casts - Add slight optimization to apic_is_clustered_box

[PATCH 4/5] x86: Add config variables for SMP_MAX

2008-01-18 Thread travis
Adds and increases some config variables to accomodate larger SMP configurations: NR_CPUS: max limit now 4096 NODES_SHIFT: max limit now 9 THREAD_ORDER: max limit now 3 X86_SMP_MAX: say Y to enable possible cpus == NR_CPUS Signed-off-by: Mike Travis <[EM

[PATCH 3/8] pecpu: Fix size of percpu_data.ptrs array rc8-mm1-fixup

2008-01-21 Thread travis
Define the size of the generic percpu pointers array to be NR_CPUS Based on: 2.6.24-rc8-mm1 Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/linux/percpu.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -

[PATCH 8/8] percpu: Add debug of invalid per_cpu usage rc8-mm1-fixup

2008-01-21 Thread travis
Provide a means to trap usages of per_cpu variables before the per_cpu_areas are setup. Define CONFIG_DEBUG_PER_CPU to activate. Based on: 2.6.24-rc8-mm1 Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- rc8-mm1-fixup: - rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1 (removed change

[PATCH 5/8] ia64: Use generic percpu fixup rc8-mm1-fixup

2008-01-21 Thread travis
ia64 has a special processor specific mapping that can be used to locate the offset for the current per cpu area. Based on: 2.6.24-rc8-mm1 Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]>

[PATCH 1/8] Modules: Fold percpu_modcopy into module.c rc8-mm1-fixup

2008-01-21 Thread travis
: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- rc8-mm1-fixup: - rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1 (removed changes that are in the git-x86.patch) - added back in miss

[PATCH 6/8] Powerpc: Use generic per cpu rc8-mm1-fixup

2008-01-21 Thread travis
ROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- rc8-mm1-fixup: - rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1 (removed changes that are in the git-x86.patch) V1->V2: - add missing #endif V2->V3:

[PATCH 0/8] percpu: Per cpu code simplification rc8-mm1-fixup

2008-01-21 Thread travis
Based on 2.6.24-rc8-mm1 Note there are two versions of this patchset: - 2.6.24-rc8-mm1 - 2.6.24-rc8-mm1 + latest (08/1/21) git-x86 Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- rc8-mm1-fixup: - rebased from 2.6.2

[PATCH 4/8] Sparc64: Use generic percpu fixup rc8-mm1-fixup

2008-01-21 Thread travis
Miller <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- rc8-mm1-fixup: - rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1 (removed changes that are in the git-x86.patch) --- arch/sparc64/mm/i

[PATCH 2/8] percpu: Change Kconfig to HAVE_SETUP_PER_CPU_AREA rc8-mm1-fixup

2008-01-21 Thread travis
oph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- rc8-mm1-fixup: - rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1 (removed changes that are in the git-x86.patch) --- arch/Kconfig |3 +++ arch/ia64/Kconfig|4 +-

[PATCH 7/8] s390: Use generic percpu rc8-mm1-fixup

2008-01-21 Thread travis
Change s390 percpu.h to use asm-generic/percpu.h Based on: 2.6.24-rc8-mm1 Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- rc8-mm1-fixup: - rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1 (removed chan

[PATCH 0/7] percpu: Per cpu code simplification rc8-mm1-fixup with git-x86

2008-01-21 Thread travis
Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86 Note there are two versions of this patchset: - 2.6.24-rc8-mm1 - 2.6.24-rc8-mm1 + latest (08/1/21) git-x86 Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- fixup:

[PATCH 2/7] x86: Change Kconfig to HAVE_SETUP_PER_CPU_AREAF rc8-mm1-fixup with git-x86

2008-01-21 Thread travis
Change the Kconfig variable used to indicate that x86 has it's own per_cpu area setup routine. Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86 Cc: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL P

[PATCH 1/7] Modules: Fold percpu_modcopy into module.c rc8-mm1-fixup with git-x86

2008-01-21 Thread travis
lt;[EMAIL PROTECTED]> Cc: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/ia64/kernel/module.c| 11 --- include/asm-generic/percpu.h |8 include/asm-ia64/percpu.

[PATCH 3/7] Sparc64: Use generic percpu fixup rc8-mm1-fixup with git-x86

2008-01-21 Thread travis
/21) git-x86 Cc: David Miller <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- rc8-mm1-fixup: - rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1 (removed changes that are in the git-x86.patch) --- arch

[PATCH 4/7] ia64: Use generic percpu fixup rc8-mm1-fixup with git-x86

2008-01-21 Thread travis
ia64 has a special processor specific mapping that can be used to locate the offset for the current per cpu area. Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86 Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis &

[PATCH 6/7] s390: Use generic percpu rc8-mm1-fixup with git-x86

2008-01-21 Thread travis
Change s390 percpu.h to use asm-generic/percpu.h Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86 Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- rc8-mm1-fixup: - rebased from 2.6.24-rc6-mm1 to 2.

[PATCH 5/7] Powerpc: Use generic per cpu rc8-mm1-fixup with git-x86

2008-01-21 Thread travis
Paul Mackerras <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- rc8-mm1-fixup: - rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1 (removed changes that are in the git-x86.patch) V1->V2: - add missing #en

[PATCH 7/7] percpu: Add debug of invalid per_cpu usage rc8-mm1-fixup with git-x86

2008-01-21 Thread travis
Provide a means to trap usages of per_cpu variables before the per_cpu_areas are setup. Define CONFIG_DEBUG_PER_CPU to activate. Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86 Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-generic/percpu.h | 11 ++

[PATCH 0/4] x86: Reduce memory usage for large count NR_CPUs fixup V2

2008-01-21 Thread travis
Travis <[EMAIL PROTECTED]> --- Fixup-V2: - pulled the SMP_MAX patch as it's not strictly needed and some more work on local cpumask_t variables needs to be done before NR_CPUS is allowed to increase. - changes to X86_32 have been removed (except for build errors)

[PATCH 2/4] x86: Change NR_CPUS arrays in numa_64 fixup V2

2008-01-21 Thread travis
Change the following static arrays sized by NR_CPUS to per_cpu data variables: char cpu_to_node_map[NR_CPUS]; Based on 2.6.24-rc8-mm1 Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- fixup: - Split cpu_to_node function

[PATCH 3/4] x86: Change bios_cpu_apicid to percpu data variable fixup V2

2008-01-21 Thread travis
called after setup_per_cpu_maps() has setup the percpu version of bios_cpu_apicid. Based on 2.6.24-rc8-mm1 Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- V1->V2: - Removed extraneous casts - Add slight

[PATCH 1/4] x86: Change size of node ids from u8 to s16 fixup V2

2008-01-21 Thread travis
> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- fixup-V2: - Fixed populate_memnodemap as suggested by Eric. - Change to using s16 for static node id arrays and int for node id's in per_cpu variables and __in

[PATCH 4/4] x86: Add debug of invalid per_cpu map accesses fixup V2

2008-01-21 Thread travis
Provide a means to discover usages of per_cpu map variables before they are setup. Define CONFIG_DEBUG_PER_CPU_MAPS to activate. Based on 2.6.24-rc8-mm1 Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- Fixup: - for cpu_to_node() instead of panic'ing with BUG() use dum

[PATCH 0/3] x86: Reduce memory usage for large count NR_CPUs fixup V2 with git-x86

2008-01-21 Thread travis
Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- Fixup-V2: - pulled the SMP_MAX patch as it's not strictly needed and some more work on local cpumask_t variables needs to be done before NR_CPUS is allowed to increase. - changes to X86_32 have been removed (excep

[PATCH 1/3] x86: Change size of node ids from u8 to s16 fixup V2 with git-x86

2008-01-21 Thread travis
Eric Dumazet <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- fixup-V2: - Fixed populate_memnodemap as suggested by Eric. - Change to using s16 for static node id arrays and int for node id's

[PATCH 2/3] x86: Change NR_CPUS arrays in numa_64 fixup V2 with git-x86

2008-01-21 Thread travis
Change the following static arrays sized by NR_CPUS to per_cpu data variables: char cpu_to_node_map[NR_CPUS]; Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86 Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- fixup

[PATCH 3/3] x86: Add debug of invalid per_cpu map accesses fixup V2 with git-x86

2008-01-21 Thread travis
Provide a means to trap usages of per_cpu map variables before they are setup. Define CONFIG_DEBUG_PER_CPU_MAPS to activate. Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86 Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-x86/topology.h | 13 ++--- 1 file chan

[PATCH 1/1] x86: fix early cpu_to_node panic from nr_free_zone_pages

2008-01-21 Thread travis
/arp_tables.c: net/ipv4/netfilter/ip_tables.c: net/ipv4/netfilter/ip_tables.c: Applies to both: 2.6.24-rc8-mm1 2.6.24-rc8-mm1 + latest (08/01/21) git-x86 patch Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/x86/mm/numa_64.c |2 -- i

[PATCH 1/1] fix possible undefined PER_CPU_ATTRIBUTES

2008-01-22 Thread travis
Not sure how this leaked out and I haven't caught it yet in my cross-build testing but to be on the safe side, PER_CPU_ATTRIBUTES should be defined. Applies to 2.6.24-rc8-mm1 + percpu changes Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/linux/percpu.h |4 1 f

[PATCH 0/1] dummy header

2008-01-22 Thread travis
please ignore me -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH 0/3] x86/non-x86: percpu, node ids, apic ids x86.git fixup

2008-01-22 Thread travis
]> Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc: Paul Mackerras <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc: Yinghai Lu <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> -- -- To unsubscribe from this list: send

[PATCH 2/3] x86: add percpu, cpu_to_node debug options

2008-01-22 Thread travis
-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/x86/Kconfig | 22 -- include/asm-x86/page_64.h |4 lib/Kconfig.debug | 12 3 files changed, 32 insertions(+), 6 deletions(-) --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -

[PATCH 1/3] x86: fix percpu, nodeids, apicids in x86.git

2008-01-22 Thread travis
: Yinghai Lu <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/x86/Kconfig |2 +- arch/x86/kernel/setup64.c| 10 +- arch/x86/kernel/smpboot_32.c |2 +- arch/x86/mm/numa_64.c| 14 ++ arch/x86/mm/srat_64.c

[PATCH 3/3] generic: fixup percpu Kconfig options, fold percpu_modcopy into module.c

2008-01-22 Thread travis
"HAVE_PER_CPU_SETUP" is different.] Cc: David Miller <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Cc: Paul Mackerras <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/ia64/Kconfig|2 +- arch/ia

[PATCH 0/3] percpu: Optimize percpu accesses

2008-01-22 Thread travis
cess to the per cpu variables using x86_32 percpu operations. Based on 2.6.24-rc8-mm1 Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

[PATCH 3/3] x86_64: Rebase per cpu variables to zero

2008-01-22 Thread travis
operations and access to the per cpu variables using x86_32 percpu operations. * This also supports further integration of x86_32/64. Based on 2.6.24-rc8-mm1 Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- arch/x86/Kconfig

[PATCH 1/3] generic: Percpu infrastructure to rebase the per cpu area to zero

2008-01-22 Thread travis
es 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 generic early_cpu_to_node function. Based on 2.6.24-rc8-mm1 Signed-off-by: M

[PATCH 2/3] x86_64: Fold pda into per cpu area

2008-01-22 Thread travis
-mm1 Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- arch/x86/kernel/head64.c |6 ++ arch/x86/kernel/setup64.c | 12 ++-- arch/x86/kernel/smpboot_64.c | 16 include/asm-gener

[PATCH 1/1] x86: early cpu_to_node fix in numa_64.c

2008-01-23 Thread travis
Both of these references to cpu_to_node() can potentially occur before the "late" cpu_to_node map is setup. Therefore, they should be changed to use early_cpu_to_node(). Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/x86/mm/numa_64.c |5 +++-- 1 file changed, 3

[PATCH 0/1] ia64: Convert cpu_sibling_map to a per_cpu data array FIX

2007-10-04 Thread travis
The previous version of this patch missed a code path in inserting the boot cpu into the cpu sibling and core maps. This fix corrects that omission. -- -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info

[PATCH 1/1] ia64: Convert cpu_sibling_map to a per_cpu data array FIX

2007-10-04 Thread travis
There are two versions of per_cpu_init() for ia64. This patch corrects the problem that one of the versions did not insert the boot cpu into the cpu sibling and core maps. Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/ia64/kernel/setup.c |8 arch/ia64/mm/co

[PATCH 00/10] percpu: Per cpu code simplification V2

2007-12-27 Thread travis
Kconfig settings Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at ht

[PATCH 05/10] x86_64: Use generic percpu

2007-12-27 Thread travis
toph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-x86/percpu_64.h | 28 +++- 1 file changed, 3 insertions(+), 25 deletions(-) --- a/include/asm-x86/percpu_64.h +++ b/include/asm-x86/percpu_64.h @@ -8,35 +8,13 @@

[PATCH 04/10] x86_32: Use generic percpu.h

2007-12-27 Thread travis
x86_32 only provides a special way to obtain the local per cpu area offset via x86_read_percpu. Otherwise it can fully use the generic handling. Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike

[PATCH 06/10] s390: Use generic percpu

2007-12-27 Thread travis
code works fine: > > Acked-by: Martin Schwidefsky <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-s390/percpu.h | 33 + 1 file chang

[PATCH 01/10] percpu: Use a kconfig variable to signal arch specific percpu setup

2007-12-27 Thread travis
n <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/ia64/Kconfig|3 +++ arch/powerpc/Kconfig |3 +++ arch/sparc64/Kconfig |3 +++ arch/x86/Kconfig

[PATCH 03/10] percpu: Make the asm-generic/percpu.h more "generic"

2007-12-27 Thread travis
ess cases to deal with.) Cc: Rusty Russell <[EMAIL PROTECTED]> Cc: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-generic/percpu.h | 69

[PATCH 02/10] percpu: Move arch XX_PER_CPU_XX definitions into linux/percpu.h

2007-12-27 Thread travis
Cc: Rusty Russell <[EMAIL PROTECTED]> Cc: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-generic/percpu.h | 18 -- include/asm-ia64/percpu.h| 24 ++

[PATCH 07/10] Powerpc: Use generic per cpu

2007-12-27 Thread travis
L PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-powerpc/percpu.h | 21 ++--- 1 file changed, 2 insertions(+), 19 deletions(-) --- a/include/asm-powerpc/percpu.h +++ b/include/asm-

[PATCH 00/10] percpu: Per cpu code simplification V2

2007-12-27 Thread travis
ong Kconfig - Follow Randy's suggestions on how to do the Kconfig settings Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

[PATCH 01/10] percpu: Use a kconfig variable to signal arch specific percpu setup

2007-12-27 Thread travis
n <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/ia64/Kconfig|3 +++ arch/powerpc/Kconfig |3 +++ arch/sparc64/Kconfig |3 +++ arch/x86/Kconfig

[PATCH 04/10] x86_32: Use generic percpu.h

2007-12-27 Thread travis
x86_32 only provides a special way to obtain the local per cpu area offset via x86_read_percpu. Otherwise it can fully use the generic handling. Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike

[PATCH 03/10] percpu: Make the asm-generic/percpu.h more "generic"

2007-12-27 Thread travis
ess cases to deal with.) Cc: Rusty Russell <[EMAIL PROTECTED]> Cc: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-generic/percpu.h | 69

[PATCH 07/10] Powerpc: Use generic per cpu

2007-12-27 Thread travis
L PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-powerpc/percpu.h | 21 ++--- 1 file changed, 2 insertions(+), 19 deletions(-) --- a/include/asm-powerpc/percpu.h +++ b/include/asm-

[PATCH 09/10] ia64: Use generic percpu

2007-12-27 Thread travis
[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-ia64/percpu.h | 25 +++-- include/linux/percpu.h|4 2 files changed, 7 insertions(+), 22 deletions(-) --- a/include/asm-ia64/percpu.h +++ b/include/asm-ia64/percpu.h @

[PATCH 10/10] x86: Unify percpu.h

2007-12-27 Thread travis
Form a single percpu.h from percpu_32.h and percpu_64.h. Both are now pretty small so this is simply adding them together. Cc: Rusty Russell <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Tr

[PATCH 02/10] percpu: Move arch XX_PER_CPU_XX definitions into linux/percpu.h

2007-12-27 Thread travis
Cc: Rusty Russell <[EMAIL PROTECTED]> Cc: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-generic/percpu.h | 18 -- include/asm-ia64/percpu.h| 24 ++

[PATCH 08/10] Sparc64: Use generic percpu

2007-12-27 Thread travis
TED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- arch/sparc64/mm/init.c |5 + include/asm-sparc64/percpu.h | 12 ++-- 2 files changed, 7 insertions(+), 10 deletions(-) --- a/arch/sparc64/mm/init.c +++

[PATCH 06/10] s390: Use generic percpu

2007-12-27 Thread travis
code works fine: > > Acked-by: Martin Schwidefsky <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-s390/percpu.h | 33 + 1 file chang

[PATCH 05/10] x86_64: Use generic percpu

2007-12-27 Thread travis
toph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mike Travis <[EMAIL PROTECTED]> --- include/asm-x86/percpu_64.h | 28 +++- 1 file changed, 3 insertions(+), 25 deletions(-) --- a/include/asm-x86/percpu_64.h +++ b/include/asm-x86/percpu_64.h @@ -8,35 +8,13 @@

  1   2   3   4   5   6   7   8   9   10   >