From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.198 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796199730; b=P//DSR768ql85b0VFPkLCOz8GLoEzBvTT7lLcFWvaPjBN+56xThfoLo64bo6YLsBcC0O Z3dr0XDtlygHgkqf/0wxevEZCb5+cPlUiy9U+kt7sOnGnocgMyu+TCB9uF9y6xkNRYG5C zBNlB0NG5/BZdVZmCWxCpubmpVGRFOBGM+vr6Pv03TQqoChrafGjWCJG7uFtfz3XrcuNu 6TjCV7c62ULxqINAi1qZiZ5h49PiUe/ZtmolqnlKG1VAfP9So3lOq/aCAScGEz80CgkSI tR6sW6IW/BO6hrwaxdc+ROWpC22mC5SvR7yeleSPohpvIHnmOuct4TuQ756A4eprciw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796199730; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type:Content-Transfer-Encoding; bh=gHU9bbZ5hh6tSqj0Dxf1bQ3H2u2Rr13YtPzFqdMMI+Y=; b=VZwx50lUV1MdQiQbGZwtfVZ8iFHKsVNiGqGS6C+MxMMDHd89zoyvhyoLtSh+5/4/25un zTNHlChjtZuJq7yem0Gk8y1pxWhiCfgey88qg9LqrlTG59DSMttjlKdHUkti/rls3JCGV vPkcvrXJj0HixwDg7w5TNxhyK/vkYKOBQoMXI3/TnoCLyXhsJr5qItxTFUqCf0PtzbKH3 mc1G0lC39u0IEz9X6uhy9cjjW2z3/tjesH/URVFvok2JxrkjtRIHJRZeh2xMgkm7PYV9M wDN0msIYaJxG+uaozo4G6cnXvpQYOUgC2oJH43X18OEreC5GkRdl3wBqIbx5+fpDOGg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=EzHEBlWJ; arc=none smtp.remote-ip=74.125.82.198 Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 214EC606A32E for ; Wed, 2 Dec 2026 08:22:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 214EC606A32E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=EzHEBlWJ Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-384c78aa0dbso15698667eec.0 for ; Wed, 02 Dec 2026 00:22:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796199729; x=1796804529; darn=vger.kernel.org; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date:from:to:cc :subject:date:message-id:reply-to:content-type; bh=gHU9bbZ5hh6tSqj0Dxf1bQ3H2u2Rr13YtPzFqdMMI+Y=; b=EzHEBlWJowr8Q8WfD0mu4gntZMbEGvUrO92UC4welROviPIT7dTAgE+whUW0GWG/ZY lVKyox1RXm7ZBgpjOiDR7L1HC8XCvfyocqrpCmpQN+RsluDxNvgX/vlelbUNxi+/pIB7 74AN706HtGQS89KgxaUgwVCoskHDm/XexTUnyLX7gEKXyoGK9BkF8hSP+ia8MXl7SuHu OI3xUPRkPQWwT7Lk9H2JjuXv7VCHOJhKeagKHGlM6DwPtoCM7IaMwgGwZcN3l/E2QKzQ YKXzC8oE7SlMXeepyd7NrJbxJBjWNdYIy4RJqthvH1E+S05Cl5bbOXDaBLFsqbuhm5sp nhpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796199729; x=1796804529; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=gHU9bbZ5hh6tSqj0Dxf1bQ3H2u2Rr13YtPzFqdMMI+Y=; b=ly7eBIRIhXLMORbkAfjaW0dM1wSl17WtVIJ3ZDJ70rleAaYbkwVOBdPrBHPBggpKQg 4JZxfTSlWiPJfj1qepMTuaeLLfAa+riC/e+7z/OXObaH1qKjK3PWO67N7VQw46zVknBJ BuIaggPjN25CpSrs7av9haXncSEBSv46LBcAwGDh3De9Fd3jmiSV/qMq6SHnJEHdgFtx Q/8Rrl4sQJp7zCBmRLf58p6SLiSXblwI6WtLWajcMNEuhFCq9qQshOFJCAod4uo+1oyj 0mxiPnca5PFDT1IhrnQnmBK+r+g6UUq3HDLm9xNMeTxyfm3NbVvnQURyfeQtYFiJtVN6 NN5Q== X-Forwarded-Encrypted: i=1; AL+hErEnjEtH2yxW+IU9+Cq0vT9a0A0VqR0hTULA/196CrvOdsjH4hYuY1Q2rSTHW3f8U5AKa2zLyjEHYhMv0O8=@vger.kernel.org X-Gm-Message-State: APuU4Z+SPRtNT9Ut6tNqyWPBuVUTHx+/WBIvq0crS2WXntGORmHTmz1o Dg8JxPKzTTlMqvaC0YkiDUPVCECKuGzmjz88Bz8/ZQ2r4wt2Mk1qOd6jCm1Tvu+p30o64ScGCJd Eh+zW5AzdJQ== X-Received: from dybkz9.prod.google.com ([2002:a05:7301:1a09:b0:37a:8a0f:3aba]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:701a:cc95:20b0:144:fa57:c617 with SMTP id a92af1059eb24-1b5568f1200mr34761392c88.34.1796199728891; Wed, 02 Dec 2026 00:22:08 -0800 (PST) Date: Wed, 2 Dec 2026 00:21:06 -0800 In-Reply-To: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: X-Mailer: git-send-email 2.56.1.915.g69d5ec7298-goog Message-ID: Subject: [PATCH 15/36] perf vendor events intel: Update grandridge events and metrics From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Adrian Hunter , James Clark , Mark Rutland , Alexander Shishkin Cc: Dapeng Mi , Zide Chen , Thomas Falcon , Chun-Tse Shao , Lalit Maganti , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Ian Rogers , Sandipan Das Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Re-generate grandridge events and metrics with create_perf_json.py: - Drop bogus Available PDIST counters text from non-precise events. - Drop zero-valued PortMask/FCMask fields from uncore events. - Align cstate metrics with intel/cstate.c and add C6_Module_Residency. - Use aggr_nr() in uncore frequency/occupancy metric expressions. Fixes: b52c4123a5df ("perf vendor events: Update GrandRidge events/metrics"= ) Signed-off-by: Ian Rogers --- .../pmu-events/arch/x86/grandridge/cache.json | 5 --- .../arch/x86/grandridge/grr-metrics.json | 43 ++----------------- .../arch/x86/grandridge/memory.json | 2 - .../pmu-events/arch/x86/grandridge/other.json | 1 - .../arch/x86/grandridge/uncore-cache.json | 3 -- .../arch/x86/grandridge/uncore-io.json | 13 ------ 6 files changed, 4 insertions(+), 63 deletions(-) diff --git a/tools/perf/pmu-events/arch/x86/grandridge/cache.json b/tools/p= erf/pmu-events/arch/x86/grandridge/cache.json index 4c7727df33e4..23b7af16df45 100644 --- a/tools/perf/pmu-events/arch/x86/grandridge/cache.json +++ b/tools/perf/pmu-events/arch/x86/grandridge/cache.json @@ -554,7 +554,6 @@ "EventName": "OCR.DEMAND_DATA_RD.ANY_RESPONSE", "MSRIndex": "0x1a6,0x1a7", "MSRValue": "0x10001", - "PublicDescription": "Counts demand data reads that have any type = of response. Available PDIST counters: 0", "SampleAfterValue": "100003", "UMask": "0x1" }, @@ -565,7 +564,6 @@ "EventName": "OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM", "MSRIndex": "0x1a6,0x1a7", "MSRValue": "0x10003C0001", - "PublicDescription": "Counts demand data reads that were supplied = by the L3 cache where a snoop was sent, the snoop hit, and modified data wa= s forwarded. Available PDIST counters: 0", "SampleAfterValue": "100003", "UMask": "0x1" }, @@ -576,7 +574,6 @@ "EventName": "OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HIT_WITH_FWD", "MSRIndex": "0x1a6,0x1a7", "MSRValue": "0x8003C0001", - "PublicDescription": "Counts demand data reads that were supplied = by the L3 cache where a snoop was sent, the snoop hit, and non-modified dat= a was forwarded. Available PDIST counters: 0", "SampleAfterValue": "100003", "UMask": "0x1" }, @@ -587,7 +584,6 @@ "EventName": "OCR.DEMAND_RFO.ANY_RESPONSE", "MSRIndex": "0x1a6,0x1a7", "MSRValue": "0x10002", - "PublicDescription": "Counts demand reads for ownership (RFO) and = software prefetches for exclusive ownership (PREFETCHW) that have any type = of response. Available PDIST counters: 0", "SampleAfterValue": "100003", "UMask": "0x1" }, @@ -598,7 +594,6 @@ "EventName": "OCR.DEMAND_RFO.L3_HIT.SNOOP_HITM", "MSRIndex": "0x1a6,0x1a7", "MSRValue": "0x10003C0002", - "PublicDescription": "Counts demand reads for ownership (RFO) and = software prefetches for exclusive ownership (PREFETCHW) that were supplied = by the L3 cache where a snoop was sent, the snoop hit, and modified data wa= s forwarded. Available PDIST counters: 0", "SampleAfterValue": "100003", "UMask": "0x1" }, diff --git a/tools/perf/pmu-events/arch/x86/grandridge/grr-metrics.json b/t= ools/perf/pmu-events/arch/x86/grandridge/grr-metrics.json index a0d637a24c1b..a24f48f2c3d0 100644 --- a/tools/perf/pmu-events/arch/x86/grandridge/grr-metrics.json +++ b/tools/perf/pmu-events/arch/x86/grandridge/grr-metrics.json @@ -1,11 +1,4 @@ [ - { - "BriefDescription": "C10 residency percent per package", - "MetricExpr": "cstate_pkg@c10\\-residency@ / msr@tsc@", - "MetricGroup": "Power", - "MetricName": "C10_Pkg_Residency", - "ScaleUnit": "100%" - }, { "BriefDescription": "C1 residency percent per core", "MetricExpr": "cstate_core@c1\\-residency@ / msr@tsc@", @@ -13,20 +6,6 @@ "MetricName": "C1_Core_Residency", "ScaleUnit": "100%" }, - { - "BriefDescription": "C2 residency percent per package", - "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", - "MetricGroup": "Power", - "MetricName": "C2_Pkg_Residency", - "ScaleUnit": "100%" - }, - { - "BriefDescription": "C3 residency percent per package", - "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", - "MetricGroup": "Power", - "MetricName": "C3_Pkg_Residency", - "ScaleUnit": "100%" - }, { "BriefDescription": "C6 residency percent per core", "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", @@ -35,24 +14,10 @@ "ScaleUnit": "100%" }, { - "BriefDescription": "C6 residency percent per package", - "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", - "MetricGroup": "Power", - "MetricName": "C6_Pkg_Residency", - "ScaleUnit": "100%" - }, - { - "BriefDescription": "C7 residency percent per core", - "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", - "MetricGroup": "Power", - "MetricName": "C7_Core_Residency", - "ScaleUnit": "100%" - }, - { - "BriefDescription": "C8 residency percent per package", - "MetricExpr": "cstate_pkg@c8\\-residency@ / msr@tsc@", + "BriefDescription": "C6 residency percent per module", + "MetricExpr": "cstate_module@c6\\-residency@ / msr@tsc@", "MetricGroup": "Power", - "MetricName": "C8_Pkg_Residency", + "MetricName": "C6_Module_Residency", "ScaleUnit": "100%" }, { @@ -782,7 +747,7 @@ }, { "BriefDescription": "Uncore operating frequency in GHz", - "MetricExpr": "UNC_CHA_CLOCKTICKS / (source_count(UNC_CHA_CLOCKTIC= KS) * #num_packages) / 1e9 / duration_time", + "MetricExpr": "UNC_CHA_CLOCKTICKS / aggr_nr(UNC_CHA_CLOCKTICKS) / = 1e9 / duration_time", "MetricName": "uncore_frequency", "ScaleUnit": "1GHz" } diff --git a/tools/perf/pmu-events/arch/x86/grandridge/memory.json b/tools/= perf/pmu-events/arch/x86/grandridge/memory.json index 3cbd86976e51..6c957b028c2c 100644 --- a/tools/perf/pmu-events/arch/x86/grandridge/memory.json +++ b/tools/perf/pmu-events/arch/x86/grandridge/memory.json @@ -136,7 +136,6 @@ "EventName": "OCR.DEMAND_DATA_RD.L3_MISS", "MSRIndex": "0x1a6,0x1a7", "MSRValue": "0x3FBFC00001", - "PublicDescription": "Counts demand data reads that were not suppl= ied by the L3 cache. Available PDIST counters: 0", "SampleAfterValue": "100003", "UMask": "0x1" }, @@ -147,7 +146,6 @@ "EventName": "OCR.DEMAND_RFO.L3_MISS", "MSRIndex": "0x1a6,0x1a7", "MSRValue": "0x3FBFC00002", - "PublicDescription": "Counts demand reads for ownership (RFO) and = software prefetches for exclusive ownership (PREFETCHW) that were not suppl= ied by the L3 cache. Available PDIST counters: 0", "SampleAfterValue": "100003", "UMask": "0x1" } diff --git a/tools/perf/pmu-events/arch/x86/grandridge/other.json b/tools/p= erf/pmu-events/arch/x86/grandridge/other.json index ea34103a8292..daa16030d493 100644 --- a/tools/perf/pmu-events/arch/x86/grandridge/other.json +++ b/tools/perf/pmu-events/arch/x86/grandridge/other.json @@ -15,7 +15,6 @@ "EventName": "OCR.STREAMING_WR.ANY_RESPONSE", "MSRIndex": "0x1a6,0x1a7", "MSRValue": "0x10800", - "PublicDescription": "Counts streaming stores that have any type o= f response. Available PDIST counters: 0", "SampleAfterValue": "100003", "UMask": "0x1" } diff --git a/tools/perf/pmu-events/arch/x86/grandridge/uncore-cache.json b/= tools/perf/pmu-events/arch/x86/grandridge/uncore-cache.json index b89ab6e5cfb5..7a42f1f020fd 100644 --- a/tools/perf/pmu-events/arch/x86/grandridge/uncore-cache.json +++ b/tools/perf/pmu-events/arch/x86/grandridge/uncore-cache.json @@ -5,7 +5,6 @@ "EventCode": "0x01", "EventName": "UNC_CHACMS_CLOCKTICKS", "PerPkg": "1", - "PortMask": "0x000", "Unit": "CHACMS" }, { @@ -15,7 +14,6 @@ "EventName": "UNC_CHACMS_RING_SRC_THRTL", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "Unit": "CHACMS" }, { @@ -33,7 +31,6 @@ "EventCode": "0x59", "EventName": "UNC_CHA_DISTRESS_ASSERTED.DPT_ANY", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0x3", "Unit": "CHA" }, diff --git a/tools/perf/pmu-events/arch/x86/grandridge/uncore-io.json b/too= ls/perf/pmu-events/arch/x86/grandridge/uncore-io.json index 1a495a89ed57..63b9a58e28d5 100644 --- a/tools/perf/pmu-events/arch/x86/grandridge/uncore-io.json +++ b/tools/perf/pmu-events/arch/x86/grandridge/uncore-io.json @@ -5,7 +5,6 @@ "EventCode": "0x01", "EventName": "UNC_IIO_CLOCKTICKS", "PerPkg": "1", - "PortMask": "0x000", "Unit": "IIO" }, { @@ -709,7 +708,6 @@ "EventName": "UNC_IIO_IOMMU0.1G_HITS", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0x10", "Unit": "IIO" }, @@ -720,7 +718,6 @@ "EventName": "UNC_IIO_IOMMU0.2M_HITS", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0x8", "Unit": "IIO" }, @@ -731,7 +728,6 @@ "EventName": "UNC_IIO_IOMMU0.4K_HITS", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0x4", "Unit": "IIO" }, @@ -742,7 +738,6 @@ "EventName": "UNC_IIO_IOMMU0.CTXT_CACHE_HITS", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0x80", "Unit": "IIO" }, @@ -753,7 +748,6 @@ "EventName": "UNC_IIO_IOMMU0.CTXT_CACHE_LOOKUPS", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0x40", "Unit": "IIO" }, @@ -764,7 +758,6 @@ "EventName": "UNC_IIO_IOMMU0.FIRST_LOOKUPS", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0x1", "Unit": "IIO" }, @@ -775,7 +768,6 @@ "EventName": "UNC_IIO_IOMMU0.MISSES", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0x20", "Unit": "IIO" }, @@ -786,7 +778,6 @@ "EventName": "UNC_IIO_IOMMU1.NUM_MEM_ACCESSES", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0xc0", "Unit": "IIO" }, @@ -797,7 +788,6 @@ "EventName": "UNC_IIO_IOMMU1.SLPWC_1G_HITS", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0x4", "Unit": "IIO" }, @@ -808,7 +798,6 @@ "EventName": "UNC_IIO_IOMMU1.SLPWC_256T_HITS", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0x10", "Unit": "IIO" }, @@ -819,7 +808,6 @@ "EventName": "UNC_IIO_IOMMU1.SLPWC_512G_HITS", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "UMask": "0x8", "Unit": "IIO" }, @@ -925,7 +913,6 @@ "EventName": "UNC_IIO_PWT_OCCUPANCY", "Experimental": "1", "PerPkg": "1", - "PortMask": "0x000", "Unit": "IIO" }, { --=20 2.56.1.915.g69d5ec7298-goog