Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2636096imw; Sun, 10 Jul 2022 11:15:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u7aN5ANHi9WzFq7ZQRi5knUfSwZmnvV0YGKq6+lCYLSt3Yjd+YhpDfo2bAZJ06xs0BGxvW X-Received: by 2002:a17:903:1110:b0:16b:6968:1d08 with SMTP id n16-20020a170903111000b0016b69681d08mr14510574plh.3.1657476955798; Sun, 10 Jul 2022 11:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657476955; cv=none; d=google.com; s=arc-20160816; b=qxBkXYejojb0w001xIGUZS2PWEERSn5jgHIqFrsZIy5DzxK16Y3B/vpP2ib5aJU7Bs f0pFDAGWrP2eIdB7OH/IoK390YHvuuxzvFCucTiCGbpmMiXuGhcd3Fo/Ie50UlKixuS6 whnCz84vciPwfQGgZcVGBvWZYxwYFXjSTpPpjr2kyyGH7O0CtNRvozQQdkmg2s0T6W9f niMM1dOZSaUhirBlEx03lhDZfNGjN6ZjSCI5ASw4jqAevYxIPR7/813KzhW2Ikme3BQJ f++xhk68aMMmnERH84cVJSf7BuyBfu3lybM9nLa9vFu+iGq8Ke6/coFe6aJN634kP8x8 sU9A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ONkX87W+uhTJIjL/l0/Bk+TCard0u3l2Omgst+2y3GI=; b=BP9difj8l0QiI7G6fRoD2CBrJEJ0QMhUbpsf/xPHfzVdPuCc+6Byn/p77QIRcAybrh AaUMCI0AqhZT4L809cvf2x7YSYVbBaG3INTII3e5eMBY690fQVXJALSnKe5QYztBR9u9 o/me6zTz21pL8hOp2mg0EGKiMK1NfZpG36vTyP5E8vt1Z1yHfz+kojIV4q9hGtSCC/KV vYUcx7e6U7ZuLfg8SpG+LQFomdW5+QQcuhqxGvhwhrRAl8D5+xzadQiIWOpxtRm1uOSS i4Cj/k5M55R8wkZ5KqURCkLoZvEkCX+peJm5WwnKsTIDSqDMsoq85ZKLBG4ItoMD+f9R 1I8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nDCtJFQe; 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 b6-20020a639306000000b0040e64ef1bfcsi6448335pge.557.2022.07.10.11.15.30; Sun, 10 Jul 2022 11:15:55 -0700 (PDT) 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=nDCtJFQe; 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 S229508AbiGJR5f (ORCPT + 99 others); Sun, 10 Jul 2022 13:57:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbiGJR5e (ORCPT ); Sun, 10 Jul 2022 13:57:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8888511837 for ; Sun, 10 Jul 2022 10:57:33 -0700 (PDT) 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 4B97AB80B79 for ; Sun, 10 Jul 2022 17:57:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1CE9C3411E; Sun, 10 Jul 2022 17:57:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657475851; bh=NSVT8pRObvkt/VAUFyL3V+ogDaz+KTUNsHES7wK8hvM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nDCtJFQef1NjSVO1hZyUQllM++oTBPR3q7ko8iMd2YNeFxmUwECOkutSTzY9spKSg PIt0bfkcE8EgTBb4y0tB1WqPJ9CYxmVT8KpyHi8q6lzXymqkICKI8ZGsu1Vw9y/FKf agP5kWIHlL/nN9bdBmVs+pLbdZ50L0iI2Vq2KeTrPcvMhY0eopk6aPj4KVuDEteePO 1COBnOpMKeYWwwPn0Y5JAZAsrWXFDawx9/l0rkCDpCMX4MY0oppNcjOfK1KuipHxVh QrBPkdFCfdsP/j2pLzJAwuOuiBLG5NDymbyMoHfTI74TceBNmdUPT1hGahhy3iuFtT R4ecJtT0kMlsw== Received: by pali.im (Postfix) id C193B792; Sun, 10 Jul 2022 19:57:27 +0200 (CEST) Date: Sun, 10 Jul 2022 19:57:27 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Christophe Leroy Cc: Arnd Bergmann , Michael Ellerman , linuxppc-dev , Linux Kernel Mailing List Subject: Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler Message-ID: <20220710175727.ee52xoqfwlphjxv5@pali> References: <20220524093939.30927-1-pali@kernel.org> <20220702094405.tp7eo4df7fjvn2ng@pali> <8D562851-304F-4153-9194-426CC22B7FF2@ellerman.id.au> <20220704103951.nm4m4kpgnus3ucqo@pali> <20220704131358.fy3z7tjcmk2m6pfh@pali> <20220708171422.mpbhb4ejarwnce6m@pali> <358f5a57-5eee-56af-fe73-f5d11cfad98e@csgroup.eu> <20220709102305.t2ouadn6zscp2m7i@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.7 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,T_SCC_BODY_TEXT_LINE 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 Sunday 10 July 2022 17:38:33 Christophe Leroy wrote: > Le 09/07/2022 à 12:23, Pali Rohár a écrit : > >>> > >>> -ifdef CONFIG_PPC_BOOK3S_64 > >>> ifdef CONFIG_CPU_LITTLE_ENDIAN > >>> -CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=power8 > >>> -CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=power9,-mtune=power8) > >>> +CFLAGS-$(CONFIG_PPC_BOOK3S_64) += -mcpu=power8 > >>> +CFLAGS-$(CONFIG_PPC_BOOK3S_64) += $(call cc-option,-mtune=power9,-mtune=power8) > >>> else > >>> -CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=power7,$(call cc-option,-mtune=power5)) > >>> -CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mcpu=power5,-mcpu=power4) > >>> -endif > >>> -else ifdef CONFIG_PPC_BOOK3E_64 > >>> -CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=powerpc64 > >>> +CFLAGS-$(CONFIG_PPC_BOOK3S_64) += $(call cc-option,-mtune=power7,$(call cc-option,-mtune=power5)) > >>> +CFLAGS-$(CONFIG_PPC_BOOK3S_64) += $(call cc-option,-mcpu=power5,-mcpu=power4) > >> > >> So before that change I got -mcpu=power9 > >> > >> Now I get -mtune=power7 -mcpu=power5 -mcpu=power9 > > > > I did it like Arnd wrote. > > > > And seems that it does not work and now is fully out of the scope of the > > original issue. Now I'm really lost here. > > > > So I nobody comes with better solution, I would prefer to stick with my > > original version which targets _only_ e500 cores. > > > > Any other suggestion? > > I sent a patch based on the TARGET_CPU logic, does it work for you ? > > Christophe Perfect, it works! Thank you. Anyway, same problem is with arch/powerpc/boot/Makefile file when building "uImage" target. There is hardcoded -mcpu=powerpc flag.