Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp820321pxb; Fri, 22 Apr 2022 11:53:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGf1BgMi+qq+JRlNCJKjhwNGvmxhngSEGpVrE2RATGTsufniLQlHsGEhUR0F6B3LvbduHQ X-Received: by 2002:a17:903:22c4:b0:158:9224:1a8a with SMTP id y4-20020a17090322c400b0015892241a8amr5848999plg.41.1650653622170; Fri, 22 Apr 2022 11:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650653622; cv=none; d=google.com; s=arc-20160816; b=fiAFB3wgw68OKqypXthdVBugkSEPhJ/yJW8hYQicjCsH3p/OqYX36UFtbWcaEyTGLc YkXvUCUFirUVmLCuwO7bgpqwgxNHhC66JZrnjPMDyCJBdFF/E/qCjtbHHamdrlPCO3ro dzeRhTbXSndR3s6UOfwNz70Jp18ClPBhWicYRftecoz235MRGyT54F9Q86VUN13ssyoV QBsVVQzBcshneW1VkXymsSZzDORQtDPy3zgxa3Nv55WKNG4ApSDLILejcNuLYJ7wpor8 jUX6te/W5+YaGAd/nQEViMrw7JFGWCrvu3AqslScPvRZUXP9WQOi2hImsM1WU/uZvmIP OiCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id; bh=vE4wcG3Mrinfv7wEt6nrTH9T1LQsuTck2tkbYZDuV0k=; b=pBR2sD5ELVpbZt9X/bBL+FVpIKchH0wnGeNBVpo2TAJr9PqNWh5Hr8XHzA8IPzh8j+ JWy06ne1S209OETsOm7dSb5yaO2GfpPORl+hZIidW4lgL97njjSznAX2et61sGJ46Q2J +oEN4cThSZnJvMTFmeTB+w+sVkmqTJLV8TzWO6D+gu3yQdPYcRwCtgGWY0eytGBNr9LN G7clHR+aFOzJvYNbHh1WdpdjaJWkhp4TosalyxQCgy2O42cMq9EW30RipZfqkELRgg/L 01zaqF5t8WKNGcrq9mG796XfnoiHj4pGj8m0WVby4r21sL6oLlHXjNKVCav2j3Jy/nI7 O87g== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v9-20020a634809000000b003aa3c5335f5si9160973pga.342.2022.04.22.11.53.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:53:42 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A847617DA22; Fri, 22 Apr 2022 11:17:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448563AbiDVOVF (ORCPT + 99 others); Fri, 22 Apr 2022 10:21:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448566AbiDVOUy (ORCPT ); Fri, 22 Apr 2022 10:20:54 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBBAA5AEED; Fri, 22 Apr 2022 07:17:39 -0700 (PDT) Received: from [2a02:8108:963f:de38:6624:6d8d:f790:d5c]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1nhu6L-0002zq-Hd; Fri, 22 Apr 2022 16:17:37 +0200 Message-ID: Date: Fri, 22 Apr 2022 16:17:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Content-Language: en-US To: Takashi Iwai Cc: Shreeya Patel , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev, Mario Limonciello , Linus Walleij , Bartosz Golaszewski References: From: Thorsten Leemhuis Subject: Re: [REGRESSION] Missing IRQ via amd_gpio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1650637059;93b2feed; X-HE-SMSGID: 1nhu6L-0002zq-Hd X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Takashi! Thx for CCing the regression list. On 22.04.22 15:03, Takashi Iwai wrote: > Hi, > > we received a bug report for 5.17.3 kernel showing a new error: > > amd_gpio AMDI0030:00: Failed to translate GPIO pin 0x003D to IRQ, err -517 > > Not only an error message but in practice this leads to a missing IRQ > assignment; the IRQ 27 is no longer assigned to amd_gpio driver. > > As the error number (EPROBE_DEFER) indicates, this seems to be the > side-effect of the recent fix, the upstream commit 5467801f1fcb > ("gpio: Restrict usage of GPIO chip irq members before > initialization"). As far as I understand, the problem is in > acpi_gpiochip_request_interrupts() call that is called from > gpiochip_add_irqchip() itself. Since it's called before the > initialized flag set, it always fails now. > > Below is a temporary quick fix and it seems working. But I'm not sure > whether I overlooked something obvious... A patch that afaics will fix this hopefully should get merged really soon now: https://lore.kernel.org/all/20220422131452.20757-1-mario.limonciello@amd.com/ See also v1: https://lore.kernel.org/all/20220414025705.598-1-mario.limonciello@amd.com/ Ciao, Thorsten