From: Heiko Schocher Date: Thu, 14 Dec 2017 10:19:22 +0000 (+0100) Subject: common: image.c: Fix CACHE: Misaligned operation output X-Git-Tag: v2018.01-rc2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1a1e7072e3f5499c919fadf949ddb5ce654a17a3;p=oweals%2Fu-boot.git common: image.c: Fix CACHE: Misaligned operation output When booting a itb file with a Ramdisk on a imx6 based board, U-Boot drops the warning: Loading Kernel Image ... OK Loading Ramdisk to 4ecf1000, end 4ef8b11f ... \ CACHE: Misaligned operation at range [4ecf1000, 4ef8b11f] Fix it! Signed-off-by: Heiko Schocher Tested-by: Ayoub Zaki --- diff --git a/common/image.c b/common/image.c index 96c5f58e4c..e9609cd4f7 100644 --- a/common/image.c +++ b/common/image.c @@ -1186,7 +1186,8 @@ int boot_ramdisk_high(struct lmb *lmb, ulong rd_data, ulong rd_len, * AMP boot scenarios in which we might not be * HW cache coherent */ - flush_cache((unsigned long)*initrd_start, rd_len); + flush_cache((unsigned long)*initrd_start, + ALIGN(rd_len, ARCH_DMA_MINALIGN)); #endif puts("OK\n"); }