Re: [PATCH 2/2] ftpm: firmware TPM running in TEE

2019-04-10 Thread Jarkko Sakkinen
On Wed, Apr 10, 2019 at 12:04:32PM -0400, Sasha Levin wrote: > On Wed, Apr 10, 2019 at 02:29:27PM +0300, Jarkko Sakkinen wrote: > > On Sat, Apr 06, 2019 at 11:30:47AM -0400, Sasha Levin wrote: > > > On Wed, Apr 03, 2019 at 09:27:28PM +0300, Jarkko Sakkinen wrote: > > > > On Wed, Apr 03, 2019 at 09:

Re: [PATCH 2/2] ftpm: firmware TPM running in TEE

2019-04-10 Thread Sasha Levin
On Wed, Apr 10, 2019 at 02:29:27PM +0300, Jarkko Sakkinen wrote: On Sat, Apr 06, 2019 at 11:30:47AM -0400, Sasha Levin wrote: On Wed, Apr 03, 2019 at 09:27:28PM +0300, Jarkko Sakkinen wrote: > On Wed, Apr 03, 2019 at 09:18:27PM +0300, Jarkko Sakkinen wrote: > > On Tue, Apr 02, 2019 at 03:33:16PM

Re: [PATCH 2/2] ftpm: firmware TPM running in TEE

2019-04-10 Thread Jarkko Sakkinen
On Sat, Apr 06, 2019 at 11:30:47AM -0400, Sasha Levin wrote: > On Wed, Apr 03, 2019 at 09:27:28PM +0300, Jarkko Sakkinen wrote: > > On Wed, Apr 03, 2019 at 09:18:27PM +0300, Jarkko Sakkinen wrote: > > > On Tue, Apr 02, 2019 at 03:33:16PM -0400, Sasha Levin wrote: > > > > This patch adds support for

Re: [PATCH 2/2] ftpm: firmware TPM running in TEE

2019-04-06 Thread Sasha Levin
On Wed, Apr 03, 2019 at 09:27:28PM +0300, Jarkko Sakkinen wrote: On Wed, Apr 03, 2019 at 09:18:27PM +0300, Jarkko Sakkinen wrote: On Tue, Apr 02, 2019 at 03:33:16PM -0400, Sasha Levin wrote: > This patch adds support for a software-only implementation of a TPM > running in TEE. > > There is exte

Re: [PATCH 2/2] ftpm: firmware TPM running in TEE

2019-04-03 Thread Jarkko Sakkinen
On Wed, Apr 03, 2019 at 09:18:27PM +0300, Jarkko Sakkinen wrote: > On Tue, Apr 02, 2019 at 03:33:16PM -0400, Sasha Levin wrote: > > This patch adds support for a software-only implementation of a TPM > > running in TEE. > > > > There is extensive documentation of the design here: > > https://www.m

Re: [PATCH 2/2] ftpm: firmware TPM running in TEE

2019-04-03 Thread Jarkko Sakkinen
On Tue, Apr 02, 2019 at 01:56:43PM -0700, Stephen Hemminger wrote: > On Tue, 2 Apr 2019 12:33:16 -0700 > "Sasha Levin" wrote: > > > +/* > > + * ftpm_tee_tpm_op_recv retrieve fTPM response. > > + * @param: chip, the tpm_chip description as specified in > > driver/char/tpm/tpm.h. > > + * @param: bu

Re: [PATCH 2/2] ftpm: firmware TPM running in TEE

2019-04-03 Thread Jarkko Sakkinen
On Tue, Apr 02, 2019 at 03:33:16PM -0400, Sasha Levin wrote: > This patch adds support for a software-only implementation of a TPM > running in TEE. > > There is extensive documentation of the design here: > https://www.microsoft.com/en-us/research/publication/ftpm-software-implementation-tpm-chip

Re: [PATCH 2/2] ftpm: firmware TPM running in TEE

2019-04-03 Thread Jason Gunthorpe
On Tue, Apr 02, 2019 at 03:33:16PM -0400, Sasha Levin wrote: > +/* > + * Undo what has been done in ftpm_tee_probe > + */ > +static void ftpm_tee_deinit(struct ftpm_tee_private *pvt_data) > +{ > + /* Release the chip */ > + if (pvt_data->state & STATE_REGISTERED_FLAG) > + tpm_c

Re: [PATCH 2/2] ftpm: firmware TPM running in TEE

2019-04-02 Thread Stephen Hemminger
On Tue, 2 Apr 2019 12:33:16 -0700 "Sasha Levin" wrote: > +/* > + * ftpm_tee_tpm_op_recv retrieve fTPM response. > + * @param: chip, the tpm_chip description as specified in > driver/char/tpm/tpm.h. > + * @param: buf, the buffer to store data. > + * @param: count, the number of bytes to read.

[PATCH 2/2] ftpm: firmware TPM running in TEE

2019-04-02 Thread Sasha Levin
This patch adds support for a software-only implementation of a TPM running in TEE. There is extensive documentation of the design here: https://www.microsoft.com/en-us/research/publication/ftpm-software-implementation-tpm-chip/ . As well as reference code for the firmware available here: https: