Skip to contentSkip to conversation

gpiolib: acpi: Add ignore_wake quirk for ASUS ZenBook UX425UA_UM425UA

PATCH Applied Kivan 7 participants 9 messages Aug 21 – Sep 7

Subsystems (3)
lore
Share & tools
lore

Kivan

author
#0 lore raw

PATCH 1/1 gpiolib: acpi: Add ignore_wake quirk for ASUS ZenBook UX425UA_UM425UA

The ASUS ZenBook UX425UA_UM425UA (with AMD Ryzen 7 5700U SoC) fails to stay suspended in s2idle (Modern Standby), prematurely waking after 1-3 seconds with 0% hardware sleep achieved.

In the laptop's ACPI SSDT tables (SSDT15), GPIO Pin 24 (hex 0x18) is defined in _AEI as ExclusiveAndWake targeting the PCIe bridge device \_SB.PCI0.GPP3:

    GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x0000,
             "\\_SB.GPIO", ...) { 0x0018 }

When the SoC powers down PCIe root ports into low-power states during s2idle, an electrical edge transition triggers a spurious wake interrupt on GPIO Pin 24. This signals the AMD GPIO controller (AMDI0030:00 / IRQ 7 via pinctrl_amd), aborting sleep across the system.

Booting with kernel parameter "gpiolib_acpi.ignore_wake=AMDI0030:00@24" completely resolves the issue: amd_gpio reports ignoring the wakeup on pin 24, and interrupt counts in /proc/interrupts remain at 0 during sleep cycles, allowing uninterrupted s2idle until intentionally woken by the user.

Add a DMI quirk entry to ignore wake events on AMDI0030:00@24 for this system.

---
 drivers/gpio/gpiolib-acpi-quirks.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/gpio/gpiolib-acpi-quirks.c +13 -0
index a0116f0..dd4db58 100644
@@ -392,6 +392,19 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
 			.ignore_wake = "VEN_0488:00@355",
 		},
 	},
+	{
+		/*
+		 * Spurious wakeups from GPP3 PCIe bridge interrupt
+		 * Found in BIOS UX425UA.301
+		 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "ZenBook UX425UA_UM425UA"),
+		},
+		.driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+			.ignore_wake = "AMDI0030:00@24",
+		},
+	},
 	{} /* Terminating entry */
 };
 
Signature · 1 line
2.55.0
#1 lore raw

What is connected to this GPP3?

Can you please share your acpidump somewhere?

Quoted 54 lines · Kivan

The ASUS ZenBook UX425UA_UM425UA (with AMD Ryzen 7 5700U SoC) fails to stay suspended in s2idle (Modern Standby), prematurely waking after 1-3 seconds with 0% hardware sleep achieved.

In the laptop's ACPI SSDT tables (SSDT15), GPIO Pin 24 (hex 0x18) is defined in _AEI as ExclusiveAndWake targeting the PCIe bridge device \_SB.PCI0.GPP3:

     GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x0000,
              "\\_SB.GPIO", ...) { 0x0018 }

When the SoC powers down PCIe root ports into low-power states during s2idle, an electrical edge transition triggers a spurious wake interrupt on GPIO Pin 24. This signals the AMD GPIO controller (AMDI0030:00 / IRQ 7 via pinctrl_amd), aborting sleep across the system.

Booting with kernel parameter "gpiolib_acpi.ignore_wake=AMDI0030:00@24" completely resolves the issue: amd_gpio reports ignoring the wakeup on pin 24, and interrupt counts in /proc/interrupts remain at 0 during sleep cycles, allowing uninterrupted s2idle until intentionally woken by the user.

Add a DMI quirk entry to ignore wake events on AMDI0030:00@24 for this system.

---
  drivers/gpio/gpiolib-acpi-quirks.c | 13 +++++++++++++
  1 file changed, 13 insertions(+)
drivers/gpio/gpiolib-acpi-quirks.c +13 -0
index a0116f0..dd4db58 100644
@@ -392,6 +392,19 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
  			.ignore_wake = "VEN_0488:00@355",
  		},
  	},
