[PATCH v4 3/3] ARM: imx6: dh-imx6: Enable d-cache early in SPL
Marek Vasut
marex at denx.de
Wed Aug 17 11:24:59 CEST 2022
On 8/17/22 11:06, Philip Oberfichtner wrote:
[...]
> +void spl_board_prepare_for_boot(void)
> +{
> + /*
> + * Flush dcache.
The dcache_disable() does not do any cache flushing, it just disables
the Dcache enable C-bit.
> Without it U-Boot proper would hang at random locations. Presumably this is
> + * due to dirty cache lines remaining after SPL passes control. When U-Boot proper later on
> + * calls invalidate_dcache_all(), those dirty cache lines will get lost.
> + */
What about falcon boot mode starting Linux from SPL, could it fail the
same way ?
> + dcache_disable();
> +}
[...]
More information about the U-Boot
mailing list