Files
OpenCellular/common
Vadim Bendebury f495e27ce6 tpm: ccd: allow alternative commands when ap is held in reset
A typical CCD use case is when the DUT is not fully functional, or
even completely dead, including corrupted AP/EC firmware.

We still want to be able to enable CCD in this case, but routing CCD
commands through TPM task context (necessary to ensure the large stack
size some CCD commands require) is blocked if TPM was not reset after
startup.

Let's allow both reset requests and alternative commands when AP is
held in reset after reboot. The only situation when the alternative
command arrives would be the CCD use case of the system not generating
TPM reset pulse at startup and the operator is trying to execute a CCD
or RMA reset command.

BRANCH=cr50, cr50-mp
BUG=b:73292631

TEST=on a reef device: destroyed AP firmware and observed that the
     'ccd open' command indeed results in the hung Cr50 console after
     Cr50 is reset in this state.

     Loaded the new Cr50 image, (which caused another Cr50 reset),
     successfully took it through the 'ccd open' sequence resulting in
     enabling AP flash write access, restored the AP flash and
     observed the DUT boot into Chrome OS.

Change-Id: I4413bc200f5b2be563ba666ff80dd2d889ae5790
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/920924
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
2018-02-15 21:43:57 -08:00
..
2017-12-28 14:50:29 -08:00
2018-02-05 23:05:39 -08:00
2018-02-08 09:24:07 -08:00
2018-02-08 23:42:33 -08:00
2015-05-19 02:46:27 +00:00
2017-11-06 13:48:38 -08:00
2018-01-10 12:58:55 -08:00
2018-01-23 05:25:08 -08:00
2016-11-15 17:41:53 -08:00
2017-12-28 12:35:08 -08:00
2017-10-19 14:56:09 -07:00
2017-09-11 11:14:24 -07:00
2016-03-02 13:39:47 -08:00
2017-06-02 10:38:57 -07:00
2017-10-31 13:04:59 -07:00
2017-10-24 12:57:45 -07:00
2014-05-17 20:14:17 +00:00
2018-02-09 05:24:46 -08:00
2016-03-21 16:35:33 -07:00
2017-05-09 23:20:07 -07:00
2017-11-06 13:48:38 -08:00
2017-08-10 22:47:24 -07:00
2018-01-31 22:38:56 -08:00
2017-12-18 20:32:58 -08:00
2017-12-18 20:32:58 -08:00
2017-09-22 10:18:50 -07:00