From: Surendran Kanagaraj <surenkj@amazon.com>
To: <jarkko@kernel.org>
Cc: <corbet@lwn.net>, <graf@amazon.de>, <gunnarku@amazon.com>,
<jgg@ziepe.ca>, <joshlev@amazon.com>, <leitao@debian.org>,
<linux-doc@vger.kernel.org>, <linux-integrity@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <nh-open-source@amazon.com>,
<noodles@earth.li>, <peterhuewe@gmx.de>, <rdunlap@infradead.org>,
<skhan@linuxfoundation.org>, <surenkj@amazon.com>
Subject: Re: [RFC PATCH v4 4/8] tpm: Bound core and CRB waits by the limits table
Date: Tue, 24 Nov 2026 20:49:41 +0000 [thread overview]
Message-ID: <20261124204941.18416-1-surenkj@amazon.com> (raw)
In-Reply-To: <awA7ns3kfuOBanxW@kernel.org>
Hi Jarkko,
Thanks for the review.
On Fri, Nov 20, 2026 at 02:22:54PM +0200, Jarkko Sakkinen wrote:
> On Wed, Nov 18, 2026 at 07:38:48AM +0000, Surendran Kanagaraj wrote:
> > Polls in tpm_try_transmit() still use fixed 1 ms sleeps and
> > tpm_transmit() stops retrying once the next backoff would pass
> > TPM2_DURATION_LONG and tpm_crb always waits TPM2_TIMEOUT_C.
> > A value set through ->adjust_limits() reaches neither the retry
> > loop nor the crb waits.
> >
> > [...]
> > ---
> > drivers/char/tpm/tpm-interface.c | 57 +++++++++++++-------------
> > drivers/char/tpm/tpm-limits.c | 19 +++++++++
> > drivers/char/tpm/tpm.h | 2 +-
> > drivers/char/tpm/tpm_crb.c | 70 +++++++++++++++++---------------
> > 4 files changed, 87 insertions(+), 61 deletions(-)
> >
> > [...]
>
> Is it possible to slice this to more intermediate steps, or not?
Yes. I will split the changes in the next rev:
- tpm_try_transmit() and tpm_transmit() changes to use the limits table
- tpm_crb driver waits to use the limits table
Thanks,
Surendran
next prev parent reply other threads:[~2026-11-24 20:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 7:38 [RFC PATCH v4 0/8] tpm: Rework timeout and duration handling Surendran Kanagaraj
2026-11-18 7:38 ` [RFC PATCH v4 1/8] tpm: Add a single table for all TPM wait limits Surendran Kanagaraj
2026-11-20 12:19 ` Jarkko Sakkinen
2026-11-25 23:00 ` Surendran Kanagaraj
2026-11-26 19:02 ` Jarkko Sakkinen
2026-11-27 22:23 ` Surendran Kanagaraj
2026-11-27 23:30 ` Jarkko Sakkinen
2026-12-01 8:14 ` Surendran Kanagaraj
2026-12-01 12:41 ` Jarkko Sakkinen
2026-12-01 15:36 ` Surendran Kanagaraj
2026-12-01 16:42 ` Jarkko Sakkinen
2026-11-18 7:38 ` [RFC PATCH v4 2/8] tpm: Wire the timing setup to the limits table Surendran Kanagaraj
2026-11-18 7:38 ` [RFC PATCH v4 3/8] tpm: Take command durations from " Surendran Kanagaraj
2026-11-18 7:38 ` [RFC PATCH v4 4/8] tpm: Bound core and CRB waits by " Surendran Kanagaraj
2026-11-20 12:22 ` Jarkko Sakkinen
2026-11-24 20:49 ` Surendran Kanagaraj [this message]
2026-11-18 7:49 ` [RFC PATCH v4 5/8] tpm: Drop the jiffies timing fields from struct tpm_chip Surendran Kanagaraj
2026-11-18 7:49 ` [RFC PATCH v4 6/8] tpm: Add the tpm.limits= parameter Surendran Kanagaraj
2026-11-18 7:49 ` [RFC PATCH v4 7/8] tpm: Show timeouts and durations for TPM 2.0 chips Surendran Kanagaraj
2026-11-18 7:49 ` [RFC PATCH v4 8/8] tpm_crb: Raise the limits for Amazon NitroTPM Surendran Kanagaraj
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=20261124204941.18416-1-surenkj@amazon.com \
--to=surenkj@amazon.com \
--cc=corbet@lwn.net \
--cc=graf@amazon.de \
--cc=gunnarku@amazon.com \
--cc=jarkko@kernel.org \
--cc=jgg@ziepe.ca \
--cc=joshlev@amazon.com \
--cc=leitao@debian.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nh-open-source@amazon.com \
--cc=noodles@earth.li \
--cc=peterhuewe@gmx.de \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.