Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7510352rwd; Tue, 6 Jun 2023 11:46:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4CeLH4oRs2rIcWEEnI4JukS3PpKJdv7Sm5X7IuEr13nJsWPG2r6LO3bT+xh/ZTNSZatrg1 X-Received: by 2002:ac8:5e4e:0:b0:3f8:6f77:29f1 with SMTP id i14-20020ac85e4e000000b003f86f7729f1mr779376qtx.49.1686077212649; Tue, 06 Jun 2023 11:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686077212; cv=none; d=google.com; s=arc-20160816; b=zv+fZo9/j8stEoJMPQsKHgQ7T8FMewZ+ggPtYD0izPigG4RnRkR53k3fVc9mTqV3fr Fweo8IC/f40yag/yoGq/BGYKoE5wO0U8QFq2E2Q6OLzZELD2EeaE6njGQtOFdcxmMENC YuA6Zg79SOD50g5lrZpwGK3NfK/ihSqq6qC21znl3J8U3LPAvanvq5tTRVGRWng2uB2k f68uRaoBESBk+Kame0Fom55yP+Y8jEZsB9m+u6X5S9LytXXSqLM/zsajJyXZjKTvk798 s+zWXML5+nqUeVzQFabpJMDgROhq1mXx1qou3kgUC9OOie8z+mRyhBQoHAeWUEX9LC6S F+ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=S7ItF6eduWYU0CHLG8vLpe4uJNezl2l5kBuBi0+JvDY=; b=E3oBEAg4FkNhRorv2j5BM7g/D0CjxodD/sfv34TMT4wdh/wq7NTu5g+4gh3OGXYqy7 MlbAQDCSkcVX8MHKj6VzBWYLi03d2JQY8xOWd80oHRUaRfXvKbR4yv4Aj9Lo4cuxQX2R E48O453lFys8jFHUK8kpbe+lmPvaQp/SnXzO+Hp93YtuOZwNGFx2vyZ81zMrayhkkMlw Ll2VFHi2I4q4c+1OfPQFhobu71GQyNOAevoWIt7hF1o9zJLXy4maV9D/Wl92zsRtvmJq hywHnHrUz27DaUsBrLBGR+Ulsldmeq8QIr7T5430xfx0OERnwV5vaZBuOW6qHKKJ1x9o bpXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Qff4uGqu; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t17-20020ac85891000000b003f534327c38si7014190qta.348.2023.06.06.11.46.37; Tue, 06 Jun 2023 11:46:52 -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=@intel.com header.s=Intel header.b=Qff4uGqu; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233896AbjFFSew (ORCPT + 99 others); Tue, 6 Jun 2023 14:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238724AbjFFSev (ORCPT ); Tue, 6 Jun 2023 14:34:51 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D69D1707 for ; Tue, 6 Jun 2023 11:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686076490; x=1717612490; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=RJjMtX6JV3KGQfsw82yer2ZuikypQbyMMcAY2zodLUg=; b=Qff4uGquX3hTUzkFcZCUKiqdjDss1FuYrCTkevqFqOa3pj8UZY3pQhwq /JYsKO7xFIuirN8BfO+jGORqwn1rkZmSQI9mZXttHOXppQHx7uStfisNV 7MIiUzZRCMdAya1WRKL8xkl2O6VV/OfKEDYW4foV+ORXxZWNvjrFFLh7v AV5L6Ow7RtddiK0kRNHzuuyrZxBaMYephOycm+YeaPikEgKQkin1pZKCj cPHA8aH9qCaf8sIw56drD1FFa9TE7TcsOMVdzWXXUk8O0FU+i3sPgFCLy hdVq5ojaV7xVLIpx87B8nukLlMiC9AnDg10k6vfpORu05gQOvONt/jZvq A==; X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="385082283" X-IronPort-AV: E=Sophos;i="6.00,221,1681196400"; d="scan'208";a="385082283" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 11:34:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="659636951" X-IronPort-AV: E=Sophos;i="6.00,221,1681196400"; d="scan'208";a="659636951" Received: from linux.intel.com ([10.54.29.200]) by orsmga003.jf.intel.com with ESMTP; 06 Jun 2023 11:34:49 -0700 Received: from [10.212.191.33] (kliang2-mobl1.ccr.corp.intel.com [10.212.191.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 1C4C9580C9B; Tue, 6 Jun 2023 11:34:48 -0700 (PDT) Message-ID: Date: Tue, 6 Jun 2023 14:34:47 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH V2 1/6] perf/x86/intel: Add Grand Ridge and Sierra Forest Content-Language: en-US To: Peter Zijlstra Cc: mingo@redhat.com, acme@kernel.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, irogers@google.com, adrian.hunter@intel.com, ak@linux.intel.com, eranian@google.com, alexey.v.bayduraev@linux.intel.com, tinghao.zhang@intel.com References: <20230522113040.2329924-1-kan.liang@linux.intel.com> <2b2e7308-edeb-2977-596a-f638d19174d6@linux.intel.com> <20230606132432.GD905437@hirez.programming.kicks-ass.net> <3c187521-0686-1204-7b3e-e8f183c50938@linux.intel.com> <20230606181757.GB942082@hirez.programming.kicks-ass.net> From: "Liang, Kan" In-Reply-To: <20230606181757.GB942082@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 2023-06-06 2:17 p.m., Peter Zijlstra wrote: > On Tue, Jun 06, 2023 at 12:16:29PM -0400, Liang, Kan wrote: > >>> names for a reason, so that enums like the above become something >>> sensible like: >>> >>> case INTEL_FAM6_ATOM_CRESTMONT: >>> case INTEL_FAM6_ATOM_CRESTMONT_X: >>> >>> and now it's super obvious why they're grouped. >>> >>>>> + pr_cont("Crestmont events, "); >> >> The Sierra Forest should not be a platform name. I think it's the code >> name of the processor. >> >> The problem is that the uarch name doesn't work for the hybrid, since it >> has different uarchs in the same processors. To make the naming rules >> consistent among big core, atom, and hybrid, maybe we should use the >> code name of the processor in intel-family.h. > > I obviously disagree; these are not hybrid and calling them both > CRESTMONT makes *far* more sense than the random gibberish they're > called now. > > Yes, hybrid made a complete mess of things (in many ways), but we should > then not do the obvious correct thing for when we can. Besides hybrid, it seems there is a bigger problem for the big core. The big core uses the processor code name since Ice Lake. In the perf code, we also uses the processor code name for the big core. pr_cont("Icelake events, "); Is it OK to leave the big core as is (using processor code name), but only change the name for Grand Ridge and Sierra Forest? Thanks, Kan