summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2020-11-19 16:34:47 -0800
committerJ. Avila <elavila@google.com>2020-12-04 21:41:39 +0000
commit6f3286756358473aeeb31f13a542bb46dbef734e (patch)
tree55e7a8c460fca2bac8084c9f2d4cfbad59b5e770
parent3ea95ad33e9f9c0c179075e0c79e405beef2d2c8 (diff)
downloaddevicetree-android-msm-redbull-4.19-s-preview-2.tar.gz
qcom: lito: Save/restore etm4x regs across low power states.android-s-preview-2_r0.5android-msm-redbull-4.19-s-preview-2
Without saving/restoring etm4x regs, below warning happens when using etm for self hosted tracing: [ 42.944512] [<0000000035997548>] coresight_disclaim_device_unlocked+0x1c/0x24 [ 42.951699] [<00000000ab7ae0d4>] etm_event_stop+0xac/0x118 [ 42.957230] [<00000000430cfea7>] etm_event_del+0x10/0x18 [ 42.962593] [<00000000d7ebbe5b>] event_sched_out+0x134/0x238 [ 42.968298] [<00000000bd675d41>] group_sched_out+0x3c/0x98 [ 42.973825] [<0000000053fd85aa>] __perf_event_disable+0x64/0x7c [ 42.979788] [<00000000b8e69437>] event_function+0xb4/0x100 [ 42.985317] [<00000000eb07d96a>] remote_function+0x48/0x5c [ 42.990850] [<00000000ee6fb954>] flush_smp_call_function_queue+0xd8/0x16c [ 42.997683] [<000000008ff95d03>] generic_smp_call_function_single_interrupt+0x10/0x18 [ 43.005561] [<00000000022ebf53>] handle_IPI+0x17c/0x2c8 [ 43.010830] [<0000000046cb4f66>] gic_handle_irq+0xa0/0xb8 [ 43.101516] [<0000000048684b4a>] el1_irq+0xe8/0x18c [ 43.106447] [<00000000a3d2b4c3>] cpuidle_enter_state+0x2b4/0x338 [ 43.112499] [<00000000db3dcb37>] cpuidle_enter+0x18/0x20 [ 43.117856] [<00000000fce8d8ec>] do_idle+0x1a8/0x28c [ 43.122864] [<0000000025b0f5d1>] cpu_startup_entry+0x20/0x24 [ 43.128571] [<000000005be37cee>] rest_init+0xc8/0xd4 [ 43.133583] [<00000000e98ad7c3>] start_kernel+0x444/0x4b4 Bug: 167414982 Bug: 170753932 Signed-off-by: Yabin Cui <yabinc@google.com> Change-Id: Ie2cf42e447cf625f9fae24f9d5551ef5720396e4
-rw-r--r--qcom/lito-coresight.dtsi16
1 files changed, 16 insertions, 0 deletions
diff --git a/qcom/lito-coresight.dtsi b/qcom/lito-coresight.dtsi
index 7a6131e0..f2dfcccc 100644
--- a/qcom/lito-coresight.dtsi
+++ b/qcom/lito-coresight.dtsi
@@ -2541,6 +2541,8 @@
clocks = <&aopcc QDSS_CLK>;
clock-names = "apb_pclk";
+ arm,coresight-loses-context-with-cpu;
+
port {
etm0_out_funnel_apss: endpoint {
remote-endpoint = <&funnel_apss_in_etm0>;
@@ -2561,6 +2563,8 @@
clocks = <&aopcc QDSS_CLK>;
clock-names = "apb_pclk";
+ arm,coresight-loses-context-with-cpu;
+
port {
etm1_out_funnel_apss: endpoint {
remote-endpoint = <&funnel_apss_in_etm1>;
@@ -2581,6 +2585,8 @@
clocks = <&aopcc QDSS_CLK>;
clock-names = "apb_pclk";
+ arm,coresight-loses-context-with-cpu;
+
port {
etm2_out_funnel_apss: endpoint {
remote-endpoint = <&funnel_apss_in_etm2>;
@@ -2601,6 +2607,8 @@
clocks = <&aopcc QDSS_CLK>;
clock-names = "apb_pclk";
+ arm,coresight-loses-context-with-cpu;
+
port {
etm3_out_funnel_apss: endpoint {
remote-endpoint = <&funnel_apss_in_etm3>;
@@ -2621,6 +2629,8 @@
clocks = <&aopcc QDSS_CLK>;
clock-names = "apb_pclk";
+ arm,coresight-loses-context-with-cpu;
+
port {
etm4_out_funnel_apss: endpoint {
remote-endpoint = <&funnel_apss_in_etm4>;
@@ -2641,6 +2651,8 @@
clocks = <&aopcc QDSS_CLK>;
clock-names = "apb_pclk";
+ arm,coresight-loses-context-with-cpu;
+
port {
etm5_out_funnel_apss: endpoint {
remote-endpoint = <&funnel_apss_in_etm5>;
@@ -2661,6 +2673,8 @@
clocks = <&aopcc QDSS_CLK>;
clock-names = "apb_pclk";
+ arm,coresight-loses-context-with-cpu;
+
port {
etm6_out_funnel_apss: endpoint {
remote-endpoint = <&funnel_apss_in_etm6>;
@@ -2681,6 +2695,8 @@
clocks = <&aopcc QDSS_CLK>;
clock-names = "apb_pclk";
+ arm,coresight-loses-context-with-cpu;
+
port {
etm7_out_funnel_apss: endpoint {
remote-endpoint = <&funnel_apss_in_etm7>;