summaryrefslogtreecommitdiff
path: root/aoc_v1.c
diff options
context:
space:
mode:
authorPixelBot AutoMerger <android-nexus-securitybot@system.gserviceaccount.com>2023-12-03 18:55:11 -0800
committerSecurityBot <android-nexus-securitybot@system.gserviceaccount.com>2023-12-03 18:55:12 -0800
commita7ee00026cd3dd4457c6d9849e019ec0ca2be836 (patch)
tree8f12f7281ebfd884ee6cfb002e4368952b59e4dd /aoc_v1.c
parent10bcd0e5a07ac79fc725174aaeb8ec4150d74162 (diff)
parentc69225db7dde64287e2cdb8d17472cc65324f999 (diff)
downloadaoc-a7ee00026cd3dd4457c6d9849e019ec0ca2be836.tar.gz
SBMerger: 571992243 Change-Id: Iac42b53b23a42f55678602fad8c999f8761f3e6c Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
Diffstat (limited to 'aoc_v1.c')
-rw-r--r--aoc_v1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/aoc_v1.c b/aoc_v1.c
index 1147c43..e67937f 100644
--- a/aoc_v1.c
+++ b/aoc_v1.c
@@ -142,6 +142,7 @@ int aoc_watchdog_restart(struct aoc_prvdata *prvdata,
aoc_req_rc = wait_for_aoc_status(prvdata, true);
if (aoc_req_rc) {
dev_err(prvdata->dev, "timed out waiting for aoc_ack\n");
+ notify_timeout_aoc_status();
continue;
}
dev_info(prvdata->dev, "resetting aoc\n");
@@ -174,6 +175,8 @@ int aoc_watchdog_restart(struct aoc_prvdata *prvdata,
if (aoc_req_rc && *(aoc_module_params->aoc_panic_on_req_timeout)) {
dev_err(prvdata->dev, "timed out too many times waiting for aoc_ack, triggering kernel panic\n");
+ /* Sleep to ensure aocd can process notification of timeout before panic */
+ msleep(1000);
panic("AoC kernel panic: timed out waiting for aoc_ack");
}