Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1831045pxb; Mon, 12 Apr 2021 07:42:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSh/sfjMhEbZZXLrZXDfZB/ZW+QxpjHzkmpbIeqrvep+SJV60J3mSoDS1MgeI8P12xmdQD X-Received: by 2002:a50:c3c2:: with SMTP id i2mr29753817edf.23.1618238579391; Mon, 12 Apr 2021 07:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618238579; cv=none; d=google.com; s=arc-20160816; b=T7GJ5HbOwtkWP+t1C8vq/YWYDlvcUz8eEz7zcwuQR7RWoAKY4KoCQa8yoCWFQ5rpUv bZc8Q/z3aO+xXxJceoad1+bJA2hYDq5vm/3XeJeIKffo16pub48ge0KQwLxwm1MWZISe DSsTiekMtx5dePoefL3pSfv85nVUMD8lqrRyMLJrJ006o6syvr+JMX19H6E1gVVvUeQe jTPEZ0CDh3OSc9HrNv2k8aTK5BJQf1OcJifiVzqRxh5a2oTjYul0kx0TbCHSjekjaDWX ymAq6v1og3gtYgRb6ghBVFIIuy4IPFywfO9UMJ/E5svxig7iOrbCvOzCF3ODgNY5oTBa cMGA== 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=Wn8W0B4jZoaxvVzp9U3++G3Wu0zr2ub38w4bmcq9Uw8=; b=xEEeQh6vquOGtmf4PzAtbWkCooi3uHsbtUyDTI8PeH0XLp6p+L2ax+vLHIkwLnalsR 6dKHNYj1bFK1RNQPnhSUvWegViOmjnCGPUtTduJ9ba2X2ePTwEoR8x2coBOPwMzsFSM5 wv71fZcKQ7LtiT/OSlJauTyHpKah16Yy9CoPVZSbSz9O7/L7QN6mpmNrYiPJwnSdmqbh zluMEMebhtHO38+lbFC/V9tDQwUSi/RXHotyUkS5hIsnjLcComIojl2wUF+iA5I0FNGg sCYcx1KV5vPqcEAPeoIeNam8Yxi6Kr4MgAwmnT5WRQhxngPqVc+6AN9vfSbB5SgzQngq oJog== 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 d21si7492086ejm.343.2021.04.12.07.42.34; Mon, 12 Apr 2021 07:42:59 -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 S242582AbhDLOjh (ORCPT + 99 others); Mon, 12 Apr 2021 10:39:37 -0400 Received: from mga09.intel.com ([134.134.136.24]:29202 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242520AbhDLOjJ (ORCPT ); Mon, 12 Apr 2021 10:39:09 -0400 IronPort-SDR: 30QvuMokkmX/YRSBBKI+mU90SNTaoYU5LzNXm211WXIGBV+DFzRhRFFA0XkhQDHeDxWKl9VQPf vCvSUcSQK5pw== X-IronPort-AV: E=McAfee;i="6200,9189,9952"; a="194318035" X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="194318035" 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:39 -0700 IronPort-SDR: Ni1l97AUkOVayfL1Akf57AVEbDpo7n6pdXdcKbM5vY6cFMqGY7ovcAZYA5ZhG85+VVs+24o3bG r4FcexGDZr1g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="398392905" Received: from otc-lr-04.jf.intel.com ([10.54.39.41]) by orsmga002.jf.intel.com with ESMTP; 12 Apr 2021 07:38:39 -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, Zhang Rui Subject: [PATCH V6 25/25] perf/x86/rapl: Add support for Intel Alder Lake Date: Mon, 12 Apr 2021 07:31:05 -0700 Message-Id: <1618237865-33448-26-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: 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 f42a704..84a1042 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