Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4206373pxb; Mon, 8 Feb 2021 10:21:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJykdd9/Vmtij3ooF4NVGTHNa7d5ltCb0i+zoV9syAlCb+zOX9TPrm0pjO6MdfoRP7+xiAvN X-Received: by 2002:aa7:dcc6:: with SMTP id w6mr10852195edu.19.1612808460435; Mon, 08 Feb 2021 10:21:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612808460; cv=none; d=google.com; s=arc-20160816; b=mcwqa56qF30Ad2RUYlFG1Wh2lNcLWOGaKoyKKWPH4npUXMUHHv0/Xi+rqt9o4b1RKE RRf4ZHZ0MTYy0D5QUKA2ipVWnEDjvSkZBwlz+Lgv81LijLignPHwIh2JkElrzuw1keEm J87DVhdE2SCwWNB65lQhNXGaZHmUJaVvu4IbI5WVjNCYv/9Kf6sKTk9diwBkNcmQt9sg 6J1SfbO1C3XYCwMLfVFMrNUeqmAWzSC14njuYmyV1DQkELuDn+0tnR3efKLrdxTKdccg 1Z92frQJPAC+Sce0vuP2mi6W5fSTyQuFkEOg1K165vHAFLisRiWAAiH1SAY4ttVXJf4q 7z3A== 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=ouOqndM5Gf43VB4iIzLejBmp8cB5yoNJNzU4mjSnSvs=; b=eKJClVwtfXg/SA/iABftMOVNybpFzkFx8z52JdqPP9cE4hhAAZow1ce8YKF0FMq8bo 5BJ0fuaffJ+3ljG0eV7eK1stAm/oIYDOj7K+FatB6+otXNB/7DAWmVXi/ejblHXcNN3J OtZWShszEefJ6TKvUsa8QWYQ/wVWb/t1PMJqC9XRD2R34/rxZ9Ic1mSAeEVzZX5AKUe4 dqE1bveJQ0ApGNVVAOI0MlnT8lk4bmRnGPEe5BkJzDTpbtvhRe9WqBrX0NeVcvcm2CTe /xgJNjLqs++5w8ERvx21CNuEAWYJpf5tQ+NAngFKaixwvMt31+QrLvi20FPT82Pheg80 IVvg== 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 h15si10774085ejd.725.2021.02.08.10.20.35; Mon, 08 Feb 2021 10:21:00 -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 S231206AbhBHSSZ (ORCPT + 99 others); Mon, 8 Feb 2021 13:18:25 -0500 Received: from mga14.intel.com ([192.55.52.115]:62780 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233563AbhBHPoM (ORCPT ); Mon, 8 Feb 2021 10:44:12 -0500 IronPort-SDR: RyjfktX1RDK16emmqPBEJSmmxNmu4HOkkQ6X0gPoq8L1FoQDBDN5WOsVXAYExDMFBe5gAB/Bjn Z1aJU0hS0BFg== X-IronPort-AV: E=McAfee;i="6000,8403,9889"; a="180952027" X-IronPort-AV: E=Sophos;i="5.81,162,1610438400"; d="scan'208";a="180952027" 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:33 -0800 IronPort-SDR: whp25ScG/IsSOzKQhqGnt9f+YVd/SLGoABOjXNNnXsQP86SvApXnHX0afdB8BJdfVaiXvmtcGm XcWtrmUbI+wg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,162,1610438400"; d="scan'208";a="358820845" Received: from otc-lr-04.jf.intel.com ([10.54.39.41]) by orsmga003.jf.intel.com with ESMTP; 08 Feb 2021 07:30:33 -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, Zhang Rui Subject: [PATCH 25/49] perf/x86/rapl: Add support for Intel Alder Lake Date: Mon, 8 Feb 2021 07:25:22 -0800 Message-Id: <1612797946-18784-26-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: Zhang Rui Alder Lake RAPL support is the same as previous Sky Lake. Add Alder Lake model for RAPL. Reviewed-by: Andi Kleen Signed-off-by: Zhang Rui --- arch/x86/events/rapl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c index 7dbbeaa..b493459 100644 --- a/arch/x86/events/rapl.c +++ b/arch/x86/events/rapl.c @@ -800,6 +800,8 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = { X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_X, &model_hsx), X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE_L, &model_skl), X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE, &model_skl), + X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, &model_skl), + X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, &model_skl), X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &model_spr), X86_MATCH_VENDOR_FAM(AMD, 0x17, &model_amd_fam17h), X86_MATCH_VENDOR_FAM(HYGON, 0x18, &model_amd_fam17h), -- 2.7.4