Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8745746imu; Tue, 4 Dec 2018 13:29:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/URoYbhsCfvgplSPEp68gL5PTQg70my2gjvnJQmOC/TWvhxTqjdDquNJkYF6CokKsuFg5VB X-Received: by 2002:a62:4e83:: with SMTP id c125mr21896329pfb.101.1543958950055; Tue, 04 Dec 2018 13:29:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543958950; cv=none; d=google.com; s=arc-20160816; b=ekdd6ZdgYAzUwF2CUc8KAUQdRCg3uTCLUZOmDyxYeTMd4L2YUwaiNjgWW+AYtgjnSv LjxwK3uv2bDRaAbnu6hEwdFMdr9dqOjd+3bWwi9n9J7RfWQQQxuxqf0BWSyQnGacSwNA 0a5s9lgRY90vNSRdhlzM3YjwJV9U1OzqQzM1PB2YM0oPgrQ7PunfhRKDSoLblILZU2BS OQN997z8BvfBZ555C1noCXmEyU0YTnV3qZt8+eSJfldoENVeFgsyTNI1Y39wR8ZdwX+D QnJmLH4ZfozFPrRt3YAW6F52vCkWk4cHoghFQOW/6IRY3BQDk+/RYCICpWHb4S7Lr+O5 I3kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=/QXM4BkMoDhqAQ90IJlyaKTFPqP+IySpODRkf4CiVxk=; b=EszQ73SJgkwP2FZ0ltoRF7sspJMGiIskWHPRrO8TtJfmHHG3zDxG2mbeMeDOS3kvqf 3Vn1AFIlWmSdhQ8cJCFk+Ddq4toehMBwD02PcmOhB5LJavNuMnMDmF3ujEFeXZcZ7NnV sbYQ0f6SmVZouqA+n+FuAQk1N3Z+OC5UzJlQL/eMLzAEwXhAq1b3Eb3JefOMnoea4Drd PPx4zYW6m9l7hLgFSzoAJDvGGOlACK5ama8s4Oe2ri1Y/AHd8Wj/UOMjHTYvrsY10QU4 9XwOlGJTevg2xJNOC890IIxu9k6M9NXci5dgao7bDhzmSTjsVhrxVknG9gILwVnOQOwl WFFg== 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 v35si16624828pgl.130.2018.12.04.13.28.55; Tue, 04 Dec 2018 13:29:10 -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 S1726171AbeLDV2P (ORCPT + 99 others); Tue, 4 Dec 2018 16:28:15 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:10543 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725886AbeLDV2P (ORCPT ); Tue, 4 Dec 2018 16:28:15 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 438Zj91vr9z9v0TP; Tue, 4 Dec 2018 22:28:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id EtCcqisf8DU8; Tue, 4 Dec 2018 22:28:13 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 438Zj916d5z9v0TN; Tue, 4 Dec 2018 22:28:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4F57C8B825; Tue, 4 Dec 2018 22:28:13 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id bLVWMpAgvj2x; Tue, 4 Dec 2018 22:28:13 +0100 (CET) Received: from [192.168.232.3] (unknown [192.168.232.3]) by messagerie.si.c-s.fr (Postfix) with ESMTP id C144A8B800; Tue, 4 Dec 2018 22:28:11 +0100 (CET) Subject: Re: [PATCH] powerpc/32: Move the old 6xx -mcpu logic before the TARGET_CPU logic To: Mathieu Malaterre , Michael Ellerman Cc: Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20181204205345.9514-1-malat@debian.org> From: Christophe LEROY Message-ID: Date: Tue, 4 Dec 2018 22:28:11 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <20181204205345.9514-1-malat@debian.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 04/12/2018 à 21:53, Mathieu Malaterre a écrit : > The code: > > ifdef CONFIG_6xx > KBUILD_CFLAGS += -mcpu=powerpc > endif > > was added in 2006 in commit f48b8296b315 ("[PATCH] powerpc32: Set cpu > explicitly in kernel compiles"). This change was acceptable since the > TARGET_CPU logic was 64-bit only. > > Since commit 0e00a8c9fd92 ("powerpc: Allow CPU selection > also on PPC32") this logic is no longer acceptable after the TARGET_CPU > specific. It currently appends -mcpu=powerpc at the end of the command > line, after any TARGET_CPU specific: > > gcc -Wp,-MD,init/.do_mounts.o.d ... > -mcpu=powerpc -mbig-endian -m32 ... > -mcpu=e300c2 ... > -mcpu=powerpc ... > ../init/do_mounts.c > > Cc: Christophe Leroy > Fixes: 0e00a8c9fd92 ("powerpc: Allow CPU selection also on PPC32") > Suggested-by: Michael Ellerman > Link: https://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg142315.html > Signed-off-by: Mathieu Malaterre > --- > arch/powerpc/Makefile | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 8a2ce14d68d0..544b30667ea5 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -30,6 +30,10 @@ endif > endif > endif > > +ifdef CONFIG_6xx > +KBUILD_CFLAGS += -mcpu=powerpc > +endif > + Could you make the patch on top of my serie (ie after the change of CONFIG_6xx to CONFIG_BOOK3S_32 ? The serie is in origin/next-test Thanks, Christophe > ifeq ($(CROSS_COMPILE),) > KBUILD_DEFCONFIG := $(shell uname -m)_defconfig > else > @@ -241,10 +245,6 @@ KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) > # often slow when they are implemented at all > KBUILD_CFLAGS += $(call cc-option,-mno-string) > > -ifdef CONFIG_6xx > -KBUILD_CFLAGS += -mcpu=powerpc > -endif > - > cpu-as-$(CONFIG_4xx) += -Wa,-m405 > cpu-as-$(CONFIG_ALTIVEC) += $(call as-option,-Wa$(comma)-maltivec) > cpu-as-$(CONFIG_E200) += -Wa,-me200 >