linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] smp: reduce stack requirements for smp_call_function_mask
@ 2008-09-05 21:40 Mike Travis
  2008-09-05 21:40 ` [PATCH 1/3] " Mike Travis
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Mike Travis @ 2008-09-05 21:40 UTC (permalink / raw)
  To: Ingo Molnar, Andrew Morton
  Cc: Jack Steiner, Jes Sorensen, David Miller, Thomas Gleixner, linux-kernel


  * Cleanup cpumask_t usages in smp_call_function_mask function chain
    to prevent stack overflow problem when NR_CPUS=4096.

  * Reduce the number of passed cpumask_t variables in the following
    call chain for x86_64:

	smp_call_function_mask -->
	    arch_send_call_function_ipi->
		    smp_ops.send_call_func_ipi -->
			    genapic->send_IPI_mask

    Since the smp_call_function_mask() is an EXPORTED function, we
    cannot change it's calling interface for a patch to 2.6.27.

    The smp_ops.send_call_func_ipi interface is internal only and
    has two arch provided functions:

	arch/x86/kernel/smp.c:  .send_call_func_ipi = native_send_call_func_ipi
	arch/x86/xen/smp.c:     .send_call_func_ipi = xen_smp_send_call_function_ipi
	arch/x86/mach-voyager/voyager_smp.c:    (uses native_send_call_func_ipi)

    Therefore modifying the internal interface to use a cpumask_t pointer
    is straight-forward.

    The changes to genapic are much more extensive and are affected by the
    recent additions of the x2apic modes, so they will be done for 2.6.28 only.

Based on 2.6.27-rc5-git6.

Applies to linux-2.6.tip/master (with FUZZ).

Signed-off-by: Mike Travis <travis@sgi.com>
---


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-09-08 20:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-05 21:40 [PATCH 0/3] smp: reduce stack requirements for smp_call_function_mask Mike Travis
2008-09-05 21:40 ` [PATCH 1/3] " Mike Travis
2008-09-05 21:40 ` [PATCH 2/3] x86: reduce stack requirements for send_call_func_ipi Mike Travis
2008-09-05 21:40 ` [PATCH 3/3] x86: restore 4096 limit for NR_CPUS Mike Travis
2008-09-06 13:29 ` [PATCH 0/3] smp: reduce stack requirements for smp_call_function_mask Ingo Molnar
2008-09-06 18:12   ` Mike Travis
2008-09-06 18:21     ` Ingo Molnar
2008-09-08 10:30     ` Nick Piggin
2008-09-08 15:47       ` Mike Travis
2008-09-08 19:51       ` David Miller
2008-09-08 20:11         ` Mike Travis
2008-09-08 20:48           ` David Miller
2008-09-08  9:48   ` Jes Sorensen
2008-09-08 15:41     ` Mike Travis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).