linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v12 00/16] arm64 kexec kernel patches v12
@ 2015-11-24 22:25 Geoff Levand
  2015-11-24 22:25 ` [PATCH v12 02/16] arm64: Convert hcalls to use HVC immediate value Geoff Levand
                   ` (15 more replies)
  0 siblings, 16 replies; 89+ messages in thread
From: Geoff Levand @ 2015-11-24 22:25 UTC (permalink / raw)
  To: linux-arm-kernel

Hi All,

This series adds the core support for kexec re-boot and kdump on ARM64.  This
version of the series combines Takahiro's kdump patches with my kexec patches.

Changes since v11:

o No changes, rebase to v4.4-rc2.

Changes since v10:

o Move the flush of the new image from arm64_relocate_new_kernel to machine_kexec.
o Pass values to arm64_relocate_new_kernel in registers, not in global variables.
o Fixups to setting the sctlr_el1 and sctlr_el2 flags.

To load a second stage kernel and execute a kexec re-boot or to work with kdump
on ARM64 systems a series of patches to kexec-tools [2], which have not yet been
merged upstream, are needed.

I have tested kexec with the ARM Foundation model, and Takahiro has reported
that kdump is working on the 96boards HiKey developer board.  Kexec on EFI
systems works correctly.  More ACPI + kexec testing is needed.

Patch 1 here moves the macros from proc-macros.S to asm/assembler.h so that the
dcache_line_size macro it defines can be uesd by kexec's relocate kernel
routine.

Patches 2 & 3 rework the ARM64 hcall mechanism to give the CPU reset routines
the ability to switch exception levels from EL1 to EL2 for kernels that were
entered in EL2.

Patch 4 allows KVM to handle a CPU reset.

Patches 5 - 7 add back the ARM64 CPU reset support that was recently removed
from the kernel.

Patches 8 - 10 add kexec support.

Patches 11-16 add kdump support.

Please consider all patches for inclusion.

[1]  https://git.kernel.org/cgit/linux/kernel/git/geoff/linux-kexec.git
[2]  https://git.kernel.org/cgit/linux/kernel/git/geoff/kexec-tools.git

-Geoff

The following changes since commit 1ec218373b8ebda821aec00bb156a9c94fad9cd4:

  Linux 4.4-rc2 (2015-11-22 16:45:59 -0800)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/geoff/linux-kexec.git kexec-v12

for you to fetch changes up to 83db66df70fc1f7cd4da8b580d264b9320991cf0:

  arm64: kdump: relax BUG_ON() if more than one cpus are still active (2015-11-24 13:59:27 -0800)

----------------------------------------------------------------
AKASHI Takahiro (7):
      arm64: kvm: allows kvm cpu hotplug
      arm64: kdump: reserve memory for crash dump kernel
      arm64: kdump: implement machine_crash_shutdown()
      arm64: kdump: add kdump support
      arm64: kdump: update a kernel doc
      arm64: kdump: enable kdump in the arm64 defconfig
      arm64: kdump: relax BUG_ON() if more than one cpus are still active

