Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3553334rwb; Fri, 16 Dec 2022 17:18:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXukgvwLHPgiWKwUEINWten6D5c+Md9SPGgzx5DM0O0hWj2DvkRbX/MM49s2X9IgmKnmV2cs X-Received: by 2002:a05:6a20:b717:b0:9d:efbf:813b with SMTP id fg23-20020a056a20b71700b0009defbf813bmr619931pzb.4.1671239890758; Fri, 16 Dec 2022 17:18:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671239890; cv=none; d=google.com; s=arc-20160816; b=f8lWtJhJucE/r8RFQH8eiXsd4xV1OFgCMnLgGS6uVvTRcoqvX7l7EeKqFlQPh9U0LY KqWphI6ZonTuI8RoZ1shEigbMIPwIenf/QIzWWlzZMI2JKRbzd7KR7QkIqNkt0FVcSXL y6ld0meai0QZPnlL9TZeBmjGB67TUOTDtW4MKIdC6rDDm4Mp9Q/Yj0gKyHtrIrxo6OAi GYq4hZLuhR21ePYEO0i1oxnrZSGFzg6S0ndsaCJqSJLnZ+QZGE5opagTkCbqGaNQ1exb eex3Uo6FVTSBVd2v6sRvg8Es8yk0PBgBlFZNKQW3ewra3OQRDItY6t02ZqtffwMPTwk9 ngLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OqPShcMQsUWhMVLiycct9QzM9cbJpTEIBcWpr2CwIlg=; b=pb8AG33BhtQi09LZorQnMRH+Pmp1kFF6VZoNWjTsuzXEKOGdz0l2gfj3ZmAnKMUArs t2kqA1exZ8tnoN9IPOA00SQUnR+etStr2Hn8u/pvfxm+sX/T+2Gb+oV2rgjJzynt/MFa DjTWxmz/IsjHzPG3lpe0t0A2V7jzijKwToS2fHcSoes1N0KyGn4bouM2A3IbCjdfvoUj ZTDNvd57rA5nGXW6Xk2UYEk3NqRFMjW0kDJwffsu6kqUbuONOXHm9sFReCVT4ywYmR76 45ijDQzlmB1PrC0qwut0n1P8syk2CF465MB4TtlFIZjOifbZG1xXYCtFbzPIS+yF2Y/H PtRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GQAQYkJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il9-20020a17090b164900b0021c2c7f0f93si10313565pjb.66.2022.12.16.17.18.01; Fri, 16 Dec 2022 17:18:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GQAQYkJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230043AbiLQBKb (ORCPT + 68 others); Fri, 16 Dec 2022 20:10:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229985AbiLQBK2 (ORCPT ); Fri, 16 Dec 2022 20:10:28 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D4E61D303 for ; Fri, 16 Dec 2022 17:10:27 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AA736B81E04 for ; Sat, 17 Dec 2022 01:10:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A256C433D2; Sat, 17 Dec 2022 01:10:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671239424; bh=Qm/lVWvY5E4nVZ/Q+YcB9XTqpC6qJE2EwMv9F0W5Q2M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GQAQYkJzdhrp57gPVbOjQRmjth1uLBE320uqyXsqTW0slFz1tg6JqePJD1BavRmIV 8xt0e+KQ1M/3ewWtrkxSg24JHdLH1C/kckBlDrTxnOKRXDa7jPH4oiBMlULTyxPD7w bBrkekdZzbtpsKUA2e2DbaiM8iLneDaOpYRDq6fMN9AcTU0FBjapf88inmErRIj2uq A/le4q700JdH3oCLuXrizDFwKZQZfWW+1/jIhJ209lxhCg/kSevhiVhHwjYK6Qqvom IQHC2YpwiUAaWj5JrHg2+8cIDDw0sfvAZnurnKgRxvCKupRhURQ5KX+Yzn9iqtj73G n7S9XUA5D3AFg== Received: by pali.im (Postfix) id 70565B01; Sat, 17 Dec 2022 02:10:21 +0100 (CET) Date: Sat, 17 Dec 2022 02:10:21 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Christophe Leroy Cc: Michael Ellerman , Nicholas Piggin , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Jan-Benedict Glaw Subject: Re: [PATCH v2] powerpc: Pass correct CPU reference to assembler Message-ID: <20221217011021.zr4k2wqdh5nnryw7@pali> References: <01fe73614988e2402a7526fb6b6e903bc3777bb5.1671179743.git.christophe.leroy@csgroup.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01fe73614988e2402a7526fb6b6e903bc3777bb5.1671179743.git.christophe.leroy@csgroup.eu> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 16 December 2022 09:35:50 Christophe Leroy wrote: > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index bf5f0a998273..528452ce80b4 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -201,18 +201,20 @@ KBUILD_CFLAGS += -fno-asynchronous-unwind-tables > # often slow when they are implemented at all > KBUILD_CFLAGS += $(call cc-option,-mno-string) > > -cpu-as-$(CONFIG_40x) += -Wa,-m405 > -cpu-as-$(CONFIG_44x) += -Wa,-m440 > cpu-as-$(CONFIG_ALTIVEC) += $(call as-option,-Wa$(comma)-maltivec) > -cpu-as-$(CONFIG_PPC_E500) += -Wa,-me500 > + > +ifeq ($(CONFIG_TARGET_CPU),powerpc) > +cpu-as-$(CONFIG_TARGET_CPU_BOOL) += -Wa,-mppc > +else > +cpu-as-$(CONFIG_TARGET_CPU_BOOL) += -Wa,-m$(CONFIG_TARGET_CPU) > +endif This change will break compilation for e500 cores. Kconfig sets CONFIG_TARGET_CPU to string "8540" for e500 cores because gcc uses -mcpu=8540 for e500 but GNU AS uses -me500 for e500 cores.