[tpmdd-devel] TPM resource manager - persistent objects should be global

2017-03-28 Thread Ken Goldman
I have a persistent object at 8101. getcapability through /dev/tpm0 shows it. The same command through /dev/tpmrm0 does not. This causes further problems in the application. While transient objects are per connection, IMHO persistent objects should be global. ~~ Warning: I think I'm

[tpmdd-devel] [PATCH v3] tpm: Apply a sane minimum adapterlimit value for retransmission.

2017-03-28 Thread Enric Balletbo i Serra
From: Bryan Freed When the I2C Infineon part is attached to an I2C adapter that imposes a size limitation, large requests will fail with -EOPNOTSUPP. Retry them with a sane minimum size without re-issuing the 0x05 command as this appears to occasionally put the TPM in a bad

Re: [tpmdd-devel] [PATCH] tpm: do handle area size validation only when TPM space used

2017-03-28 Thread Jarkko Sakkinen
So do you need this or not? /Jarkko On Mon, Mar 27, 2017 at 12:08:15AM +0300, Jarkko Sakkinen wrote: > In order to not cause backwards compatibility issues with > /dev/tpm0 disable handle area size validation if tpm_transmit > is not called with a TPM space. > > Signed-off-by: Jarkko Sakkinen

Re: [tpmdd-devel] [PATCH] tpm/tpm_crb: fix unused warnings on suspend/resume functions

2017-03-28 Thread Jarkko Sakkinen
On Tue, Mar 28, 2017 at 06:15:56AM +, Winkler, Tomas wrote: > > > > > > On Tue, Mar 21, 2017 at 10:05:36PM +, Winkler, Tomas wrote: > > > > On Thu, Mar 16, 2017 at 09:51:33PM -0400, Jérémy Lefaure wrote: > > > > > When PM_SLEEP is disabled crb_pm_suspend and crb_pm_resume are > > not >

Re: [tpmdd-devel] [PATCH] tpm/tpm_crb: fix unused warnings on suspend/resume functions

2017-03-28 Thread Winkler, Tomas
> > On Tue, Mar 21, 2017 at 10:05:36PM +, Winkler, Tomas wrote: > > > On Thu, Mar 16, 2017 at 09:51:33PM -0400, Jérémy Lefaure wrote: > > > > When PM_SLEEP is disabled crb_pm_suspend and crb_pm_resume are > not > > > > used by SET_SYSTEM_SLEEP_PM_OPS even if PM is enabled: > > > > > > > >