mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch v2 0/2] enhance stop machine infrastructure for MTRR rendezvous sequence
@ 2011-06-07 20:14 Suresh Siddha
  2011-06-07 20:14 ` [patch v2 1/2] stop_machine: enable __stop_machine() to be called from the cpu online path Suresh Siddha
  2011-06-07 20:14 ` [patch v2 2/2] x86, mtrr: use __stop_machine() for doing MTRR rendezvous Suresh Siddha
  0 siblings, 2 replies; 6+ messages in thread
From: Suresh Siddha @ 2011-06-07 20:14 UTC (permalink / raw)
  To: mingo, tglx, hpa, trenn, prarit, tj
  Cc: linux-kernel, suresh.b.siddha, youquan.song

First patch enhance the stop machine infrastructure so that we
can call __stop_machine() from the cpu hotplug path, where the calling
cpu is not yet online. We do allow this for already for !CONFIG_SMP. So this
patch brings the CONFIG_SMP behavior inline with !CONFIG_SMP

Second patch uses the enhanced __stop_machine() to implement the x86 MTRR
init rendezvous sequence and thus remove the duplicate implementation
of stop machine using stop_one_cpu_nowait(). This duplicate implementation
of stop machine can potentially lead to deadlock if there is a parallel
system wide rendezvous using __stop_machine().

Both these address one of the deadlocks mentioned in the
https://bugzilla.novell.com/show_bug.cgi?id=672008

Changes from v1:
* Use stop_cpu thread enabled status to find out if the cpu is online/offline,
  instead of using cpu_online(smp_processor_id()). This avoids a false
  positive of using smp_processor_id() from preemptible section.

thanks,
suresh


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

end of thread, other threads:[~2011-06-09 22:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-07 20:14 [patch v2 0/2] enhance stop machine infrastructure for MTRR rendezvous sequence Suresh Siddha
2011-06-07 20:14 ` [patch v2 1/2] stop_machine: enable __stop_machine() to be called from the cpu online path Suresh Siddha
2011-06-08 19:20   ` Ingo Molnar
2011-06-09  9:54   ` Tejun Heo
2011-06-09 22:50     ` Suresh Siddha
2011-06-07 20:14 ` [patch v2 2/2] x86, mtrr: use __stop_machine() for doing MTRR rendezvous Suresh Siddha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®