Jason Gunthorpe <[email protected]> wrote on 02/09/2016
12:29:57 AM:
>
> On Mon, Feb 08, 2016 at 02:27:06PM -0500, Stefan Berger wrote:
> > Make tpm_startup() available for others to call.
>
> Why? Just call tpm_get_timeouts.
See the subsequent patch.
tpm_get_timeouts will first try to get the timeouts and will fail since
the TPM hasn't been initialized
and only then it will try a tpm_startup.
http://lxr.free-electrons.com/source/drivers/char/tpm/tpm-interface.c#L508
We want to prevent that user space is already waiting in the transmission
lock waiting to send its first
command and ends up sending a command before the tpm_startup.
http://lxr.free-electrons.com/ident?i=mutex_lock
Stefan
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
tpmdd-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tpmdd-devel