Skip to contentSkip to conversation

perf: imx9_perf: correct event IDs for counters 9 and 10

PATCH Superseded Xu Yang 3 participants 4 messages Dec 1 – Dec 2

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Xu Yang

author
#0 lore raw

PATCH 1/1 perf: imx9_perf: correct event IDs for counters 9 and 10

From: Xu Yang <[email protected]>

The event IDs of several events for counters 9 and 10 were derived from an earlier RM revision that contained incorrect values.

Update the driver to use the corrected event IDs from the latest RM.

- eddrtq_pmon_ld_wrq1
- eddrtq_pmon_3_4_full
- eddrtq_pmon_misc_mrk
- eddrtq_pmon_ld_rdq0

Fixes 55691f99d417 ("drivers/perf: imx_ddr: Add support for NXP i.MX9 SoC DDRC PMU driver")
---
 drivers/perf/fsl_imx9_ddr_perf.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/perf/fsl_imx9_ddr_perf.c +4 -4
index a3d9287fc774..fae0e5ca24fa 100644
@@ -313,12 +313,12 @@ static struct attribute *ddr_perf_events_attrs[] = {
 	IMX9_DDR_PMU_EVENT_ATTR(eddrtq_pmon_1_4_full, ID(8, 65)),
 
 	/* counter9 specific events */
-	IMX9_DDR_PMU_EVENT_ATTR(eddrtq_pmon_ld_wrq1, ID(9, 65)),
-	IMX9_DDR_PMU_EVENT_ATTR(eddrtq_pmon_3_4_full, ID(9, 66)),
+	IMX9_DDR_PMU_EVENT_ATTR(eddrtq_pmon_ld_wrq1, ID(9, 64)),
+	IMX9_DDR_PMU_EVENT_ATTR(eddrtq_pmon_3_4_full, ID(9, 65)),
 
 	/* counter10 specific events */
-	IMX9_DDR_PMU_EVENT_ATTR(eddrtq_pmon_misc_mrk, ID(10, 65)),
-	IMX9_DDR_PMU_EVENT_ATTR(eddrtq_pmon_ld_rdq0, ID(10, 66)),
+	IMX9_DDR_PMU_EVENT_ATTR(eddrtq_pmon_misc_mrk, ID(10, 64)),
+	IMX9_DDR_PMU_EVENT_ATTR(eddrtq_pmon_ld_rdq0, ID(10, 65)),
 	NULL,
 };
 
Signature · 1 line
2.34.1
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 7 lines

From: Xu Yang <[email protected]>

The event IDs of several events for counters 9 and 10 were derived from an earlier RM revision that contained incorrect values.

Update the driver to use the corrected event IDs from the latest RM.

Quoted 8 lines

- eddrtq_pmon_ld_wrq1
- eddrtq_pmon_3_4_full
- eddrtq_pmon_misc_mrk
- eddrtq_pmon_ld_rdq0

Fixes 55691f99d417 ("drivers/perf: imx_ddr: Add support for NXP i.MX9 SoC DDRC PMU driver")

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#2 lore raw
In reply to Xu Yang
Quoted 6 lines · Xu Yang

From: Xu Yang <[email protected]>

The event IDs of several events for counters 9 and 10 were derived from an earlier RM revision that contained incorrect values.

Update the driver to use the corrected event IDs from the latest RM.

Please provide version number for latest RM.

Frank

author
#3 lore raw
Quoted 9 lines · Frank Li
Quoted 6 lines · Xu Yang

From: Xu Yang <[email protected]>

The event IDs of several events for counters 9 and 10 were derived from an earlier RM revision that contained incorrect values.

Update the driver to use the corrected event IDs from the latest RM.

Please provide version number for latest RM.

OK. Will add it in v2.

Thanks,
Xu Yang