]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Sep 2022 09:44:20 +0000 (11:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Sep 2022 09:44:20 +0000 (11:44 +0200)
added patches:
acpi-resource-skip-irq-override-on-amd-zen-platforms.patch

queue-5.19/acpi-resource-skip-irq-override-on-amd-zen-platforms.patch [new file with mode: 0644]
queue-5.19/series

diff --git a/queue-5.19/acpi-resource-skip-irq-override-on-amd-zen-platforms.patch b/queue-5.19/acpi-resource-skip-irq-override-on-amd-zen-platforms.patch
new file mode 100644 (file)
index 0000000..c895c35
--- /dev/null
@@ -0,0 +1,50 @@
+From 9946e39fe8d0a5da9eb947d8e40a7ef204ba016e Mon Sep 17 00:00:00 2001
+From: Chuanhong Guo <gch981213@gmail.com>
+Date: Tue, 12 Jul 2022 10:00:58 +0800
+Subject: ACPI: resource: skip IRQ override on AMD Zen platforms
+
+From: Chuanhong Guo <gch981213@gmail.com>
+
+commit 9946e39fe8d0a5da9eb947d8e40a7ef204ba016e upstream.
+
+IRQ override isn't needed on modern AMD Zen systems.
+There's an active low keyboard IRQ on AMD Ryzen 6000 and it will stay
+this way on newer platforms. This IRQ override breaks keyboards for
+almost all Ryzen 6000 laptops currently on the market.
+
+Skip this IRQ override for all AMD Zen platforms because this IRQ
+override is supposed to be a workaround for buggy ACPI DSDT and we can't
+have a long list of all future AMD CPUs/Laptops in the kernel code.
+If a device with buggy ACPI DSDT shows up, a separated list containing
+just them should be created.
+
+Link: https://bugzilla.kernel.org/show_bug.cgi?id=216118
+Suggested-by: Mario Limonciello <mario.limonciello@amd.com>
+Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
+Acked-by: Mario Limonciello <mario.limonciello@amd.com>
+Tested-by: XiaoYan Li <lxy.lixiaoyan@gmail.com>
+Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/acpi/resource.c |   10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+--- a/drivers/acpi/resource.c
++++ b/drivers/acpi/resource.c
+@@ -416,6 +416,16 @@ static bool acpi_dev_irq_override(u32 gs
+ {
+       int i;
++#ifdef CONFIG_X86
++      /*
++       * IRQ override isn't needed on modern AMD Zen systems and
++       * this override breaks active low IRQs on AMD Ryzen 6000 and
++       * newer systems. Skip it.
++       */
++      if (boot_cpu_has(X86_FEATURE_ZEN))
++              return false;
++#endif
++
+       for (i = 0; i < ARRAY_SIZE(skip_override_table); i++) {
+               const struct irq_override_cmp *entry = &skip_override_table[i];
index e42a3208bd18aec3bf3100d8fa9cfd08de4b1f2b..33d85fae9e1a1979c1d59a9fd3cbeea42ad32d0c 100644 (file)
@@ -4,6 +4,7 @@ net-mlx5-use-software-vhca-id-when-it-s-supported.patch
 rdma-mlx5-rely-on-roce-fw-cap-instead-of-devlink-whe.patch
 rdma-mlx5-add-a-umr-recovery-flow.patch
 rdma-mlx5-fix-umr-cleanup-on-error-flow-of-driver-in.patch
+acpi-resource-skip-irq-override-on-amd-zen-platforms.patch
 input-goodix-add-support-for-gt1158.patch
 platform-surface-aggregator_registry-add-support-for.patch
 drm-msm-rd-fix-fifo-full-deadlock.patch