Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3335710imu; Sun, 11 Nov 2018 12:38:34 -0800 (PST) X-Google-Smtp-Source: AJdET5dPA5SAwMeZZyo58kMxLrs4OydEFLNnw37jYESVcYE0pLDS3egiY1A0o3oY/uXFw8vdKo9T X-Received: by 2002:a62:250:: with SMTP id 77-v6mr17975616pfc.16.1541968714141; Sun, 11 Nov 2018 12:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968714; cv=none; d=google.com; s=arc-20160816; b=zoFgr4rieqSi1fWC4Qz+37HtfWUVmZJY/rafrQ/CHD3kaALz1Kzbun0iRiCPZLk+cs EDpgV6ZdQf4Rapv/PXr+XIoGPRwR2y6C02oAyiGqQHHT6fp/QvGScTC1RUGJ8XX/wWjr xYlAc623DdX/r43AmImeF0q3Tj1vN6/TQxlhWsE+kzWXYQhsBJxPISvfcrPwNIwut9Pk XqGLCGcpEZ6y8WWjDlQA7jwXugJSsGUBZrphKNqZIUVKvj1zA6v4ir6fSVbKQMQutZ0e aILcpgBnRww+aeRyVRteTDIvuhX4VqjOrrNOtnFOuPdqqaIbC1iyjwWKaKgJIi/uNoWy 0ykg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=P06KJCxQltRSAxIZi4Kbyqo29Zt6WV9be1KQhDqMsz0=; b=cmtvJN1SCL4y1Lgyt3Z+QCYh7Wnx3joyf1MHCbZVMmW0+5xSN84YkPNz3GN3rttCG+ UP4P/EQ1SLOrW4d92uKHaLaQHuF1Bmi81dHp6N16wLpnSjmOcpWdMhTtbgK86jWMNkRM 6cQyqSSv+LGeB/upuPUcnMmren3X9MnoypOwt4jaeNHdQcClufeev3p5hDsRbNjgH1Bo Xk8BUgtmKO+y71JsPCQ+h8mwofOoyWk7h1abigOAW52C3W2WHJN2mjNniQSdDB0VWuYL linXtL1bFRi6O9t1U38J20hv5foH9Vo1EXTUJXRizPqpXMgykWi5DqLgU9mWA1oqMQNq JOJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12-v6si15374298pfn.111.2018.11.11.12.38.18; Sun, 11 Nov 2018 12:38:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730670AbeKLG1Q (ORCPT + 99 others); Mon, 12 Nov 2018 01:27:16 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49718 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730067AbeKLFsK (ORCPT ); Mon, 12 Nov 2018 00:48:10 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsT-0000oF-Aq; Sun, 11 Nov 2018 19:58:37 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsS-0001ZD-PE; Sun, 11 Nov 2018 19:58:36 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, linuxppc-dev@lists.ozlabs.org, "Scott Wood" , "Kumar Gala" , "Benjamin Herrenschmidt" , "Vakul Garg" , "Michael Jeanson" , "Michael Ellerman" , "Mathieu Desnoyers" , "Paul Mackerras" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 153/366] powerpc/e500mc: Set assembler machine type to e500mc In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Michael Jeanson commit 69a8405999aa1c489de4b8d349468f0c2b83f093 upstream. In binutils 2.26 a new opcode for the "wait" instruction was added for the POWER9 and has precedence over the one specific to the e500mc. Commit ebf714ff3756 ("powerpc/e500mc: Add support for the wait instruction in e500_idle") uses this instruction specifically on the e500mc to work around an erratum. This results in an invalid instruction in idle_e500 when we build for the e500mc on bintutils >= 2.26 with the default assembler machine type. Since multiplatform between e500 and non-e500 is not supported, set the assembler machine type globaly when CONFIG_PPC_E500MC=y. Signed-off-by: Michael Jeanson Reviewed-by: Mathieu Desnoyers CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Michael Ellerman CC: Kumar Gala CC: Vakul Garg CC: Scott Wood CC: Mathieu Desnoyers CC: linuxppc-dev@lists.ozlabs.org CC: linux-kernel@vger.kernel.org Signed-off-by: Michael Ellerman [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- arch/powerpc/Makefile | 1 + 1 file changed, 1 insertion(+) --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -205,6 +205,7 @@ endif cpu-as-$(CONFIG_4xx) += -Wa,-m405 cpu-as-$(CONFIG_ALTIVEC) += -Wa,-maltivec cpu-as-$(CONFIG_E200) += -Wa,-me200 +cpu-as-$(CONFIG_PPC_E500MC) += $(call as-option,-Wa$(comma)-me500mc) KBUILD_AFLAGS += $(cpu-as-y) KBUILD_CFLAGS += $(cpu-as-y)