From patchwork Mon Jan 9 17:02:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 40987 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2268394wrt; Mon, 9 Jan 2023 09:04:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXusvgURgSHdYMHZ7HfGb9mWEnx1sNrweOmW/0VE+fYx1Wbu3hmLw4qLGJMMb3NunHqSXOWk X-Received: by 2002:aa7:d653:0:b0:47e:15ec:155e with SMTP id v19-20020aa7d653000000b0047e15ec155emr53125072edr.26.1673283899265; Mon, 09 Jan 2023 09:04:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673283899; cv=none; d=google.com; s=arc-20160816; b=gPVakwQlM08HbshIySt1NuX43FJNdHZzt14MpClWDr0TkzMp8dPi1MMu8jCUxiALan 99baCqpb9mkmgU7r42Zf9hcbedAzjLMPO6xOFYVYhyXivI7H3ZzDGboq06MIE+3Bdf9B wJOBoBuAr+oOamL9EvZlXHcn2QMbC4+sLHdkswHrqudTRkd2bTQFe08QspSqklY9RRYg VrNK1luES4fTMQn80O08nb6YAtWwGzOUonYp3cfg06OhQF8vPGeXl014mfvLnVTPmJbe yOrbXTuh7YhHCXC3cQs7mK85O91NFqI1iqVLL1ETQwNERTrqli3vXlTHcZUGt2yfwXOA bMYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=UmaWziwEavHLZxEthSZQKu71CPLO6JX9rqytVI/X8pc=; b=pp34hp4vMV1YuYGtI6lZ1wQRarb2I2a6jh2Kw+EwxWvtbo2EotQx/8npnFcqH/arSz IttRBQsBjocA0Eie6I9SCR89oxvZ9VGoUf4V3cLILKwYRmEefFc/wFujtw2jRoo8z00w D9srTy+DNxgBUWa+csfnGUIAZYtWwMRFMtaBtELvhydj2Zm7LiBn0q8RI/P1Hj5D7CTv HkNBuY1AEArCzp3vfg6FwzdVHfGfS2CQ37Nrq3Q2FFHpX2+RM71BdXE95AnWs57cPck4 e+6Juv9zN7CWItROtN62CLXN1BVywjgSKOpKCeQBbF252umrcC4hEM6X7V78byihhF8M kZkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=lSAQ5Qnt; dkim=neutral (no key) header.i=@linutronix.de header.b=ZyQu9eWb; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g20-20020a056402115400b0046fad4cbbd5si8478408edw.199.2023.01.09.09.04.36; Mon, 09 Jan 2023 09:04:59 -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=@linutronix.de header.s=2020 header.b=lSAQ5Qnt; dkim=neutral (no key) header.i=@linutronix.de header.b=ZyQu9eWb; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237007AbjAIRCx (ORCPT + 99 others); Mon, 9 Jan 2023 12:02:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237186AbjAIRCL (ORCPT ); Mon, 9 Jan 2023 12:02:11 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AB8F3FC81; Mon, 9 Jan 2023 09:02:10 -0800 (PST) Date: Mon, 09 Jan 2023 17:02:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673283728; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UmaWziwEavHLZxEthSZQKu71CPLO6JX9rqytVI/X8pc=; b=lSAQ5QntmQ8PXDkFF3HM0CguxlwA3dJ4w78iKfcNfhOE0pHSf+/QgWdjPfk2J0+TVlSxe5 AMyYBaK8IJObIGWIQtkS59p3Sl6sK1a8CHJtgST3u8I+PHJ4wu01sMaBH6ECzjZibQsGai HAoJxRgRXImfceRMluQrHH1TvTahfrl+r8ZF81jOhTS4KTFQpjWH+jro7PyRINrt8huy1T fY4iJhLUdnKRiFcIWlMmBpsv2zcyhwc5WmerGUojNvs3wly5s2mTs2plw8cTQ/Cs6dAK0D jCKXsdxFqqavhn+q8xFmF0bLSBWo9dqry0Mpq1OM4ElF4DTgBjUnyGFtMPiH2A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673283728; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UmaWziwEavHLZxEthSZQKu71CPLO6JX9rqytVI/X8pc=; b=ZyQu9eWbLzvTK1/yhvBoUHyre8nHP0zEVPmbpqZwinG6nC1h33pVgJIC54SD8W75GbmB/p di2Nv62+JHUEVPAQ== From: "tip-bot2 for Kan Liang" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf/x86/cstate: Add Meteor Lake support Cc: Kan Liang , Ingo Molnar , Andi Kleen , Peter Zijlstra , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230104201349.1451191-6-kan.liang@linux.intel.com> References: <20230104201349.1451191-6-kan.liang@linux.intel.com> MIME-Version: 1.0 Message-ID: <167328372831.4906.4387314164399016390.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754124367734441599?= X-GMAIL-MSGID: =?utf-8?q?1754565337830201914?= The following commit has been merged into the perf/core branch of tip: Commit-ID: eaef048c281bf7eaecdfde96d9b305b8644c9f66 Gitweb: https://git.kernel.org/tip/eaef048c281bf7eaecdfde96d9b305b8644c9f66 Author: Kan Liang AuthorDate: Wed, 04 Jan 2023 12:13:46 -08:00 Committer: Ingo Molnar CommitterDate: Mon, 09 Jan 2023 12:22:08 +01:00 perf/x86/cstate: Add Meteor Lake support Meteor Lake is Intel's successor to Raptor lake. From the perspective of Intel cstate residency counters, there is nothing changed compared with Raptor lake. Share adl_cstates with Raptor lake. Update the comments for Meteor Lake. Signed-off-by: Kan Liang Signed-off-by: Ingo Molnar Reviewed-by: Andi Kleen Acked-by: Peter Zijlstra Link: https://lore.kernel.org/r/20230104201349.1451191-6-kan.liang@linux.intel.com --- arch/x86/events/intel/cstate.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/arch/x86/events/intel/cstate.c b/arch/x86/events/intel/cstate.c index a2834bc..3019fb1 100644 --- a/arch/x86/events/intel/cstate.c +++ b/arch/x86/events/intel/cstate.c @@ -41,6 +41,7 @@ * MSR_CORE_C1_RES: CORE C1 Residency Counter * perf code: 0x00 * Available model: SLM,AMT,GLM,CNL,ICX,TNT,ADL,RPL + * MTL * Scope: Core (each processor core has a MSR) * MSR_CORE_C3_RESIDENCY: CORE C3 Residency Counter * perf code: 0x01 @@ -51,50 +52,50 @@ * perf code: 0x02 * Available model: SLM,AMT,NHM,WSM,SNB,IVB,HSW,BDW, * SKL,KNL,GLM,CNL,KBL,CML,ICL,ICX, - * TGL,TNT,RKL,ADL,RPL,SPR + * TGL,TNT,RKL,ADL,RPL,SPR,MTL * Scope: Core * MSR_CORE_C7_RESIDENCY: CORE C7 Residency Counter * perf code: 0x03 * Available model: SNB,IVB,HSW,BDW,SKL,CNL,KBL,CML, - * ICL,TGL,RKL,ADL,RPL + * ICL,TGL,RKL,ADL,RPL,MTL * Scope: Core * MSR_PKG_C2_RESIDENCY: Package C2 Residency Counter. * perf code: 0x00 * Available model: SNB,IVB,HSW,BDW,SKL,KNL,GLM,CNL, * KBL,CML,ICL,ICX,TGL,TNT,RKL,ADL, - * RPL,SPR + * RPL,SPR,MTL * Scope: Package (physical package) * MSR_PKG_C3_RESIDENCY: Package C3 Residency Counter. * perf code: 0x01 * Available model: NHM,WSM,SNB,IVB,HSW,BDW,SKL,KNL, * GLM,CNL,KBL,CML,ICL,TGL,TNT,RKL, - * ADL,RPL + * ADL,RPL,MTL * Scope: Package (physical package) * MSR_PKG_C6_RESIDENCY: Package C6 Residency Counter. * perf code: 0x02 * Available model: SLM,AMT,NHM,WSM,SNB,IVB,HSW,BDW, * SKL,KNL,GLM,CNL,KBL,CML,ICL,ICX, - * TGL,TNT,RKL,ADL,RPL,SPR + * TGL,TNT,RKL,ADL,RPL,SPR,MTL * Scope: Package (physical package) * MSR_PKG_C7_RESIDENCY: Package C7 Residency Counter. * perf code: 0x03 * Available model: NHM,WSM,SNB,IVB,HSW,BDW,SKL,CNL, - * KBL,CML,ICL,TGL,RKL,ADL,RPL + * KBL,CML,ICL,TGL,RKL,ADL,RPL,MTL * Scope: Package (physical package) * MSR_PKG_C8_RESIDENCY: Package C8 Residency Counter. * perf code: 0x04 * Available model: HSW ULT,KBL,CNL,CML,ICL,TGL,RKL, - * ADL,RPL + * ADL,RPL,MTL * Scope: Package (physical package) * MSR_PKG_C9_RESIDENCY: Package C9 Residency Counter. * perf code: 0x05 * Available model: HSW ULT,KBL,CNL,CML,ICL,TGL,RKL, - * ADL,RPL + * ADL,RPL,MTL * Scope: Package (physical package) * MSR_PKG_C10_RESIDENCY: Package C10 Residency Counter. * perf code: 0x06 * Available model: HSW ULT,KBL,GLM,CNL,CML,ICL,TGL, - * TNT,RKL,ADL,RPL + * TNT,RKL,ADL,RPL,MTL * Scope: Package (physical package) * */ @@ -686,6 +687,8 @@ static const struct x86_cpu_id intel_cstates_match[] __initconst = { X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE, &adl_cstates), X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, &adl_cstates), X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, &adl_cstates), + X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE, &adl_cstates), + X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L, &adl_cstates), { }, }; MODULE_DEVICE_TABLE(x86cpu, intel_cstates_match);