Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13342270rwl; Wed, 4 Jan 2023 06:59:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXvOm2CaPJ7wyYjhmOSCu8yzJvwOK+FF3hBjStIX/c03tOQg9HHsjvIerg/K68JiGHvWkdSM X-Received: by 2002:a05:6a21:33a7:b0:ad:c2f5:267c with SMTP id yy39-20020a056a2133a700b000adc2f5267cmr73544986pzb.53.1672844392576; Wed, 04 Jan 2023 06:59:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672844392; cv=none; d=google.com; s=arc-20160816; b=lIoyAUQKoao2A+kYSSi8LsJgpImj6ckqJ/j9JUKR2XDNri9JTLsntb0duYiMLpEHhC 5d8VF3RASYtbmHav5gTHh6PTUxCP3tQuxoO5SpfdSbFOk2F3l/vkuMZTM981vjmM11I6 n7Rix4bfCaI+tQI8YuAHUmBDi/mLpo7WNUvQW9F3W2sMoILcW/8kr71nQKyprV4IJ0Th k/sesxiG8xuB5GLAc9qmMKhMTzP3RkWX5bHW3Z+17W6DIxCt8ZAUKhkE3sZT+0b8RKpz DljKVBqHLRyuP0Mrke7W5Y+EiBQRMRbz0WNBeHNCDbqDKPzzJ8M7s8dNSDD75FgvRpae vVvg== 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:dkim-signature; bh=zRjOLdcCwIunz5VOOtizWWSWROLbcT0vxIQJdG3XU+4=; b=B8KSWSaYHSFo8UkRzVhDhhvG6/7yV2x00wo8Kn/Q/MjqMWraXMEbsL+RAsIScudehI h4Wtzfx9YKWy8pdQ933yyT0A2W9qJBIaDxdYG/qT104Cutka3EKn0WkkgIRs2nD2+PIg Ekcq0k+Z4rC2aRtOop4NylFHPdGipqzwuXq88z+/uzODgAg5V5/U1VHyrxDVrru/jLRB waxQFJt+OGpvSNBN3d6zu7zOfVk0Dn3rvT7TosBBpnMGwQsAkG3yWiZIr/lczxM9TIuM uhALg9OEtlNX6cNAJWOBJsBmJ7zJ9ylYzsOSRoxa/3c1ArdRWl2x1pK0zB4ScR4X+p/B P/JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AQvL8bPO; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e69-20020a636948000000b00478ba6cb230si35845807pgc.131.2023.01.04.06.59.44; Wed, 04 Jan 2023 06:59:52 -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=AQvL8bPO; 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 S235094AbjADOwM (ORCPT + 59 others); Wed, 4 Jan 2023 09:52:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239498AbjADOwE (ORCPT ); Wed, 4 Jan 2023 09:52:04 -0500 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D3B66478; Wed, 4 Jan 2023 06:52:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672843924; x=1704379924; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=elel7+bS3L05dbWw4U9vGK7LSsvQ2mQBav5PivsMYGo=; b=AQvL8bPO2AGewMyQefoysKq8DALbGGbyLOfPYpxf28Vsc5sSoIUOuZwM f+ejdKiLt6QiMN/tkV3IGRkW7FdO12TXm1JTUn5z70G1EjMPnxr5+Fjk4 VGUuTqHixn7wlbeLSU1j7/fzbNg8Mguo/XYGfDA1q3bBdFHtawkW41yEa nJA+cR1sV9lz+V/gifWqrqnUT2ZSD2fuHEU6siYsfJRcwBHdtXzcPt7w5 m+e0q3sXB7pC9LXSIvbkL9ehiMjLECm3c8DTBSxcCyyfA3TodWUsUqUnW vJz0K3GjZ8S2OeopWiFrgrf7FM5z2b0jBVUq4tnR0YbSvewcd2+lhD1dx Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="384240228" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="384240228" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2023 06:51:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="900575821" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="900575821" Received: from power-sh.sh.intel.com ([10.239.183.7]) by fmsmga006.fm.intel.com with ESMTP; 04 Jan 2023 06:51:38 -0800 From: Zhang Rui To: peterz@infradead.org Cc: mingo@redhat.com, tglx@linutronix.de, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@linux.intel.com Subject: [PATCH 2/2] perf/x86/rapl: Add support for Intel Emerald Rapids Date: Wed, 4 Jan 2023 22:58:31 +0800 Message-Id: <20230104145831.25498-2-rui.zhang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230104145831.25498-1-rui.zhang@intel.com> References: <20230104145831.25498-1-rui.zhang@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 Emerald Rapids RAPL support is the same as previous Sapphire Rapids. Add Emerald Rapids model for RAPL. Signed-off-by: Zhang Rui --- arch/x86/events/rapl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c index 0ef255602aa8..8ccf4a36e386 100644 --- a/arch/x86/events/rapl.c +++ b/arch/x86/events/rapl.c @@ -804,6 +804,7 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = { X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, &model_skl), X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N, &model_skl), X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &model_spr), + X86_MATCH_INTEL_FAM6_MODEL(EMERALDRAPIDS_X, &model_spr), X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE, &model_skl), X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, &model_skl), X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, &model_skl), -- 2.25.1