U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Simon Glass <sjg@chromium.org>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
	Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH 1/3] tpm: sandbox: Support self-test continue in emulator
Date: Mon, 30 Oct 2023 10:53:02 +0200	[thread overview]
Message-ID: <ZT9u7mIvbduGu6Vp@hades> (raw)
In-Reply-To: <20231029172813.1.I2fad865da519b36eb7d5879bb9ab552db8055e1f@changeid>

On Sun, Oct 29, 2023 at 05:28:12PM +1300, Simon Glass wrote:
> Add support for the self-test continue command in the TPM v1.2 emulator,
> to match the functionality in the TPM v2 emulator.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  drivers/tpm/tpm_tis_sandbox.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/tpm/tpm_tis_sandbox.c b/drivers/tpm/tpm_tis_sandbox.c
> index 7350e1c4d525..ca992eeb90f9 100644
> --- a/drivers/tpm/tpm_tis_sandbox.c
> +++ b/drivers/tpm/tpm_tis_sandbox.c
> @@ -222,6 +222,7 @@ static int sandbox_tpm_xfer(struct udevice *dev, const uint8_t *sendbuf,
>  	case 0x72: /* physical set deactivated */
>  	case 0x99: /* startup */
>  	case 0x50: /* self test full */
> +	case 0x53: /* self test continue */
>  	case 0x4000000a:  /* assert physical presence */
>  		*recv_len = 12;
>  		memset(recvbuf, '\0', *recv_len);
> -- 
> 2.42.0.820.g83a721a137-goog
> 

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>


  reply	other threads:[~2023-10-30  8:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-29  4:28 [PATCH 0/3] tpm: Start to tidy up TPM tests Simon Glass
2023-10-29  4:28 ` [PATCH 1/3] tpm: sandbox: Support self-test continue in emulator Simon Glass
2023-10-30  8:53   ` Ilias Apalodimas [this message]
2023-10-29  4:28 ` [PATCH 2/3] tpm: Convert sandbox-focussed tests to C Simon Glass
2023-10-29 14:33   ` Tom Rini
2023-10-30 11:40     ` Ilias Apalodimas
2023-10-30 11:41   ` Ilias Apalodimas
2023-10-29  4:28 ` [PATCH 3/3] tpm: Drop unwanted special cases for sandbox Simon Glass
2023-10-30 11:42   ` Ilias Apalodimas
2023-10-30 11:43 ` [PATCH 0/3] tpm: Start to tidy up TPM tests Ilias Apalodimas

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=ZT9u7mIvbduGu6Vp@hades \
    --to=ilias.apalodimas@linaro.org \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox