Skip to contentSkip to conversation

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

PATCH In review Xu Yang 3 participants 4 messages Dec 2 – Dec 3

Subsystems (3)
lore
Share & tools
lore

Xu Yang

author
#0 lore raw

PATCH v2 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 i.MX93 and i.MX95 RM Rev 7.0.

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

---
Changes in v2:
- add RM version info

---
 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 11 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 i.MX93 and i.MX95 RM Rev 7.0.

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
Reviewed-by on v2 1/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 i.MX93

Nit: do you have i.MX93's RM version number?

Quoted 38 lines

and i.MX95 RM Rev 7.0.

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

---
Changes in v2:
- add RM version info

---
 drivers/perf/fsl_imx9_ddr_perf.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/perf/fsl_imx9_ddr_perf.c +4 -5
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,
 };
 
--

2.34.1

author
#3 lore raw

Hi Frank,

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 i.MX93

Nit: do you have i.MX93's RM version number?

Both of i.MX93 and i.MX95 latest RM version are Rev 7.0.

Thanks,
Xu Yang