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();
+}
[...]