Skip to contentSkip to conversation

ACPI: resource: Do IRQ override on MECHREV GM7RG7M

PATCH Applied Andrei Galiant 2 participants 2 messages Oct 31 – Nov 10

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: resource: Do IRQ override on MECHREV GM7RG7M

The MECHREV Jiaolong17 Series GM7RG7M (TongFang GM7RG7M, Ryzen 7 6800H) describes the PS/2 keyboard interrupt in its DSDT as edge-triggered, active-low and shared:

    IRQ (Edge, ActiveLow, Shared) {1}

The keyboard controller actually asserts IRQ 1 active-high. On AMD Zen systems acpi_dev_irq_override() skips the ACPI IRQ override for GSI 1, so the IO-APIC redirection entry is programmed with the DSDT's active-low polarity and the interrupt is never delivered: the embedded controller still scans the matrix and places scancodes in port 0x60, but atkbd_receive_byte() is never called and the internal keyboard is dead under Linux, while it works in the firmware setup, in GRUB and in Windows.

Add the board to irq1_edge_low_force_override[] so that the standard edge/high override is applied, matching the already-listed sibling GM7XG0M (Jiaolong17KS).

Fixes 9946e39fe8d0 ("ACPI: resource: skip IRQ override on AMD Zen platforms")
---
 drivers/acpi/resource.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/acpi/resource.c +6 -0
index 56df459..0a944ba 100644
@@ -553,6 +553,12 @@ static const struct dmi_system_id irq1_edge_low_force_override[] = {
 			DMI_MATCH(DMI_BOARD_NAME, "GM7XG0M"),
 		},
 	},
+	{
+		/* MECHREVO Jiaolong17 Series GM7RG7M */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_NAME, "GM7RG7M"),
+		},
+	},
 	{
 		/* XMG APEX 17 (M23) */
 		.matches = {
Signature · 1 line
2.56.0
maintainer Applied
#1 lore raw
Quoted 36 lines · Andrei Galiant

The MECHREV Jiaolong17 Series GM7RG7M (TongFang GM7RG7M, Ryzen 7 6800H) describes the PS/2 keyboard interrupt in its DSDT as edge-triggered, active-low and shared:

    IRQ (Edge, ActiveLow, Shared) {1}

The keyboard controller actually asserts IRQ 1 active-high. On AMD Zen systems acpi_dev_irq_override() skips the ACPI IRQ override for GSI 1, so the IO-APIC redirection entry is programmed with the DSDT's active-low polarity and the interrupt is never delivered: the embedded controller still scans the matrix and places scancodes in port 0x60, but atkbd_receive_byte() is never called and the internal keyboard is dead under Linux, while it works in the firmware setup, in GRUB and in Windows.

Add the board to irq1_edge_low_force_override[] so that the standard edge/high override is applied, matching the already-listed sibling GM7XG0M (Jiaolong17KS).

Fixes 9946e39fe8d0 ("ACPI: resource: skip IRQ override on AMD Zen platforms")
---
 drivers/acpi/resource.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/acpi/resource.c +0 -0
index 56df459..0a944ba 100644
@@ -553,6 +553,12 @@ static const struct dmi_system_id irq1_edge_low_force_override[] = {
                        DMI_MATCH(DMI_BOARD_NAME, "GM7XG0M"),
                },
        },

drivers/acpi/resource.c static const struct dmi_system_id irq1_edge_low_force_override[] = {

Quoted 10 lines
drivers/acpi/resource.c +6 -1
+       {
+               /* MECHREVO Jiaolong17 Series GM7RG7M */
+               .matches = {
+                       DMI_MATCH(DMI_BOARD_NAME, "GM7RG7M"),
+               },
+       },
        {
                /* XMG APEX 17 (M23) */
                .matches = {
--

Applied as 7.5 material, thanks!