* [PATCH] tpm/tpm_tis: Disable interrupts for more Lenovo devices
@ 2023-05-11 0:54 Jerry Snitselaar
2023-05-18 18:28 ` Jerry Snitselaar
0 siblings, 1 reply; 2+ messages in thread
From: Jerry Snitselaar @ 2023-05-11 0:54 UTC (permalink / raw)
To: linux-kernel, linux-integrity
Cc: Peter Zijlstra, stable, Peter Huewe, Jarkko Sakkinen,
Jason Gunthorpe
The P360 Tiny suffers from an irq storm issue like the T490s, so add
an entry for it to tpm_tis_dmi_table, and force polling. There also
previously was a report from the previous attempt to enable interrupts
that involved a ThinkPad L490. So an entry is added for it as well.
Reported-by: Peter Zijlstra <peterz@infradead.org> # P360 Tiny
Closes: https://lore.kernel.org/linux-integrity/20230505130731.GO83892@hirez.programming.kicks-ass.net/
Cc: stable@vger.kernel.org # 6.2
Cc: Peter Huewe <peterhuewe@gmx.de>
Cc: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
---
drivers/char/tpm/tpm_tis.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
index 7af389806643..709b4e13bd6e 100644
--- a/drivers/char/tpm/tpm_tis.c
+++ b/drivers/char/tpm/tpm_tis.c
@@ -122,6 +122,22 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T490s"),
},
},
+ {
+ .callback = tpm_tis_disable_irq,
+ .ident = "ThinkStation P360 Tiny",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkStation P360 Tiny"),
+ },
+ },
+ {
+ .callback = tpm_tis_disable_irq,
+ .ident = "ThinkPad L490",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L490"),
+ },
+ },
{}
};
--
2.38.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tpm/tpm_tis: Disable interrupts for more Lenovo devices
2023-05-11 0:54 [PATCH] tpm/tpm_tis: Disable interrupts for more Lenovo devices Jerry Snitselaar
@ 2023-05-18 18:28 ` Jerry Snitselaar
0 siblings, 0 replies; 2+ messages in thread
From: Jerry Snitselaar @ 2023-05-18 18:28 UTC (permalink / raw)
To: linux-kernel, linux-integrity
Cc: Peter Zijlstra, stable, Peter Huewe, Jarkko Sakkinen,
Jason Gunthorpe
On Wed, May 10, 2023 at 05:54:03PM -0700, Jerry Snitselaar wrote:
> The P360 Tiny suffers from an irq storm issue like the T490s, so add
> an entry for it to tpm_tis_dmi_table, and force polling. There also
> previously was a report from the previous attempt to enable interrupts
> that involved a ThinkPad L490. So an entry is added for it as well.
>
> Reported-by: Peter Zijlstra <peterz@infradead.org> # P360 Tiny
> Closes: https://lore.kernel.org/linux-integrity/20230505130731.GO83892@hirez.programming.kicks-ass.net/
> Cc: stable@vger.kernel.org # 6.2
For the stable folks this can be ignored though it won't hurt anything if someone does
backport it. The code enabling interrupts went into 6.4-rc1, not 6.2.
Regards,
Jerry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-18 18:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-11 0:54 [PATCH] tpm/tpm_tis: Disable interrupts for more Lenovo devices Jerry Snitselaar
2023-05-18 18:28 ` Jerry Snitselaar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox