mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Lucas Stach <l.stach@pengutronix.de>, barebox@lists.infradead.org
Subject: Re: [PATCH 1/3] ARM: cpu: suppress arm_early_mmu_cache_invalidate if dcache enabled
Date: Wed, 5 Aug 2026 13:59:20 +0200	[thread overview]
Message-ID: <9c0886a8-4293-4acb-9962-1347194dae71@pengutronix.de> (raw)
In-Reply-To: <ba9e9ab0-b16e-44b2-91e6-fb036d0e66f0@pengutronix.de>

Hello Lucas,

On 7/7/26 7:20 PM, Ahmad Fatoum wrote:
>> Also, by moving the call to a later point in the init flow later in the
>> series, are you sure that the invalidate happens before the I cache
>> gets enabled in arm_cpu_lowlevel_init()?
> arm_cpu_lowlevel_init() invalidates I cache on ARMv6 and ARMv7.
> I believe on ARMv8, it's not necessary?
> 
> Interestingly, for ARMv8, I-Cache looks like it is only enabled early
> for EL3, but for EL2/1, it's enabled in mmu_early_enable(). Any reason
> for that?

Any thoughts on this?

Cheers,
Ahmad


-- 
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |




      reply	other threads:[~2026-08-05 12:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07  8:05 Ahmad Fatoum
2026-07-07  8:05 ` [PATCH 2/3] ARM: v7r: factor out armv7r_cache_enable Ahmad Fatoum
2026-07-07  8:05 ` [PATCH 3/3] ARM: always call dcache_invalidate_stale before enabling D-Cache Ahmad Fatoum
2026-07-07 15:22 ` [PATCH 1/3] ARM: cpu: suppress arm_early_mmu_cache_invalidate if dcache enabled Lucas Stach
2026-07-07 17:20   ` Ahmad Fatoum
2026-08-05 11:59     ` Ahmad Fatoum [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=9c0886a8-4293-4acb-9962-1347194dae71@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=l.stach@pengutronix.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