Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.71 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796236891; b=epbIkQi3FviXrR7M4zNInnn/WdzxZTvpBZTyNs0pkGuu2R21+/fMUSHf7H0yu4nfEYBU qTyScP43dHKSlEA/kwf1v8hgP4sYywfkRLd8XYyaCRm8rB1U7eaLf230xpYRh5v/wsb2J Dn5C6bUnpkcHSCv/OAc46QXuH9Zijla9pZO0NNKey/CcDP5axbfec6K+jccCYMUt1kVaR hT+BxVLy5BxN+E05ZZPuttXJh7G002cy6hT4CVZzrJnWh6N3pgJsArgvUbws21LemiSZs BF5V56twyZKLk4Dje5cTWNSt5Xydgw8/53I57kV7ZMl/8388FLxg869usyAOcsZ0bFg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796236891; 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=hbuzHby9PvXahhJ8lW007D2Ipa0lIiudgM7mz8AKg+UHELdTzIHMnDHXcj7nmDeGSG9G tVBtxPS2i7MvR0MO87tVzCqZaQv372v5R75knhM0sjvRVLgZWQnZjaLuRKgfDsnN+2a6D XaK2JH7b/pRojCc+e3FL6eNyMt0vbZnrsOumfv0zlMo3mvwxWRB9p9jpbrxyCbWxuZE92 pr5jYWhCAQFy3mowT+cOPPMgW4zgpFNaaVbtSo4REtiDPYRO+t04xfZeOGfR3lWlUinYg K+yNYALY4ZZUOoPfJACgSDXVyOnblq2Uk2LfBZG3QKoS/tyft0C9gYc5wpBWr8RNUQw== 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=DXcwVZvr; arc=none smtp.remote-ip=209.85.210.71 Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) (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 996AE606A6B6 for ; Wed, 2 Dec 2026 18:41:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 996AE606A6B6 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=DXcwVZvr Received: by mail-ot1-f71.google.com with SMTP id 46e09a7af769-862a543c4bcso13762308a34.0 for ; Wed, 02 Dec 2026 10:41:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796236883; x=1796841683; 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=DXcwVZvrO5F963/v/K0piDo3ojsaTesDtWjxY6HJDAoKtLhEaIKkCJ/gqiySaYngEJ J+oSwxA0xAAHbqjFFi8w/T4c+u7DswtaUl72JGudsplZ4OCXbb7mvx0lmPxmlv48NrlO JmLI9K7vmRg/B4UPBVzbKxoBHtr1KGeaPUGjXk1/1z/vq9byo3gTEu+A1+TY3OQgs/tO VlzXyNRkFQfWXCfCrpG/LSqVSwrT+rz4D10kU2zhL/ktmKsW5KZkr6+PYFhgodczH6zd bcrXONoAqEK2HQi/AkHGNQv4Y3scAmCnVtqyCe6B+qpdggFZucVbWHTWmh9VqL8hS6ux OqhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796236883; x=1796841683; 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=UZ/0tROsol9Hgn3RjuimVHXyrgFaNXKGgoTg33l7Rk6hcF9VIaF2xNX3TqYcQs8yhZ YTYpXdpYQhnlgI93LU996iQQn+95zZGO53n+CyOXVX44O+wolBWZchPA/5KGCRe4MVYo T30hE65AEsKmdng80oHQaukImErM58VlmoVcwadYISw0nQC0tbrsf7Lt8XZS5c0cGCVN 1jdoejkc4fsYoEsGzRRIzcvzvbKx3FA42zwC2K5bperN0qgTkU+9qoDQWH/ByDFOJgDt LkT3pkALCQQe9F/aI5zr70yosaL1s/TeQeuWPZgt386Pm7Mq73BGbTs8QPzJTGa5S7id roVw== X-Forwarded-Encrypted: i=1; AL+hErFtlv2J3s6GGoCukve/FL1gEtDs0ylt/ySAwD8Vph4nFZPnY3W0iUTD+bOALaRxOnKSjOg4UNuQVULMc1Nilt5r@vger.kernel.org X-Gm-Message-State: APuU4Z/6e/z5eZ5iWJ4HutDtwqzotDQduFiwmFrZsZ5Icet3YF4KuYpc 1dj8PZFOXCiY+5o3yeBNFHxCtef/Z/ZNd2iZk0VzObmfD/ltls+pgXmD0zEZqMp4JRSley4klKg wFoUSQSEAfA== X-Received: from oixz16-n2.prod.google.com ([2002:a05:6809:410:20b0:4f4:549a:d85d]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6808:6615:b0:573:d802:fc1 with SMTP id 5614622812f47-57a0a70c27bmr44003529b6e.30.1796236882315; Wed, 02 Dec 2026 10:41:22 -0800 (PST) Date: Wed, 2 Dec 2026 10:40:20 -0800 In-Reply-To: X-Mailing-List: linux-perf-users@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.911.g883d8bcb20-goog Message-ID: <611524ef80d21b6eeea73e1e2ffe6528bb484929.1796231665.git.irogers@google.com> Subject: [PATCH v2 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 , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , James Clark 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 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