From: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
To: Peter Huewe <peterhuewe@gmx.de>
Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
open list <linux-kernel@vger.kernel.org>,
"moderated list:TPM DEVICE DRIVER"
<tpmdd-devel@lists.sourceforge.net>
Subject: Re: [PATCH v2 0/3] Runtime PM for TPM2 CRB chips
Date: Sun, 19 Jun 2016 19:15:31 +0200 [thread overview]
Message-ID: <20160619171531.GA25349@intel.com> (raw)
In-Reply-To: <1466262628-25530-1-git-send-email-jarkko.sakkinen@linux.intel.com>
On Sat, Jun 18, 2016 at 05:10:25PM +0200, Jarkko Sakkinen wrote:
> These patches implement support for runtime PM with TPM2 CRB chips such
> as PTT in Skylake.
>
> This is very naive implementation since the TPM is resumed and supended
> for every transaction thus causing total 40 ms latency for each
> transaction but for the existing use cases this shouldn't be an issue.
>
> Jarkko Sakkinen (3):
> tpm_crb: fix crb_req_canceled behavior
> tpm, tpm_crb: remove wmb()'s
> tpm, tpm_crb: runtime power management
>
> drivers/char/tpm/tpm-interface.c | 3 ++
> drivers/char/tpm/tpm_crb.c | 60 +++++++++++++++++++++++++++++++++++-----
> 2 files changed, 56 insertions(+), 7 deletions(-)
Reviewing myself:
* I fsckd the description. The latency is whopping 400 ms, not 4 ms.
Sorry about that. Thus it's better to use autosuspend.
* Callbacks should take tpm_mutex before doing anything.
I guess that tpm_tis could later on also take advantage of this work?
/Jarkko
next prev parent reply other threads:[~2016-06-19 17:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-18 15:10 Jarkko Sakkinen
2016-06-18 15:10 ` [PATCH v2 1/3] tpm_crb: fix crb_req_canceled behavior Jarkko Sakkinen
2016-06-18 15:10 ` [PATCH v2 2/3] tpm, tpm_crb: remove wmb()'s Jarkko Sakkinen
2016-06-18 15:10 ` [PATCH v2 3/3] tpm, tpm_crb: runtime power management Jarkko Sakkinen
2016-06-19 17:15 ` Jarkko Sakkinen [this message]
2016-06-19 17:17 ` [PATCH v2 0/3] Runtime PM for TPM2 CRB chips Peter Huewe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160619171531.GA25349@intel.com \
--to=jarkko.sakkinen@linux.intel.com \
--cc=jgunthorpe@obsidianresearch.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterhuewe@gmx.de \
--cc=tpmdd-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®