* [PATCH] tpm: Raise the TPM2_SelfTest duration to 4000 ms
@ 2026-11-25 18:22 Surendran Kanagaraj
2026-11-25 19:05 ` Jarkko Sakkinen
0 siblings, 1 reply; 2+ messages in thread
From: Surendran Kanagaraj @ 2026-11-25 18:22 UTC (permalink / raw)
To: peterhuewe, jarkko; +Cc: jgg, linux-integrity, linux-kernel, nh-open-source
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] tpm: Raise the TPM2_SelfTest duration to 4000 ms
2026-11-25 18:22 [PATCH] tpm: Raise the TPM2_SelfTest duration to 4000 ms Surendran Kanagaraj
@ 2026-11-25 19:05 ` Jarkko Sakkinen
0 siblings, 0 replies; 2+ messages in thread
From: Jarkko Sakkinen @ 2026-11-25 19:05 UTC (permalink / raw)
To: Surendran Kanagaraj
Cc: peterhuewe, jgg, linux-integrity, linux-kernel, nh-open-source
On Wed, Nov 25, 2026 at 06:22:51PM +0000, Surendran Kanagaraj wrote:
> 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
>
Thanks.
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Br, Jarkko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-25 19:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 18:22 [PATCH] tpm: Raise the TPM2_SelfTest duration to 4000 ms Surendran Kanagaraj
2026-11-25 19:05 ` Jarkko Sakkinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®