dt-bindings: perf: fsl-imx-ddr: Add i.MX91 compatible
Subsystems (6)
Xu Yang
maintainerPATCH 1/3 dt-bindings: perf: fsl-imx-ddr: Add i.MX91 compatible
i.MX91 has a DDR Performance Monitor Unit which is compatible with i.MX93. This will add a compatible for i.MX91.
--- Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml +3 -1
@@ -31,7 +31,9 @@ properties: - const: fsl,imx8dxl-ddr-pmu - const: fsl,imx8-ddr-pmu - items: - - const: fsl,imx95-ddr-pmu + - enum: + - fsl,imx91-ddr-pmu + - fsl,imx95-ddr-pmu - const: fsl,imx93-ddr-pmu reg:
Signature · 1 line
2.34.1
Xu Yang
maintainerPATCH 2/3 perf: imx_perf: add support for i.MX91 platform
This will add compatible and identifier for i.MX91 platform.
--- drivers/perf/fsl_imx9_ddr_perf.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/perf/fsl_imx9_ddr_perf.c +5 -0
@@ -81,6 +81,10 @@ struct ddr_pmu {int id; }; +static const struct imx_ddr_devtype_data imx91_devtype_data = { + .identifier ="imx91" , +}; +static const struct imx_ddr_devtype_data imx93_devtype_data = { .identifier ="imx93" , };
@@ -100,6 +104,7 @@ static inline bool is_imx95(struct ddr_pmu *pmu) }static const struct of_device_id imx_ddr_pmu_dt_ids[] = { + { .compatible ="fsl,imx91-ddr-pmu" , .data = &imx91_devtype_data }, { .compatible ="fsl,imx93-ddr-pmu" , .data = &imx93_devtype_data }, { .compatible ="fsl,imx95-ddr-pmu" , .data = &imx95_devtype_data }, {/* sentinel */ }
Signature · 1 line
2.34.1
Re: [PATCH 2/3] perf: imx_perf: add support for i.MX91 platform
Quoted 3 lines · Xu Yang
This will add compatible and identifier for i.MX91 platform.
Signed-off-by Xu Yang <[email protected]>
Quoted 30 lines
--- drivers/perf/fsl_imx9_ddr_perf.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/perf/fsl_imx9_ddr_perf.c +5
-1@@ -81,6 +81,10 @@ struct ddr_pmu {int id; }; +static const struct imx_ddr_devtype_data imx91_devtype_data = { + .identifier ="imx91" , +}; +static const struct imx_ddr_devtype_data imx93_devtype_data = { .identifier ="imx93" , };@@ -100,6 +104,7 @@ static inline bool is_imx95(struct ddr_pmu *pmu) }static const struct of_device_id imx_ddr_pmu_dt_ids[] = { + { .compatible ="fsl,imx91-ddr-pmu" , .data = &imx91_devtype_data }, { .compatible ="fsl,imx93-ddr-pmu" , .data = &imx93_devtype_data }, { .compatible ="fsl,imx95-ddr-pmu" , .data = &imx95_devtype_data }, {/* sentinel */ } --2.34.1
Xu Yang
maintainerPATCH 3/3 perf vendor events arm64: Add i.MX91 DDR Performance Monitor metrics
In reply to Xu YangAdd JSON metrics for i.MX91 DDR Performance Monitor.
--- .../arch/arm64/freescale/imx91/sys/ddrc.json | 9 +++++++ .../arm64/freescale/imx91/sys/metrics.json | 26 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.json
tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json new file +9 -0
@@ -0,0 +1,9 @@ +[ + { + "BriefDescription": "ddr cycles event", + "EventCode": "0x00", + "EventName": "imx91_ddr.cycles", + "Unit": "imx9_ddr", + "Compat": "imx91" + } +]
tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.json new file +26 -0
@@ -0,0 +1,26 @@ +[ + { + "BriefDescription": "bandwidth usage for lpddr4 evk board", + "MetricName": "imx91_bandwidth_usage.lpddr4", + "MetricExpr": "(((( imx9_ddr0@ddrc_pm_0@ ) * 2 * 8 ) + (( imx9_ddr0@ddrc_pm_3@ + imx9_ddr0@ddrc_pm_5@ + imx9_ddr0@ddrc_pm_7@ + imx9_ddr0@ddrc_pm_9@ - imx9_ddr0@ddrc_pm_2@ - imx9_ddr0@ddrc_pm_4@ - imx9_ddr0@ddrc_pm_6@ - imx9_ddr0@ddrc_pm_8@ ) * 32 )) / duration_time) / (2400 * 1000000 * 2)", + "ScaleUnit": "1e2%", + "Unit": "imx9_ddr", + "Compat": "imx91" + }, + { + "BriefDescription": "bytes all masters read from ddr", + "MetricName": "imx91_ddr_read.all", + "MetricExpr": "( imx9_ddr0@ddrc_pm_0@ ) * 2 * 8", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx9_ddr", + "Compat": "imx91" + }, + { + "BriefDescription": "bytes all masters write to ddr", + "MetricName": "imx91_ddr_write.all", + "MetricExpr": "( imx9_ddr0@ddrc_pm_3@ + imx9_ddr0@ddrc_pm_5@ + imx9_ddr0@ddrc_pm_7@ + imx9_ddr0@ddrc_pm_9@ - imx9_ddr0@ddrc_pm_2@ - imx9_ddr0@ddrc_pm_4@ - imx9_ddr0@ddrc_pm_6@ - imx9_ddr0@ddrc_pm_8@ ) * 32", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx9_ddr", + "Compat": "imx91" + } +]
Signature · 1 line
2.34.1
Re: [PATCH 3/3] perf vendor events arm64: Add i.MX91 DDR Performance Monitor metrics
Hello,
Quoted 9 lines · Xu Yang
Add JSON metrics for i.MX91 DDR Performance Monitor.
Signed-off-by Xu Yang <[email protected]>--- .../arch/arm64/freescale/imx91/sys/ddrc.json | 9 +++++++ .../arm64/freescale/imx91/sys/metrics.json | 26 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.json
How do you want to route this? As it's mixed with kernel changes, I would generally request to split but it's a change just to add new files so it should be ok to go with other tree. In that case,
Thanks,
Namhyung
Quoted 51 lines
tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json new file +9
-0@@ -0,0 +1,9 @@ +[ + { + "BriefDescription": "ddr cycles event", + "EventCode": "0x00", + "EventName": "imx91_ddr.cycles", + "Unit": "imx9_ddr", + "Compat": "imx91" + } +]tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.json new file +26
-0@@ -0,0 +1,26 @@ +[ + { + "BriefDescription": "bandwidth usage for lpddr4 evk board", + "MetricName": "imx91_bandwidth_usage.lpddr4", + "MetricExpr": "(((( imx9_ddr0@ddrc_pm_0@ ) * 2 * 8 ) + (( imx9_ddr0@ddrc_pm_3@ + imx9_ddr0@ddrc_pm_5@ + imx9_ddr0@ddrc_pm_7@ + imx9_ddr0@ddrc_pm_9@ - imx9_ddr0@ddrc_pm_2@ - imx9_ddr0@ddrc_pm_4@ - imx9_ddr0@ddrc_pm_6@ - imx9_ddr0@ddrc_pm_8@ ) * 32 )) / duration_time) / (2400 * 1000000 * 2)", + "ScaleUnit": "1e2%", + "Unit": "imx9_ddr", + "Compat": "imx91" + }, + { + "BriefDescription": "bytes all masters read from ddr", + "MetricName": "imx91_ddr_read.all", + "MetricExpr": "( imx9_ddr0@ddrc_pm_0@ ) * 2 * 8", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx9_ddr", + "Compat": "imx91" + }, + { + "BriefDescription": "bytes all masters write to ddr", + "MetricName": "imx91_ddr_write.all", + "MetricExpr": "( imx9_ddr0@ddrc_pm_3@ + imx9_ddr0@ddrc_pm_5@ + imx9_ddr0@ddrc_pm_7@ + imx9_ddr0@ddrc_pm_9@ - imx9_ddr0@ddrc_pm_2@ - imx9_ddr0@ddrc_pm_4@ - imx9_ddr0@ddrc_pm_6@ - imx9_ddr0@ddrc_pm_8@ ) * 32", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx9_ddr", + "Compat": "imx91" + } +]Signature · 1 line
2.34.1
Xu Yang
maintainerRe: [PATCH 3/3] perf vendor events arm64: Add i.MX91 DDR Performance Monitor metrics
Hi Namhyung,
Quoted 13 lines · Namhyung Kim
Hello,
Quoted 9 lines · Xu Yang
Add JSON metrics for i.MX91 DDR Performance Monitor.
Signed-off-by Xu Yang <[email protected]>--- .../arch/arm64/freescale/imx91/sys/ddrc.json | 9 +++++++ .../arm64/freescale/imx91/sys/metrics.json | 26 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.json
Quoted 3 lines
How do you want to route this? As it's mixed with kernel changes, I would generally request to split but it's a change just to add new files so it should be ok to go with other tree. In that case,
Sorry for late.
How about you pick up this one to perf-tools tree and Will Deacon pick up the first 2 patches to his tree? I didn't see Will apply perf-tools patch before.
Thanks,
Xu Yang
Quoted 57 lines
Acked-by Namhyung Kim <[email protected]>Thanks,
NamhyungQuoted 51 lines
tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json new file +9
-0@@ -0,0 +1,9 @@ +[ + { + "BriefDescription": "ddr cycles event", + "EventCode": "0x00", + "EventName": "imx91_ddr.cycles", + "Unit": "imx9_ddr", + "Compat": "imx91" + } +]tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.json new file +26
-0@@ -0,0 +1,26 @@ +[ + { + "BriefDescription": "bandwidth usage for lpddr4 evk board", + "MetricName": "imx91_bandwidth_usage.lpddr4", + "MetricExpr": "(((( imx9_ddr0@ddrc_pm_0@ ) * 2 * 8 ) + (( imx9_ddr0@ddrc_pm_3@ + imx9_ddr0@ddrc_pm_5@ + imx9_ddr0@ddrc_pm_7@ + imx9_ddr0@ddrc_pm_9@ - imx9_ddr0@ddrc_pm_2@ - imx9_ddr0@ddrc_pm_4@ - imx9_ddr0@ddrc_pm_6@ - imx9_ddr0@ddrc_pm_8@ ) * 32 )) / duration_time) / (2400 * 1000000 * 2)", + "ScaleUnit": "1e2%", + "Unit": "imx9_ddr", + "Compat": "imx91" + }, + { + "BriefDescription": "bytes all masters read from ddr", + "MetricName": "imx91_ddr_read.all", + "MetricExpr": "( imx9_ddr0@ddrc_pm_0@ ) * 2 * 8", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx9_ddr", + "Compat": "imx91" + }, + { + "BriefDescription": "bytes all masters write to ddr", + "MetricName": "imx91_ddr_write.all", + "MetricExpr": "( imx9_ddr0@ddrc_pm_3@ + imx9_ddr0@ddrc_pm_5@ + imx9_ddr0@ddrc_pm_7@ + imx9_ddr0@ddrc_pm_9@ - imx9_ddr0@ddrc_pm_2@ - imx9_ddr0@ddrc_pm_4@ - imx9_ddr0@ddrc_pm_6@ - imx9_ddr0@ddrc_pm_8@ ) * 32", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx9_ddr", + "Compat": "imx91" + } +]Signature · 1 line
2.34.1
Namhyung Kim
maintainerRe: [PATCH 3/3] perf vendor events arm64: Add i.MX91 DDR Performance Monitor metrics
Quoted 20 lines · Xu Yang
Hi Namhyung,
Quoted 13 lines · Namhyung Kim
Hello,
Quoted 9 lines · Xu Yang
Add JSON metrics for i.MX91 DDR Performance Monitor.
Signed-off-by Xu Yang <[email protected]>--- .../arch/arm64/freescale/imx91/sys/ddrc.json | 9 +++++++ .../arm64/freescale/imx91/sys/metrics.json | 26 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.jsonQuoted 3 lines
How do you want to route this? As it's mixed with kernel changes, I would generally request to split but it's a change just to add new files so it should be ok to go with other tree. In that case,
Quoted 5 lines
Sorry for late.
How about you pick up this one to perf-tools tree and Will Deacon pick up the first 2 patches to his tree? I didn't see Will apply perf-tools patch before.
Did Will pick up the kernel patches already?
Thanks,
Namhyung
Xu Yang
maintainerRe: [PATCH 3/3] perf vendor events arm64: Add i.MX91 DDR Performance Monitor metrics
Quoted 21 lines · Namhyung Kim
Quoted 20 lines · Xu Yang
Hi Namhyung,
Quoted 16 lines · Namhyung Kim
Hello,
Quoted 9 lines · Xu Yang
Add JSON metrics for i.MX91 DDR Performance Monitor.
Signed-off-by Xu Yang <[email protected]>--- .../arch/arm64/freescale/imx91/sys/ddrc.json | 9 +++++++ .../arm64/freescale/imx91/sys/metrics.json | 26 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.jsonHow do you want to route this? As it's mixed with kernel changes, I would generally request to split but it's a change just to add new files so it should be ok to go with other tree. In that case,
Quoted 7 lines
Quoted 5 lines
Sorry for late.
How about you pick up this one to perf-tools tree and Will Deacon pick up the first 2 patches to his tree? I didn't see Will apply perf-tools patch before.
Did Will pick up the kernel patches already?
Not yet. I could ping you once it's done, is it ok?
Thanks,
Xu Yang
Namhyung Kim
maintainerRe: [PATCH 3/3] perf vendor events arm64: Add i.MX91 DDR Performance Monitor metrics
Quoted 24 lines · Xu Yang
Quoted 23 lines · Namhyung Kim
Quoted 22 lines · Xu Yang
Hi Namhyung,
Quoted 13 lines · Namhyung Kim
Hello,
Quoted 9 lines · Xu Yang
Add JSON metrics for i.MX91 DDR Performance Monitor.
Signed-off-by Xu Yang <[email protected]>--- .../arch/arm64/freescale/imx91/sys/ddrc.json | 9 +++++++ .../arm64/freescale/imx91/sys/metrics.json | 26 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.jsonQuoted 3 lines
How do you want to route this? As it's mixed with kernel changes, I would generally request to split but it's a change just to add new files so it should be ok to go with other tree. In that case,
Sorry for late.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
How about you pick up this one to perf-tools tree and Will Deacon pick up the first 2 patches to his tree? I didn't see Will apply perf-tools patch before.
Did Will pick up the kernel patches already?
Not yet. I could ping you once it's done, is it ok?
Sure!
Thanks,
Namhyung
Xu Yang
maintainerRe: [PATCH 3/3] perf vendor events arm64: Add i.MX91 DDR Performance Monitor metrics
Hi Namhyung,
Quoted 29 lines · Namhyung Kim
Quoted 28 lines · Xu Yang
Quoted 27 lines · Namhyung Kim
Quoted 25 lines · Xu Yang
Hi Namhyung,
Quoted 13 lines · Namhyung Kim
Hello,
Quoted 9 lines · Xu Yang
Add JSON metrics for i.MX91 DDR Performance Monitor.
Signed-off-by Xu Yang <[email protected]>--- .../arch/arm64/freescale/imx91/sys/ddrc.json | 9 +++++++ .../arm64/freescale/imx91/sys/metrics.json | 26 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.jsonQuoted 3 lines
How do you want to route this? As it's mixed with kernel changes, I would generally request to split but it's a change just to add new files so it should be ok to go with other tree. In that case,
Sorry for late.
How about you pick up this one to perf-tools tree and Will Deacon pick up the first 2 patches to his tree? I didn't see Will apply perf-tools patch before.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Did Will pick up the kernel patches already?
Not yet. I could ping you once it's done, is it ok?
Sure!
You could pick up this path #3 now. :)
Thanks,
Xu Yang
Will Deacon
maintainerRe: [PATCH 3/3] perf vendor events arm64: Add i.MX91 DDR Performance Monitor metrics
In reply to Namhyung KimQuoted 21 lines · Namhyung Kim
Quoted 20 lines · Xu Yang
Hi Namhyung,
Quoted 16 lines · Namhyung Kim
Hello,
Quoted 9 lines · Xu Yang
Add JSON metrics for i.MX91 DDR Performance Monitor.
Signed-off-by Xu Yang <[email protected]>--- .../arch/arm64/freescale/imx91/sys/ddrc.json | 9 +++++++ .../arm64/freescale/imx91/sys/metrics.json | 26 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.jsonHow do you want to route this? As it's mixed with kernel changes, I would generally request to split but it's a change just to add new files so it should be ok to go with other tree. In that case,
Quoted 7 lines
Quoted 5 lines
Sorry for late.
How about you pick up this one to perf-tools tree and Will Deacon pick up the first 2 patches to his tree? I didn't see Will apply perf-tools patch before.
Did Will pick up the kernel patches already?
I have done now, sorry for the delay.
Will
Re: [PATCH 3/3] perf vendor events arm64: Add i.MX91 DDR Performance Monitor metrics
In reply to Xu YangQuoted 3 lines · Xu Yang
Add JSON metrics for i.MX91 DDR Performance Monitor.
Signed-off-by Xu Yang <[email protected]>
Applied to perf-tools-next, thanks!
Best regards,
Namhyung
Quoted 4 lines · Xu Yang
i.MX91 has a DDR Performance Monitor Unit which is compatible with i.MX93. This will add a compatible for i.MX91.
Signed-off-by Xu Yang <[email protected]>
Quoted 5 lines · Xu Yang
i.MX91 has a DDR Performance Monitor Unit which is compatible with i.MX93. This will add a compatible for i.MX91.
Signed-off-by Xu Yang <[email protected]>---
Quoted 21 lines
Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml +3
-2@@ -31,7 +31,9 @@ properties: - const: fsl,imx8dxl-ddr-pmu - const: fsl,imx8-ddr-pmu - items: - - const: fsl,imx95-ddr-pmu + - enum: + - fsl,imx91-ddr-pmu + - fsl,imx95-ddr-pmu - const: fsl,imx93-ddr-pmu reg: --2.34.1
Will Deacon
maintainerQuoted 4 lines · Xu Yang
i.MX91 has a DDR Performance Monitor Unit which is compatible with i.MX93. This will add a compatible for i.MX91.
Applied first two patches to will (for-next/perf), thanks!
[1/3] dt-bindings: perf: fsl-imx-ddr: Add i.MX91 compatible
https://git.kernel.org/will/c/0263a1e4f5dd [2/3] perf: imx_perf: add support for i.MX91 platform https://git.kernel.org/will/c/44798fe136dc
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev