From: Tom Rini <trini@konsulko.com>
To: Aristo Chen <aristo.chen@canonical.com>
Cc: u-boot@lists.denx.de, Simon Glass <sjg@chromium.org>,
Nora Schiffer <nora.schiffer@ew.tq-group.com>,
Ludwig Nussel <ludwig.nussel@siemens.com>,
Daniel Golle <daniel@makrotopia.org>
Subject: Re: [PATCH v1] bootm: teach handle_decomp_error() about the noload decompression buffer
Date: Wed, 8 Jul 2026 12:07:06 -0600 [thread overview]
Message-ID: <20260708180706.GB749385@bill-the-cat> (raw)
In-Reply-To: <20260705145445.2339-1-aristo.chen@canonical.com>
[-- Attachment #1: Type: text/plain, Size: 1469 bytes --]
On Sun, Jul 05, 2026 at 02:51:22PM +0000, Aristo Chen wrote:
> For a compressed kernel_noload image, bootm_load_os() allocates a
> per-image decompression buffer of ALIGN(image_len * 8, SZ_1M) rather
> than the global CONFIG_SYS_BOOTM_LEN. When decompression fails on that
> path, handle_decomp_error() still prints
>
> Image too large: increase CONFIG_SYS_BOOTM_LEN
>
> which is misleading: increasing CONFIG_SYS_BOOTM_LEN does not help
> because the smaller per-image buffer is the actual bound. Commit
> 2ff26c1e378d ("bootm: fix overflow of the noload kernel decompression
> buffer") worked around this by printing a follow-up note right after
> handle_decomp_error() returned, but the boot log then reads as two
> contradictory sentences.
>
> Introduce enum bootm_decomp_limit and pass it into
> handle_decomp_error() so the helper picks the right message in one
> place. For the noload path it now prints
>
> Image too large for the kernel_noload buffer (0x100000 bytes)
>
> quoting the actual buffer size; the global path is unchanged. Drop the
> trailing note in bootm_load_os() so only one line is printed.
>
> Suggested-by: Simon Glass <sjg@chromium.org>
> Signed-off-by: Aristo Chen <aristo.chen@canonical.com>
Thanks for doing this. It's clearer for the user and after checking a
handful of platforms, we only grow by 8 bytes, so, that's well worth it.
Reviewed-by: Tom Rini <trini@konsulko.com>
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-07-08 18:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-05 14:51 [PATCH v1] bootm: teach handle_decomp_error() about the noload decompression buffer Aristo Chen
2026-07-08 18:07 ` Tom Rini [this message]
2026-07-09 19:14 ` Simon Glass
2026-07-10 13:13 ` [PATCH v2] " Aristo Chen
2026-07-24 1:02 ` 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=20260708180706.GB749385@bill-the-cat \
--to=trini@konsulko.com \
--cc=aristo.chen@canonical.com \
--cc=daniel@makrotopia.org \
--cc=ludwig.nussel@siemens.com \
--cc=nora.schiffer@ew.tq-group.com \
--cc=sjg@chromium.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox