summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Huang <kenbshuang@google.com>2023-04-26 21:01:40 +0800
committerKen Huang <kenbshuang@google.com>2023-05-04 07:29:42 +0000
commit02d3a856d84c4ef22c3e4d344436c47c3d0612c2 (patch)
tree1da4459b205e2d0f3721b944cfe0f2c998838724
parent3373c1b898c22fa41641d3aa2c11a25a685af5c4 (diff)
downloaddisplay-android-13.0.0_r0.107.tar.gz
Scandump doesn't record the right timing after receiving itmon error. Trigger emergency reboot to ensure the issue timing. Bug: 279094593 Test: trigger ramdump by hard code Change-Id: I3da1f5febd335de8ffaf472b7fb27ff5c76ba61e Signed-off-by: Ken Huang <kenbshuang@google.com>
-rw-r--r--samsung/cal_9845/dsim_reg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/samsung/cal_9845/dsim_reg.c b/samsung/cal_9845/dsim_reg.c
index 9377405..9c04da0 100644
--- a/samsung/cal_9845/dsim_reg.c
+++ b/samsung/cal_9845/dsim_reg.c
@@ -18,6 +18,7 @@
#include "regs-dsim.h"
#include <dsim_cal.h>
#include <cal_config.h>
+#include <soc/google/debug-snapshot.h>
static struct cal_regs_desc regs_desc[REGS_DSIM_TYPE_MAX][MAX_DSI_CNT];
@@ -780,8 +781,11 @@ static int dsim_reg_enable_pll(u32 id, u32 en)
dsim_reg_set_pll(id, en);
if (en ^ dsim_reg_get_pll_en(id)) {
- WARN(1, "dsim%u: PLL_EN is not %s\n",
- id, en ? "enable" : "disable");
+ char dsim_msg[40];
+
+ scnprintf(dsim_msg, sizeof(dsim_msg),
+ "dsim%u: PLL_EN is not %sable\n", id, en ? "en" : "dis");
+ dbg_snapshot_emergency_reboot(dsim_msg);
return -EINVAL;
}
ret = readl_poll_timeout_atomic(