X86 platform drivers
 help / color / mirror / Atom feed
From: Mario Limonciello <superm1@kernel.org>
To: Francesco Lauritano <francesco.lauritano1@protonmail.com>,
	Hans de Goede <hansg@kernel.org>
Cc: "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"open list:GPIO ACPI SUPPORT" <linux-gpio@vger.kernel.org>,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>
Subject: Re: [BUG] 36-second boot delay due to by acpi_gpio_handle_deferred_request_irqs on ASUS ROG Strix G16 (2025)
Date: Wed, 17 Dec 2025 08:23:00 -0600	[thread overview]
Message-ID: <4402ed86-77f5-4a47-a9e1-8d57a709bb15@kernel.org> (raw)
In-Reply-To: <6iFCwGH2vssb7NRUTWGpkubGMNbgIlBHSz40z8ZsezjxngXpoiiRiJaijviNvhiDAGIr43bfUmdxLmxYoHDjyft4DgwFc3Pnu5hzPguTa0s=@protonmail.com>

++linux-gpio, Hans

On 12/17/25 4:06 AM, Francesco Lauritano wrote:
> ASUS ROG Strix G16 G614PP (2025) experiences a 36-second kernel boot delay caused by `acpi_gpio_handle_deferred_request_irqs()` hanging during late_initcall_sync. The workaround is `gpiolib_acpi.run_edge_events_on_boot=0`.
> 
> System Information
> ------------------
> 
> -   Hardware: ASUS ROG Strix G16 G614PP_G614PP
> -   DMI Product: ROG Strix G16 G614PP_G614PP
> -   DMI Vendor: ASUSTeK COMPUTER INC.
> -   BIOS Version: G614PP.307 (08/14/2025)
> -   CPU: AMD Ryzen (Strix Point)
> -   GPU: NVIDIA (with nvidia-open 580.105.08)
> -   Distribution: EndeavourOS
> -   Kernel: 6.17.9 (also reproduced on zem)
> -   Bootloader: systemd-boot with dracut
> 
> Problem Description
> -------------------
> 
> The system takes approximately 56 seconds to boot, with 37.8 seconds spent in the kernel phase. Using `initcall_debug`, the culprit was identified as:
> 
>      [    1.739645] calling  acpi_gpio_handle_deferred_request_irqs+0x0/0x40 @ 1
>      [   38.077788] initcall acpi_gpio_handle_deferred_request_irqs+0x0/0x40 returned 0 after 36338138 usecs
> 
> The kernel goes completely silent between ~2 seconds and ~38 seconds (no dmesg output during this period):
> 
>      [    2.607764] clocksource: Switched to clocksource tsc
>      [   37.828217] clk: Disabling unused clocks
> 
> Windows boots normally on the same hardware, indicating this is a Linux-specific ACPI handling issue.
> 
> systemd-analyze output
> ----------------------
> 
>      Startup finished in 8.593s (firmware) + 1.273s (loader) + 37.877s (kernel) + 4.645s (initrd) + 3.831s (userspace) = 56.221s
> 
> ACPI Errors During Boot
> -----------------------
> 
> The following ACPI errors appear in dmesg (though these complete quickly and are not the direct cause of the delay):
> 
>      ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP2], AE_NOT_FOUND (20250404/dswload2-162)
>      ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20250404/psobject-220)
>      ACPI: Skipping parse of AML opcode: Scope (0x0010)
>      ACPI Error: AE_NOT_FOUND, While resolving a named reference package element - \_SB_.PCI0.GPP7.UP00.DP00.U4UP.U4P3.UHI0 (20250404/dspkginit-438)
>      ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
> 
> GPIO-related dmesg output
> -------------------------
> 
>      [    0.257981] calling  pinctrl_init+0x0/0xc0 @ 1
>      [    0.257982] pinctrl core: initialized pinctrl subsystem
>      [    0.257994] initcall pinctrl_init+0x0/0xc0 returned 0 after 0 usecs
>      [    1.612848] calling  amd_gpio_driver_init+0x0/0x20 @ 1
>      [    1.613779] initcall amd_gpio_driver_init+0x0/0x20 returned 0 after 930 usecs
>      [    1.739645] calling  acpi_gpio_handle_deferred_request_irqs+0x0/0x40 @ 1
>      [   38.077788] initcall acpi_gpio_handle_deferred_request_irqs+0x0/0x40 returned 0 after 36338138 usecs
> 
> Workaround
> ----------
> 
> Adding the following kernel parameter resolves the issue and reduces boot time to ~10 seconds:
> 
>      gpiolib_acpi.run_edge_events_on_boot=0
> 
> Impact of Workaround
> --------------------
> 
> Testing with the workaround applied, no obvious regressions have been observed:
> 
> -   Lid switch works
> -   Power button works
> -   Keyboard function keys work
> -   Sleep/wake works
> 
> Long-term, a DMI quirk entry for this device would be preferable.
> 
> Suggested Fix
> -------------
> 
> Add a DMI quirk entry to `drivers/gpio/gpiolib-acpi.c` for the ASUS ROG Strix G16 G614PP, though it may be needed on other ROG/Strix/Zephyrus models from 2021-2025.
> 
> Steps to Reproduce
> ------------------
> 
> 1.  Install Linux on ASUS ROG Strix G16 G614PP (2025)
> 2.  Boot without `gpiolib_acpi.run_edge_events_on_boot=0`
> 3.  Observe ~40 second boot time with `systemd-analyze time`
> 4.  Add `initcall_debug` to kernel parameters and observe the 36-second hang in `acpi_gpio_handle_deferred_request_ir`
> 
> 
> 

