From patchwork Fri Dec 13 08:09:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Jensen X-Patchwork-Id: 3338841 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3AF2AC0D4A for ; Fri, 13 Dec 2013 08:10:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 17E20207D3 for ; Fri, 13 Dec 2013 08:10:07 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D35CC207CE for ; Fri, 13 Dec 2013 08:10:05 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrNos-0008RZ-JO; Fri, 13 Dec 2013 08:09:58 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrNoq-0007rv-4w; Fri, 13 Dec 2013 08:09:56 +0000 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrNom-0007qm-8L for linux-arm-kernel@lists.infradead.org; Fri, 13 Dec 2013 08:09:53 +0000 Received: by mail-la0-f41.google.com with SMTP id eo20so1144027lab.28 for ; Fri, 13 Dec 2013 00:09:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=+Q7O720KGvqhWiF6M/Dj0NwQrkyFv1SvTowx1SLwglg=; b=D02OcdTQOwg4+7vxmksOZ1QkqyNyRrsD56c+PQdvCRYpXbqdtHrmIPMazlvFvIn6Yb 5v2sfGzpgoBve4ijxJAghguV+dCqtWvZBe40Pc7Cfqcq9ujyOk9v6jHrfjn3zNZsC/Wf 2wleTq4rr/6zAtmDJuojVvoZaiPu7/o1vwfYiRQvPp9VFk4Dna83k3R3YOBRRnzFfgOp 5+sQjcvp2lIPXaz60q757iDEhpEX1T7XPFj6LjRTCmPrPszGCBz+nwRagQewQMO4sy4L wFDaNSpOiojq1KByFZb2aZQ7boh//cwKTmAcWE0lGVjyU7eSgOiEdiNXxoPb0kW/L/o8 mY9A== X-Received: by 10.152.1.234 with SMTP id 10mr700557lap.19.1386922170201; Fri, 13 Dec 2013 00:09:30 -0800 (PST) Received: from Ildjarn.ath.cx (static-213-115-41-10.sme.bredbandsbolaget.se. [213.115.41.10]) by mx.google.com with ESMTPSA id e10sm2467115laa.6.2013.12.13.00.09.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 13 Dec 2013 00:09:29 -0800 (PST) From: Jonas Jensen To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: reinsert ARCH_MULTI_V4 Kconfig option Date: Fri, 13 Dec 2013 09:09:09 +0100 Message-Id: <1386922149-4561-1-git-send-email-jonas.jensen@gmail.com> X-Mailer: git-send-email 1.8.2.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131213_030952_455864_1D95E0B7 X-CRM114-Status: GOOD ( 10.57 ) X-Spam-Score: -2.0 (--) Cc: linux@arm.linux.org.uk, arnd@arndb.de, ulli.kroll@googlemail.com, linux-kernel@vger.kernel.org, Jonas Jensen , arm@kernel.org, olof@lixom.net X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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: CPU_ABRT_EV4T CPU_CACHE_V4WT CPU_COPY_V4WB CPU_TLB_V4WBI 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] [ 11.790000] CPU: 0 PID: 1 Comm: init Not tainted 3.13.0-rc3-next-20131212+ #1332 [ 11.790000] [] (unwind_backtrace) from [] (show_stack+0x18/0x1c) [ 11.790000] [] (show_stack) from [] (dump_stack+0x20/0x28) [ 11.790000] [] (dump_stack) from [] (panic+0x98/0x1ec) [ 11.790000] [] (panic) from [] (do_exit+0x80c/0x8e8) [ 11.790000] [] (do_exit) from [] (do_group_exit+0x44/0xb8) [ 11.790000] [] (do_group_exit) from [] (get_signal_to_deliver+0x2fc/0x5a4) [ 11.790000] [] (get_signal_to_deliver) from [] (do_signal+0xac/0x3e0) [ 11.790000] [] (do_signal) from [] (do_work_pending+0xcc/0xe8) [ 11.790000] [] (do_work_pending) from [] (work_pending+0xc/0x20) Reinsert ARCH_MULTI_V4 so it can be used on platforms with CPU_FA526. Signed-off-by: Jonas Jensen --- Notes: 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 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -863,6 +863,11 @@ menu "Multiple platform selection" comment "CPU Core family selection" +config ARCH_MULTI_V4 + bool "ARMv4 based platforms (FA526, StrongARM)" + depends on !ARCH_MULTI_V6_V7 + select ARCH_MULTI_V4_V5 + config ARCH_MULTI_V4T bool "ARMv4T based platforms (ARM720T, ARM920T, ...)" depends on !ARCH_MULTI_V6_V7