Geoff Levand (9):
      arm64: Fold proc-macros.S into assembler.h
      arm64: Convert hcalls to use HVC immediate value
      arm64: Add new hcall HVC_CALL_FUNC
      arm64: Add back cpu_reset routines
      Revert "arm64: mm: remove unused cpu_set_idmap_tcr_t0sz function"
      Revert "arm64: remove dead code"
      arm64/kexec: Add core kexec support
      arm64/kexec: Add pr_devel output
      arm64/kexec: Enable kexec in the arm64 defconfig

 Documentation/kdump/kdump.txt        |  32 ++++-
 arch/arm/include/asm/kvm_host.h      |  10 +-
 arch/arm/include/asm/kvm_mmu.h       |   1 +
 arch/arm/kvm/arm.c                   |  79 ++++++-----
 arch/arm/kvm/mmu.c                   |   5 +
 arch/arm64/Kconfig                   |  22 ++++
 arch/arm64/configs/defconfig         |   2 +
 arch/arm64/include/asm/assembler.h   |  48 ++++++-
 arch/arm64/include/asm/kexec.h       |  80 +++++++++++
 arch/arm64/include/asm/kvm_host.h    |  16 ++-
 arch/arm64/include/asm/kvm_mmu.h     |   1 +
 arch/arm64/include/asm/mmu.h         |   1 +
 arch/arm64/include/asm/mmu_context.h |  35 +++--
 arch/arm64/include/asm/virt.h        |  49 +++++++
 arch/arm64/kernel/Makefile           |   3 +
 arch/arm64/kernel/cpu-reset.S        |  84 ++++++++++++
 arch/arm64/kernel/cpu-reset.h        |  22 ++++
 arch/arm64/kernel/crash_dump.c       |  71 ++++++++++
 arch/arm64/kernel/hyp-stub.S         |  43 ++++--
 arch/arm64/kernel/machine_kexec.c    | 248 +++++++++++++++++++++++++++++++++++
 arch/arm64/kernel/relocate_kernel.S  | 131 ++++++++++++++++++
 arch/arm64/kernel/setup.c            |   7 +-
 arch/arm64/kernel/smp.c              |  16 ++-
 arch/arm64/kvm/hyp-init.S            |  34 ++++-
 arch/arm64/kvm/hyp.S                 |  44 +++++--
 arch/arm64/mm/cache.S                |   2 -
 arch/arm64/mm/init.c                 |  83 ++++++++++++
 arch/arm64/mm/mmu.c                  |  11 ++
 arch/arm64/mm/proc-macros.S          |  64 ---------
 arch/arm64/mm/proc.S                 |   3 -
 include/uapi/linux/kexec.h           |   1 +
 31 files changed, 1097 insertions(+), 151 deletions(-)
 create mode 100644 arch/arm64/include/asm/kexec.h
 create mode 100644 arch/arm64/kernel/cpu-reset.S
 create mode 100644 arch/arm64/kernel/cpu-reset.h
 create mode 100644 arch/arm64/kernel/crash_dump.c
 create mode 100644 arch/arm64/kernel/machine_kexec.c
 create mode 100644 arch/arm64/kernel/relocate_kernel.S
 delete mode 100644 arch/arm64/mm/proc-macros.S

-- 
2.5.0

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

end of thread, other threads:[~2015-12-16 10:32 UTC | newest]

