From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: Re: [PATCH v2 1/3] ARM: cpu: suppress arm_early_mmu_cache_invalidate if dcache enabled
Date: Fri, 28 Aug 2026 16:24:36 +0200 [thread overview]
Message-ID: <178792707602.522687.2245679892700328339.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20260825081533.1240832-1-a.fatoum@pengutronix.de>
On Tue, 25 Aug 2026 10:13:15 +0200, Ahmad Fatoum wrote:
> barebox built as EFI payload on ARM invalidates the data caches inside
> barebox_arm_entry(), which may lead to memory corruption.
>
> Generally, calling arm_early_mmu_cache_invalidate() while the caches are
> enabled is a bad idea, so add a function that protects against that and
> use it in common code.
>
> [...]
Applied, thanks!
[1/3] ARM: cpu: suppress arm_early_mmu_cache_invalidate if dcache enabled
https://git.pengutronix.de/cgit/barebox/commit/?id=72faea821232 (link may not be stable)
[2/3] ARM: v7r: factor out armv7r_cache_enable
https://git.pengutronix.de/cgit/barebox/commit/?id=14eafd21e89b (link may not be stable)
[3/3] ARM: always call cache_invalidate_stale before enabling D-Cache
https://git.pengutronix.de/cgit/barebox/commit/?id=fcec14feed91 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
prev parent reply other threads:[~2026-08-28 14:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 8:13 Ahmad Fatoum
2026-08-25 8:13 ` [PATCH v2 2/3] ARM: v7r: factor out armv7r_cache_enable Ahmad Fatoum
2026-08-25 8:13 ` [PATCH v2 3/3] ARM: always call cache_invalidate_stale before enabling D-Cache Ahmad Fatoum
2026-08-26 8:39 ` [PATCH v2 1/3] ARM: cpu: suppress arm_early_mmu_cache_invalidate if dcache enabled Lucas Stach
2026-08-28 14:24 ` Sascha Hauer [this message]
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=178792707602.522687.2245679892700328339.b4-ty@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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