From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6E6C346781 for ; Wed, 22 Apr 2026 07:51:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776844267; cv=none; b=cNRDC1Nt9nqWgBRa6jBKOK/zNHepe99pJGuuKmUsmJoO4W6sHtHcQXHGhzIkN+oJmBRddsRhm2eqItIM92136FLkRIKsUAEP21qCkaxTd6R2mwUVnK8uyAGls8OhhHr8dncuraWEZ1kHP9A847B3IE6HOBeyQvTuiEukfdl0bEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776844267; c=relaxed/simple; bh=Fm+6JsKYL5p+lIphcLpRUQ//+P47s7cB1+1S8XqDqhY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Vw1yG3ztLc0kAHUtztV84hHfxRVZZAJjg9lHhSNEHzc2zKnQD5kKui73uVBJIOyiMqgXB+aXzdc09MNmCLV6hh2/TyCWJWj68prn6EybQ4KGxXF28qS56R3B/+dqSLAuoXxAisiFLj2VMSJCW55Ov+zrbvgyaZXqpcGc8UdOtTQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Rv7fSa/R; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Rv7fSa/R" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-48374014a77so66727455e9.3 for ; Wed, 22 Apr 2026 00:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776844263; x=1777449063; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OeBgF5ArqvNpLLh7sLJtZPShItT09VS9VrZ4plNfw2M=; b=Rv7fSa/R489VJu0OABj246u0IlY+Hv9LASHu/qttbr4la7yqF1lmWU+8uCgmRW4Y0y +YGuDkGvDhcZlGd9hqqWlaKl1WryBDGh/s/eGdQxoGt1vVLjaZqNikDQ+fwzt0LeMtTk 1SuOEYpfAvvXYn588BdAWrg6qtJ3KorP+1hzsjm3T5qM8zti7qhpiYlffmy3Nb0uE9O1 0aGCb9Q0RN6Q11fS3cvuC/wIUMHS1CG3Y03917brcSe9J9MOje16gVeS80x5H7+vKV31 2g4R3lp6A8Cw9Gv4XV/QohaYlxvDYfEB3bzvwaAI/FyoUB9nIAGeNRqbcCglKFGijsyt iGPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776844263; x=1777449063; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OeBgF5ArqvNpLLh7sLJtZPShItT09VS9VrZ4plNfw2M=; b=jQz9MWwlssdsbfSmZatVtYne+E+4AHyvmn+ZamfeOSYtDwGHRqwYqlw0EZ6j9Vp9CK wtiOvrsjr2enNCBMTrzXwa8y5oFHsGObe8bTq9XQlucFufFp8Fbbd3nH3eQDoi3M+cRY s4KoJmlMIP/FUidv37dp4GsoeqN+ytT2csl+kH8ogpwQGy/rE1GfTB+6tr6kEbP/tsGS 92QkndVZmAZKW3+BER/UABMY+UoNfDuUaP21TGvZLSqNOevjhstVm8ESRuM/+WJVX8oZ Gz6xxGC2VtNoQC5e+puF4qzcqqim2RSR2qe554M58NRt70v5qhDq8hYRX4teiH5jVruM T2XQ== X-Forwarded-Encrypted: i=1; AFNElJ/6PEPVyR926mpyD1GdnXycXeJtV5oq0ZFeHKUsFVEJYMNGgI+rql7SdqWycEhe9WXIXcAlkKuAdXhJ@vger.kernel.org X-Gm-Message-State: AOJu0Ywk+RVJqVS3xR034n4aIRzRW5FM2axIkeL3HYhdAxXN3f51cNYw p384C60Crggf7SP5359M/iRX528oZet9VrU6+V1lukHvRzJQpcbYuBYTCKVVJlS07tY= X-Gm-Gg: AeBDieub8hUrIobuxJj/2oz47kgpoKBhRNyWZgS7FHY4PLfFFhvGdw1koQEJn5f4pvd rg9+TLzLXlvMETNum5UQiZAy31gEuLq6hURENiGmm2mZyvwlaeoktsVnKr0B89xqameNVKq4Mnv FiN/rtRV5UYVQEeaaiB5VZdvrChsmNsUm52B/oM0Ha69RFmzukqj5WyRlnBc/XD9moiBd7SgpN9 omQpDYIBK5q8FGXdrS3epp/ULf9+brPzSyGRzZ1I9GSpDza315SLBPeeEOcZLL8dK+fnC7QIu7n O9mfZX3N3YVmWf2wa+Gr4QhjptCsK0MFgY3m7uLNz1pFu1Bo+EwQR4VmwTmRDYzicdzXLjbtqnM e024QK4xxcjNu/ooRe/Xu065ZxAnzBVVnAU/PS4jKmlsjmCPQp0i7EPrNRCLpzuAB8eO8KT6nDx kELqfsHAeSPD/tx3kt4+I8QyBKnT/mYRaE62OUHtqNivAnatVKJnhFAAykoHPPMS+hj+1GYhDjL L2G5ZI= X-Received: by 2002:a05:600c:1da1:b0:488:bc6a:528d with SMTP id 5b1f17b1804b1-488fb785204mr347044255e9.22.1776844262834; Wed, 22 Apr 2026 00:51:02 -0700 (PDT) Received: from ?IPV6:2a01:e11:202b:40:3c42:f121:865e:1066? ([2a01:e11:202b:40:3c42:f121:865e:1066]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a575ad67asm79137295e9.2.2026.04.22.00.51.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Apr 2026 00:51:02 -0700 (PDT) Message-ID: <51f999d7-2064-47dc-8d9b-e262588bfbdb@gmail.com> Date: Wed, 22 Apr 2026 09:51:01 +0200 Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [BUG] 36-second boot delay due to by acpi_gpio_handle_deferred_request_irqs on ASUS ROG Strix G16 (2025) To: Mika Westerberg , Hans de Goede Cc: Francesco Lauritano , Mario Limonciello , "linux-acpi@vger.kernel.org" , "open list:GPIO ACPI SUPPORT" , "platform-driver-x86@vger.kernel.org" , "westeri@kernel.org" , Benjamin Tissoires References: <2kSCn4XaoXsXJ3EUR0syTdmip8Z1cBuUr0Br4sFVnwnsA8q4GlhiHOmsJkeBxvxYoLnetp4r44wIPXw42yTAFl-BtMROnIwR-NkckKgA5EY=@protonmail.com> <6iFCwGH2vssb7NRUTWGpkubGMNbgIlBHSz40z8ZsezjxngXpoiiRiJaijviNvhiDAGIr43bfUmdxLmxYoHDjyft4DgwFc3Pnu5hzPguTa0s=@protonmail.com> <4402ed86-77f5-4a47-a9e1-8d57a709bb15@kernel.org> <20251218063954.GT2275908@black.igk.intel.com> <20251218103831.GW2275908@black.igk.intel.com> Content-Language: en-US From: Marco Scardovi In-Reply-To: <20251218103831.GW2275908@black.igk.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/18/25 11:38, Mika Westerberg wrote: > On Thu, Dec 18, 2025 at 11:33:14AM +0100, Hans de Goede wrote: >> Hi, >> >> On 18-Dec-25 07:39, Mika Westerberg wrote: >>> On Wed, Dec 17, 2025 at 07:19:56PM +0000, Francesco Lauritano wrote: >>>> On Wednesday, December 17th, 2025 at 7:01 PM, Mario Limonciello wrote: >>>> >>>>> On 12/17/25 10:57 AM, Francesco Lauritano wrote: >>>>> >>>>>> On Wednesday, December 17th, 2025 at 4:12 PM, Francesco Lauritano francesco.lauritano1@protonmail.com wrote: >>>>>> >>>>>>> The _AEI defines 5 GPIO interrupts. Narrowed it down to two: >>>>>>> >>>>>>> gpiolib_acpi.ignore_interrupt=AMDI0030:00@21,AMDI0030:00@24 >>>>>>> >>>>>>> This fixes the delay. Pins 0x15 and 0x18 both call: \_SB.PCI0.SBRG.HNC0() >>>>>> Traced it further. HNC0(pin, 0) takes the Else branch and calls: >>>>>> ATKM(0xC0) >>>>>> ADTM(Zero) >>>>>> >>>>>> ADTM calls NOD2(), which is the actual culprit: >>>>>> >>>>>> While ((Arg0 != RDNT)) >>>>>> { >>>>>> If ((Local0 >= 0x0F)) { Break } >>>>>> Notify (^^GPP0.PEGP, Arg0) >>>>>> Local0++ >>>>>> Sleep (Local0 * 0x64) >>>>>> } >>>>>> >>>>>> It notifies the dGPU and polls RDNT, sleeping 100, 200, ... 1500ms per iteration. >>>>>> Max 15 loops = ~12s per pin. GPU doesn't respond at boot so it maxes out. >>>>>> >>>>>> Two pins, ~12s each, ~24-36s total. >>>>>> >>>>>> Francesco >>>>> >>>>> Any idea why isn't the dGPU responding? I would have expected >>>>> https://git.kernel.org/torvalds/c/4d4c10f763d78 sets up policy that it's >>>>> in D0. >>>>> >>>>> Is the dGPU turned off in BIOS or through some reverse engineered >>>>> tool/API or something? >>>> dmesg without the workaround: >>>> [ 1.005184] pci 0000:01:00.0: PME# supported from D0 D3hot >>>> [ 1.288811] pci 0000:01:00.0: vgaarb: VGA device added >>>> [ 38.250139] nvidia: loading out-of-tree module taints kernel. >>>> [ 38.369358] nvidia 0000:01:00.0: enabling device (0000 -> 0003) >>>> [ 39.744421] NVRM: GPS ACPI DSM called before _acpiDsmSupportedFuncCacheInit >>>> >>>> GPU is in D0 from 1.0s. nvidia loads at 38.2s after the GPIO hang completes. >>>> >>>> No weird tools/APIs besides userspace utils (asusctl/supergfxctl). >>>> >>>> No changes to BIOS factory defaults other than disabling Fast Boot. >>>> dGPU is active, Display Mode is Dynamic (hybrid). >>>> >>>> Traced RDNT - it's set by GPS function 19 in the ACPI tables: >>>> Case (0x13) >>>> { >>>> Debug = "GPS fun 19" >>>> \_SB.PCI0.SBRG.RDNT = (Local1 + 0xD1) >>>> } >>>> >>>> As far as I can understand GPIO initcall blocks at late_initcall_sync, preventing nvidia >>>> from loading in time to respond. Based on the timing, GPU is awake but nothing can >>>> register a handler while kernel is stuck at NOD2 polling loop. >>> I wonder if you could try with the nouveau driver so that it's built-in to >>> the kernel proper? Then it should be ready at the time these events >>> trigger. >> That is not really a workable solution though. > Yeah, I did not meant it to be the "solution" rather just to check whether > it is related if the GPU driver is there or not. You cannot build the > proprietary driver into the kernel so that's why I suggested the > open-source one. Hi Everyone, I would start saying sorry for the necrobump. I faced the same problem on my G614PR and fixed the same way as Francesco. Do you happen to know if there is any news about this? I'm currently on CachyOS with kernel 7.0 and noticed it behaves the same way as 6.19. I'm on to try patches or provide more infos if needed, even if I have to admit I know Linux but not that deeply.