[U-Boot] [PATCH] cmd: load: align cache flush

Prevent cache misalignment message by ensuring that a whole cache line is flushed.
Signed-off-by: Chris Packham judge.packham@gmail.com ---
cmd/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/load.c b/cmd/load.c index 65557e4f9ec3..77c3359b29b7 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -997,7 +997,7 @@ static ulong load_serial_ymodem(ulong offset, int mode) xyzModem_stream_terminate(false, &getcxmodem);
- flush_cache(offset, size); + flush_cache(offset, ALIGN(size, ARCH_DMA_MINALIGN));
printf("## Total Size = 0x%08x = %d Bytes\n", size, size); setenv_hex("filesize", size);

On 25.10.2016 09:22, Chris Packham wrote:
Prevent cache misalignment message by ensuring that a whole cache line is flushed.
Signed-off-by: Chris Packham judge.packham@gmail.com
cmd/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/load.c b/cmd/load.c index 65557e4f9ec3..77c3359b29b7 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -997,7 +997,7 @@ static ulong load_serial_ymodem(ulong offset, int mode) xyzModem_stream_terminate(false, &getcxmodem);
- flush_cache(offset, size);
flush_cache(offset, ALIGN(size, ARCH_DMA_MINALIGN));
printf("## Total Size = 0x%08x = %d Bytes\n", size, size); setenv_hex("filesize", size);
Reviewed-by: Stefan Roese sr@denx.de
Thanks, Stefan

On Tue, Oct 25, 2016 at 08:22:48PM +1300, Chris Packham wrote:
Prevent cache misalignment message by ensuring that a whole cache line is flushed.
Signed-off-by: Chris Packham judge.packham@gmail.com Reviewed-by: Stefan Roese sr@denx.de
Applied to u-boot/master (before v2016.11-rc3), thanks!
participants (3)
-
Chris Packham
-
Stefan Roese
-
Tom Rini