perf: imx9_perf: correct event IDs for counters 9 and 10
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.
---
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
@@ -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
[email protected]
AI reviewSashiko 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")Signed-off-by Xu Yang <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
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")Signed-off-by Xu Yang <[email protected]>---
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@@ -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
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