soc/amd/stoneyridge/smihandler.c: Report pending wake event
commitb74e399c7d9d6decd6aeba5de5a8181a5f17d82a
authorRichard Spiegel <richard.spiegel@amd.corp-partner.google.com>
Mon, 20 Aug 2018 20:52:44 +0000 (20 13:52 -0700)
committerMartin Roth <martinroth@google.com>
Wed, 22 Aug 2018 15:36:10 +0000 (22 15:36 +0000)
tree6e98eabed6bcc6ae886ba51ee133181c6dc3146a
parente6809907e7ea2dcecb8f94222dfde9f2d52de688
soc/amd/stoneyridge/smihandler.c: Report pending wake event

There's a small window of opportunity when CPU is already in SMM but has
not yet entered S3 for a wake event to happen, which would cause a failed
S3 entry. Check for pending events at the very last moment possible, and
if there are pending wake events report them.

BUG=b:111100312
TEST=build and boot grunt.

Change-Id: I9472fdf481897fcf9f4c669f6b1514ef479fce7a
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/28247
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
src/soc/amd/stoneyridge/smihandler.c