* [PATCH v1] arm64: dts: imx8m: add pmu node
@ 2021-02-23 3:14 Alice Guo (OSS)
2021-03-08 0:27 ` Shawn Guo
0 siblings, 1 reply; 2+ messages in thread
From: Alice Guo (OSS) @ 2021-02-23 3:14 UTC (permalink / raw)
To: robh+dt, shawnguo, s.hauer, kernel, festevam, linux-imx
Cc: devicetree, linux-arm-kernel, linux-kernel
From: Alice Guo <alice.guo@nxp.com>
Adding pmu node supports to use perf tool to monitor the CPU performance
of the inmate cell when enabling Jailhouse and running dual Linux OS.
Signed-off-by: Alice Guo <alice.guo@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts | 7 +++++++
arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts | 8 ++++++++
arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts | 8 ++++++++
arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts | 7 +++++++
4 files changed, 30 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts
index fe9d96131045..6afccc2c140e 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts
@@ -48,6 +48,13 @@
};
};
+ pmu {
+ compatible = "arm,armv8-pmuv3";
+ interrupts = <GIC_PPI 7
+ (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
+ interrupt-affinity = <&A53_2>, <&A53_3>;
+ };
+
psci {
compatible = "arm,psci-1.0";
method = "smc";
diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts
index 584c1fa19f56..f2434ad369dc 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts
@@ -48,6 +48,14 @@
};
};
+ pmu {
+ compatible = "arm,armv8-pmuv3";
+ interrupt-parent = <&gic>;
+ interrupts = <GIC_PPI 7
+ (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
+ interrupt-affinity = <&A53_2>, <&A53_3>;
+ };
+
psci {
compatible = "arm,psci-1.0";
method = "smc";
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts
index 277ef70f2903..be538f510340 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts
@@ -48,6 +48,14 @@
};
};
+ pmu {
+ compatible = "arm,armv8-pmuv3";
+ interrupt-parent = <&gic>;
+ interrupts = <GIC_PPI 7
+ (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
+ interrupt-affinity = <&A53_2>, <&A53_3>;
+ };
+
psci {
compatible = "arm,psci-1.0";
method = "smc";
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts
index b1db63cdb98c..57e0ab2bf4d3 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts
@@ -48,6 +48,13 @@
};
};
+ pmu {
+ compatible = "arm,cortex-a53-pmu";
+ interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-parent = <&gic>;
+ interrupt-affinity = <&A53_2>, <&A53_3>;
+ };
+
psci {
compatible = "arm,psci-1.0";
method = "smc";
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] arm64: dts: imx8m: add pmu node
2021-02-23 3:14 [PATCH v1] arm64: dts: imx8m: add pmu node Alice Guo (OSS)
@ 2021-03-08 0:27 ` Shawn Guo
0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2021-03-08 0:27 UTC (permalink / raw)
To: Alice Guo (OSS)
Cc: robh+dt, s.hauer, kernel, festevam, linux-imx, devicetree,
linux-arm-kernel, linux-kernel
On Tue, Feb 23, 2021 at 11:14:45AM +0800, Alice Guo (OSS) wrote:
> From: Alice Guo <alice.guo@nxp.com>
>
> Adding pmu node supports to use perf tool to monitor the CPU performance
> of the inmate cell when enabling Jailhouse and running dual Linux OS.
>
> Signed-off-by: Alice Guo <alice.guo@nxp.com>
> ---
> arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts | 7 +++++++
Upstream doesn't have this file.
Shawn
> arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts | 8 ++++++++
> arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts | 8 ++++++++
> arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts | 7 +++++++
> 4 files changed, 30 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts
> index fe9d96131045..6afccc2c140e 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts
> @@ -48,6 +48,13 @@
> };
> };
>
> + pmu {
> + compatible = "arm,armv8-pmuv3";
> + interrupts = <GIC_PPI 7
> + (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
> + interrupt-affinity = <&A53_2>, <&A53_3>;
> + };
> +
> psci {
> compatible = "arm,psci-1.0";
> method = "smc";
> diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts
> index 584c1fa19f56..f2434ad369dc 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts
> @@ -48,6 +48,14 @@
> };
> };
>
> + pmu {
> + compatible = "arm,armv8-pmuv3";
> + interrupt-parent = <&gic>;
> + interrupts = <GIC_PPI 7
> + (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
> + interrupt-affinity = <&A53_2>, <&A53_3>;
> + };
> +
> psci {
> compatible = "arm,psci-1.0";
> method = "smc";
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts
> index 277ef70f2903..be538f510340 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts
> @@ -48,6 +48,14 @@
> };
> };
>
> + pmu {
> + compatible = "arm,armv8-pmuv3";
> + interrupt-parent = <&gic>;
> + interrupts = <GIC_PPI 7
> + (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
> + interrupt-affinity = <&A53_2>, <&A53_3>;
> + };
> +
> psci {
> compatible = "arm,psci-1.0";
> method = "smc";
> diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts
> index b1db63cdb98c..57e0ab2bf4d3 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts
> @@ -48,6 +48,13 @@
> };
> };
>
> + pmu {
> + compatible = "arm,cortex-a53-pmu";
> + interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-parent = <&gic>;
> + interrupt-affinity = <&A53_2>, <&A53_3>;
> + };
> +
> psci {
> compatible = "arm,psci-1.0";
> method = "smc";
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-08 0:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-23 3:14 [PATCH v1] arm64: dts: imx8m: add pmu node Alice Guo (OSS)
2021-03-08 0:27 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).