All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6] ACPI: skip IRQ override on AMD Zen platforms
@ 2022-07-12  2:00 Chuanhong Guo
  2022-07-14 18:35 ` Rafael J. Wysocki
  2022-09-28  6:20 ` Jiri Slaby
  0 siblings, 2 replies; 9+ messages in thread
From: Chuanhong Guo @ 2022-07-12  2:00 UTC (permalink / raw)
  To: linux-acpi
  Cc: Tighe Donnelly, Chuanhong Guo, Mario Limonciello,
	Rafael J. Wysocki, Len Brown, open list

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.

Suggested-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
---
Change sice v5: reworked

 drivers/acpi/resource.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
index c2d494784425..510cdec375c4 100644
--- a/drivers/acpi/resource.c
+++ b/drivers/acpi/resource.c
@@ -416,6 +416,16 @@ static bool acpi_dev_irq_override(u32 gsi, u8 triggering, u8 polarity,
 {
 	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];
 
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-09-30  2:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12  2:00 [PATCH v6] ACPI: skip IRQ override on AMD Zen platforms Chuanhong Guo
2022-07-14 18:35 ` Rafael J. Wysocki
2022-07-14 19:59   ` Limonciello, Mario
2022-07-18 15:39   ` Limonciello, Mario
2022-07-21 15:12     ` Rafael J. Wysocki
2022-09-28  6:20 ` Jiri Slaby
2022-09-28  8:31   ` Jiri Slaby
2022-09-28  8:57     ` Jiri Slaby
2022-09-30  2:45     ` Chuanhong Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.