summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2021-09-20 21:33:04 -0700
committerCommit Bot <commit-bot@chromium.org>2021-09-22 01:38:30 +0000
commit12a022685da02b5b409a65347bdee1ba86b5b53d (patch)
treee6435e1013cf9cfff2250cc0ebf565939b2590e6
parent271bb8c30baa07e97b5dd08b1f1fd587e571ddcd (diff)
downloadchrome-ec-stabilize-14235.B-cr50_stab.tar.gz
tpm_vendor_cmds: add command for AP RO verificationstabilize-14235.B-cr50_stab
The new command will be used for context switching to make the large stack of the TPM task available to the AP RO verification code. Note that we don't want the AP to be able to send this vendor command, some extension_route_command() enhancement might be necessary. BUG=b:199904580 TEST=tested along with AP RO verification implementation. Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Change-Id: I8599479752b4a7b1982b75cfea61ffad3950681d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3172255 Reviewed-by: Andrey Pronin <apronin@chromium.org>
-rw-r--r--common/extension.c1
-rw-r--r--include/tpm_vendor_cmds.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/common/extension.c b/common/extension.c
index fb08c0bc3f..e65cf18880 100644
--- a/common/extension.c
+++ b/common/extension.c
@@ -45,6 +45,7 @@ uint32_t extension_route_command(struct vendor_cmd_params *p)
case VENDOR_CC_RMA_CHALLENGE_RESPONSE:
case VENDOR_CC_SPI_HASH: /* Requires physical presence. */
case VENDOR_CC_TURN_UPDATE_ON:
+ case VENDOR_CC_AP_RO_VALIDATE:
break;
default:
/* Otherwise, we don't allow this command. */
diff --git a/include/tpm_vendor_cmds.h b/include/tpm_vendor_cmds.h
index b127a05082..73647eca5a 100644
--- a/include/tpm_vendor_cmds.h
+++ b/include/tpm_vendor_cmds.h
@@ -155,6 +155,8 @@ enum vendor_cmd_cc {
VENDOR_CC_GET_AP_RO_STATUS = 57,
+ VENDOR_CC_AP_RO_VALIDATE = 58,
+
LAST_VENDOR_COMMAND = 65535,
};