[PATCH] ARM64: setupc: drop erroneous cache flush of virt addr 0
Sascha Hauer
s.hauer at pengutronix.de
Fri Sep 12 00:51:27 PDT 2025
On Fri, 12 Sep 2025 08:51:04 +0200, Ahmad Fatoum wrote:
> relocate_to_adr copies around executable code and thus needs to
> ensure coherence between I$ and D$. When the function was first added,
> it didn't maintain cache correctly, because while it did call
> arm_early_mmu_cache_flush(), back then that function did not invalidate
> I$ after the D$ clean.
>
> This likely went unnoticed, because a comment in relocate_to_adr
> suggested that ic ivau is invalidating the I$, but in reality that
> instruction did an unconditional invalidation of the single
> cache line corresponding to virtual address 0 if it exists.
>
> [...]
Applied, thanks!
[1/1] ARM64: setupc: drop erroneous cache flush of virt addr 0
https://git.pengutronix.de/cgit/barebox/commit/?id=cca8ff2e8810 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list