From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41978C433EF for ; Fri, 22 Apr 2022 14:18:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448576AbiDVOVG (ORCPT ); Fri, 22 Apr 2022 10:21:06 -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 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