https://bugzilla.kernel.org/show_bug.cgi?id=222264

            Bug ID: 222264
           Summary: ASUS Vivobook 15 M1502XA (AMD): internal keyboard not
                    working, IRQ1 Extended Interrupt declared
                    Edge/ActiveHigh, needs ActiveLow
           Product: ACPI
           Version: 2.5
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Config-Interrupts
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Created attachment 311462
  --> https://bugzilla.kernel.org/attachment.cgi?id=311462&action=edit
dmesg + MADT + DSDT dumps

Title: ASUS Vivobook 15 M1502XA (AMD Ryzen): internal keyboard not working,
DSDT declares IRQ1 as Extended Interrupt Edge/ActiveHigh, needs ActiveLow

Hardware:
- DMI: ASUS Vivobook 15 M1502XA/M1502XA, BIOS M1502XA.302 06/02/2026
- Board name: M1502XA
- CPU: AMD Ryzen 7
- Kernel: 7.3.4 (CachyOS), also reproduced on 7.1 live ISO

Problem:
The internal keyboard works in BIOS and GRUB but not in Linux.
No interrupts are received on IRQ1:

  $ grep i8042 /proc/interrupts
  1:  0  0  0 ... 0  IR-IO-APIC  1-edge  i8042

  $ dmesg
  ACPI: INT_SRC_OVR (bus 0 bus_irq 1 global_irq 1 low edge)
  i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
  atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
  atkbd serio0: Failed to enable keyboard on isa0060/serio0

i8042.* boot parameters (nopnp, reset, nomux, dumbkbd) do not help.

ACPI tables:
The MADT has an INT_SRC_OVR for IRQ1 as low edge, but the DSDT
describes the PS2K device with an Extended Interrupt descriptor:

  Device (PS2K)
  {
      Name (_HID, "MSFT0001")
      Name (_CID, EisaId ("PNP0303"))
      ...
      Interrupt (ResourceConsumer, Edge, ActiveHigh, Shared, ,, )
      {
          0x00000001,
      }
  }

The kernel uses the DSDT settings (edge, active high) and the
keyboard gets no interrupts.

What I tried:
- Adding the board to a new irq_override_cmp entry in
  drivers/acpi/resource.c (both override=false and override=true,
  matching ACPI_EDGE_SENSITIVE/ACPI_ACTIVE_HIGH/shared) had no effect
  and no "ACPI: IRQ 1 override to ..." message appears. It seems the
  override_table is not consulted for Extended IRQ descriptors.

Workaround that works:
Patching the DSDT (via initrd ACPI table override) to change the
descriptor to:

  Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, ,, ) {1}

makes the internal keyboard work correctly.

A DMI quirk forcing IRQ1 to edge/active-low on this board (or
honoring the MADT INT_SRC_OVR for Extended IRQ descriptors on IRQ1)
would fix it upstream.

Attached: acpidump and full dmesg.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
acpi-bugzilla mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to