]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: hi3660: Add property for fixing CPUIdle
authorLeo Yan <leo.yan@arm.com>
Mon, 10 Mar 2025 09:37:08 +0000 (09:37 +0000)
committerWei Xu <xuwei5@hisilicon.com>
Tue, 18 Mar 2025 11:46:55 +0000 (11:46 +0000)
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>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hi3660-coresight.dtsi

index 79a55a0fa2f1a3cb58a921691146c8ef7e2bcc1a..4c6a075908d1f8e3b9bba7cf9f0a2220819ea188 100644 (file)
@@ -17,6 +17,7 @@
                        clocks = <&crg_ctrl HI3660_PCLK>;
                        clock-names = "apb_pclk";
                        cpu = <&cpu0>;
+                       arm,coresight-loses-context-with-cpu;
 
                        out-ports {
                                port {
@@ -34,6 +35,7 @@
                        clocks = <&crg_ctrl HI3660_PCLK>;
                        clock-names = "apb_pclk";
                        cpu = <&cpu1>;
+                       arm,coresight-loses-context-with-cpu;
 
                        out-ports {
                                port {
@@ -51,6 +53,7 @@
                        clocks = <&crg_ctrl HI3660_PCLK>;
                        clock-names = "apb_pclk";
                        cpu = <&cpu2>;
+                       arm,coresight-loses-context-with-cpu;
 
                        out-ports {
                                port {
@@ -68,6 +71,7 @@
                        clocks = <&crg_ctrl HI3660_PCLK>;
                        clock-names = "apb_pclk";
                        cpu = <&cpu3>;
+                       arm,coresight-loses-context-with-cpu;
 
                        out-ports {
                                port {
                        clocks = <&crg_ctrl HI3660_PCLK>;
                        clock-names = "apb_pclk";
                        cpu = <&cpu4>;
+                       arm,coresight-loses-context-with-cpu;
 
                        out-ports {
                                port {
                        clocks = <&crg_ctrl HI3660_PCLK>;
                        clock-names = "apb_pclk";
                        cpu = <&cpu5>;
+                       arm,coresight-loses-context-with-cpu;
 
                        out-ports {
                                port {
                        clocks = <&crg_ctrl HI3660_PCLK>;
                        clock-names = "apb_pclk";
                        cpu = <&cpu6>;
+                       arm,coresight-loses-context-with-cpu;
 
                        out-ports {
                                port {
                        clocks = <&crg_ctrl HI3660_PCLK>;
                        clock-names = "apb_pclk";
                        cpu = <&cpu7>;
+                       arm,coresight-loses-context-with-cpu;
 
                        out-ports {
                                port {