All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Xu <xuwei5@hisilicon.com>
To: Leo Yan <leo.yan@arm.com>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<devicetree@vger.kernel.org>, <coresight@lists.linaro.org>
Subject: Re: [PATCH] arm64: dts: hi3660: Add property for fixing CPUIdle
Date: Tue, 18 Mar 2025 20:30:21 +0800	[thread overview]
Message-ID: <67D9675D.6030001@hisilicon.com> (raw)
In-Reply-To: <20250310093708.9332-1-leo.yan@arm.com>

Hi Leo,

On 2025/3/10 17:37, Leo Yan wrote:
> During CPU low power modes, ETM components will lose their context.  Add
> the "arm,coresight-loses-context-with-cpu" property to ETM nodes to save
> and restore ETM context for CPU idle states.
> 
> Signed-off-by: Leo Yan <leo.yan@arm.com>
> ---

Applied to the HiSilicon arm64 dt tree.
Thanks!

Best Regards,
Wei

>  arch/arm64/boot/dts/hisilicon/hi3660-coresight.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-coresight.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660-coresight.dtsi
> index 79a55a0fa2f1..4c6a075908d1 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi3660-coresight.dtsi
> +++ b/arch/arm64/boot/dts/hisilicon/hi3660-coresight.dtsi
> @@ -17,6 +17,7 @@ etm@ecc40000 {
>  			clocks = <&crg_ctrl HI3660_PCLK>;
>  			clock-names = "apb_pclk";
>  			cpu = <&cpu0>;
> +			arm,coresight-loses-context-with-cpu;
>  
>  			out-ports {
>  				port {
> @@ -34,6 +35,7 @@ etm@ecd40000 {
>  			clocks = <&crg_ctrl HI3660_PCLK>;
>  			clock-names = "apb_pclk";
>  			cpu = <&cpu1>;
> +			arm,coresight-loses-context-with-cpu;
>  
>  			out-ports {
>  				port {
> @@ -51,6 +53,7 @@ etm@ece40000 {
>  			clocks = <&crg_ctrl HI3660_PCLK>;
>  			clock-names = "apb_pclk";
>  			cpu = <&cpu2>;
> +			arm,coresight-loses-context-with-cpu;
>  
>  			out-ports {
>  				port {
> @@ -68,6 +71,7 @@ etm@ecf40000 {
>  			clocks = <&crg_ctrl HI3660_PCLK>;
>  			clock-names = "apb_pclk";
>  			cpu = <&cpu3>;
> +			arm,coresight-loses-context-with-cpu;
>  
>  			out-ports {
>  				port {
> @@ -160,6 +164,7 @@ etm@ed440000 {
>  			clocks = <&crg_ctrl HI3660_PCLK>;
>  			clock-names = "apb_pclk";
>  			cpu = <&cpu4>;
> +			arm,coresight-loses-context-with-cpu;
>  
>  			out-ports {
>  				port {
> @@ -177,6 +182,7 @@ etm@ed540000 {
>  			clocks = <&crg_ctrl HI3660_PCLK>;
>  			clock-names = "apb_pclk";
>  			cpu = <&cpu5>;
> +			arm,coresight-loses-context-with-cpu;
>  
>  			out-ports {
>  				port {
> @@ -194,6 +200,7 @@ etm@ed640000 {
>  			clocks = <&crg_ctrl HI3660_PCLK>;
>  			clock-names = "apb_pclk";
>  			cpu = <&cpu6>;
> +			arm,coresight-loses-context-with-cpu;
>  
>  			out-ports {
>  				port {
> @@ -211,6 +218,7 @@ etm@ed740000 {
>  			clocks = <&crg_ctrl HI3660_PCLK>;
>  			clock-names = "apb_pclk";
>  			cpu = <&cpu7>;
> +			arm,coresight-loses-context-with-cpu;
>  
>  			out-ports {
>  				port {
> 


      parent reply	other threads:[~2025-03-18 12:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-10  9:37 [PATCH] arm64: dts: hi3660: Add property for fixing CPUIdle Leo Yan
2025-03-10 15:45 ` James Clark
2025-03-18 12:30 ` Wei Xu [this message]

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=67D9675D.6030001@hisilicon.com \
    --to=xuwei5@hisilicon.com \
    --cc=conor+dt@kernel.org \
    --cc=coresight@lists.linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=leo.yan@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=robh@kernel.org \
    /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.