Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sourabh Jain <sourabhjain@linux.ibm.com>
To: kexec@lists.infradead.org
Cc: Sourabh Jain <sourabhjain@linux.ibm.com>,
	Aditya Gupta <adityag@linux.ibm.com>, Baoquan He <bhe@redhat.com>,
	Coiby Xu <coxu@redhat.com>, Hari Bathini <hbathini@linux.ibm.com>,
	Mahesh Salgaonkar <mahesh@linux.ibm.com>,
	Simon Horman <horms@kernel.org>
Subject: [PATCH v3 0/3] Enable crash hotplug support on powerpc
Date: Sun,  7 Jul 2024 20:54:53 +0530	[thread overview]
Message-ID: <20240707152456.87899-1-sourabhjain@linux.ibm.com> (raw)

The primary goal of this patch series is to enable crash hotplug on
powerpc architecture for the `kexec_load` system call.

The first patch in the series introduces a new kexec flag added in the
kernel to generalize crash hotplug support. The second patch enables
crash hotplug support on PowerPC for `kexec_load` system call. The third
patch updates the documentation about crash hotplug support.

Changes log:

v4:
  - Do not remove the KEXEC_UPDATE_ELFCOREHDR kexec flag. It is needed to
    maintain backward compatibility on x86. 1/3
  - Send the KEXEC_UPDATE_ELFCOREHDR kexec flag for x86, and for the rest
    of the architectures, send KEXEC_CRASH_HOTPLUG_SUPPORT to enable
    crash hotplug support kexec_load system call. 1/3
  - Since there is a significant change in 1/3, hence Hari's Acked-by
    is removed form only first patch. 1/3
  - Rename and reorder the function arch_do_exclude_segment() parameters
    as suggested. 1/3
  - Keep the implementation of arch_do_exclude_segment() function same
    for x86_64 and i386. 1/3

v3:
  https://lists.infradead.org/pipermail/kexec/2024-July/030361.html
  - Updated --hotplug option description 3/3

v2:
  https://lists.infradead.org/pipermail/kexec/2024-June/030309.html
  - Find CPUs in the system using the /sys/devices/system/cpu/present sysfs
    instead of traversing all nodes under /proc/device-tree/cpus. 2/3
  - Added a new function to find present CPUs in the system. 2/3
  - Removed unnecessary NULL check on seg_ptr from arch_do_exclude_segment(). 2/3
  - Updated --hotplug option description 3/3

v1:
  https://lists.infradead.org/pipermail/kexec/2024-May/030051.html


Cc: Aditya Gupta <adityag@linux.ibm.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Coiby Xu <coxu@redhat.com>
Cc: Hari Bathini <hbathini@linux.ibm.com>
Cc: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Cc: Simon Horman <horms@kernel.org>
Cc: Sourabh Jain <sourabhjain@linux.ibm.com>

Sourabh Jain (3):
  kexec_load: Use new kexec flag for hotplug support
  powerpc/kexec_load: add hotplug support
  doc/hotplug: update man and --help

 kexec/arch/arm/kexec-arm.c             |   5 +
 kexec/arch/arm64/kexec-arm64.c         |   5 +
 kexec/arch/cris/kexec-cris.c           |   4 +
 kexec/arch/hppa/kexec-hppa.c           |   5 +
 kexec/arch/i386/kexec-x86.c            |   8 +
 kexec/arch/ia64/kexec-ia64.c           |   4 +
 kexec/arch/loongarch/kexec-loongarch.c |   5 +
 kexec/arch/m68k/kexec-m68k.c           |   5 +
 kexec/arch/mips/kexec-mips.c           |   4 +
 kexec/arch/ppc/kexec-ppc.c             |   4 +
 kexec/arch/ppc64/crashdump-ppc64.c     |  16 +-
 kexec/arch/ppc64/fdt.c                 | 236 ++++++++++++++++++++++++-
 kexec/arch/ppc64/include/arch/fdt.h    |   2 +-
 kexec/arch/ppc64/kexec-elf-ppc64.c     |   2 +-
 kexec/arch/ppc64/kexec-ppc64.c         |  12 ++
 kexec/arch/s390/kexec-s390.c           |   5 +
 kexec/arch/sh/kexec-sh.c               |   5 +
 kexec/arch/x86_64/kexec-x86_64.c       |   8 +
 kexec/kexec-syscall.h                  |   1 +
 kexec/kexec.8                          |   8 +-
 kexec/kexec.c                          |  44 ++++-
 kexec/kexec.h                          |   2 +
 22 files changed, 373 insertions(+), 17 deletions(-)

-- 
2.45.1


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

             reply	other threads:[~2024-07-07 15:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-07 15:24 Sourabh Jain [this message]
2024-07-07 15:24 ` [PATCH v3 1/3] kexec_load: Use new kexec flag for hotplug support Sourabh Jain
2024-07-08  1:39   ` Baoquan He
2024-07-08  7:55     ` Sourabh Jain
2024-07-08 10:27       ` Baoquan He
2024-07-08 10:30   ` Baoquan He
2024-07-08 13:22     ` Sourabh Jain
2024-07-07 15:24 ` [PATCH v3 2/3] powerpc/kexec_load: add " Sourabh Jain
2024-07-07 15:24 ` [PATCH v3 3/3] doc/hotplug: update man and --help Sourabh Jain
2024-07-09  7:29 ` [PATCH v3 0/3] Enable crash hotplug support on powerpc Simon Horman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240707152456.87899-1-sourabhjain@linux.ibm.com \
    --to=sourabhjain@linux.ibm.com \
    --cc=adityag@linux.ibm.com \
    --cc=bhe@redhat.com \
    --cc=coxu@redhat.com \
    --cc=hbathini@linux.ibm.com \
    --cc=horms@kernel.org \
    --cc=kexec@lists.infradead.org \
    --cc=mahesh@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox