Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3257348rwb; Fri, 16 Dec 2022 12:14:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4WcG//K+/4wdmX7m6N5CgDjQPEZLHXjjeF21vTMY2Ybe/YEWk27/AoX6FHUAvCW0UKvz4X X-Received: by 2002:a05:6402:24a3:b0:461:ed76:cb45 with SMTP id q35-20020a05640224a300b00461ed76cb45mr30316114eda.24.1671221641578; Fri, 16 Dec 2022 12:14:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671221641; cv=none; d=google.com; s=arc-20160816; b=Syyd0jndwzt9CjHlgXzPf3/nrhd1w13zVT+J6gio9vTBn5f2BLszWK2tIk22aebZ/F sZ+9A9q0CEvz6+FeUrmGcAEI9pXES8SgAbACP863HaTpAHLSSizZRVpriRsHBsvTgQMT E6+ny0Dx7DqhOeik3WATXNoVzhzBcT99ge2TB+gFXWBd3eFUWj4DRv90hOBuiCD6Ziv6 Bl1l8uGLtmUqX+N2j2/iXhKJ0Cf397gwp4ht03QqJdPDg0NmvhYcwMa5KClKpfcDnyVg GMzaFJnqIkaJRytrulXnB2/neXZORukLDbFcL46x99lyL70ArqmCbvyoJKg1GdvSse+H PIQw== 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; bh=XF6CbXitF/qT9ck5MEmb/UCP4fZheStp2gyoNs3GAtg=; b=ojQzJSkOSzfEeJsnNANm74Zdp8iDVRbjv19MS9/ROPiBFTHoYwUKx7g5YibhrlNDUH 8Sa5RMf5Qx1TfhadcAw3xRxJ2kmBwRQ1ohLDgV1XwQAU1j5xoE7XrnqPm8SzS6z5Hckz rltpeqiwRuQ9LojAVdxtBs2SfPFnld01fukGjA7hoKvOC90wL6SPjXW8S1vqUDbfP+W6 3dIiQjhzqUPE6TIpFOPe0mNOvWx2BXvWjGGeiUhjjn1JF4Wei1VwpFDrhuAMMjgCrDO6 zSRuVBZCveWiVmTqmJkkDwc1qS4BuzNy2ZD5KX1vznSuY0j+Z+ihbvSmrbgvDr3Sywo5 ErCA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt23-20020a0564020a5700b004573107a5basi2901851edb.352.2022.12.16.12.13.45; Fri, 16 Dec 2022 12:14:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231226AbiLPTTJ (ORCPT + 68 others); Fri, 16 Dec 2022 14:19:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229754AbiLPTTG (ORCPT ); Fri, 16 Dec 2022 14:19:06 -0500 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7A8322B18E for ; Fri, 16 Dec 2022 11:19:05 -0800 (PST) Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 2BGJFiNr026484; Fri, 16 Dec 2022 13:15:44 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 2BGJFhmm026483; Fri, 16 Dec 2022 13:15:43 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Fri, 16 Dec 2022 13:15:43 -0600 From: Segher Boessenkool To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nicholas Piggin Subject: Re: [PATCH v1] powerpc/64: Set default CPU in Kconfig Message-ID: <20221216191543.GE25951@gate.crashing.org> References: <3fd60c2d8a28668a42b766b18362a526ef47e757.1670420281.git.christophe.leroy@csgroup.eu> <20221215204202.mbw2ij4ou7t2ttpv@pali> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221215204202.mbw2ij4ou7t2ttpv@pali> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 Hi! On Thu, Dec 15, 2022 at 09:42:02PM +0100, Pali Roh?r wrote: > On Wednesday 07 December 2022 14:38:40 Christophe Leroy wrote: > > default "power8" if POWER8_CPU > > default "power9" if POWER9_CPU > > default "power10" if POWER10_CPU > > + default "e500mc64" if E5500_CPU > > Now I'm looking at this change again... and should not E5500_CPU rather > enforce -mcpu=e5500 flag? I know that your patch moves e500mc64 flag > from the Makefile to Kconfig, but maybe it could be changed in some > other followup patch... > > Anyway, do you know what is e500mc64 core? I was trying to find some > information about it, but it looks like some unreleased freescale core > which predates e5500 core. It looks that way yes. It was submitted at and committed as . It looks as if it was based on the e500mc core, while e5500 is a new core (or significantly different anyway). > ISA (without extensions like altivec) seems > to be same for e500mc64, e5500 and e6500 cores and difference is only > pipeline definitions in gcc config files. So if my understanding is > correct then kernel binary compiled with any of these -mcpu= flag should > work on any of those cores. Just for mismatches core binary will not be > optimized for speed. It appears the E500MC64 never made it outside of FSL, so it is best not to use it at all, imo. Segher