From patchwork Wed Jan 4 20:13:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liang, Kan" X-Patchwork-Id: 39083 Return-Path: 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 + 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 ); 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 ; 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 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 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: 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?= From: Kan Liang Meteor Lake is Intel's successor to Raptor lake. PPERF and SMI_COUNT MSRs are also supported. Reviewed-by: Andi Kleen Signed-off-by: Kan Liang --- 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;