From patchwork Sat Feb 17 05:01:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 10225953 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 19AC3601D4 for ; Sat, 17 Feb 2018 05:01:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 092792932D for ; Sat, 17 Feb 2018 05:01:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1D5829330; Sat, 17 Feb 2018 05:01:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 93B062932D for ; Sat, 17 Feb 2018 05:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=TFrHDl/RcaPwBgfh8BseoiGRBi6ep7sHq+2Jy8zqRCg=; b=t6s 00WLWeVC9IN2U/vZBTTbvA4qwmsh11pZ2t1uCzz4g8cHRvcTwnhJyS2mm/NIEQI0QjphoW0OmYp+u Ui/HIgzF73nJk1Gr34qDJUKCdOOKFyKWpPRfvGa2AgbRFnnRNUaxIOitTgkM0Rrwf1TwNVvZ2eNUj drgzqcz+dkc+Athpx+OBux5i7GzTYueTus3L3pJR/eSpaYnxo2ZgAh69FR+++DDoeFDqu4YJ4BKbg Ky9sz6P5PT1hTCpFwdgbOB7DykhPnAGtYh5Bx4TbO/dDL0v6jJzMGoHCMn0Ov0dINrw1EYGykgBtx 2fc0S93j4OIwOABTc/m38ZQFDX6fC2Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1emucw-0001k4-L2; Sat, 17 Feb 2018 05:01:34 +0000 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76] helo=wens.csie.org) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1emucs-0001i5-2c for linux-arm-kernel@lists.infradead.org; Sat, 17 Feb 2018 05:01:31 +0000 Received: by wens.csie.org (Postfix, from userid 1000) id 64A625FA10; Sat, 17 Feb 2018 13:01:13 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard Subject: [PATCH] ARM: sunxi: Fix multi-cluster SMP support compilation in multi v6/v7 configs Date: Sat, 17 Feb 2018 13:01:12 +0800 Message-Id: <20180217050112.14619-1-wens@csie.org> X-Mailer: git-send-email 2.16.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180216_210130_355412_E6FA4F8A X-CRM114-Status: GOOD ( 10.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chen-Yu Tsai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Various parts of the assembly code used in the multi-cluster SMP support requires ARMv7-A. If the kernel config also has multi v6 support enabled, Kbuild defaults to building for armv6k, which does not support some of the instructions we use. Configure the Makefile such that the multi-cluster SMP code is always built for ARMv7-A. This is also what mach-exynos does for their MC-SMP code. Signed-off-by: Chen-Yu Tsai --- This addresses "[sunxi:sunxi/core-for-4.17 1/4] /tmp/ccSQM2rD.s:438: Error: selected processor does not support `isb' in ARM mode" reported by the kbuild test robot for arm-allmodconfig. Should we apply it, or squash it in the original patch? --- arch/arm/mach-sunxi/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/Makefile b/arch/arm/mach-sunxi/Makefile index 3e741e959c7c..3c2c4384357a 100644 --- a/arch/arm/mach-sunxi/Makefile +++ b/arch/arm/mach-sunxi/Makefile @@ -1,3 +1,4 @@ obj-$(CONFIG_ARCH_SUNXI) += sunxi.o obj-$(CONFIG_ARCH_SUNXI_MC_SMP) += mc_smp.o +CFLAGS_mc_smp.o += -march=armv7-a obj-$(CONFIG_SMP) += platsmp.o