Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3014051imm; Sun, 1 Jul 2018 10:18:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLqEecjBL0UisQxLhaBsLnOPfryHfTpkaV2jny32oo9qODv7OVL9TNnl17mqxUD6JMr0H3e X-Received: by 2002:a65:49c7:: with SMTP id t7-v6mr19239119pgs.23.1530465526236; Sun, 01 Jul 2018 10:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530465526; cv=none; d=google.com; s=arc-20160816; b=WHUiUy/HRNet2Wt1QtVNTeiY2CUfukgIINNaUH530CRz5Y4zJBkBi5vo44U3WeBRKg Yoj2BLavq1hnaB0tNeVPpgBsF/q2glQo0QA8YdX7E/g/fTuDxhg2aH1zosdXeQmpwEl+ bGqW8iQA/i/yidlvqich8CURYd/WgYcUW/h+ULewicF9kT2sbvIMiHR7aqocPSUS1nRo sldXJTOK58g6Sri5L/LK8IP9pdmxuCp4Su60IvLwJ3K8ZFFXy3XKa2yd0eRKmLhIXtMt CYiAYB44EyXJ+b6Si4enksmLt6H87f5GWtl7ytNSuFCcfoK/2DqwviII5PkF6kX64DBS 4D+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=oqOvQ1evz1dUaqBy3lSAbpCzAmR8DyYL+7oi6liy58o=; b=KAJ3jZZYNbzg7/73CdsImf+2K56Sl44efcP2tup1JtpE3nGbqJNCc247uOPe/JE2fy Lb0Kud1d5affWmkDcbLYP6K564jgVynlNKJlgihqa3id/6U5Di/Adwuyfmw9EQ2NrpMg 5K9uD9b+rPhxVu8ah/WrvQ2nZd4BXqYqzh8SGiFnwaPPkCja3mnCLzOMggTba2wpKjDz IPLwb7+Ou3YmqaZEscGav/okhr4eHHOctNCQCCIO/l893JxCOQMFyuDU3VCSW4qAWdBI AnK1GZEYIP4tl1Om7cpTVWpd2kRpPbD0TcZfYyRqc5qEHJpN7XLreqcLsFhyd6vO7KQn +Jwg== 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 a5-v6si3447738pll.412.2018.07.01.10.18.31; Sun, 01 Jul 2018 10:18:46 -0700 (PDT) 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 S1031707AbeGAQjN (ORCPT + 99 others); Sun, 1 Jul 2018 12:39:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36842 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031202AbeGAQjI (ORCPT ); Sun, 1 Jul 2018 12:39:08 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 575A992B; Sun, 1 Jul 2018 16:39:07 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Jeanson , Mathieu Desnoyers , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Kumar Gala , Vakul Garg , Scott Wood , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 4.17 057/220] powerpc/e500mc: Set assembler machine type to e500mc Date: Sun, 1 Jul 2018 18:21:21 +0200 Message-Id: <20180701160910.725914226@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable 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 CC: stable@vger.kernel.org Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/Makefile | 1 + 1 file changed, 1 insertion(+) --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -251,6 +251,7 @@ cpu-as-$(CONFIG_4xx) += -Wa,-m405 cpu-as-$(CONFIG_ALTIVEC) += $(call as-option,-Wa$(comma)-maltivec) cpu-as-$(CONFIG_E200) += -Wa,-me200 cpu-as-$(CONFIG_PPC_BOOK3S_64) += -Wa,-mpower4 +cpu-as-$(CONFIG_PPC_E500MC) += $(call as-option,-Wa$(comma)-me500mc) KBUILD_AFLAGS += $(cpu-as-y) KBUILD_CFLAGS += $(cpu-as-y)