From: Tom Rini <trini@konsulko.com>
To: Raymond Mao <raymondmaoca@gmail.com>
Cc: u-boot@lists.denx.de, Ilias Apalodimas <ilias.apalodimas@linaro.org>
Subject: Re: [PATCH 1/7] lib/fdtdec.c: Disallow overriding the fdt address with mandatory passage
Date: Wed, 8 Jul 2026 10:32:04 -0600 [thread overview]
Message-ID: <20260708163204.GV749385@bill-the-cat> (raw)
In-Reply-To: <CAMDkj5xfkpW4eRi-ZMC-SNG8-af5gr96Jv0-Jj4QwFNH5jwp7w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2058 bytes --]
On Wed, Jul 08, 2026 at 12:26:04PM -0400, Raymond Mao wrote:
> Hi Tom,
>
> On Tue, Jul 7, 2026 at 9:30 PM Tom Rini <trini@konsulko.com> wrote:
> >
> > When we have CONFIG_BLOBLIST_PASSAGE_MANDATORY don't allow the device
> > tree address to be overridden. The device tree we're given is the one
> > that must be used.
> >
>
> The commit message does not explicitly mention this is only for
> OF_BOARD. So I think we need to add
> "!IS_ENABLED(CONFIG_BLOBLIST_PASSAGE_MANDATORY)" to the next check as
> well:
>
> /* Allow the early environment to override the fdt address */
> - if (!IS_ENABLED(CONFIG_XPL_BUILD)) {
> + if (!IS_ENABLED(CONFIG_XPL_BUILD) &&
> + !IS_ENABLED(CONFIG_BLOBLIST_PASSAGE_MANDATORY)) {
> ulong addr;
>
> Or, state in the commit message that it is for OF_BOARD only.
>
> Regards,
> Raymond
>
>
> > Signed-off-by: Tom Rini <trini@konsulko.com>
> > ---
> > Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
> > Cc: Raymond Mao <raymondmaoca@gmail.com>
> > ---
> > lib/fdtdec.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/lib/fdtdec.c b/lib/fdtdec.c
> > index b91e067106dd..ecb22a58b964 100644
> > --- a/lib/fdtdec.c
> > +++ b/lib/fdtdec.c
> > @@ -1856,7 +1856,8 @@ int fdtdec_setup(void)
> > }
> >
> > /* Allow the board to override the fdt address. */
> > - if (IS_ENABLED(CONFIG_OF_BOARD)) {
> > + if (IS_ENABLED(CONFIG_OF_BOARD) &&
> > + !IS_ENABLED(CONFIG_BLOBLIST_PASSAGE_MANDATORY)) {
> > void *blob;
> >
> > blob = (void *)gd->fdt_blob;
I might have to jump back to what the code looked like in January or so,
to figure this out again. We never set OF_BOARD and
BLOBLIST_PASSAGE_MANDATORY so this change here never matters. It might
have been because I was doing this on top of the (now merged) rework of
bloblist_init and bloblist_maybe_init. I'll look harder at this and post
a v2, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-07-08 16:32 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-08 1:25 [PATCH 0/7] Correct behavior of OF_OMIT_DTB Tom Rini
2026-07-08 1:25 ` [PATCH 1/7] lib/fdtdec.c: Disallow overriding the fdt address with mandatory passage Tom Rini
2026-07-08 16:26 ` Raymond Mao
2026-07-08 16:32 ` Tom Rini [this message]
2026-07-08 17:00 ` Tom Rini
2026-07-08 1:25 ` [PATCH 2/7] vexpress64: Correct CONFIG symbol logic around device tree passage Tom Rini
2026-07-08 16:27 ` Raymond Mao
2026-07-10 7:11 ` Ilias Apalodimas
2026-07-08 1:25 ` [PATCH 3/7] dts: Correct behavior of OF_OMIT_DTB Tom Rini
2026-07-08 1:25 ` [PATCH 4/7] dts: Make DEFAULT_DEVICE_TREE depend on !OF_OMIT_DTB Tom Rini
2026-07-08 1:25 ` [PATCH 5/7] dts: Correct entry for OF_OMIT_DTB Tom Rini
2026-07-08 1:25 ` [PATCH 6/7] powerpc: drop qemu-ppce500 dts Tom Rini
2026-07-08 1:25 ` [PATCH 7/7] arm: Drop unused dts files Tom Rini
2026-08-24 19:44 ` [PATCH v2 0/2] Correct behavior of BLOBLIST_PASSAGE_MANDATORY Tom Rini
2026-08-24 19:44 ` [PATCH v2 1/2] lib/fdtdec.c: Disallow overriding BLOBLIST_PASSAGE_MANDATORY Tom Rini
2026-08-26 15:45 ` Raymond Mao
2026-08-24 19:44 ` [PATCH v2 2/2] vexpress64: Correct CONFIG symbol logic around device tree passage Tom Rini
2026-08-24 20:31 ` Linus Walleij
2026-09-04 1:30 ` [PATCH v2 0/2] Correct behavior of BLOBLIST_PASSAGE_MANDATORY Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260708163204.GV749385@bill-the-cat \
--to=trini@konsulko.com \
--cc=ilias.apalodimas@linaro.org \
--cc=raymondmaoca@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.