* [PATCH] fix comment: Mention current logic for vmalloc_start
@ 2024-08-01 7:22 Aditya Gupta
0 siblings, 0 replies; only message in thread
From: Aditya Gupta @ 2024-08-01 7:22 UTC (permalink / raw)
To: kexec
Previous comment is not valid anymore as for newer kernels we are
getting vmalloc_start from NUMBER(vmalloc_start)
The logic was changed in makedumpfile:
commit 94241fd2feed ("[PATCH] ppc64: get vmalloc start address from vmcoreinfo")
Fix comment for better understanding.
Signed-off-by: Aditya Gupta <adityag@linux.ibm.com>
---
repository: makedumpfile
patch should apply on commit 900190de6b67b2de410cfc8023c1b198a416ceb3
---
---
arch/ppc64.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/ppc64.c b/arch/ppc64.c
index a54f9a04db7f..8ad9d6e3265f 100644
--- a/arch/ppc64.c
+++ b/arch/ppc64.c
@@ -566,7 +566,9 @@ get_machdep_info_ppc64(void)
DEBUG_MSG("kernel_start : %lx\n", info->kernel_start);
/*
- * Get vmalloc_start value from either vmap_area_list or vmlist.
+ * To get vmalloc_start, prefer NUMBER(vmalloc_start) if exported in
+ * vmcoreinfo, as 'vmap_area_list' and 'vmlist' in Linux 6.9 and later
+ * kernels might be empty
*/
if (NUMBER(vmalloc_start) != NOT_FOUND_NUMBER) {
vmalloc_start = NUMBER(vmalloc_start);
--
2.45.2
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-08-01 7:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-01 7:22 [PATCH] fix comment: Mention current logic for vmalloc_start Aditya Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox