linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: Grundik <ggrundik@gmail.com>, Christian Hesse <list@eworm.de>,
	linux-integrity@vger.kernel.org,
	Lino Sanfilippo <LinoSanfilippo@gmx.de>
Cc: Thorsten Leemhuis <regressions@leemhuis.info>,
	Linux kernel regressions list <regressions@lists.linux.dev>,
	Peter Huewe <peterhuewe@gmx.de>, Christian Hesse <mail@eworm.de>,
	stable@vger.kernel.org, roubro1991@gmail.com,
	Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [PATCH v2 1/2] tpm/tpm_tis: Disable interrupts for Framework Laptop Intel 12th gen
Date: Wed, 12 Jul 2023 00:50:15 +0300	[thread overview]
Message-ID: <0f272843a33a1706dbcbb2d84b02e3951ee60cbb.camel@kernel.org> (raw)
In-Reply-To: <bb5580e93d244400c3330d7091bf64868aa2053f.camel@gmail.com>

On Tue, 2023-07-11 at 15:41 +0300, Grundik wrote:
> On Tue, 2023-07-11 at 00:29 +0300, Jarkko Sakkinen wrote:
> > On Mon, 2023-07-10 at 23:13 +0200, Christian Hesse wrote:
> > 
> > 
> > OK, this good to hear! I've been late with my pull request (past rc1)
> > because of kind of conflicting timing with Finnish holiday season and
> > relocating my home office.
> > 
> > I'll replace v2 patches with v3 and send the PR for rc2 after that.
> > So unluck turned into luck this time :-)
> > 
> > Thank you for spotting this!
> 
> I want to say: this issue is NOT limited to Framework laptops.
> 
> For example this MSI gen12 i5-1240P laptop also suffers from same
> problem:
>         Manufacturer: Micro-Star International Co., Ltd.
>         Product Name: Summit E13FlipEvo A12MT
>         Version: REV:1.0
>         SKU Number: 13P3.1
>         Family: Summit
> 
> So, probably just blacklisting affected models is not the best
> solution...

It will be supplemented with

https://lore.kernel.org/linux-integrity/CTYXI8TL7C36.2SCWH82FAZWBO@suppilovahvero/T/#me895f1920ca6983f791b58a6fa0c157161a33849

Together they should fairly sustainable framework.

Lino, can you add the same fixes tag as for this. It would probably
ignore inline comments to keep the patch minimal since it is a
critical fix. Just do the renames, remove inline comments and
send v3.

For tpm_tis_check_for_interrupt_storm(), you can could rename it
simply as tpm_tis_update_unhandle_irqs() as that it what it does
(my review did not include a suggestion for this).

This way I think it should be fairly trivial to get a version that
can be landed.

To put short:
1. Do the renames as suggested, they are good enough for me.
2. Drop inline comments, their usefulness is somewhat questionable
   and they increase the diff.
3. Generally aim for minimal diff but I think this should be good
   enough if you do steps 1 and 2.

If you don't have the time at hand, I can carefully do these cleanups
and apply the patch. If you have the time and motivation, go ahead
and send v3.

BR, Jarkko

  parent reply	other threads:[~2023-07-11 21:50 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-10  7:37 [regression] Kernel 6.4 failing to access TPM on Framework Laptop 12th gen Thorsten Leemhuis
2023-07-10 13:38 ` [PATCH 1/2] tpm/tpm_tis: Disable interrupts for Framework Laptop Intel " Christian Hesse
2023-07-10 13:38   ` [PATCH 2/2] tpm/tpm_tis: Disable interrupts for Framework Laptop Intel 13th gen Christian Hesse
2023-07-10 13:56   ` [PATCH 1/2] tpm/tpm_tis: Disable interrupts for Framework Laptop Intel 12th gen Linux regression tracking (Thorsten Leemhuis)
2023-07-10 14:10   ` Greg KH
2023-07-10 14:28   ` [PATCH v2 " Christian Hesse
2023-07-10 14:28     ` [PATCH v2 2/2] tpm/tpm_tis: Disable interrupts for Framework Laptop Intel 13th gen Christian Hesse
2023-07-10 16:52     ` [PATCH v2 1/2] tpm/tpm_tis: Disable interrupts for Framework Laptop Intel 12th gen Linux regression tracking (Thorsten Leemhuis)
2023-07-10 18:01     ` Jason Gunthorpe
2023-07-10 18:38       ` Jarkko Sakkinen
2023-07-11 14:18       ` James Bottomley
2023-07-12 17:00       ` Jerry Snitselaar
2023-07-10 21:13     ` Christian Hesse
2023-07-10 21:16       ` [PATCH v3 " Christian Hesse
2023-07-10 21:16         ` [PATCH v3 2/2] tpm/tpm_tis: Disable interrupts for Framework Laptop Intel 13th gen Christian Hesse
2023-07-10 21:29       ` [PATCH v2 1/2] tpm/tpm_tis: Disable interrupts for Framework Laptop Intel 12th gen Jarkko Sakkinen
2023-07-10 21:51         ` Jarkko Sakkinen
2023-07-12  6:48           ` Christian Hesse
2023-07-17 13:10             ` Jarkko Sakkinen
2023-07-11 12:41         ` Grundik
2023-07-11 13:00           ` Linux regression tracking (Thorsten Leemhuis)
2023-07-11 21:50           ` Jarkko Sakkinen [this message]
2023-07-13 15:33             ` Lino Sanfilippo
2023-08-06 16:30             ` Grundik
2023-08-11  8:18               ` Thorsten Leemhuis
2023-08-11 10:44                 ` Grundik
2023-08-11 17:46                   ` Jarkko Sakkinen
2023-08-11 17:22                 ` Jarkko Sakkinen
2023-08-11 17:40                   ` Jarkko Sakkinen
2023-08-11 18:47                     ` Grundik
2023-08-11 20:01                       ` Jarkko Sakkinen
2023-08-12 11:28                         ` Grundik
2023-08-14 17:33                           ` Jarkko Sakkinen
2023-08-11 18:55                   ` Linus Torvalds
2023-08-11 19:28                     ` Jarkko Sakkinen
2023-07-10 16:29   ` [PATCH " 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=0f272843a33a1706dbcbb2d84b02e3951ee60cbb.camel@kernel.org \
    --to=jarkko@kernel.org \
    --cc=LinoSanfilippo@gmx.de \
    --cc=ggrundik@gmail.com \
    --cc=linux-integrity@vger.kernel.org \
    --cc=list@eworm.de \
    --cc=mail@eworm.de \
    --cc=peterhuewe@gmx.de \
    --cc=regressions@leemhuis.info \
    --cc=regressions@lists.linux.dev \
    --cc=roubro1991@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=torvalds@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).