+	{
+		/*
+		 * Spurious wakeups from GPP3 PCIe bridge interrupt
+		 * Found in BIOS UX425UA.301
+		 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "ZenBook UX425UA_UM425UA"),
+		},
+		.driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+			.ignore_wake = "AMDI0030:00@24",
+		},
+	},
  	{} /* Terminating entry */
  };
 
author
#2 lore raw

Hi Mario,

Nothing is physically connected to GPP3. The bridge (00:02.1 / \_SB.PCI0.GPP3) is unpopulated on this board (the ZenBook UX425UA has no Ethernet or secondary PCIe devices there).

The DSDT seems to have leftover definitions for RTL8/RUSB on GPP3 from a shared BIOS base, and routes GPIO pin 24 to it in _EVT, causing phantom wake events during s2idle.

Here is the acpidump:
https://gist.github.com/vaknin/142f5cbad15958e9025cd81960114f6e

Thanks,
Kivan

Quoted 61 lines · Mario Limonciello

What is connected to this GPP3?

Can you please share your acpidump somewhere?

Quoted 54 lines · Kivan

The ASUS ZenBook UX425UA_UM425UA (with AMD Ryzen 7 5700U SoC) fails to stay suspended in s2idle (Modern Standby), prematurely waking after 1-3 seconds with 0% hardware sleep achieved.

In the laptop's ACPI SSDT tables (SSDT15), GPIO Pin 24 (hex 0x18) is defined in _AEI as ExclusiveAndWake targeting the PCIe bridge device \_SB.PCI0.GPP3:

     GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x0000,
              "\\_SB.GPIO", ...) { 0x0018 }

When the SoC powers down PCIe root ports into low-power states during s2idle, an electrical edge transition triggers a spurious wake interrupt on GPIO Pin 24. This signals the AMD GPIO controller (AMDI0030:00 / IRQ 7 via pinctrl_amd), aborting sleep across the system.

Booting with kernel parameter "gpiolib_acpi.ignore_wake=AMDI0030:00@24" completely resolves the issue: amd_gpio reports ignoring the wakeup on pin 24, and interrupt counts in /proc/interrupts remain at 0 during sleep cycles, allowing uninterrupted s2idle until intentionally woken by the user.

Add a DMI quirk entry to ignore wake events on AMDI0030:00@24 for this system.

---
  drivers/gpio/gpiolib-acpi-quirks.c | 13 +++++++++++++
  1 file changed, 13 insertions(+)
drivers/gpio/gpiolib-acpi-quirks.c +13 -0
index a0116f0..dd4db58 100644
@@ -392,6 +392,19 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
                      .ignore_wake = "VEN_0488:00@355",
              },
      },
+     {
+             /*
+              * Spurious wakeups from GPP3 PCIe bridge interrupt
+              * Found in BIOS UX425UA.301
+              */
+             .matches = {
+                     DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+                     DMI_MATCH(DMI_PRODUCT_NAME, "ZenBook UX425UA_UM425UA"),
+             },
+             .driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+                     .ignore_wake = "AMDI0030:00@24",
+             },
+     },
      {} /* Terminating entry */
  };
 
Reviewed-by
#3 lore raw
Quoted 10 lines · Aviv

Hi Mario,

Nothing is physically connected to GPP3. The bridge (00:02.1 / \_SB.PCI0.GPP3) is unpopulated on this board (the ZenBook UX425UA has no Ethernet or secondary PCIe devices there).

The DSDT seems to have leftover definitions for RTL8/RUSB on GPP3 from a shared BIOS base, and routes GPIO pin 24 to it in _EVT, causing phantom wake events during s2idle.

Quoted 5 lines

Here is the acpidump:
https://gist.github.com/vaknin/142f5cbad15958e9025cd81960114f6e

Thanks,
Kivan

Thanks. The dump agrees with your assessment.

Quoted 64 lines
Quoted 61 lines · Mario Limonciello

