aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2018-12-21 09:55:20 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-02-13 20:20:36 -0800
commite98709505aea90d4cda976d51e274c1301164511 (patch)
tree4876bfa77b5d8f69f6a041301c1bc575d54dc7fa
parentab480d6b322bee90ac695aba8812d19cb63da737 (diff)
downloadtpm2-e98709505aea90d4cda976d51e274c1301164511.tar.gz
Reduce TPM buffer size
We are getting tight on SRAM, and the platform receive/transmit buffer is 2K in size anyways, no point in keeping 4K in the tpm library. Ideally we should try eliminating this duplication and have one buffer with zero copy, but this is for another day. BRANCH=cr50, cr50-mp BUG=b:65253310 TEST=TCG test suite passes successfully Change-Id: I9c64ae1759aa1a4780438d884b3d7f52275fe66e Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1467622 Reviewed-by: Andrey Pronin <apronin@chromium.org>
-rw-r--r--Implementation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Implementation.h b/Implementation.h
index eb6457d..977e72c 100644
--- a/Implementation.h
+++ b/Implementation.h
@@ -331,8 +331,8 @@
#define PROOF_SIZE CONTEXT_INTEGRITY_HASH_SIZE
#define NV_CLOCK_UPDATE_INTERVAL 12
#define NUM_POLICY_PCR 1
-#define MAX_COMMAND_SIZE 4096
-#define MAX_RESPONSE_SIZE 4096
+#define MAX_COMMAND_SIZE 2048
+#define MAX_RESPONSE_SIZE 2048
#define ORDERLY_BITS 8
#define MAX_ORDERLY_COUNT ((1<<ORDERLY_BITS)-1)
#define ALG_ID_FIRST TPM_ALG_FIRST