From: Surendran Kanagaraj <surenkj@amazon.com>
To: <peterhuewe@gmx.de>, <jarkko@kernel.org>
Cc: <jgg@ziepe.ca>, <linux-integrity@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <nh-open-source@amazon.com>
Subject: [PATCH] tpm: Raise the TPM2_SelfTest duration to 4000 ms
Date: Wed, 25 Nov 2026 18:22:51 +0000 [thread overview]
Message-ID: <20261125182251.19360-1-surenkj@amazon.com> (raw)
TPM2_SelfTest duration is currently 3000 ms, following PTP version 1.06.
Version 1.07 [1] has since raised the full self-test timeout from
3000 ms to 4000 ms (Table 26, Command Timing). Raise the TPM2_SelfTest
duration to 4000 ms to match PTP version 1.07.
[1] https://medias.cdn.trustedcomputinggroup.org/production/PC_Client_Specific_Platform_TPM_Profile_for_TPM_2p0_v1p07_Pub_5643562943.pdf
Signed-off-by: Surendran Kanagaraj <surenkj@amazon.com>
---
Found while working on the RFC series "tpm: Rework timeout and
duration handling":
https://lore.kernel.org/linux-integrity/20261118073852.81107-1-surenkj@amazon.com/
drivers/char/tpm/tpm2-cmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/tpm/tpm2-cmd.c b/drivers/char/tpm/tpm2-cmd.c
index 65928ae85b49..d58c306f7d93 100644
--- a/drivers/char/tpm/tpm2-cmd.c
+++ b/drivers/char/tpm/tpm2-cmd.c
@@ -59,7 +59,7 @@ static const struct {
unsigned long duration;
} tpm2_ordinal_duration_map[] = {
{TPM2_CC_STARTUP, 750},
- {TPM2_CC_SELF_TEST, 3000},
+ {TPM2_CC_SELF_TEST, 4000},
{TPM2_CC_GET_RANDOM, 2000},
{TPM2_CC_SEQUENCE_UPDATE, 750},
{TPM2_CC_SEQUENCE_COMPLETE, 750},
base-commit: 003906ddd61cac2b89aefaf001fc19a6cb5d541a
--
2.47.3
next reply other threads:[~2026-11-25 18:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 18:22 Surendran Kanagaraj [this message]
2026-11-25 19:05 ` [PATCH] tpm: Raise the TPM2_SelfTest duration to 4000 ms Jarkko Sakkinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261125182251.19360-1-surenkj@amazon.com \
--to=surenkj@amazon.com \
--cc=jarkko@kernel.org \
--cc=jgg@ziepe.ca \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nh-open-source@amazon.com \
--cc=peterhuewe@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.