]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Apr 2022 13:12:36 +0000 (15:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Apr 2022 13:12:36 +0000 (15:12 +0200)
added patches:
acpi-processor-idle-fix-lockup-regression-on-32-bit-thinkpad-t40.patch

queue-5.15/acpi-processor-idle-fix-lockup-regression-on-32-bit-thinkpad-t40.patch [new file with mode: 0644]
queue-5.15/series

diff --git a/queue-5.15/acpi-processor-idle-fix-lockup-regression-on-32-bit-thinkpad-t40.patch b/queue-5.15/acpi-processor-idle-fix-lockup-regression-on-32-bit-thinkpad-t40.patch
new file mode 100644 (file)
index 0000000..dc689f8
--- /dev/null
@@ -0,0 +1,61 @@
+From bfe55a1f7fd6bfede16078bf04c6250fbca11588 Mon Sep 17 00:00:00 2001
+From: Woody Suwalski <wsuwalski@gmail.com>
+Date: Wed, 9 Feb 2022 16:05:09 -0500
+Subject: ACPI: processor: idle: fix lockup regression on 32-bit ThinkPad T40
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Woody Suwalski <wsuwalski@gmail.com>
+
+commit bfe55a1f7fd6bfede16078bf04c6250fbca11588 upstream.
+
+Add and ACPI idle power level limit for 32-bit ThinkPad T40.
+
+There is a regression on T40 introduced by commit d6b88ce2, starting
+with kernel 5.16:
+
+commit d6b88ce2eb9d2698eb24451eb92c0a1649b17bb1
+Author: Richard Gong <richard.gong@amd.com>
+Date:   Wed Sep 22 08:31:16 2021 -0500
+
+  ACPI: processor idle: Allow playing dead in C3 state
+
+The above patch is trying to enter C3 state during init, what is causing
+a T40 system freeze. I have not found a similar issue on any other of my
+32-bit machines.
+
+The fix is to add another exception to the processor_power_dmi_table[] list.
+As a result the dmesg shows as expected:
+
+[2.155398] ACPI: IBM ThinkPad T40 detected - limiting to C2 max_cstate. Override with "processor.max_cstate=9"
+[2.155404] ACPI: processor limited to max C-state 2
+
+The fix is trivial and affects only vintage T40 systems.
+
+Fixes: d6b88ce2eb9d ("CPI: processor idle: Allow playing dead in C3 state")
+Signed-off-by: Woody Suwalski <wsuwalski@gmail.com>
+Reviewed-by: Hans de Goede <hdegoede@redhat.com>
+Cc: 5.16+ <stable@vger.kernel.org> # 5.16+
+[ rjw: New subject ]
+Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
+Cc: "Limonciello, Mario" <Mario.Limonciello@amd.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/acpi/processor_idle.c |    5 +++++
+ 1 file changed, 5 insertions(+)
+
+--- a/drivers/acpi/processor_idle.c
++++ b/drivers/acpi/processor_idle.c
+@@ -95,6 +95,11 @@ static const struct dmi_system_id proces
+         DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer Inc."),
+         DMI_MATCH(DMI_PRODUCT_NAME,"L8400B series Notebook PC")},
+        (void *)1},
++      /* T40 can not handle C3 idle state */
++      { set_max_cstate, "IBM ThinkPad T40", {
++        DMI_MATCH(DMI_SYS_VENDOR, "IBM"),
++        DMI_MATCH(DMI_PRODUCT_NAME, "23737CU")},
++       (void *)2},
+       {},
+ };
index d7d3a2e8efd95540d86861e506c5af91d375c13b..4cce16ed5d3798ba65f0db190f96c384be8035d0 100644 (file)
@@ -5,3 +5,4 @@ hamradio-remove-needs_free_netdev-to-avoid-uaf.patch
 cpuidle-psci-move-the-has_lpi-check-to-the-beginning-of-the-function.patch
 acpi-processor-idle-check-for-architectural-support-for-lpi.patch
 acpi-processor-idle-allow-playing-dead-in-c3-state.patch
+acpi-processor-idle-fix-lockup-regression-on-32-bit-thinkpad-t40.patch