Skip to contentSkip to conversation

common: image.c: Fix CACHE: Misaligned operation output

PATCH In review Heiko Schocher 2 participants 2 messages Dec 14, 2017 – Dec 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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!

---
Tested on travis:
https://travis-ci.org/hsdenx/u-boot-i2c/builds/316257686

 common/image.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
common/image.c +2 -1
index 4bcf6b3128..d52d95a7a5 100644
@@ -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");
 		}
Signature · 1 line
2.13.6
#1 lore raw
Quoted 11 lines · Heiko Schocher

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!

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171218/7e36109c/attachment.sig>