Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1715653 > unrolled thread

Re: [PATCH v2] msleep() delays - replace with usleep_range() in TPM 1.2/2.0 generic drivers

Started byJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
First post2017-08-19 14:20 +0200
Last post2017-08-19 14:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2] msleep() delays - replace with usleep_range() in TPM  1.2/2.0 generic drivers Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-08-19 14:20 +0200

#1715653 — Re: [PATCH v2] msleep() delays - replace with usleep_range() in TPM 1.2/2.0 generic drivers

FromJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Date2017-08-19 14:20 +0200
SubjectRe: [PATCH v2] msleep() delays - replace with usleep_range() in TPM 1.2/2.0 generic drivers
Message-ID<ugaTn-1cP-5@gated-at.bofh.it>
On Mon, Aug 14, 2017 at 07:09:16PM +0100, Hamza Attak wrote:
> The patch simply replaces all msleep function calls with usleep_range calls
> in the generic drivers.
> 
> Tested with an Infineon TPM 1.2, using the generic tpm-tis module, for a
> thousand PCR extends, we see results going from 1m57s unpatched to 40s
> with the new patch. We obtain similar results when using the original and
> patched tpm_infineon driver, which is also part of the patch.
> Similarly with a STM TPM 2.0, using the CRB driver, it takes about 20ms per
> extend unpatched and around 7ms with the new patch.
> 
> Note that the PCR consistency is untouched with this patch, each TPM has
> been tested with 10 million extends and the aggregated PCR value is
> continuously verified to be correct.
> 
> As an extension of this work, this could potentially and easily be applied
> to other vendor's drivers. Still, these changes are not included in the
> proposed patch as they are untested.
> 
> Signed-off-by: Hamza Attak <hamza@hpe.com>

Applying this.

Tested-by: Jarkko Sakkine <jarkko.sakkinen@linux.intel.com>

PS. Your short summary is broken. See how I fixed it. Otherwise,
no complains.

/Jarkko

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web