What is connected to this GPP3?

Can you please share your acpidump somewhere?

Quoted 54 lines · Kivan

The ASUS ZenBook UX425UA_UM425UA (with AMD Ryzen 7 5700U SoC) fails to stay suspended in s2idle (Modern Standby), prematurely waking after 1-3 seconds with 0% hardware sleep achieved.

In the laptop's ACPI SSDT tables (SSDT15), GPIO Pin 24 (hex 0x18) is defined in _AEI as ExclusiveAndWake targeting the PCIe bridge device \_SB.PCI0.GPP3:

      GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x0000,
               "\\_SB.GPIO", ...) { 0x0018 }

When the SoC powers down PCIe root ports into low-power states during s2idle, an electrical edge transition triggers a spurious wake interrupt on GPIO Pin 24. This signals the AMD GPIO controller (AMDI0030:00 / IRQ 7 via pinctrl_amd), aborting sleep across the system.

Booting with kernel parameter "gpiolib_acpi.ignore_wake=AMDI0030:00@24" completely resolves the issue: amd_gpio reports ignoring the wakeup on pin 24, and interrupt counts in /proc/interrupts remain at 0 during sleep cycles, allowing uninterrupted s2idle until intentionally woken by the user.

Add a DMI quirk entry to ignore wake events on AMDI0030:00@24 for this system.

---
   drivers/gpio/gpiolib-acpi-quirks.c | 13 +++++++++++++
   1 file changed, 13 insertions(+)
drivers/gpio/gpiolib-acpi-quirks.c +13 -0
index a0116f0..dd4db58 100644
@@ -392,6 +392,19 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
                       .ignore_wake = "VEN_0488:00@355",
               },
       },
+     {
+             /*
+              * Spurious wakeups from GPP3 PCIe bridge interrupt
+              * Found in BIOS UX425UA.301
+              */
+             .matches = {
+                     DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+                     DMI_MATCH(DMI_PRODUCT_NAME, "ZenBook UX425UA_UM425UA"),
+             },
+             .driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+                     .ignore_wake = "AMDI0030:00@24",
+             },
+     },
       {} /* Terminating entry */
   };
 
#4 lore raw
In reply to Kivan
Quoted 9 lines · Kivan

The ASUS ZenBook UX425UA_UM425UA (with AMD Ryzen 7 5700U SoC) fails to stay suspended in s2idle (Modern Standby), prematurely waking after 1-3 seconds with 0% hardware sleep achieved.

In the laptop's ACPI SSDT tables (SSDT15), GPIO Pin 24 (hex 0x18) is defined in _AEI as ExclusiveAndWake targeting the PCIe bridge device \_SB.PCI0.GPP3:

[...]

Applied, thanks!

[1/1] gpiolib: acpi: Add ignore_wake quirk for ASUS ZenBook UX425UA_UM425UA

      https://git.kernel.org/brgl/c/1900b5a41493e7050c68c1e62780d6fb9a209457

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>
maintainer
#5 lore raw
Quoted 9 lines · Bartosz Golaszewski
Quoted 7 lines · Kivan

The ASUS ZenBook UX425UA_UM425UA (with AMD Ryzen 7 5700U SoC) fails to stay suspended in s2idle (Modern Standby), prematurely waking after 1-3 seconds with 0% hardware sleep achieved.

In the laptop's ACPI SSDT tables (SSDT15), GPIO Pin 24 (hex 0x18) is defined in _AEI as ExclusiveAndWake targeting the PCIe bridge device \_SB.PCI0.GPP3:

[...]

Quoted 4 lines

Applied, thanks!

[1/1] gpiolib: acpi: Add ignore_wake quirk for ASUS ZenBook UX425UA_UM425UA

      https://git.kernel.org/brgl/c/1900b5a41493e7050c68c1e62780d6fb9a209457

I thought I am going to pick this up via my tree...
But okay, not a big deal, I don't expect any conflict in that area.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#6 lore raw
Quoted 13 lines · Andy Shevchenko
Quoted 9 lines · Bartosz Golaszewski
Quoted 7 lines · Kivan

