From: Jarkko Sakkinen <jarkko@kernel.org>
To: Breno Leitao <leitao@debian.org>
Cc: Peter Huewe <peterhuewe@gmx.de>, Jason Gunthorpe <jgg@ziepe.ca>,
linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org,
surenkj@amazon.com, noodles@meta.com, kernel-team@meta.com
Subject: Re: [PATCH v2 1/2] tpm: Disable a TPM that stops responding
Date: Thu, 12 Nov 2026 23:07:12 +0200 [thread overview]
Message-ID: <avYqgDjJYw-UjaZi@kernel.org> (raw)
In-Reply-To: <avYkGKXOP2-hhewz@gmail.com>
On Thu, Nov 12, 2026 at 12:40:45PM -0800, Breno Leitao wrote:
> On Thu, Nov 12, 2026 at 04:03:06PM +0200, Jarkko Sakkinen wrote:
> > >
> > > This would be then nr_lost_responses.
> >
> > Oops sorry.
> >
> > I mean nr_missed_responses (and I would prefer "missed" over "lost").
>
> Would you hate if I go with max_missed_responses?
It's a great question. Here I think asymmetry defines things better,
and makes sense also few months from now.
So I think this would be most consistent:
1. kernel command-line: tpm_max_missed_responses
2. tpm_chip: nr_missed_responses.
The first defines the modulo and second counts up to that.
Can't recall (and too lazy to check) how it exactly was in your code
change but I would formalize all this along the lines of:
if (!(++chip->nr_missed_responses % tpm_max_missed_responses)) {
/* chip->flags |= TPM2_CHIP_FLAG_DISABLE etc. and of course bail out. */
}
/* continue doing things */
[those comments are not part of the proposal]
Br, Jarkko
next prev parent reply other threads:[~2026-11-12 21:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 12:30 [PATCH v2 0/2] tpm: Stop retrying TPMs that have stopped working Breno Leitao
2026-11-12 12:30 ` [PATCH v2 1/2] tpm: Disable a TPM that stops responding Breno Leitao
2026-11-12 14:00 ` Jarkko Sakkinen
2026-11-12 14:03 ` Jarkko Sakkinen
2026-11-12 15:45 ` Breno Leitao
2026-11-12 20:40 ` Breno Leitao
2026-11-12 21:07 ` Jarkko Sakkinen [this message]
2026-11-12 21:16 ` Jarkko Sakkinen
2026-11-12 12:30 ` [PATCH v2 2/2] tpm: Disable TPM on TPM_RC_INITIALIZE Breno Leitao
2026-11-12 13:37 ` Jarkko Sakkinen
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=avYqgDjJYw-UjaZi@kernel.org \
--to=jarkko@kernel.org \
--cc=jgg@ziepe.ca \
--cc=kernel-team@meta.com \
--cc=leitao@debian.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=noodles@meta.com \
--cc=peterhuewe@gmx.de \
--cc=surenkj@amazon.com \
/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