From: "Jarkko Sakkinen" <jarkko@kernel.org>
To: "Jarkko Sakkinen" <jarkko@kernel.org>,
"Thorsten Leemhuis" <regressions@leemhuis.info>,
"Lino Sanfilippo" <LinoSanfilippo@gmx.de>
Cc: "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>,
"Linux kernel regressions list" <regressions@lists.linux.dev>,
"Grundik" <ggrundik@gmail.com>, "Christian Hesse" <list@eworm.de>,
<linux-integrity@vger.kernel.org>,
"Linus Torvalds" <torvalds@linux-foundation.org>
Subject: Re: [PATCH v2 1/2] tpm/tpm_tis: Disable interrupts for Framework Laptop Intel 12th gen
Date: Fri, 11 Aug 2023 20:40:38 +0300 [thread overview]
Message-ID: <CUPWEV9HSGHY.MLO0B4RRH4RR@suppilovahvero> (raw)
In-Reply-To: <CUPW0XP1RFXI.162GZ78E46TBJ@suppilovahvero>
On Fri Aug 11, 2023 at 8:22 PM EEST, Jarkko Sakkinen wrote:
> On Fri Aug 11, 2023 at 11:18 AM EEST, Thorsten Leemhuis wrote:
> > On 06.08.23 18:30, Grundik wrote:
> > > On Wed, 2023-07-12 at 00:50 +0300, Jarkko Sakkinen wrote:
> > >>> 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
> > > [...]
> > >>
> > >> It will be supplemented with
> > >> https://lore.kernel.org/linux-integrity/CTYXI8TL7C36.2SCWH82FAZWBO@suppilovahvero/T/#me895f1920ca6983f791b58a6fa0c157161a33849
> > >>
> > >> Together they should fairly sustainable framework.
> > >
> > > Unfortunately, they dont. Problem still occurs in debian 6.5-rc4
> > > kernel, with forementioned laptop. According to sources, these patches
> > > are applied in that kernel version.
> >
> > Jarkko & Lino, did you see this msg Grundik posted that about a week
> > ago? It looks like there is still something wrong there that need
> > attention. Or am I missing something?
> >
> > FWIW, two more users reported that they still see similar problems with
> > recent 6.4.y kernels that contain the "tpm,tpm_tis: Disable interrupts
> > after 1000 unhandled IRQs" patch. Both also with MSI laptops:
> >
> > https://bugzilla.kernel.org/show_bug.cgi?id=217631#c18
> > https://bugzilla.kernel.org/show_bug.cgi?id=217631#c20
> >
> > No reply either afaics.
> >
> > Ciao, Thorsten
>
> I was planning to send a PR to Linus with a quirk for MSI GS66 Stealth
> 11UG, and apparently this bug report would add two additional MSI
> entries. This is becoming quickly a maintenance hell.
>
> For Lenovo, I also added patch that will categorically disable irqs for
> all with vendor "LENOVO" because there was already six entries, and I
> got patch for 7th.
>
> Now we at least know that IRQs TPMs are somewhat broken so it is time to
> make decisions to make this converge to something.
>
> I see two long-standing options:
>
> A. Move from deny list to allow list when considering using IRQs. This
> can be supplemented with a kernel command-line parameter to enforce
> IRQs and ignore the allow list (and IRQ storm detection provides
> additional measure in case you try to enforce)
> B. Change deny list to match only vendors for the time being. This can
> be supplemented with a allow list that is processed after the deny
> list for models where IRQs are known to work.
>
> This would the implementation of (B):
>
> static const struct dmi_system_id tpm_tis_dmi_table[] = {
> {
> .callback = tpm_tis_disable_irq,
> .matches = {
> DMI_MATCH(DMI_SYS_VENDOR, "Framework"),
> },
> },
> {
> .callback = tpm_tis_disable_irq,
> .ident = "MSI GS66 Stealth 11UG",
> .matches = {
> DMI_MATCH(DMI_SYS_VENDOR, "Micro-Star International Co., Ltd."),
> },
> },
> {
> .callback = tpm_tis_disable_irq,
> .matches = {
> DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> },
> },
> {
> .callback = tpm_tis_disable_irq,
> .matches = {
> DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"),
> },
> },
> {
> .callback = tpm_tis_disable_irq,
> .matches = {
> DMI_MATCH(DMI_SYS_VENDOR, "AAEON"),
> },
> },
> {}
> };
>
> BR, Jarkko
I.e. this is a non-sustainable solution:
if (vendor && product) {
dev_info(&chip->dev,
"Consider adding the following entry to tpm_tis_dmi_table:\n");
dev_info(&chip->dev, "\tDMI_SYS_VENDOR: %s\n", vendor);
dev_info(&chip->dev, "\tDMI_PRODUCT_VERSION: %s\n", product);
}
This is also super time consuming and takes the focus away from more
important matters (like most likely the AMD rng fix would have gone
smoother without these getting in the way all the time).
BR, Jarkko
next prev parent reply other threads:[~2023-08-11 17:40 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <c0ee4b7c-9d63-0bb3-c677-2be045deda43@leemhuis.info>
2023-07-10 13:38 ` [PATCH 1/2] tpm/tpm_tis: Disable interrupts for Framework Laptop Intel 12th gen 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
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 [this message]
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=CUPWEV9HSGHY.MLO0B4RRH4RR@suppilovahvero \
--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