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-09 02:10:31 +0000
commit863988723775da720b4d1ecfe3c2e6615980d813 (patch)
tree20c11b6994f55510fd15141bb32b5e71e981c077
parent3951ce7bc66a1ab4578147a8d2b5dd65892bead6 (diff)
downloaddisplay-android-gs-bluejay-5.10-u-beta3.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(