Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4204576pxb; Mon, 8 Feb 2021 10:18:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0EdNpHoTPokCenb8fDOaat2JIyZajWi/4lxzAsJ7M/vE+mvap+oXaH4Ah28HimSi84TqN X-Received: by 2002:a17:906:1bf2:: with SMTP id t18mr18848694ejg.166.1612808307993; Mon, 08 Feb 2021 10:18:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612808307; cv=none; d=google.com; s=arc-20160816; b=z5ZKtzWvO1ZasFL39Owd6Vb7y3DIV+exS7ddAO+KUodOe6ghHTtElsRAdKyMd8/+vs JscXG1FbSQlcZIDQbBDyOneP2zBi3aiaXQL6NOLdsiW4aQ1RZgQmkhEe0YaCWbizLKPV iMGR/6RBAbp4YNbDe19hkjSXsFBN3LsiYq3uGI6sX0vmtxnAwf8vqqOXBAXv7NdkvMMd myOUfZaW3KzbGPrxWtdYcmIr242E3D0sEkzu19xDTAy/fvucrHztq5c5wnFBP2UlRkMR 3+za+e/6mc69wY5jdAwbynZtBInwZaYcTo2meFn0gAMY6AgyWy6uZzDtfK4b+3kE69vw vgPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=tuxenT2LCLMINwr346qyZRgUbwl1+tB0yEOnAj2xU4w=; b=JKV0uL67dYanhcTVfp5fxdNvbMxueFD+WKj3qHDFA7qGwOI8BEAeBuMKSlCzCV/1No tnM5DpVhkP10KtUmcM6tgixjl/9YipjFEC2NV70vu2KQN0WGB2WFDlQIQ+8y64UQBt6m 7Li5nyPe0EHp9zEZXpBGQ1Vo/ktMMpQxqYiG2OVZxwkcH5lSISJrGjoHPJMJIo0uEjuh Whvls5x28nE/COZbM/cEY0GehvhRN7EZ9MXILT/hUp1hQtXC4q8cx+oEEfv5GAJhrwzP O6b1M/vKUaoNw2LDqwGHSyh9PHGtaz+CGySeCW8Y71lt/Kkh+Do3fieXwOyj6iGXkz/8 Y5+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw11si3423196ejb.270.2021.02.08.10.18.01; Mon, 08 Feb 2021 10:18:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235377AbhBHSQe (ORCPT + 99 others); Mon, 8 Feb 2021 13:16:34 -0500 Received: from mga14.intel.com ([192.55.52.115]:62781 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234037AbhBHPoB (ORCPT ); Mon, 8 Feb 2021 10:44:01 -0500 IronPort-SDR: J4pjKMrqfc4iG0v4bERqSnc5BWH+af0pjTAyS739tzL8moR2wyv7WMcArGz+BiWWWDyW6Mu2Ti DKc9VCmAacsg== X-IronPort-AV: E=McAfee;i="6000,8403,9889"; a="180952010" X-IronPort-AV: E=Sophos;i="5.81,162,1610438400"; d="scan'208";a="180952010" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2021 07:30:30 -0800 IronPort-SDR: Xd+rzhnuc+ItfFw2MpeKozFjkm7sCjKxt+L6SbuW2jlwilEmM3emCLKfky4nYPRKeDIsSt1xBM 8dJumHG8IWtQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,162,1610438400"; d="scan'208";a="358820816" Received: from otc-lr-04.jf.intel.com ([10.54.39.41]) by orsmga003.jf.intel.com with ESMTP; 08 Feb 2021 07:30:30 -0800 From: kan.liang@linux.intel.com To: peterz@infradead.org, acme@kernel.org, mingo@kernel.org, linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, bp@alien8.de, namhyung@kernel.org, jolsa@redhat.com, ak@linux.intel.com, yao.jin@linux.intel.com, alexander.shishkin@linux.intel.com, adrian.hunter@intel.com, Kan Liang Subject: [PATCH 23/49] perf/x86/msr: Add Alder Lake CPU support Date: Mon, 8 Feb 2021 07:25:20 -0800 Message-Id: <1612797946-18784-24-git-send-email-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1612797946-18784-1-git-send-email-kan.liang@linux.intel.com> References: <1612797946-18784-1-git-send-email-kan.liang@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kan Liang PPERF and SMI_COUNT MSRs are also supported on Alder Lake. The External Design Specification (EDS) is not published yet. It comes from an authoritative internal source. The patch has been tested on real hardware. Reviewed-by: Andi Kleen Signed-off-by: Kan Liang --- 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 680404c..c853b28 100644 --- a/arch/x86/events/msr.c +++ b/arch/x86/events/msr.c @@ -100,6 +100,8 @@ static bool test_intel(int idx, void *data) case INTEL_FAM6_TIGERLAKE_L: case INTEL_FAM6_TIGERLAKE: case INTEL_FAM6_ROCKETLAKE: + case INTEL_FAM6_ALDERLAKE: + case INTEL_FAM6_ALDERLAKE_L: if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF) return true; break; -- 2.7.4