linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Two new breakages since Thursday
@ 2015-04-05  8:06 Russell King - ARM Linux
  2015-04-05 10:12 ` Alexandre Belloni
  2015-04-11  9:00 ` Russell King - ARM Linux
  0 siblings, 2 replies; 14+ messages in thread
From: Russell King - ARM Linux @ 2015-04-05  8:06 UTC (permalink / raw)
  To: linux-arm-kernel

Two new breakages have appeared since Thursday.  The first affects both
ARM and ARM64 builds (a missing file), the second only ARM builds.

arch/arm64/boot/dts/mediatek/mt8173-pinfunc.h:18:40: fatal error: dt-bindings/pinctrl/mt65xx.h: No such file or directory
arch/arm/boot/dts/mt8135-pinfunc.h:18:40: fatal error: dt-bindings/pinctrl/mt65xx.h: No such file or directory
arch/arm/mach-at91/pm_suspend.S:143: Error: selected processor does not support ARM mode `dsb'

ARM64 breaks on a defconfig build, ARM breaks with these errors on
an allmodconfig build.

The first two are due to the mediatek patches merged via the arm-soc
tree.  The second is due to:

commit 20567658b8f010eea287087bfdbeb25757801aed
Author: Wenyou Yang <wenyou.yang@atmel.com>
Date:   Mon Mar 9 11:53:46 2015 +0800

    ARM: at91/pm_suspend: add the WFI instruction support for ARMv7

which looks to me like completely the wrong solution:

+       .macro at91_cpu_idle
+
+#if defined(CONFIG_CPU_V7)
+       mov     tmp1, #AT91_PMC_PCK
+       str     tmp1, [pmc, #AT91_PMC_SCDR]
+
+       dsb
+
+       wfi             @ Wait For Interrupt
+#else
+       mcr     p15, 0, tmp1, c7, c0, 4
+#endif
+
+       .endm

So, if we build a kernel with ARMc6 and ARMv7 CPUs, AT91 ends up using
ARMv7-only instructions in this function, which will cause an illegal
instruction exception on ARMv6 CPUs.

-- 
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.

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

end of thread, other threads:[~2015-04-15 20:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-05  8:06 Two new breakages since Thursday Russell King - ARM Linux
2015-04-05 10:12 ` Alexandre Belloni
2015-04-05 19:50   ` Nicolas Ferre
2015-04-11  9:00 ` Russell King - ARM Linux
2015-04-13 16:18   ` Yingjoe Chen
2015-04-13 22:41     ` Arnd Bergmann
2015-04-14  9:26       ` Russell King - ARM Linux
2015-04-14  9:34         ` Arnd Bergmann
2015-04-14 14:28           ` Tony Lindgren
2015-04-14 14:59             ` Arnd Bergmann
2015-04-14 15:05               ` Tony Lindgren
2015-04-14 16:21                 ` Tony Lindgren
2015-04-15 19:50                   ` Arnd Bergmann
2015-04-15 20:00                     ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).