diff mbox

[05/10] ARM: realview: remove private barrier implementation

Message ID CACRpkdYnxC3XhDZFFZMVQQGXtwCQ3kcUGaC99VRc=BuKF6pSow@mail.gmail.com
State New
Headers show

Commit Message

Linus Walleij Dec. 10, 2015, 9:09 a.m. UTC
On Wed, Nov 25, 2015 at 5:32 PM, Arnd Bergmann <arnd@arndb.de> wrote:

> The realview barrier implementation tries to avoid calling outer_sync in order

> to not lock up as a result of a bug in the l220 cache controller.

>

> This gets in the way of the multiplatform support, but we can still remove

> it if we make sure that the outer_sync function never gets called, by replacing

> the function pointer with NULL, right after initialization.

>

> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

> Acked-by: Linus Walleij <linus.walleij@linaro.org>


When testing I see that this patch does not compile, but later patches
remove the offending code so it compiles again.

It needs this:


I've fixed it up in my tree, but I don't know yet if I'm getting anywhere with
this as my PB11MPCore refuse to boot with these patches. I'm trying to
find the problem...

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
diff mbox

Patch

diff --git a/arch/arm/mach-realview/realview_eb.c
b/arch/arm/mach-realview/realview_eb.c
index 4d29535abeba..1a2a89708fb7 100644
--- a/arch/arm/mach-realview/realview_eb.c
+++ b/arch/arm/mach-realview/realview_eb.c
@@ -38,6 +38,7 @@ 
 #include <asm/hardware/cache-l2x0.h>
 #include <asm/smp_twd.h>
 #include <asm/system_info.h>
+#include <asm/outercache.h>

 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
diff --git a/arch/arm/mach-realview/realview_pb11mp.c
b/arch/arm/mach-realview/realview_pb11mp.c
index f9817bb5d8fa..5bb460300b6a 100644
--- a/arch/arm/mach-realview/realview_pb11mp.c
+++ b/arch/arm/mach-realview/realview_pb11mp.c
@@ -42,6 +42,7 @@ 
 #include <asm/mach/flash.h>
 #include <asm/mach/map.h>
 #include <asm/mach/time.h>
+#include <asm/outercache.h>

 #include <mach/board-pb11mp.h>
 #include <mach/irqs.h>