From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DDEE3559E4 for ; Mon, 9 Mar 2026 08:10:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773043831; cv=none; b=WwDgYDfMlsSPynDJaJ0XCjx3SIuVSCttDPhoOuvTAPtQZ4FF0OeXBchmUayGhTt/Y0VRu4s+t4BtZXCEOmXzAL8ChEAuJMi24tUtHcjTK4N1JFU9G4KuLHXcwUD1sr8JIiODpGuWn4Fb0OcBrNJsL+nSyj5uWJmHMKj2sBkRpuk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773043831; c=relaxed/simple; bh=fY/+n+RAdnR1c6vjZfs9L8FV0Khh963E8lpMoY0hV2Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ptswUOnOzkq+1qho2f/Tjo9aUgCM27XSLi5LPE5O7EXpB3gFFaw17ksOPSjzXundQKMBVVCnBF4kzPlbT17f7OvWU8nypeP2iwrUc26h8lhcHjhy4Tx9L/uSu6NXd2mT/fMH4g0CFKYkPTyqHHqxq6s6ZyiQjk7G1XgFAHYXSJI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XnM2qHqa; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XnM2qHqa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22A51C4CEF7; Mon, 9 Mar 2026 08:10:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773043831; bh=fY/+n+RAdnR1c6vjZfs9L8FV0Khh963E8lpMoY0hV2Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XnM2qHqasT/NaPrciH8kkYw8JAu8qcnplu9+opyxx2YjkC5c2b+JSNINNH+zI/gb3 6xU3RsHZ1/Kif26dvpJLN5dkEUwQkn+IcwiYy/n6+fK7spU/LYjgaUm3MyTQhSLGEd 86mUCx87RUEvBJDjZqBh+xo6mjmsl7qw89ZWMRfFQahe3XMPjMTEYnSrOWEJTOM4o2 s7GIpPPjaBJBhKaSWwErmqMxFzXD7x3nahE7k2tLK9fY88ERj6G+iGzl6VOgF8gUY6 Pj2La1JRQJhZGHbDNgfePpTQbByBb/K9XeoAVElxeRl9V6GiDiDblJBwJtr6/u9n9B JTZHv6u284yVQ== Date: Mon, 9 Mar 2026 10:10:24 +0200 From: Mike Rapoport To: ranxiaokai627@163.com Cc: graf@amazon.com, akpm@linux-foundation.org, pratyush@kernel.org, pasha.tatashin@soleen.com, jasonmiu@google.com, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, ran.xiaokai@zte.com.cn Subject: Re: [PATCH] kho: fix child node parsing for debugfs in/sub_fdts Message-ID: References: <20260309033530.244508-1-ranxiaokai627@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260309033530.244508-1-ranxiaokai627@163.com> On Mon, Mar 09, 2026 at 03:35:30AM +0000, ranxiaokai627@163.com wrote: > From: Ran Xiaokai > > 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. > > Fixes: e0c1731f5d57 ("kho: adopt radix tree for preserved memory tracking") > Signed-off-by: Ran Xiaokai Reviewed-by: Mike Rapoport (Microsoft) > --- > kernel/liveupdate/kexec_handover_debugfs.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/kernel/liveupdate/kexec_handover_debugfs.c b/kernel/liveupdate/kexec_handover_debugfs.c > index 3f395fbd978f..acf368222682 100644 > --- a/kernel/liveupdate/kexec_handover_debugfs.c > +++ b/kernel/liveupdate/kexec_handover_debugfs.c > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include > #include "kexec_handover_internal.h" > > static struct dentry *debugfs_root; > @@ -121,7 +122,7 @@ __init void kho_in_debugfs_init(struct kho_debugfs *dbg, const void *fdt) > 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)) { > -- > 2.25.1 > -- Sincerely yours, Mike.