diff options
author | Furquan Shaikh <furquan@google.com> | 2019-06-14 08:55:24 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-14 22:04:57 +0000 |
commit | 0ad3ac0876bdda14129d9a8aa104e11ff1e248aa (patch) | |
tree | 8f81977ad75be8a5f63673ca3a6d892c608a5949 /power | |
parent | 6cffee1382bb8f918fc6fcd8f20a160d7d16d6e9 (diff) | |
download | chrome-ec-0ad3ac0876bdda14129d9a8aa104e11ff1e248aa.tar.gz |
intel_x86: Report S0ix hang detected by EC using console print
This change prints out a warning indicating that S0ix hang is detected
by EC. This is very helpful when debugging S0ix issues to understand
when exactly the EC triggered the wake because of hang detect.
BUG=b:134781711
BRANCH=None
TEST=Verified on a system stuck before going into S0ix that EC prints
out the warning when waking host up because of hang detect.
Change-Id: I73c64dc675ed8c4d35ca891fdc5de3e7e8449437
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1660014
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Auto-Submit: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'power')
-rw-r--r-- | power/intel_x86.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/power/intel_x86.c b/power/intel_x86.c index f4be052443..0095cdcf3a 100644 --- a/power/intel_x86.c +++ b/power/intel_x86.c @@ -262,6 +262,7 @@ static void s0ix_transition_timeout(void) lpc_set_host_event_mask(LPC_HOST_EVENT_WAKE, s0ix_wake_mask); } + CPRINTS("Warning: Detected S0ix hang! Waking host up!"); host_set_single_event(EC_HOST_EVENT_HANG_DETECT); } |