u-boot-brain/fs
Neil Armstrong 34dd853ce5 fat: Use cache aligned buffers for fat_opendir
Before this patch one could receive following errors when executing "fatls"
command on machine with cache enabled (ex i.MX6Q) :

=> 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

To alleviate this problem - the calloc()s have been replaced with
malloc_cache_aligned() and memset().

After those changes the buffers are properly aligned (with both start
address and size) to SoC cache line.

Fixes: 09fa964bba ("fs/fat: Fix 'CACHE: Misaligned operation at range' warnings")
Suggested-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
2017-11-29 22:36:59 -05:00
..
btrfs fs: btrfs: Remove a foreign language note 2017-10-16 09:42:51 -04:00
cbfs fs: Kconfig: Add a separate config for FS_CBFS 2017-04-30 13:40:57 -04:00
cramfs fs: Kconfig: Add a separate option for FS_CRAMFS 2017-04-30 13:40:59 -04:00
ext4 ext4: recover from filesystem corruption when reading 2017-11-20 09:58:31 +01:00
fat fat: Use cache aligned buffers for fat_opendir 2017-11-29 22:36:59 -05:00
jffs2 fs/jffs2/mini_inflate.c: use "static inline" instead of "inline" 2017-10-16 09:42:51 -04:00
reiserfs fs: Create a common fs_devread for ext4/reiserfs/zfs 2017-10-02 21:51:50 -04:00
sandbox sandboxfs: Fix resource leak 2016-12-02 10:37:47 -07:00
ubifs ubifs: no NULL check needed before free 2017-11-20 10:13:33 +01:00
yaffs2 yaffs2: rework yaffs_new_obj_id 2017-11-20 20:18:38 -05:00
zfs fs: Create a common fs_devread for ext4/reiserfs/zfs 2017-10-02 21:51:50 -04:00
fs_internal.c fs: avoid possible NULL dereference in fs_devread 2017-11-29 22:30:50 -05:00
fs.c fs: Set .opendir to fs_opendir_unsupported for btrfs 2017-10-16 09:42:51 -04:00
Kconfig fs: btrfs: Add U-Boot fs handlers. 2017-10-02 21:52:18 -04:00
Makefile fs: btrfs: Add U-Boot fs handlers. 2017-10-02 21:52:18 -04:00