The ASUS ZenBook UX425UA_UM425UA (with AMD Ryzen 7 5700U SoC) fails to stay suspended in s2idle (Modern Standby), prematurely waking after 1-3 seconds with 0% hardware sleep achieved.

In the laptop's ACPI SSDT tables (SSDT15), GPIO Pin 24 (hex 0x18) is defined in _AEI as ExclusiveAndWake targeting the PCIe bridge device \_SB.PCI0.GPP3:

[...]

Quoted 8 lines
Quoted 4 lines

Applied, thanks!

[1/1] gpiolib: acpi: Add ignore_wake quirk for ASUS ZenBook UX425UA_UM425UA

      https://git.kernel.org/brgl/c/1900b5a41493e7050c68c1e62780d6fb9a209457

I thought I am going to pick this up via my tree...
But okay, not a big deal, I don't expect any conflict in that area.

Oops, sorry. If any conflict does occur let me know, I can revert it or we can fix it in tree.

Bartosz

#7 lore raw

Hi,

Quoted 20 lines · Bartosz Golaszewski
Quoted 18 lines · Andy Shevchenko
Quoted 9 lines · Bartosz Golaszewski
Quoted 7 lines · Kivan

The ASUS ZenBook UX425UA_UM425UA (with AMD Ryzen 7 5700U SoC) fails to stay suspended in s2idle (Modern Standby), prematurely waking after 1-3 seconds with 0% hardware sleep achieved.

In the laptop's ACPI SSDT tables (SSDT15), GPIO Pin 24 (hex 0x18) is defined in _AEI as ExclusiveAndWake targeting the PCIe bridge device \_SB.PCI0.GPP3:

[...]

Quoted 4 lines

Applied, thanks!

[1/1] gpiolib: acpi: Add ignore_wake quirk for ASUS ZenBook UX425UA_UM425UA

      https://git.kernel.org/brgl/c/1900b5a41493e7050c68c1e62780d6fb9a209457
Quoted 6 lines
Quoted 3 lines

I thought I am going to pick this up via my tree...
But okay, not a big deal, I don't expect any conflict in that area.

Oops, sorry. If any conflict does occur let me know, I can revert it or we can fix it in tree.

Regardless of who's tree this goes through I would like to point out that a quirk like this really should go through a fixes branch for the current cycle (no idea if it already is on a fixes branch, the "applied" message does not make that clear).

Regards,

Hans

#8 lore raw
Quoted 27 lines · Hans de Goede

Hi,

Quoted 24 lines · Bartosz Golaszewski
Quoted 21 lines · Andy Shevchenko
Quoted 9 lines · Bartosz Golaszewski
Quoted 7 lines · Kivan

The ASUS ZenBook UX425UA_UM425UA (with AMD Ryzen 7 5700U SoC) fails to stay suspended in s2idle (Modern Standby), prematurely waking after 1-3 seconds with 0% hardware sleep achieved.

In the laptop's ACPI SSDT tables (SSDT15), GPIO Pin 24 (hex 0x18) is defined in _AEI as ExclusiveAndWake targeting the PCIe bridge device \_SB.PCI0.GPP3:

[...]

Quoted 4 lines

Applied, thanks!

[1/1] gpiolib: acpi: Add ignore_wake quirk for ASUS ZenBook UX425UA_UM425UA

      https://git.kernel.org/brgl/c/1900b5a41493e7050c68c1e62780d6fb9a209457

I thought I am going to pick this up via my tree...
But okay, not a big deal, I don't expect any conflict in that area.

Quoted 8 lines
Quoted 2 lines

Oops, sorry. If any conflict does occur let me know, I can revert it or we can fix it in tree.

Regardless of who's tree this goes through I would like to point out that a quirk like this really should go through a fixes branch for the current cycle (no idea if it already is on a fixes branch, the "applied" message does not make that clear).

It's queued for v7.4 alright.

Bart