diff --git a/patches.suse/tpm-tpm_tis-Disable-interrupts-for-more-Lenovo-devic.patch b/patches.suse/tpm-tpm_tis-Disable-interrupts-for-more-Lenovo-devic.patch new file mode 100644 index 0000000..f3e70bd --- /dev/null +++ b/patches.suse/tpm-tpm_tis-Disable-interrupts-for-more-Lenovo-devic.patch @@ -0,0 +1,54 @@ +From e7d3e5c4b1dd50a70b31524c3228c62bb41bbab2 Mon Sep 17 00:00:00 2001 +From: Jerry Snitselaar +Date: Wed, 10 May 2023 17:54:03 -0700 +Subject: [PATCH] tpm/tpm_tis: Disable interrupts for more Lenovo devices +Git-commit: e7d3e5c4b1dd50a70b31524c3228c62bb41bbab2 +Patch-mainline: v6.4-rc3 +References: git-fixes + +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. + +Cc: stable@vger.kernel.org +Reported-by: Peter Zijlstra # P360 Tiny +Closes: https://lore.kernel.org/linux-integrity/20230505130731.GO83892@hirez.programming.kicks-ass.net/ +Signed-off-by: Jerry Snitselaar +Signed-off-by: Jarkko Sakkinen +Acked-by: Takashi Iwai + +--- + 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.35.3 + diff --git a/series.conf b/series.conf index fb53a87..978e803 100644 --- a/series.conf +++ b/series.conf @@ -20107,6 +20107,7 @@ patches.suse/drm-amdgpu-gfx-disable-gfx9-cp_ecc_error_irq-only-wh.patch patches.suse/fbdev-arcfb-Fix-error-handling-in-arcfb_probe.patch patches.suse/ARM-9296-1-HP-Jornada-7XX-fix-kernel-doc-warnings.patch + patches.suse/tpm-tpm_tis-Disable-interrupts-for-more-Lenovo-devic.patch patches.suse/selftests-sgx-Add-test_encl.elf-to-TEST_FILES.patch patches.suse/media-netup_unidvb-fix-use-after-free-at-del_timer.patch patches.suse/media-ttusb-dec-fix-memory-leak-in-ttusb_dec_exit_dv.patch