[PATCH] ARM: reinsert ARCH_MULTI_V4 Kconfig option
jonas.jensen at gmail.com
Fri Dec 13 03:09:09 EST 2013
CPU_FA526 lacks thumb state support and doesn't get along with some
of the options enabled by ARCH_MULTI_V4T.
More specifically it doesn't get along with CPU_ARM920T:
One or a combination of the above cause trouble for userspace, the
following happens when kernel tries to exec init:
[ 11.790000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[ 11.790000] CPU: 0 PID: 1 Comm: init Not tainted 3.13.0-rc3-next-20131212+ #1332
[ 11.790000] [<c000d620>] (unwind_backtrace) from [<c000ba54>] (show_stack+0x18/0x1c)
[ 11.790000] [<c000ba54>] (show_stack) from [<c027f498>] (dump_stack+0x20/0x28)
[ 11.790000] [<c027f498>] (dump_stack) from [<c027ce80>] (panic+0x98/0x1ec)
[ 11.790000] [<c027ce80>] (panic) from [<c0016d4c>] (do_exit+0x80c/0x8e8)
[ 11.790000] [<c0016d4c>] (do_exit) from [<c0016ea4>] (do_group_exit+0x44/0xb8)
[ 11.790000] [<c0016ea4>] (do_group_exit) from [<c0022dbc>] (get_signal_to_deliver+0x2fc/0x5a4)
[ 11.790000] [<c0022dbc>] (get_signal_to_deliver) from [<c027ca38>] (do_signal+0xac/0x3e0)
[ 11.790000] [<c027ca38>] (do_signal) from [<c000b460>] (do_work_pending+0xcc/0xe8)
[ 11.790000] [<c000b460>] (do_work_pending) from [<c0009374>] (work_pending+0xc/0x20)
Reinsert ARCH_MULTI_V4 so it can be used on platforms with CPU_FA526.
Signed-off-by: Jonas Jensen <jonas.jensen at gmail.com>
I don't know how to handle this so I'm making it standalone for
your feedback (it was broken out from MOXA ART SoC series).
This is important for MOXA ART (and other FA526 platforms),
please have a look.
Applies to next-20131213
arch/arm/Kconfig | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index b64a8ef..4f88ff3 100644
@@ -863,6 +863,11 @@ menu "Multiple platform selection"
comment "CPU Core family selection"
+ bool "ARMv4 based platforms (FA526, StrongARM)"
+ depends on !ARCH_MULTI_V6_V7
+ select ARCH_MULTI_V4_V5
bool "ARMv4T based platforms (ARM720T, ARM920T, ...)"
depends on !ARCH_MULTI_V6_V7
More information about the linux-arm-kernel