Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1832364pxb; Mon, 12 Apr 2021 07:44:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCQgMO+0RkvJMNErJr+RQcuCNGCh4GWUmskhB0ThdgUYIlWw/I8bzMZrFLl1KKyVmHmVos X-Received: by 2002:a05:6402:5255:: with SMTP id t21mr29807707edd.91.1618238670829; Mon, 12 Apr 2021 07:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618238670; cv=none; d=google.com; s=arc-20160816; b=voVEpvVjD/fXiy+gIGFRDEF+6A3UIT/3i8qEfKvSc6Y1gN35DP9ks658uS16koj8tG NHHLVLnA0oYV+lG8CjKrHeiT801qZ945DbXH9MhghshraUAYd6FtbENJVJm4elSYv9Kv 3lDL0Ewm2/Y9ugFtzd8iSdaZjuQ8ZICjI0NKHvdFsFQ5KSIhKE+S2O5WoKmkvfLKanQl k9bzTv3tfMnyK5veINH3QEhI9JnTQqkpD3hwWEoYxXqV/jwTbaGT+lU3JnDPz555cBZK 9D0u1Rz6SHDsoJ6cBsDqTkVvvKbW2Ualyi/Wy9dBKaI+CJw4BYIeZwWjVML2aNosfQOM O8NA== 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=T27l5Uyxtw1XdXPQYQCs/XrzU5JwbHORimct0ETUu2zMWcYt4gUOttS2a7eTGBnPEG dAcboDkZSGVM/kygRtrDHZ3gxCA0pV8KwZzzmPK726B3elI2wgDORgJqUyeQV1ocNUQ+ evfaH4/sON5tHpT/bH57z6mxlF91QnKfXZugFQkBXMD/4kNyJ5O5yp4yn7ork+f6BLN0 ZQkHqsG/Lt81yXNqbhllKU9jAgSdiuzUXVycBkh+1nMKLpfHKwYA2YTFkdV+H5TVbZ4I RUN2TkDa1pN8xiGw1DzWp9+ChKzcaPTlBoHOpMJTS3MecJezmcOYeq5LnbXI2WwzXJUc T6Dg== 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 g24si8046514edj.236.2021.04.12.07.44.06; Mon, 12 Apr 2021 07:44:30 -0700 (PDT) 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 S242187AbhDLOku (ORCPT + 99 others); Mon, 12 Apr 2021 10:40:50 -0400 Received: from mga09.intel.com ([134.134.136.24]:29206 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242516AbhDLOjI (ORCPT ); Mon, 12 Apr 2021 10:39:08 -0400 IronPort-SDR: zNifX/YpFiAeZjrFyCIIqJp7FM03x27RlElw5kGR7hrEimdMHfsV6r636pnNBBKRUU075+Lyew 4OUz4xLQ0IIw== X-IronPort-AV: E=McAfee;i="6200,9189,9952"; a="194318029" X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="194318029" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2021 07:38:37 -0700 IronPort-SDR: OtecLBDVD9YIzEsxQgbjs/ZysGGFhA01PI8lwHoBJBiCHI+t6CmgSwoNs+ASqyyM2t6afBR6O3 sApUejLV5+oA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="398392892" Received: from otc-lr-04.jf.intel.com ([10.54.39.41]) by orsmga002.jf.intel.com with ESMTP; 12 Apr 2021 07:38:37 -0700 From: kan.liang@linux.intel.com To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org Cc: acme@kernel.org, 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, ricardo.neri-calderon@linux.intel.com, Kan Liang Subject: [PATCH V6 23/25] perf/x86/msr: Add Alder Lake CPU support Date: Mon, 12 Apr 2021 07:31:03 -0700 Message-Id: <1618237865-33448-24-git-send-email-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618237865-33448-1-git-send-email-kan.liang@linux.intel.com> References: <1618237865-33448-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