From 7dc7b5ff1d0d44b231538c30304c6fd2b0dd37b2 Mon Sep 17 00:00:00 2001 From: Super Liu Date: Thu, 18 Nov 2021 08:57:32 +0800 Subject: [PATCH 1/2] dumpstate: stop dumping pretouch status. Somehow FW will be unstable after dumping status. Temporarily remove this to find out the root cause with vendor. Bug: 193467774 Test: lshal debug android.hardware.dumpstate@1.0::IDumpstateDevice/default pre-touch Signed-off-by: Super Liu Change-Id: I670558f30f9d809a8f9df41e4844ee451c7f3f17 --- dumpstate/DumpstateDevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 28a84da4..11faf7f3 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -516,6 +516,7 @@ void DumpstateDevice::dumpPreTouchSection(int fd) { if (!access(cmd, R_OK)) DumpFileToFd(fd, "FW version", cmd); +#if 0 /* b/193467774: remove this temporarily */ snprintf(cmd, sizeof(cmd), "/proc/nvt_diff"); if (!access(cmd, R_OK)) DumpFileToFd(fd, "Diff", cmd); @@ -523,6 +524,7 @@ void DumpstateDevice::dumpPreTouchSection(int fd) { snprintf(cmd, sizeof(cmd), "%s/nvt_fw_history", nvt_spi_path); if (!access(nvt_spi_path, R_OK)) DumpFileToFd(fd, "FW History", cmd); +#endif snprintf(cmd, sizeof(cmd), "echo %s > %s/%s", From 3cf3ce93864c4a48c53d7cb1a434db4898571468 Mon Sep 17 00:00:00 2001 From: George Lee Date: Mon, 18 Oct 2021 10:16:00 -0700 Subject: [PATCH 2/2] bcl: Increase SMPL_WARN to 3.1V To mitigate Synthetic load in brownout test, we need to increase UVLO1 to 3.2V, UVLO2 to 3.0V, and SMPL_WARN to 3.1V. Bug: 200943374 Test: Local Test Signed-off-by: George Lee Change-Id: I182d55f3a898d6e9adc8d86747ae62541a1c8fab --- conf/init.gs101.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index 6ca08fec..3cd6f0fd 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -861,6 +861,7 @@ on property:vendor.thermal.link_ready=1 write /dev/thermal/tz-by-name/soft_ocp_gpu/policy user_space write /dev/thermal/tz-by-name/soc/policy user_space write /dev/thermal/tz-by-name/batoilo/policy user_space + write /sys/devices/virtual/pmic/mitigation/triggered_lvl/smpl_lvl 3100 write /sys/devices/virtual/pmic/mitigation/triggered_lvl/soft_ocp_cpu2_lvl 9000 write /sys/devices/virtual/pmic/mitigation/triggered_lvl/soft_ocp_gpu_lvl 9000 write /sys/devices/virtual/pmic/mitigation/triggered_lvl/soft_ocp_tpu_lvl 8500