[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <14D2606C-3492-4A32-A55D-428F1ADA9327@juniper.net>
Date: Wed, 30 Jul 2025 17:02:08 +0000
From: Brian Mak <makb@...iper.net>
To: Dave Young <dyoung@...hat.com>
CC: Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"H. Peter Anvin" <hpa@...or.com>,
Andrew Morton <akpm@...ux-foundation.org>, Baoquan He <bhe@...hat.com>,
Rob Herring <robh@...nel.org>, Saravana Kannan
<saravanak@...gle.com>,
"x86@...nel.org" <x86@...nel.org>,
"kexec@...ts.infradead.org" <kexec@...ts.infradead.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH RESEND] x86/kexec: Carry forward the boot DTB on kexec
On Jul 30, 2025, at 12:31 AM, Dave Young <dyoung@...hat.com> wrote
>> +#ifdef CONFIG_OF_FLATTREE
>> + if (initial_boot_params) {
>> + setup_dtb(params, params_load_addr, setup_data_offset);
>> + setup_data_offset += sizeof(struct setup_data) +
>> + fdt_totalsize(initial_boot_params);
>
> I suppose current boot dtb should be valid for the current runnning
> kernel, if you use kexec to load another kernel the next kexec reboot
> could fail due to unmatching dtb.
>
> Make this unconditionally could break the previous working kexec?
Hi Dave,
Thanks for taking the time to look at this change!
The behavior on ARM64 for carrying over the current boot DTB is
unconditional, which is why I've made it unconditional here as well. I'm
open to suggestions on this though. Realistically, would there be a case
where having no DTB wouldn't break, but carrying over the current DTB
would?
>
>> + } else {
>> + pr_info("No DTB\n");
>
> pr_debug sounds better.
Agreed. I'll raise it in a v2 in a few days if there's no other
comments.
Thanks,
Brian
Powered by blists - more mailing lists