The behavior to run these interrupts at boot was introduced by:

https://git.kernel.org/torvalds/c/ca876c7483b6

Have you already analyzed the ACPI tables to understand where the large 
delay is coming from?  I think before jumping into the quirk like the 
LLM you used suggests we should understand which deferred interrupt 
handler is causing the issue to make sure we're not masking another issue.

Could you please attach the acpidump to a kernel Bugzilla to look over?

  reply	other threads:[~2025-12-17 14:23 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2kSCn4XaoXsXJ3EUR0syTdmip8Z1cBuUr0Br4sFVnwnsA8q4GlhiHOmsJkeBxvxYoLnetp4r44wIPXw42yTAFl-BtMROnIwR-NkckKgA5EY=@protonmail.com>
2025-12-17 10:06 ` [BUG] 36-second boot delay due to by acpi_gpio_handle_deferred_request_irqs on ASUS ROG Strix G16 (2025) Francesco Lauritano
2025-12-17 14:23   ` Mario Limonciello [this message]
2025-12-17 15:12     ` Francesco Lauritano
2025-12-17 16:57       ` Francesco Lauritano
2025-12-17 18:01         ` Mario Limonciello
2025-12-17 19:19           ` Francesco Lauritano
2025-12-18  6:39             ` Mika Westerberg
2025-12-18 10:33               ` Hans de Goede
2025-12-18 10:38                 ` Mika Westerberg
2026-04-22  7:51                   ` Marco Scardovi
2026-04-22  9:07                     ` Mika Westerberg
2026-04-22  9:45                       ` Marco Scardovi
2026-04-22  9:55                         ` Mika Westerberg
2026-04-22 12:08                           ` Marco Scardovi
2026-04-23  4:42                             ` Mika Westerberg
2026-04-23  5:15                               ` Mario Limonciello
2026-04-23 17:46                                 ` Marco Scardovi
2026-04-24 20:02                                   ` Armin Wolf
2026-04-25 15:15                                     ` Mario Limonciello
2026-04-25 20:41                                       ` Armin Wolf
2026-04-27  4:57                                         ` Mika Westerberg
2026-04-27 22:09                                           ` Armin Wolf
2026-04-28  7:59                                             ` Mika Westerberg
2026-04-28 20:50                                               ` Armin Wolf
2026-04-27 11:46                                 ` Hans de Goede
2026-04-27 11:46                                   ` Hans de Goede
2026-04-27 12:28                                   ` Mika Westerberg
2026-04-27 12:41                                     ` Marco Scardovi
2026-04-27 15:30                                       ` Hans de Goede
2026-04-27 16:10                                         ` Marco Scardovi
2026-04-27 16:14                                           ` Marco Scardovi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4402ed86-77f5-4a47-a9e1-8d57a709bb15@kernel.org \
    --to=superm1@kernel.org \
    --cc=francesco.lauritano1@protonmail.com \
    --cc=hansg@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox