linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] x86, apic, kdump: Disable BSP if boot cpu is AP
@ 2013-10-15  5:43 HATAYAMA Daisuke
  2013-10-15  5:43 ` [PATCH v2 1/2] x86, apic: Add boot_cpu_is_bsp() to check if boot cpu is BSP HATAYAMA Daisuke
  2013-10-15  5:43 ` [PATCH v2 2/2] x86, apic: Disable BSP if boot cpu is AP HATAYAMA Daisuke
  0 siblings, 2 replies; 9+ messages in thread
From: HATAYAMA Daisuke @ 2013-10-15  5:43 UTC (permalink / raw)
  To: hpa, ebiederm, vgoyal
  Cc: kexec, linux-kernel, bp, akpm, fengguang.wu, jingbai.ma

This patch set is to allow kdump 2nd kernel to wake up multiple CPUs
even if 1st kernel crashs on some AP.

This version is for fixing building failure of tip tree reported by
some bot and also adding the other fixes I missed out from previous
experimental version I posted last year; see ChangeLog.

Sorry, this patch set have not include in-source documentation
requested by Borislav Petkov yet, but I'll post it later separately,
which would be better to focus on documentation reviewing.

ChangeLog

v1 => v2)

- Rebased on top of v3.12-rc5.

- Fix linking time error of boot_cpu_is_bsp_init() in case of
  CONFIG_LOCAL_APIC disabled by adding empty static inline function
  instead.

- Fix missing feature check by means of cpu_has_apic macro in
  boot_cpu_is_bsp_init() before calling rdmsr_safe(MSR_IA32_APICBASE).

  NOTE: I've checked local apic-present case only; I don't have any
  x86 processor without local apic.

- Add __init annotation to boot_cpu_is_bsp_init().

Test

- built with and without CONFIG_LOCAL_APIC
- tested x86_64 in case of acpi and MP table

---

HATAYAMA Daisuke (2):
      x86, apic: Add boot_cpu_is_bsp() to check if boot cpu is BSP
      x86, apic: Disable BSP if boot cpu is AP


 arch/x86/include/asm/mpspec.h |    9 ++++++++-
 arch/x86/kernel/acpi/boot.c   |    6 +++++-
 arch/x86/kernel/apic/apic.c   |   34 +++++++++++++++++++++++++++++++++-
 arch/x86/kernel/devicetree.c  |    1 +
 arch/x86/kernel/mpparse.c     |   15 +++++++++++++--
 arch/x86/kernel/setup.c       |    2 ++
 arch/x86/platform/sfi/sfi.c   |    2 +-
 7 files changed, 63 insertions(+), 6 deletions(-)

-- 

Thanks.
HATAYAMA, Daisuke

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

end of thread, other threads:[~2013-10-22 11:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-15  5:43 [PATCH v2 0/2] x86, apic, kdump: Disable BSP if boot cpu is AP HATAYAMA Daisuke
2013-10-15  5:43 ` [PATCH v2 1/2] x86, apic: Add boot_cpu_is_bsp() to check if boot cpu is BSP HATAYAMA Daisuke
2013-10-15 19:12   ` Vivek Goyal
2013-10-16  0:52     ` HATAYAMA Daisuke
2013-10-15  5:43 ` [PATCH v2 2/2] x86, apic: Disable BSP if boot cpu is AP HATAYAMA Daisuke
2013-10-15 19:30   ` Vivek Goyal
2013-10-16  1:26     ` HATAYAMA Daisuke
2013-10-18 17:36       ` Vivek Goyal
2013-10-22 11:02         ` HATAYAMA Daisuke

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).