Re: [PATCH v2 2/2] tpm: reduce polling time to usecs for even finer granularity

2018-04-24 Thread Jarkko Sakkinen
On Tue, Apr 17, 2018 at 09:12:46AM -0400, Nayna Jain wrote: > The TPM burstcount and status commands are supposed to return very > quickly [1][2]. This patch further reduces the TPM poll sleep time to usecs > in get_burstcount() and wait_for_tpm_stat() by calling usleep_range() > directly. > > Aft

Re: [PATCH v2 2/2] tpm: reduce polling time to usecs for even finer granularity

2018-04-18 Thread Mimi Zohar
On Tue, 2018-04-17 at 09:12 -0400, Nayna Jain wrote: > The TPM burstcount and status commands are supposed to return very > quickly [1][2]. This patch further reduces the TPM poll sleep time to usecs > in get_burstcount() and wait_for_tpm_stat() by calling usleep_range() > directly. > > After this

[PATCH v2 2/2] tpm: reduce polling time to usecs for even finer granularity

2018-04-17 Thread Nayna Jain
The TPM burstcount and status commands are supposed to return very quickly [1][2]. This patch further reduces the TPM poll sleep time to usecs in get_burstcount() and wait_for_tpm_stat() by calling usleep_range() directly. After this change, performance on a TPM 1.2 with an 8 byte burstcount for 1