Message ID | 20230104201349.1451191-7-kan.liang@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp5335272wrt; Wed, 4 Jan 2023 12:15:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXvXPac+VeAxTCuDR6pn9+sqvRJSquwI+86NjaTYu5SBZWwmhsD1kjz84JFdjx9lDNv4RWWu X-Received: by 2002:a17:90a:9606:b0:219:f7e5:cb56 with SMTP id v6-20020a17090a960600b00219f7e5cb56mr54372823pjo.20.1672863358490; Wed, 04 Jan 2023 12:15:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672863358; cv=none; d=google.com; s=arc-20160816; b=ugnJ98nH2iMUXSLvIKri7E14nRZYzqOnOWouP2ZsFtShhHnULXEuIGXV1W1cU/gCJU lSWQjqIURRF9Ii0p81iWNP0fHRBXdnZCvJHZo6jy7cbLApxw81sxO9Ar5NAYXp12/Jho rSE94c+jebFuHo47m+tvK+kG8uf9APTGKkg6MtQuHPJD7e8T5WhXLN464I2DX3nMTT0M P8B8xFTE04Q8MVo9eVCnPkHlCtHcI3wJsKvFA3Z2UQzVsyGzK30fw1jhmS//INOrvbz2 jx2k0Xl5INw3DdpYvOL8o5Bh0YoMSrPDiUo2wsaFFAFKOb0+zGY6vuz+sQGCcNA2KIU3 g+qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qLYDbrYMY3KoqG70S90fSaVxg+KR4F3BBuY+m1M3mPQ=; b=shQczGwGpMxF7Gr9ZQO4MlLXcP3cw2WjSrSkLwTRs3bgd22dhiJh/rA1DDfa/TlCGY yRw7w7xfcyu7cxzjH9WRgVUUGQjGhpW0lj46fn7AEvQL4BVHb8nzOpwV+35N99QakXtk dTIhuVZLL4QrLUonwiGMnxyL/Ys0mi9HSUhiz3cBWT18nZ6hQaSfIlsSFsFyWfumTmBL Q6KekyztFd4dct8JtwkcAFGhF9FBK6tePLCXrK8sa34xpw+OC5cN6PfojgAKkVxFVwuP NQ5XNm9IRInDKZSjFyyp3PMYwJEwO4H0P24XQa2S+26BnWhnDFYMbxDVTQZDNVjqGnBH H54g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="aLo/I2Yu"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020a17090ae60200b00212e2e1b626si34687781pjy.164.2023.01.04.12.15.46; Wed, 04 Jan 2023 12:15:58 -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=@intel.com header.s=Intel header.b="aLo/I2Yu"; 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 S240010AbjADUOh (ORCPT <rfc822;tmhikaru@gmail.com> + 99 others); Wed, 4 Jan 2023 15:14:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239925AbjADUOM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 4 Jan 2023 15:14:12 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65BAF1B9FB for <linux-kernel@vger.kernel.org>; Wed, 4 Jan 2023 12:14:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672863252; x=1704399252; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+ybMgws1VuLWCF0sTJYUUURfo8JwvOHjZoWJLyMlu14=; b=aLo/I2Yu4m3x0wX2tKJp/bQ4ZrDow2yxsqCAu5Ptz8pv/S4p8P79w4oy xBlxxjPmuF7W9Z0Lg1++gv8FHuhGA3ejAWwvl+DUnOWXMsUcc9SJmtdyr ejp231w0c2Jq7XztwCLcZHYyUtE2w6XxcTgRLnxlneI+FuSHaYRKSD7SN C/PqKzGMeM7dKjcLR2rLguQheTvxjXhmdaapsUCdD5WbeyDYbmozjdciH y3bvdOZavxVizZpxl/74zh/J7Mp+UeTJ6tkEfz6N+Qxs98UzNM1vSAImf Jpg6ekrz7coEqTCZTikg12opM3s63tBjZuOIq0CK+A2jUhcqIZBxG2m9q Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="322105484" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="322105484" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2023 12:14:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="779324015" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="779324015" Received: from kanliang-dev.jf.intel.com ([10.165.154.102]) by orsmga004.jf.intel.com with ESMTP; 04 Jan 2023 12:14:12 -0800 From: kan.liang@linux.intel.com To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, linux-kernel@vger.kernel.org Cc: ak@linux.intel.com, eranian@google.com, irogers@google.com, Kan Liang <kan.liang@linux.intel.com> Subject: [PATCH V2 7/9] perf/x86/msr: Add Meteor Lake support Date: Wed, 4 Jan 2023 12:13:47 -0800 Message-Id: <20230104201349.1451191-7-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230104201349.1451191-1-kan.liang@linux.intel.com> References: <20230104201349.1451191-1-kan.liang@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754124368749517171?= X-GMAIL-MSGID: =?utf-8?q?1754124368749517171?= |
Series |
[V2,1/9] perf: Add PMU_FORMAT_ATTR_SHOW
|
|
Commit Message
Liang, Kan
Jan. 4, 2023, 8:13 p.m. UTC
From: Kan Liang <kan.liang@linux.intel.com> Meteor Lake is Intel's successor to Raptor lake. PPERF and SMI_COUNT MSRs are also supported. Reviewed-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Kan Liang <kan.liang@linux.intel.com> --- No change since V1 arch/x86/events/msr.c | 2 ++ 1 file changed, 2 insertions(+)
Comments
Em Wed, Jan 04, 2023 at 12:13:47PM -0800, kan.liang@linux.intel.com escreveu: > From: Kan Liang <kan.liang@linux.intel.com> > > Meteor Lake is Intel's successor to Raptor lake. PPERF and SMI_COUNT MSRs > are also supported. > > Reviewed-by: Andi Kleen <ak@linux.intel.com> > Signed-off-by: Kan Liang <kan.liang@linux.intel.com> > --- Did the kernel bits land upstream? - Arnaldo > No change since V1 > > arch/x86/events/msr.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c > index ecced3a52668..074150d28fa8 100644 > --- a/arch/x86/events/msr.c > +++ b/arch/x86/events/msr.c > @@ -107,6 +107,8 @@ static bool test_intel(int idx, void *data) > case INTEL_FAM6_RAPTORLAKE: > case INTEL_FAM6_RAPTORLAKE_P: > case INTEL_FAM6_RAPTORLAKE_S: > + case INTEL_FAM6_METEORLAKE: > + case INTEL_FAM6_METEORLAKE_L: > if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF) > return true; > break; > -- > 2.35.1
Hi Arnaldo, On 2023-02-01 8:47 p.m., Arnaldo Carvalho de Melo wrote: > Em Wed, Jan 04, 2023 at 12:13:47PM -0800, kan.liang@linux.intel.com escreveu: >> From: Kan Liang <kan.liang@linux.intel.com> >> >> Meteor Lake is Intel's successor to Raptor lake. PPERF and SMI_COUNT MSRs >> are also supported. >> >> Reviewed-by: Andi Kleen <ak@linux.intel.com> >> Signed-off-by: Kan Liang <kan.liang@linux.intel.com> >> --- > > Did the kernel bits land upstream? Yes, the kernel part has been merged into the tip.git perf/core branch. Thanks for checking the status. There are two perf tool patches in this series, which hasn't been merged. Should I resend them? Thanks, Kan > > - Arnaldo > >> No change since V1 >> >> arch/x86/events/msr.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c >> index ecced3a52668..074150d28fa8 100644 >> --- a/arch/x86/events/msr.c >> +++ b/arch/x86/events/msr.c >> @@ -107,6 +107,8 @@ static bool test_intel(int idx, void *data) >> case INTEL_FAM6_RAPTORLAKE: >> case INTEL_FAM6_RAPTORLAKE_P: >> case INTEL_FAM6_RAPTORLAKE_S: >> + case INTEL_FAM6_METEORLAKE: >> + case INTEL_FAM6_METEORLAKE_L: >> if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF) >> return true; >> break; >> -- >> 2.35.1 >
On February 2, 2023 11:34:02 AM GMT-03:00, "Liang, Kan" <kan.liang@linux.intel.com> wrote: >Hi Arnaldo, > >On 2023-02-01 8:47 p.m., Arnaldo Carvalho de Melo wrote: >> Em Wed, Jan 04, 2023 at 12:13:47PM -0800, kan.liang@linux.intel.com escreveu: >>> From: Kan Liang <kan.liang@linux.intel.com> >>> >>> Meteor Lake is Intel's successor to Raptor lake. PPERF and SMI_COUNT MSRs >>> are also supported. >>> >>> Reviewed-by: Andi Kleen <ak@linux.intel.com> >>> Signed-off-by: Kan Liang <kan.liang@linux.intel.com> >>> --- >> >> Did the kernel bits land upstream? >Yes, the kernel part has been merged into the tip.git perf/core branch. > >Thanks for checking the status. There are two perf tool patches in this >series, which hasn't been merged. Should I resend them? Please, try rebasing it on the tmp.perf/core in my tree. - Arnaldo > > >> >>> No change since V1 >>> >>> arch/x86/events/msr.c | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c >>> index ecced3a52668..074150d28fa8 100644 >>> --- a/arch/x86/events/msr.c >>> +++ b/arch/x86/events/msr.c >>> @@ -107,6 +107,8 @@ static bool test_intel(int idx, void *data) >>> case INTEL_FAM6_RAPTORLAKE: >>> case INTEL_FAM6_RAPTORLAKE_P: >>> case INTEL_FAM6_RAPTORLAKE_S: >>> + case INTEL_FAM6_METEORLAKE: >>> + case INTEL_FAM6_METEORLAKE_L: >>> if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF) >>> return true; >>> break; >>> -- >>> 2.35.1 >>
Em Thu, Feb 02, 2023 at 09:34:02AM -0500, Liang, Kan escreveu: > Hi Arnaldo, > > On 2023-02-01 8:47 p.m., Arnaldo Carvalho de Melo wrote: > > Em Wed, Jan 04, 2023 at 12:13:47PM -0800, kan.liang@linux.intel.com escreveu: > >> From: Kan Liang <kan.liang@linux.intel.com> > >> > >> Meteor Lake is Intel's successor to Raptor lake. PPERF and SMI_COUNT MSRs > >> are also supported. > >> > >> Reviewed-by: Andi Kleen <ak@linux.intel.com> > >> Signed-off-by: Kan Liang <kan.liang@linux.intel.com> > >> --- > > > > Did the kernel bits land upstream? > Yes, the kernel part has been merged into the tip.git perf/core branch. > > Thanks for checking the status. There are two perf tool patches in this > series, which hasn't been merged. Should I resend them? Lemme try cherry-picking just the tooling bits from this series. > Thanks, > Kan > > > > - Arnaldo > > > >> No change since V1 > >> > >> arch/x86/events/msr.c | 2 ++ > >> 1 file changed, 2 insertions(+) > >> > >> diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c > >> index ecced3a52668..074150d28fa8 100644 > >> --- a/arch/x86/events/msr.c > >> +++ b/arch/x86/events/msr.c > >> @@ -107,6 +107,8 @@ static bool test_intel(int idx, void *data) > >> case INTEL_FAM6_RAPTORLAKE: > >> case INTEL_FAM6_RAPTORLAKE_P: > >> case INTEL_FAM6_RAPTORLAKE_S: > >> + case INTEL_FAM6_METEORLAKE: > >> + case INTEL_FAM6_METEORLAKE_L: > >> if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF) > >> return true; > >> break; > >> -- > >> 2.35.1 > >
Em Fri, Feb 03, 2023 at 05:21:15PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Feb 02, 2023 at 09:34:02AM -0500, Liang, Kan escreveu: > > Hi Arnaldo, > > > > On 2023-02-01 8:47 p.m., Arnaldo Carvalho de Melo wrote: > > > Em Wed, Jan 04, 2023 at 12:13:47PM -0800, kan.liang@linux.intel.com escreveu: > > >> From: Kan Liang <kan.liang@linux.intel.com> > > >> > > >> Meteor Lake is Intel's successor to Raptor lake. PPERF and SMI_COUNT MSRs > > >> are also supported. > > >> > > >> Reviewed-by: Andi Kleen <ak@linux.intel.com> > > >> Signed-off-by: Kan Liang <kan.liang@linux.intel.com> > > >> --- > > > > > > Did the kernel bits land upstream? > > Yes, the kernel part has been merged into the tip.git perf/core branch. > > > > Thanks for checking the status. There are two perf tool patches in this > > series, which hasn't been merged. Should I resend them? > > Lemme try cherry-picking just the tooling bits from this series. There was a clash with: commit 3fd7a168bf51497909dbfb7347af28b5c57e74a6 Author: Namhyung Kim <namhyung@kernel.org> Date: Thu Jan 26 13:36:10 2023 -0800 perf script: Add 'cgroup' field for output And a minor fuzz on the first patch, I applied manually and resolved the conflict, Thanks, - Arnaldo > > Thanks, > > Kan > > > > > > - Arnaldo > > > > > >> No change since V1 > > >> > > >> arch/x86/events/msr.c | 2 ++ > > >> 1 file changed, 2 insertions(+) > > >> > > >> diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c > > >> index ecced3a52668..074150d28fa8 100644 > > >> --- a/arch/x86/events/msr.c > > >> +++ b/arch/x86/events/msr.c > > >> @@ -107,6 +107,8 @@ static bool test_intel(int idx, void *data) > > >> case INTEL_FAM6_RAPTORLAKE: > > >> case INTEL_FAM6_RAPTORLAKE_P: > > >> case INTEL_FAM6_RAPTORLAKE_S: > > >> + case INTEL_FAM6_METEORLAKE: > > >> + case INTEL_FAM6_METEORLAKE_L: > > >> if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF) > > >> return true; > > >> break; > > >> -- > > >> 2.35.1 > > > > > -- > > - Arnaldo
On 2023-02-03 3:28 p.m., Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 03, 2023 at 05:21:15PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Thu, Feb 02, 2023 at 09:34:02AM -0500, Liang, Kan escreveu: >>> Hi Arnaldo, >>> >>> On 2023-02-01 8:47 p.m., Arnaldo Carvalho de Melo wrote: >>>> Em Wed, Jan 04, 2023 at 12:13:47PM -0800, kan.liang@linux.intel.com escreveu: >>>>> From: Kan Liang <kan.liang@linux.intel.com> >>>>> >>>>> Meteor Lake is Intel's successor to Raptor lake. PPERF and SMI_COUNT MSRs >>>>> are also supported. >>>>> >>>>> Reviewed-by: Andi Kleen <ak@linux.intel.com> >>>>> Signed-off-by: Kan Liang <kan.liang@linux.intel.com> >>>>> --- >>>> >>>> Did the kernel bits land upstream? >>> Yes, the kernel part has been merged into the tip.git perf/core branch. >>> >>> Thanks for checking the status. There are two perf tool patches in this >>> series, which hasn't been merged. Should I resend them? >> >> Lemme try cherry-picking just the tooling bits from this series. > Sorry, I forgot to mention it in this thread. I sent V3 with only perf tool patches. https://lore.kernel.org/lkml/20230202192209.1795329-1-kan.liang@linux.intel.com/ > There was a clash with: > > commit 3fd7a168bf51497909dbfb7347af28b5c57e74a6 > Author: Namhyung Kim <namhyung@kernel.org> > Date: Thu Jan 26 13:36:10 2023 -0800 > > perf script: Add 'cgroup' field for output > > And a minor fuzz on the first patch, I applied manually and resolved the > conflict, The V3 add a perf test case for the new field. Could you please apply it as well? Sorry for the inconvenience. Thanks, Kan > > Thanks, > > - Arnaldo > >>> Thanks, >>> Kan >>>> >>>> - Arnaldo >>>> >>>>> No change since V1 >>>>> >>>>> arch/x86/events/msr.c | 2 ++ >>>>> 1 file changed, 2 insertions(+) >>>>> >>>>> diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c >>>>> index ecced3a52668..074150d28fa8 100644 >>>>> --- a/arch/x86/events/msr.c >>>>> +++ b/arch/x86/events/msr.c >>>>> @@ -107,6 +107,8 @@ static bool test_intel(int idx, void *data) >>>>> case INTEL_FAM6_RAPTORLAKE: >>>>> case INTEL_FAM6_RAPTORLAKE_P: >>>>> case INTEL_FAM6_RAPTORLAKE_S: >>>>> + case INTEL_FAM6_METEORLAKE: >>>>> + case INTEL_FAM6_METEORLAKE_L: >>>>> if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF) >>>>> return true; >>>>> break; >>>>> -- >>>>> 2.35.1 >>>> >> >> -- >> >> - Arnaldo >
Em Mon, Feb 06, 2023 at 09:32:00AM -0500, Liang, Kan escreveu: > > > On 2023-02-03 3:28 p.m., Arnaldo Carvalho de Melo wrote: > > Em Fri, Feb 03, 2023 at 05:21:15PM -0300, Arnaldo Carvalho de Melo escreveu: > >> Em Thu, Feb 02, 2023 at 09:34:02AM -0500, Liang, Kan escreveu: > >>> Hi Arnaldo, > >>> > >>> On 2023-02-01 8:47 p.m., Arnaldo Carvalho de Melo wrote: > >>>> Em Wed, Jan 04, 2023 at 12:13:47PM -0800, kan.liang@linux.intel.com escreveu: > >>>>> From: Kan Liang <kan.liang@linux.intel.com> > >>>>> > >>>>> Meteor Lake is Intel's successor to Raptor lake. PPERF and SMI_COUNT MSRs > >>>>> are also supported. > >>>>> > >>>>> Reviewed-by: Andi Kleen <ak@linux.intel.com> > >>>>> Signed-off-by: Kan Liang <kan.liang@linux.intel.com> > >>>>> --- > >>>> > >>>> Did the kernel bits land upstream? > >>> Yes, the kernel part has been merged into the tip.git perf/core branch. > >>> > >>> Thanks for checking the status. There are two perf tool patches in this > >>> series, which hasn't been merged. Should I resend them? > >> > >> Lemme try cherry-picking just the tooling bits from this series. > > > > Sorry, I forgot to mention it in this thread. > I sent V3 with only perf tool patches. > > https://lore.kernel.org/lkml/20230202192209.1795329-1-kan.liang@linux.intel.com/ > > > There was a clash with: > > > > commit 3fd7a168bf51497909dbfb7347af28b5c57e74a6 > > Author: Namhyung Kim <namhyung@kernel.org> > > Date: Thu Jan 26 13:36:10 2023 -0800 > > > > perf script: Add 'cgroup' field for output > > > > And a minor fuzz on the first patch, I applied manually and resolved the > > conflict, > > The V3 add a perf test case for the new field. Could you please apply it > as well? > > Sorry for the inconvenience. np, I'll pick the test and apply it as well, Thanks for letting me know, - Arnaldo
diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c index ecced3a52668..074150d28fa8 100644 --- a/arch/x86/events/msr.c +++ b/arch/x86/events/msr.c @@ -107,6 +107,8 @@ static bool test_intel(int idx, void *data) case INTEL_FAM6_RAPTORLAKE: case INTEL_FAM6_RAPTORLAKE_P: case INTEL_FAM6_RAPTORLAKE_S: + case INTEL_FAM6_METEORLAKE: + case INTEL_FAM6_METEORLAKE_L: if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF) return true; break;