Skip to content

arm64 kexec kernel patches

Geoff Levand kexec linux-arm-kernel 1 version NAK

Status from this message: NAK.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 14 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/8arm64: Use cpu_ops for smp_stoparch/arm64/kernel/smp.c+8 -02 replies
2/8arm64: Make cpu_read_ops genericarch/arm64/include/asm/cpu_ops.h arch/arm64/kernel/cpu_ops.c arch/arm64/kernel/smp.c+9 -70 replies
3/8arm64: Add spin-table cpu_diearch/arm64/kernel/smp_spin_table.c+13 -01 reply
4/8arm64: Add smp_spin_table_set_diearch/arm64/include/asm/cpu_ops.h arch/arm64/kernel/smp_spin_table.c+9 -10 replies
5/8arm64: Split soft_restart into two stagesarch/arm64/include/asm/system_misc.h arch/arm64/kernel/process.c+2 -30 replies
6/8arm64/kexec: kexec needs cpu_diearch/arm64/kernel/psci.c+2 -22 replies
7/8arm64/kexec: Add core kexec supportMAINTAINERS arch/arm64/Kconfig arch/arm64/include/asm/kexec.h +4 more+925 -07 replies
8/8arm64: Enable kexec in defconfigarch/arm64/configs/defconfig+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] arm64 kexec kernel patches

Hi Maintainers,

This patchset adds support for kexec re-boots on arm64. I have tested with the VE fast model using various kernel config options with both spin and psci enable methods. I'll continue to test in the coming weeks.

I tried to re-use the existing hot plug cpu_ops support for the secondary CPU shutdown as much as possible, but needed to do some things specific to kexec that I couldn't do with what was already there. A significant change is in [PATCH 4/8] (arm64: Add smp_spin_table_set_die) where I add the ability to setup a custom cpu_die handler.

To get the the spin-table secondary CPUs into the proper state described in Documentation/arm64/booting.txt I use a three step spin loop. First in the kernel's virtual address space, then to the identity mapped address, then jump to the final spin code in the 2nd stage kernel's /memreserve/ area. To support this three step spin I needed [PATCH 5/8] (arm64: Split soft_restart into two stages). Please see the patch comments for more info. If we added the 2nd stage kernel's /memreserve/ area to the identity map we could eliminate the middle step and go from the VA space to the /memreserve/ area directly.

Please consider all patches for inclusion. Any comments or suggestions on how to improve would be very welcome.

To load a kexec kernel and execute a kexec re-boot on arm64 my patches to kexec-tools, which have not yet been merged upstream, are needed:

https://git.linaro.org/people/geoff.levand/kexec-tools.git

-Geoff

The following changes since commit 89ca3b881987f5a4be4c5dbaa7f0df12bbdde2fd:

Linux 3.15-rc4 (2014-05-04 18:14:42 -0700)

are available in the git repository at:

git://git.linaro.org/people/geoff.levand/linux-kexec.git for-arm64-kexec

for you to fetch changes up to 32399380e2249697ca549848ef83e5706eb4d83c:

arm64: Enable kexec in defconfig (2014-05-08 17:09:27 -0700)

----------------------------------------------------------------
Geoff Levand (8):
arm64: Use cpu_ops for smp_stop
arm64: Make cpu_read_ops generic
arm64: Add spin-table cpu_die
arm64: Add smp_spin_table_set_die
arm64: Split soft_restart into two stages
arm64/kexec: kexec needs cpu_die
arm64/kexec: Add core kexec support
arm64: Enable kexec in defconfig

 MAINTAINERS                          |   9 +
 arch/arm64/Kconfig                   |   8 +
 arch/arm64/configs/defconfig         |   1 +
 arch/arm64/include/asm/cpu_ops.h     |   5 +-
 arch/arm64/include/asm/kexec.h       |  44 +++
 arch/arm64/include/asm/system_misc.h |   1 +
 arch/arm64/kernel/Makefile           |   1 +
 arch/arm64/kernel/cpu_ops.c          |  11 +-
 arch/arm64/kernel/machine_kexec.c    | 623 +++++++++++++++++++++++++++++++++++
 arch/arm64/kernel/process.c          |   4 +-
 arch/arm64/kernel/psci.c             |   4 +-
 arch/arm64/kernel/relocate_kernel.S  | 239 ++++++++++++++
 arch/arm64/kernel/smp.c              |  10 +-
 arch/arm64/kernel/smp_spin_table.c   |  21 +-
 include/uapi/linux/kexec.h           |   1 +
 15 files changed, 969 insertions(+), 13 deletions(-)
 create mode 100644 arch/arm64/include/asm/kexec.h
 create mode 100644 arch/arm64/kernel/machine_kexec.c
 create mode 100644 arch/arm64/kernel/relocate_kernel.S
Signature · 7 lines
1.9.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec