Skip to contentSkip to conversation

arm64-kdump-use-generic-interface-to-simplify-crashkernel-reservation.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Oct 4, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: arm64: kdump: use generic interface to simplify crashkernel reservation
has been removed from the -mm tree. Its filename was
arm64-kdump-use-generic-interface-to-simplify-crashkernel-reservation.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Baoquan He <[email protected]>
Subject: arm64: kdump: use generic interface to simplify crashkernel reservation
Date: Thu, 14 Sep 2023 11:31:40 +0800

With the help of newly changed function parse_crashkernel() and generic reserve_crashkernel_generic(), crashkernel reservation can be simplified by steps:

1) Add a new header file <asm/crash_core.h>, and define CRASH_ALIGN, CRASH_ADDR_LOW_MAX, CRASH_ADDR_HIGH_MAX and DEFAULT_CRASH_KERNEL_LOW_SIZE in <asm/crash_core.h>;

2) Add arch_reserve_crashkernel() to call parse_crashkernel() and reserve_crashkernel_generic();

3) Add ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION Kconfig in arch/arm64/Kconfig.

The old reserve_crashkernel_low() and reserve_crashkernel() can be removed.

---

 arch/arm64/Kconfig                  |    3 
 arch/arm64/include/asm/crash_core.h |   10 +
 arch/arm64/mm/init.c                |  140 +-------------------------
 3 files changed, 21 insertions(+), 132 deletions(-)
arch/arm64/include/asm/crash_core.h new file +10 -0
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef _ARM64_CRASH_CORE_H
+#define _ARM64_CRASH_CORE_H
+
+/* Current arm64 boot protocol requires 2MB alignment */
+#define CRASH_ALIGN                     SZ_2M
+
+#define CRASH_ADDR_LOW_MAX              arm64_dma_phys_limit
+#define CRASH_ADDR_HIGH_MAX             (PHYS_MASK + 1)
+#endif
arch/arm64/Kconfig renamed from arch/arm64/Kconfig~arm64-kdump-use-generic-interface-to-simplify-crashkernel-reservation +3 -0
@@ -1483,6 +1483,9 @@ config ARCH_DEFAULT_KEXEC_IMAGE_VERIFY_S
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool y
 
+config ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
+	def_bool CRASH_CORE
+
 config TRANS_TABLE
 	def_bool y
 	depends on HIBERNATION || KEXEC_CORE
arch/arm64/mm/init.c renamed from arch/arm64/mm/init.c~arm64-kdump-use-generic-interface-to-simplify-crashkernel-reservation +8 -132

170 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are