All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64/kexec: Fix missing extra range for crashkres_low.
@ 2022-08-03 15:12 ` Levi Yun
  0 siblings, 0 replies; 44+ messages in thread
From: Levi Yun @ 2022-08-03 15:12 UTC (permalink / raw)
  To: catalin.marinas, will, chenzhou10, nramas, thunder.leizhen
  Cc: linux-arm-kernel, linux-kernel, Levi Yun

Like crashk_res, Calling crash_exclude_mem_range function with
crashk_low_res area would need extra crash_mem range too.
Add one extra crash_mem range when crashk_low_res is used.

Signed-off-by: Levi Yun <ppbuk5246@gmail.com>
---
 arch/arm64/kernel/machine_kexec_file.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/kernel/machine_kexec_file.c b/arch/arm64/kernel/machine_kexec_file.c
index 889951291cc0..378aee04e7d4 100644
--- a/arch/arm64/kernel/machine_kexec_file.c
+++ b/arch/arm64/kernel/machine_kexec_file.c
@@ -51,6 +51,9 @@ static int prepare_elf_headers(void **addr, unsigned long *sz)
 	for_each_mem_range(i, &start, &end)
 		nr_ranges++;

+	if (crashk_low_res.end)
+		nr_ranges++; /**< for exclusion of crashkernel=size,low region */
+
 	cmem = kmalloc(struct_size(cmem, ranges, nr_ranges), GFP_KERNEL);
 	if (!cmem)
 		return -ENOMEM;
--
2.35.1

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

end of thread, other threads:[~2022-09-01 13:15 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03 15:12 [PATCH] arm64/kexec: Fix missing extra range for crashkres_low Levi Yun
2022-08-03 15:12 ` Levi Yun
2022-08-30  4:28 ` [PATCH-RESEND] " Yun Levi
2022-08-30  4:28   ` Yun Levi
2022-08-30  4:28   ` Yun Levi
2022-08-30  7:37   ` Baoquan He
2022-08-30  7:37     ` Baoquan He
2022-08-30  7:37     ` Baoquan He
2022-08-30  8:30     ` Yun Levi
2022-08-30  8:30       ` Yun Levi
2022-08-30  8:30       ` Yun Levi
2022-08-30  9:28   ` [PATCH v2] " Levi Yun
2022-08-30  9:28     ` Levi Yun
2022-08-30  9:28     ` Levi Yun
2022-08-30 12:46     ` Baoquan He
2022-08-30 12:46       ` Baoquan He
2022-08-30 12:46       ` Baoquan He
2022-08-30 16:40     ` Catalin Marinas
2022-08-30 16:40       ` Catalin Marinas
2022-08-30 16:40       ` Catalin Marinas
2022-08-31  0:38       ` Yun Levi
2022-08-31  0:38         ` Yun Levi
2022-08-31  0:38         ` Yun Levi
2022-08-31  1:18         ` Baoquan He
2022-08-31  1:18           ` Baoquan He
2022-08-31  1:18           ` Baoquan He
2022-08-31  1:31           ` Yun Levi
2022-08-31  1:31             ` Yun Levi
2022-08-31  1:31             ` Yun Levi
2022-08-31  1:49             ` [PATCH v2-RESEND] " Yun Levi
2022-08-31  1:49               ` Yun Levi
2022-08-31  1:49               ` Yun Levi
2022-08-31 10:26               ` Catalin Marinas
2022-08-31 10:26                 ` Catalin Marinas
2022-08-31 10:26                 ` Catalin Marinas
2022-08-31 10:29                 ` Yun Levi
2022-08-31 10:29                   ` Yun Levi
2022-08-31 10:29                   ` Yun Levi
2022-08-31 10:39               ` [PATCH v3] " Levi Yun
2022-08-31 10:39                 ` Levi Yun
2022-08-31 10:39                 ` Levi Yun
2022-09-01 13:06                 ` Will Deacon
2022-09-01 13:06                   ` Will Deacon
2022-09-01 13:06                   ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.