All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shawn Guo <shawnguo@kernel.org>
To: "Alice Guo (OSS)" <alice.guo@oss.nxp.com>
Cc: robh+dt@kernel.org, s.hauer@pengutronix.de,
	kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] arm64: dts: imx8m: add pmu node
Date: Mon, 8 Mar 2021 08:27:49 +0800	[thread overview]
Message-ID: <20210308002748.GJ543@dragon> (raw)
In-Reply-To: <20210223031445.8577-1-alice.guo@oss.nxp.com>

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
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Shawn Guo <shawnguo@kernel.org>
To: "Alice Guo (OSS)" <alice.guo@oss.nxp.com>
Cc: robh+dt@kernel.org, s.hauer@pengutronix.de,
	kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] arm64: dts: imx8m: add pmu node
Date: Mon, 8 Mar 2021 08:27:49 +0800	[thread overview]
Message-ID: <20210308002748.GJ543@dragon> (raw)
In-Reply-To: <20210223031445.8577-1-alice.guo@oss.nxp.com>

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
> 

  reply	other threads:[~2021-03-08  0:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-23  3:14 [PATCH v1] arm64: dts: imx8m: add pmu node Alice Guo (OSS)
2021-02-23  3:14 ` Alice Guo (OSS)
2021-03-08  0:27 ` Shawn Guo [this message]
2021-03-08  0:27   ` Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210308002748.GJ543@dragon \
    --to=shawnguo@kernel.org \
    --cc=alice.guo@oss.nxp.com \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.