u-boot/arch/arm/mach-uniphier
Hans de Goede c09d29057a arm: Replace v7_maint_dcache_all(ARMV7_DCACHE_CLEAN_INVAL_ALL) with asm code
v7_maint_dcache_all() does not work reliable when build with gcc6,
see: https://bugzilla.redhat.com/show_bug.cgi?id=1318788

While debugging this I learned that v7_maint_dcache_all() is unreliable
when build with gcc5 too when it is marked as noinline.

This commit fixes the reliability issues by replacing the C-code with
the ready to use asm implementation from the kernel.

Given that this code when written as C-code clearly is quite fragile
(also see the existing comments about the C-code being the way it is
 to get optimal assembly) and that we have a proven asm alternative,
I believe that this is the best solution.

Note that we actually already had a copy of the kernel's
v7_flush_dcache_all() before this commit in
arch/arm/mach-uniphier/arm32/lowlevel_init.S.

This commit moves that code arch/arm/cpu/armv7/cache_v7_asm.S, renames
it to __v7_flush_dcache_all(), and adds a v7_flush_dcache_all() wrapper
which saves / restores the clobbered registers for use from C-code.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2016-04-11 20:48:26 -04:00
..
arm32 arm: Replace v7_maint_dcache_all(ARMV7_DCACHE_CLEAN_INVAL_ALL) with asm code 2016-04-11 20:48:26 -04:00
bcu ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
boot-mode ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
clk cosmetic: Fix typos "privide" 2016-04-01 00:59:47 +09:00
debug-uart ARM: uniphier: support Debug UART 2016-03-24 01:45:41 +09:00
dram ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
early-clk cosmetic: Fix typos "privide" 2016-04-01 00:59:47 +09:00
early-pinctrl ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
init ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
memconf ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
pinctrl ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
pll ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
sbc ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
board_common.c ARM: uniphier: move headers out of include/mach directory 2016-01-13 01:54:53 +09:00
board_early_init_f.c ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
board_early_init_r.c ARM: uniphier: move headers out of include/mach directory 2016-01-13 01:54:53 +09:00
board_late_init.c ARM: uniphier: add support for PH1-Pro4 Ace and Sanji boards 2016-02-14 17:07:46 +09:00
boards.c ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
cpu_info.c ARM: uniphier: rename PH1-LD10/PH1-sLD11 to PH1-LD20/PH1-LD11 2016-02-29 03:50:16 +09:00
dram_init.c ARM: uniphier: adjust dram_init() and dram_init_banksize() for ARM64 2016-04-01 00:59:47 +09:00
init.h ARM: uniphier: rename function names ph1_* to uniphier_* 2016-04-01 00:59:47 +09:00
Kconfig ARM: uniphier: enable DDR PHY parameter dump commands by default 2016-03-24 01:45:20 +09:00
Makefile ARM: uniphier: support Debug UART 2016-03-24 01:45:41 +09:00
micro-support-card.c ARM: uniphier: add work-around to support Micro Support Card v3.6.10 2016-03-24 01:45:19 +09:00
micro-support-card.h ARM: uniphier: move headers out of include/mach directory 2016-01-13 01:54:53 +09:00
print_misc_info.c ARM: uniphier: move headers out of include/mach directory 2016-01-13 01:54:53 +09:00
reset.c ARM: uniphier: move headers out of include/mach directory 2016-01-13 01:54:53 +09:00
sc-regs.h ARM: uniphier: drop PH1- prefix from CONFIG options and file names 2016-03-24 01:42:13 +09:00
sc64-regs.h ARM: uniphier: add System Control register macros for ARMv8 SoCs 2016-03-24 01:45:22 +09:00
sg-regs.h ARM: uniphier: add sg_set_iectrl() function 2016-03-24 01:45:21 +09:00
soc-info.h ARM: uniphier: drop PH1- prefix from CONFIG options and file names 2016-03-24 01:42:13 +09:00
soc_info.c ARM: uniphier: drop PH1- prefix from CONFIG options and file names 2016-03-24 01:42:13 +09:00