rv1126-uboot/disk
Lukasz Majewski 32fba03389 UPSTREAM: gpt: Use cache aligned buffers for gpt_h and gpt_e
Before this patch one could receive following errors when executing
"gpt write" command on machine with cache enabled:

display5 factory > gpt write mmc ${mmcdev} ${partitions}
Writing GPT:
CACHE: Misaligned operation at range [4ef8f7f0, 4ef8f9f0]
CACHE: Misaligned operation at range [4ef8f9f8, 4ef939f8]
CACHE: Misaligned operation at range [4ef8f9f8, 4ef939f8]
CACHE: Misaligned operation at range [4ef8f7f0, 4ef8f9f0]
success!

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.

Change-Id: I13782d942b327d3941de6446b2cbc49a3d7901dc
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit bb021013ba1ea4f7ade55ed932ab9d807e8a09ea)
2018-01-17 15:27:28 +08:00
..
Kconfig disk: part_rockchip: add new partition type for rockchip parameter 2017-12-08 18:13:25 +08:00
Makefile disk: part_rockchip: add new partition type for rockchip parameter 2017-12-08 18:13:25 +08:00
part.c UPSTREAM: fs: add fs_readdir() 2018-01-16 18:16:48 +08:00
part_amiga.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
part_amiga.h disk: convert CONFIG_ISO_PARTITION to Kconfig 2017-01-28 08:47:35 -05:00
part_dos.c UPSTREAM: part: extract MBR signature from partitions 2018-01-16 18:16:48 +08:00
part_dos.h
part_efi.c UPSTREAM: gpt: Use cache aligned buffers for gpt_h and gpt_e 2018-01-17 15:27:28 +08:00
part_iso.c UPSTREAM: iso: Reduce verbosity on test and info calls 2018-01-17 15:27:28 +08:00
part_iso.h iso: Make little endian and 64bit safe 2016-04-18 17:11:33 -04:00
part_mac.c part: mac: Suppress the error message after reading ddb 2017-09-07 10:44:33 -04:00
part_mac.h disk: convert CONFIG_ISO_PARTITION to Kconfig 2017-01-28 08:47:35 -05:00
part_rkparm.c rockchip: fix blk_dread return value check error 2017-12-28 15:23:35 +08:00