Thread overview: 89+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-24 22:25 [PATCH v12 00/16] arm64 kexec kernel patches v12 Geoff Levand
2015-11-24 22:25 ` [PATCH v12 02/16] arm64: Convert hcalls to use HVC immediate value Geoff Levand
2015-11-24 22:25 ` [PATCH v12 07/16] Revert "arm64: remove dead code" Geoff Levand
2015-11-24 22:25 ` [PATCH v12 03/16] arm64: Add new hcall HVC_CALL_FUNC Geoff Levand
2015-11-24 22:25 ` [PATCH v12 05/16] arm64: Add back cpu_reset routines Geoff Levand
2015-11-27 14:19   ` Marc Zyngier
2015-11-30  5:28     ` Pratyush Anand
2015-11-30 10:40       ` Marc Zyngier
2015-12-02 22:57         ` Geoff Levand
2015-12-03  9:32           ` Will Deacon
2015-12-10  0:49             ` Geoff Levand
2015-12-10 10:17               ` Will Deacon
2015-11-30 20:03     ` Geoff Levand
2015-12-01  9:38       ` Marc Zyngier
2015-11-24 22:25 ` [PATCH v12 01/16] arm64: Fold proc-macros.S into assembler.h Geoff Levand
2015-11-24 22:25 ` [PATCH v12 04/16] arm64: kvm: allows kvm cpu hotplug Geoff Levand
2015-11-27 13:54   ` Marc Zyngier
2015-12-02 22:40   ` Ashwin Chaugule
2015-12-03 13:55     ` Ashwin Chaugule
2015-12-03 13:58     ` Marc Zyngier
2015-12-10 18:31       ` Geoff Levand
2015-12-11 16:31         ` Will Deacon
2015-12-15  8:48           ` AKASHI Takahiro
2015-12-10 18:44       ` Shi, Yang
2015-12-11  8:09         ` AKASHI Takahiro
2015-12-14 18:00           ` Shi, Yang
2015-12-11  8:06       ` AKASHI Takahiro
2015-12-11 13:00         ` Shanker Donthineni
2015-12-11 16:28         ` Marc Zyngier
2015-12-11 18:00           ` Shanker Donthineni
2015-12-11 18:11             ` Marc Zyngier
2015-12-11 19:11               ` Shanker Donthineni
2015-12-11 20:13           ` Ashwin Chaugule
2015-12-14  7:33           ` AKASHI Takahiro
2015-12-14 17:33             ` Marc Zyngier
2015-12-15  7:51               ` AKASHI Takahiro
2015-12-15  8:45                 ` Marc Zyngier
2015-12-15  9:51                   ` AKASHI Takahiro
2015-12-15 10:13                     ` Marc Zyngier
2015-11-24 22:25 ` [PATCH v12 06/16] Revert "arm64: mm: remove unused cpu_set_idmap_tcr_t0sz function" Geoff Levand
2015-11-24 22:25 ` [PATCH v12 16/16] arm64: kdump: relax BUG_ON() if more than one cpus are still active Geoff Levand
2015-12-15 17:05   ` Will Deacon
2015-12-16  5:51     ` AKASHI Takahiro
2015-11-24 22:25 ` [PATCH v12 14/16] arm64: kdump: update a kernel doc Geoff Levand
2015-12-15 17:17   ` Will Deacon
2015-12-16  5:48     ` AKASHI Takahiro
2015-11-24 22:25 ` [PATCH v12 15/16] arm64: kdump: enable kdump in the arm64 defconfig Geoff Levand
2015-11-24 22:25 ` [PATCH v12 08/16] arm64/kexec: Add core kexec support Geoff Levand
2015-11-27 13:13   ` Pratyush Anand
2015-11-30 18:51     ` Geoff Levand
2015-12-01  2:16       ` Pratyush Anand
2015-12-01 18:32         ` Azriel Samson
2015-12-02 22:49           ` Geoff Levand
2015-12-03  4:37             ` Azriel Samson
2015-12-03 19:56               ` Geoff Levand
2015-12-04  0:39                 ` Azriel Samson
2015-12-04  3:54                   ` Pratyush Anand
2015-12-07 18:47                     ` Geoff Levand
2015-12-03  6:09             ` Pratyush Anand
2015-12-01 19:03         ` Mark Rutland
2015-12-02 21:08           ` Geoff Levand
2015-12-03 16:06             ` Mark Rutland
2015-12-15 18:29   ` Will Deacon
2015-12-16  0:14     ` Geoff Levand
2015-12-16  7:18       ` Pratyush Anand
2015-12-16  9:30         ` James Morse
2015-12-16 10:32           ` Pratyush Anand
2015-12-16  0:14   ` [PATCH v12.4] " Geoff Levand
2015-11-24 22:25 ` [PATCH v12 11/16] arm64: kdump: reserve memory for crash dump kernel Geoff Levand
2015-12-15 17:29   ` Will Deacon
2015-12-16  5:19     ` AKASHI Takahiro
2015-12-16  7:36       ` Pratyush Anand
2015-11-24 22:25 ` [PATCH v12 10/16] arm64/kexec: Enable kexec in the arm64 defconfig Geoff Levand
2015-11-24 22:25 ` [PATCH v12 13/16] arm64: kdump: add kdump support Geoff Levand
2015-12-15 17:45   ` Will Deacon
2015-12-16  5:41     ` AKASHI Takahiro
2015-11-24 22:25 ` [PATCH v12 09/16] arm64/kexec: Add pr_devel output Geoff Levand
2015-12-15 17:15   ` Will Deacon
2015-12-16  0:45     ` Geoff Levand
2015-12-16  0:46   ` [PATCH v12.4] arm64/kexec: Add pr_debug output Geoff Levand
2015-11-24 22:25 ` [PATCH v12 12/16] arm64: kdump: implement machine_crash_shutdown() Geoff Levand
2015-11-27 14:39   ` Marc Zyngier
2015-12-10 11:34     ` AKASHI Takahiro
2015-12-10 11:44       ` Marc Zyngier
2015-12-10 12:55         ` AKASHI Takahiro
2015-12-10 13:43           ` Marc Zyngier
2015-12-03  4:15   ` Pratyush Anand
2015-12-10 11:42     ` AKASHI Takahiro
2015-12-10 11:50       ` Pratyush Anand

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