Linux Integrity Measurement development
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: Sean Meadows <Hellfire@unspacy.com>
Cc: Mario Limonciello <mario.limonciello@amd.com>,
	linux-integrity@vger.kernel.org, peterhuewe@gmx.de, jgg@ziepe.ca,
	rafael@kernel.org, lenb@kernel.org, linux-acpi@vger.kernel.org,
	Adam Alves <adamoa@gmail.com>
Subject: Re: [BUG] tpm_crb/Intel PTT: Late S3/S5/Reboot ACPI power management deadlock
Date: Sat, 10 Oct 2026 22:39:45 +0300	[thread overview]
Message-ID: <asqUgaKpEJbo8g87@kernel.org> (raw)
In-Reply-To: <2db92c1a-815c-4db2-adfa-3708152ec8f2@unspacy.com>

On Thu, Oct 08, 2026 at 05:56:10PM -0400, Sean Meadows wrote:
> On 10/8/26 16:00, Mario Limonciello wrote:
> > > The patch I pointed out this in bugzilla but the patch I had in mind
> > > is:
> > > 
> > > "tpm: Call cmd_ready/go_idle for each command transmission"
> > > 
> > > Link: https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-
> > > tpmdd.git/commit/?id=9154aa6c4b789d23e59d599c330cab2c4e915401
> > > 
> > > The reason is that the commit message highlight a bit similar issues
> > > as reported in the bug.
> > > 
> > > Note commit IDs do change in my master branch so best is to look it
> > > up from:
> > > 
> > > https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux- tpmdd.git/
> > > log/
> > > 
> > > Right another reason is that then the driver always the TPM in the
> > > state as it is when the driver starts.
> > > 
> > > I'm not sure about Windows but neither disregard it as sometimes we
> > > do pick behavior basing it on how Window does it. I'd still try
> > > Mario's patch at first.
> 
> Checking my notes, I cherry-picked commit
> 19931faa1d75fb858d86aaf5b0e79d34a2379094, which I understood to be v3 of the
> patch.
> 
> Assuming I made a mistake there, I've started from scratch and applied
> commit 9154aa6c4b789d23e59d599c330cab2c4e915401 instead, which should be v6.
> 
> Once the compile and install are complete, it will take at least a couple of
> days of testing to determine whether it prevents the corrupted state.

So the gist why I believe that this might have effect is that every
transmit reverts the state to the initial state. That should erase
any weird state that firmware might be in (usually not that great
quality code).

I think Mario's patch is good overall for the stability. It looks to
me that we are catching some weird state inside firmware where
we don't have direct visibility. Or this is my guess at least.

Br, Jarkko

      reply	other threads:[~2026-10-10 19:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-10  6:45 [BUG] tpm_crb/Intel PTT: Late S3/S5/Reboot ACPI power management deadlock Sean Meadows
2026-09-18  1:28 ` Jarkko Sakkinen
2026-09-22  8:42   ` Sean Meadows
2026-09-25 15:05     ` Jarkko Sakkinen
2026-09-29 17:44       ` Sean Meadows
2026-09-29 22:25         ` Jarkko Sakkinen
2026-10-07 16:27           ` Sean Meadows
2026-10-08 17:47             ` Jarkko Sakkinen
2026-10-08 20:00               ` Mario Limonciello
2026-10-08 21:56                 ` Sean Meadows
2026-10-10 19:39                   ` Jarkko Sakkinen [this message]

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=asqUgaKpEJbo8g87@kernel.org \
    --to=jarkko@kernel.org \
    --cc=Hellfire@unspacy.com \
    --cc=adamoa@gmail.com \
    --cc=jgg@ziepe.ca \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-integrity@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=peterhuewe@gmx.de \
    --cc=rafael@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox