All of lore.kernel.org
 help / color / mirror / Atom feed
* + kho-adopt-radix-tree-for-preserved-memory-tracking-fix.patch added to mm-unstable branch
@ 2026-03-09 20:13 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-03-09 20:13 UTC (permalink / raw)
  To: mm-commits, rppt, rientjes, pratyush, pasha.tatashin, jgg,
	jasonmiu, graf, dmatlack, changyuanl, bhe, ran.xiaokai, akpm


The patch titled
     Subject: kho: fix child node parsing for debugfs in/sub_fdts
has been added to the -mm mm-unstable branch.  Its filename is
     kho-adopt-radix-tree-for-preserved-memory-tracking-fix.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/kho-adopt-radix-tree-for-preserved-memory-tracking-fix.patch

This patch will later appear in the mm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days

------------------------------------------------------
From: Ran Xiaokai <ran.xiaokai@zte.com.cn>
Subject: kho: fix child node parsing for debugfs in/sub_fdts
Date: Mon, 9 Mar 2026 03:35:30 +0000

Commit e0c1731f5d57 ("kho: adopt radix tree for preserved memory
tracking") changed KHO_FDT_SUB_TREE_PROP_NAME from "fdt" to
"preserved-data".  However, kho debugfs code still hard-coded the "fdt"
string when parsing the device tree, causing the debugfs node
/debugfs/kho/in/sub_fdts/ fail to parse child nodes correctly.

Fix this by including the header file and using KHO_FDT_SUB_TREE_PROP_NAME
instead of the hard-coded string.

Link: https://lkml.kernel.org/r/20260309033530.244508-1-ranxiaokai627@163.com
Fixes: e0c1731f5d57 ("kho: adopt radix tree for preserved memory tracking")
Signed-off-by: Ran Xiaokai <ran.xiaokai@zte.com.cn>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Alexander Graf <graf@amazon.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Changyuan Lyu <changyuanl@google.com>
Cc: David Matlack <dmatlack@google.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: Jason Miu <jasonmiu@google.com>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 kernel/liveupdate/kexec_handover_debugfs.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/kernel/liveupdate/kexec_handover_debugfs.c~kho-adopt-radix-tree-for-preserved-memory-tracking-fix
+++ a/kernel/liveupdate/kexec_handover_debugfs.c
@@ -13,6 +13,7 @@
 #include <linux/io.h>
 #include <linux/libfdt.h>
 #include <linux/mm.h>
+#include <linux/kho/abi/kexec_handover.h>
 #include "kexec_handover_internal.h"
 
 static struct dentry *debugfs_root;
@@ -139,7 +140,7 @@ __init void kho_in_debugfs_init(struct k
 		const char *name = fdt_get_name(fdt, child, NULL);
 		const u64 *fdt_phys;
 
-		fdt_phys = fdt_getprop(fdt, child, "fdt", &len);
+		fdt_phys = fdt_getprop(fdt, child, KHO_FDT_SUB_TREE_PROP_NAME, &len);
 		if (!fdt_phys)
 			continue;
 		if (len != sizeof(*fdt_phys)) {
_

Patches currently in -mm which might be from ran.xiaokai@zte.com.cn are

kho-adopt-radix-tree-for-preserved-memory-tracking-fix.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-09 20:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09 20:13 + kho-adopt-radix-tree-for-preserved-memory-tracking-fix.patch added to mm-unstable branch Andrew Morton

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.