Re: [tpmdd-devel] [PATCH RFC 1/4] tpm: migrate struct tpm_buf to struct tpm_chip

2017-01-04 Thread Jarkko Sakkinen
On Tue, Jan 03, 2017 at 12:13:28PM -0700, Jason Gunthorpe wrote: > On Tue, Jan 03, 2017 at 02:57:37AM +0200, Jarkko Sakkinen wrote: > > On Mon, Jan 02, 2017 at 02:01:01PM -0700, Jason Gunthorpe wrote: > > > On Mon, Jan 02, 2017 at 03:22:07PM +0200, Jarkko Sakkinen wrote: > > > > Since there is

Re: [tpmdd-devel] [PATCH RFC 1/4] tpm: migrate struct tpm_buf to struct tpm_chip

2017-01-03 Thread Jason Gunthorpe
On Tue, Jan 03, 2017 at 02:57:37AM +0200, Jarkko Sakkinen wrote: > On Mon, Jan 02, 2017 at 02:01:01PM -0700, Jason Gunthorpe wrote: > > On Mon, Jan 02, 2017 at 03:22:07PM +0200, Jarkko Sakkinen wrote: > > > Since there is only one thread using TPM chip at a time to transmit data > > > we can

Re: [tpmdd-devel] [PATCH RFC 1/4] tpm: migrate struct tpm_buf to struct tpm_chip

2017-01-02 Thread Jarkko Sakkinen
On Mon, Jan 02, 2017 at 02:01:01PM -0700, Jason Gunthorpe wrote: > On Mon, Jan 02, 2017 at 03:22:07PM +0200, Jarkko Sakkinen wrote: > > Since there is only one thread using TPM chip at a time to transmit data > > we can migrate struct tpm_buf to struct tpm_chip. This makes the use of > > it more

Re: [tpmdd-devel] [PATCH RFC 1/4] tpm: migrate struct tpm_buf to struct tpm_chip

2017-01-02 Thread Jason Gunthorpe
On Mon, Jan 02, 2017 at 03:22:07PM +0200, Jarkko Sakkinen wrote: > Since there is only one thread using TPM chip at a time to transmit data > we can migrate struct tpm_buf to struct tpm_chip. This makes the use of > it more fail safe as the buffer is allocated from heap when the device > is

[tpmdd-devel] [PATCH RFC 1/4] tpm: migrate struct tpm_buf to struct tpm_chip

2017-01-02 Thread Jarkko Sakkinen
Since there is only one thread using TPM chip at a time to transmit data we can migrate struct tpm_buf to struct tpm_chip. This makes the use of it more fail safe as the buffer is allocated from heap when the device is created and not for every transaction. This is needed characteristic for the