mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: Surendran Kanagaraj <surenkj@amazon.com>
Cc: peterhuewe@gmx.de, jgg@ziepe.ca, linux-integrity@vger.kernel.org,
	linux-kernel@vger.kernel.org, nh-open-source@amazon.com
Subject: Re: [PATCH] tpm: Raise the TPM2_SelfTest duration to 4000 ms
Date: Wed, 25 Nov 2026 21:05:02 +0200	[thread overview]
Message-ID: <awcxXkPRPv3CDlcq@kernel.org> (raw)
In-Reply-To: <20261125182251.19360-1-surenkj@amazon.com>

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

      reply	other threads:[~2026-11-25 19:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 18:22 Surendran Kanagaraj
2026-11-25 19:05 ` Jarkko Sakkinen [this message]

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=awcxXkPRPv3CDlcq@kernel.org \
    --to=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 \
    --cc=surenkj@amazon.com \
    /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 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®