Skip to contentSkip to conversation

kdump-implement-reserve_crashkernel_cma.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Jul 20, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kdump: implement reserve_crashkernel_cma
has been removed from the -mm tree. Its filename was
kdump-implement-reserve_crashkernel_cma.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: Jiri Bohac <[email protected]>
Subject: kdump: implement reserve_crashkernel_cma
Date: Thu, 12 Jun 2025 12:16:39 +0200

reserve_crashkernel_cma() reserves CMA ranges for the crash kernel. If allocating the requested size fails, try to reserve in smaller blocks.

Store the reserved ranges in the crashk_cma_ranges array and the number of ranges in crashk_cma_cnt.

Cc Baoquan He <[email protected]>
Cc Dave Young <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Donald Dutile <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Philipp Rudo <[email protected]>
Cc Pingfan Liu <[email protected]>
Cc Tao Liu <[email protected]>
Cc Vivek Goyal <[email protected]>

---

 include/linux/crash_reserve.h |   12 +++++++
 kernel/crash_reserve.c        |   52 ++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)
include/linux/crash_reserve.h renamed from include/linux/crash_reserve.h~kdump-implement-reserve_crashkernel_cma +12 -0
@@ -13,12 +13,24 @@
  */
 extern struct resource crashk_res;
 extern struct resource crashk_low_res;
+extern struct range crashk_cma_ranges[];
+#if defined(CONFIG_CMA) && defined(CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION)
+#define CRASHKERNEL_CMA
+#define CRASHKERNEL_CMA_RANGES_MAX 4
+extern int crashk_cma_cnt;
+#else
+#define crashk_cma_cnt 0
+#define CRASHKERNEL_CMA_RANGES_MAX 0
+#endif
+
 
 int __init parse_crashkernel(char *cmdline, unsigned long long system_ram,
 		unsigned long long *crash_size, unsigned long long *crash_base,
 		unsigned long long *low_size, unsigned long long *cma_size,
 		bool *high);
 
+void __init reserve_crashkernel_cma(unsigned long long cma_size);
+
 #ifdef CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
 #ifndef DEFAULT_CRASH_KERNEL_LOW_SIZE
 #define DEFAULT_CRASH_KERNEL_LOW_SIZE	(128UL << 20)
kernel/crash_reserve.c renamed from kernel/crash_reserve.c~kdump-implement-reserve_crashkernel_cma +52 -0

64 lines not on this page · raw message

_

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