From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796236895; b=B7i+CQTjGWoXrZ9feMW0ckhKSpOebPCfdCy35BxyB7CI1JXqp4ep3eLu63uQSacykt7a I25hCEbSs/TwTpCz+FbnHB5FHmcwQFHGsBMEKFDg/HLsiojLLtc6cGTYkX2UqYZen3c/E 4cPtUjVqAEECgqhAr+K2biUv7hOuAN/4BZ5MBws9o4WLf6ZE62Mn3RcgIx1hzH5B7gIsk XXGc0KiYTDjemehVFOqwqmoz1FM5cfo8i4fmtUGpvbnwPr4K0u+deGYnK0sXd6YoCLXQQ LDFbDitDHxQoBLnCb4F63b8hCMEOZn+XStElENcn/JeYnd8MEtIqXC6IP0Y0Frb3hJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796236895; 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=oUnhoKkAJ93/yYBVXl2Zvl6JhHiS3c2GtoQki75tREOZVeu76p/QeZ1rCnDVFqy+TJ28 wFfwj4BvlZD52E6EePxR7AhCDpPfgKcteYkh3ahLdXPfdrPRu0w3IMrlpq/PZVimf4Mah 19jUQlbImD00BnfowOGw1OcrzUMNe+i8PZhh9yOOIqNihC7/JKLKMc8dCHLEi4K8nt4we f1U2ZALelJeYrKf6QeZ0EAqL4GFasepV89w9nIJPdKx7YGr635GN43YPbrlwDPZ7AV7FP zeUGfti0wgEaBeVxOGUFGCfd8cBoTs6fJQOxAx3H6dQHJli6n59QoHqW24tdj7DLmSg== 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.72 Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) (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 9B6E860A2607 for ; Wed, 2 Dec 2026 18:41:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9B6E860A2607 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-f72.google.com with SMTP id 46e09a7af769-8520e83f715so13481528a34.2 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=GhlU8crUf574lQZ6/lKMYYIXXLP4W3fPWTgvj90aAQiPtngNIUZTZAM9IivfPplxa4 OrCJr2dTemK41g3cbRe0re+zKrwqUwqV/T50ulNK3g1GUhrSv8wuej5JJ6yAyqdTe/0N UVH3jPnFp2qguHDqKDV9BCXVv/wPdv8y8Jr4OCiO3jAlZLJVZum1oATz5G5QI9eCpAhF QZRzVq/jrxat06IDJ1lyGIq4e9DaiQS9GT55+q2VbUuvdQNnKQPRWTg3KNH7/rJu9iWz aPeKNm1gBMnQYcw9yZfjTpvXq8zBpHYXfnfGJaiWGvVpjxaYlarDlxrY4CVM7W6bPDmK cXKA== X-Forwarded-Encrypted: i=1; AL+hErGp+8fyWdnCMNedITIzNyGV9kcwGMFYZXhbWSJ/5TNobHsW211N8jEYYXOekHlOp3OUiKt56e+BGWxYLoo=@vger.kernel.org X-Gm-Message-State: APuU4Z9Uc37aNDyOVuJmz+yeK2tiAZFEvWM+JkSBcNQqOSmY4FIVu/xV TciUR4+CQZ5c1GQckvh/VGoPoMjvQFXFb3lCj76/9ubNOMs4cGKSGqHC7D5pH5TPCshXA+R1Qer vWuBQs2+1OQ== 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-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.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