From: Miquel Raynal <miquel.raynal@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 00/18] Introduce SPI TPM v2.0 support
Date: Tue, 20 Mar 2018 14:36:56 +0100 [thread overview]
Message-ID: <20180320143656.4c1ae678@xps13> (raw)
In-Reply-To: <20180309121840.GG1770@bill-the-cat.ec.rr.com>
Hi Tom,
Sorry for the delay.
On Fri, 9 Mar 2018 07:18:40 -0500, Tom Rini <trini@konsulko.com> wrote:
> On Fri, Mar 09, 2018 at 08:53:40AM +0100, Miquel Raynal wrote:
> > Hi Tom,
> >
> > On Thu, 8 Mar 2018 12:20:30 -0500, Tom Rini <trini@konsulko.com> wrote:
> >
> > > On Thu, Mar 08, 2018 at 04:40:03PM +0100, Miquel Raynal wrote:
> > >
> > > > Current U-Boot supports TPM v1.2 specification. The new specification
> > > > (v2.0) is not backward compatible and renames/introduces several
> > > > functions.
> > > >
> > > > This series introduces a new SPI driver following the TPM v2.0
> > > > specification. It has been tested on a ST TPM but should be usable with
> > > > others v2.0 compliant chips.
> > > >
> > > > Then, basic functionalities are introduced one by one for the v2.0
> > > > specification. The INIT command now can receive a parameter to
> > > > distinguish further TPMv1/TPMv2 commands. After that, the library itself
> > > > will know which one is pertinent and will return a special error if the
> > > > desired command is not supported for the selected specification.
> > >
> > > Thanks for doing all of this. Can you please enable this feature on
> > > sandbox and/or an x86 QEMU variant where I assume we could also then
> > > setup automated testing?
> > >
> >
> > Not sure I understand your request correctly: the TPM commands are
> > already available in the sandbox (I don't see what I could add), I just
> > extended the current set of commands.
> >
> > However, even with these commands, we won't be able to test them in a
> > sandbox unless with an actual device.
> >
> > I probably miss something, can you explain a bit more what you would
> > like?
>
> Can we add a valid TPM via QEMU and then test it that way? If so, we
> should enable the TPM code on qemu-x86_64 (and, well, if we can pass it
> on other arches, other QEMU targets) and write some test/py/tests/ code
> that exercises the TPM commands. Does that make sense?
>
I suppose this is doable, but for what I know, the effort is
consequent. TPM 2.0 are not compatible at all with TPM 1.x , the
packets exchanged at TPM level are completely different. Hence, I
think there is almost nothing that we can take from the TPM 1.x
implementation already existing in QEMU.
I am certain we all would benefit such a contribution, however I'm
not sure I could handle that anytime soon.
About the series, I think it would be better that I change a macro name
("STRINGIFY", which is wrongly named), I will send a v2 soon, can you
tell me its status otherwise?
Thank you,
Miquèl
--
Miquel Raynal, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-03-20 13:36 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-08 15:40 [U-Boot] [PATCH 00/18] Introduce SPI TPM v2.0 support Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 01/18] tpm: add Revision ID field in the chip structure Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 02/18] tpm: rename tpm_tis_infineon in tpm_tis_infineon_i2c Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 03/18] tpm: add support for TPMv2 SPI modules Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 04/18] tpm: fix indentation in command list before adding more Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 05/18] tpm: prepare support for TPMv2 commands Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 06/18] tpm: add macros " Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 07/18] tpm: add possible traces to analyze buffers returned by the TPM Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 08/18] tpm: handle different buffer sizes Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 09/18] tpm: add TPM2_Startup command support Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 10/18] tpm: add TPM2_SelfTest " Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 11/18] tpm: add TPM2_Clear " Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 12/18] tpm: rename the _extend() function to be _pcr_event() Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 13/18] tpm: add TPM2_PCR_Extend command support Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 14/18] tpm: add TPM2_PCR_Read " Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 15/18] tpm: add TPM2_GetCapability " Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 16/18] tpm: add dictionary attack mitigation commands support Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 17/18] tpm: add TPM2_HierarchyChangeAuth command support Miquel Raynal
2018-03-08 15:40 ` [U-Boot] [PATCH 18/18] tpm: add PCR authentication commands support Miquel Raynal
2018-03-08 17:20 ` [U-Boot] [PATCH 00/18] Introduce SPI TPM v2.0 support Tom Rini
2018-03-09 7:53 ` Miquel Raynal
2018-03-09 12:18 ` Tom Rini
2018-03-20 13:36 ` Miquel Raynal [this message]
2018-03-20 14:04 ` Tom Rini
2018-03-20 14:51 ` Miquel Raynal
2018-03-21 13:49 ` Tom Rini
2018-03-23 14:42 ` Simon Glass
2018-03-29 7:39 ` Miquel Raynal
2018-03-29 22:41 ` Simon Glass
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=20180320143656.4c1ae678@xps13 \
--to=miquel.raynal@bootlin.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