public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] v7_outer_cache_inval_range error on iMX6Q
@ 2017-11-23 15:18 Neil Armstrong
  2017-11-23 19:55 ` Lukasz Majewski
  0 siblings, 1 reply; 3+ messages in thread
From: Neil Armstrong @ 2017-11-23 15:18 UTC (permalink / raw)
  To: u-boot

Hi,

I'm having a strange issue while porting the DART-MX6 and it's carrier board to mainline U-Boot.

Everything works as expected except "fatls" where I get the following output :

=> fatls mmc 0:1
CACHE: Misaligned operation at range [4f59dfc8, 4f59e7c8]
CACHE: Misaligned operation at range [4f59dfc8, 4f59e7c8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4f59dfc8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4f59e7c8
CACHE: Misaligned operation at range [4f59dfc8, 4f59e7c8]
CACHE: Misaligned operation at range [4f59dfc8, 4f59e7c8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4f59dfc8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4f59e7c8

0 file(s), 0 dir(s)

But :
=> fatinfo mmc 0:1
Interface:  MMC
  Device 0: Vendor: Man 000074 Snr 62aee901 Rev: 4.2 Prod: USD  \x10
            Type: Removable Hard Disk
            Capacity: 7695.0 MB = 7.5 GB (15759360 x 512)
Filesystem: FAT16 "boot       "

And it contains :
    41541   imx6q-var-dt6customboard.dtb
  6535440   uImage

And even fatload works :
=> fatload mmc 0:1 $loadaddr uIMage
reading uIMage
6535440 bytes read in 322 ms (19.4 MiB/s)

Same for mmc0 (SDCard) and mmc1 (eMMC).

I tested against v2017.11 and master (16fa2eb95172e63820ee5f3d4052f3362a6de84e) with :
gcc-linaro-4.9.4-2017.01-x86_64_arm-eabi
gcc-linaro-7.1.1-2017.08-x86_64_arm-linux-gnueabihf

same behaviour.

And same behaviour when reverting the following :
af609e3 fs/fat: Check malloc return values and fix memory leaks
09fa964 fs/fat: Fix 'CACHE: Misaligned operation at range' warnings
8df8731 fs/fat: Fix pathnames using '..' that lead to the root directory
2460098 fs/fat: Reduce stack usage

Do someone have an idea except disabling data cache ?

Thanks,
Neil

-- 
Neil Armstrong
Embedded Linux Software Engineer
BayLibre - At the Heart of Embedded Linux
www.baylibre.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-24  8:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-23 15:18 [U-Boot] v7_outer_cache_inval_range error on iMX6Q Neil Armstrong
2017-11-23 19:55 ` Lukasz Majewski
2017-11-24  8:45   ` Neil Armstrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox