[U-Boot] [PATCH 12/24] arm: Allow cleanup_before_linux() without disabling caches

Marek Vasut
2015-05-04T18:02:03Z

On Monday, May 04, 2015 at 07:49:16 PM, Simon Glass wrote:
> Hi Marek,

Hi Simon,

> On 4 May 2015 at 11:36, Marek Vasut <marex@denx.de> wrote:
> > On Monday, May 04, 2015 at 07:31:05 PM, Simon Glass wrote:
> >> This function is used before jumping to U-Boot, but in that case we
> >> don't always want to disable caches.
> >>
> >> Signed-off-by: Simon Glass <sjg@chromium.org>
> >> Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
> >
> > In which usecase exactly is this applicable please ? :)
>
> This is sort-of related to "Enable detecting when U-Boot is started
> from SPL" so there are some details there.
>
> I was able to get SPL to enable the cache and leave it on all the way
> through the verified boot flow (read-only and read-write U-Boot) and
> it saved about 600ms. So in short this refactor allows you to jump
> into U-Boot with the cache still enabled.

Sounds good, thanks for clarifying !

Best regards,
Marek Vasut