Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp894020pxb; Fri, 22 Apr 2022 13:38:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtB0m3qVJaJ+JTt/0VIXXNh0c62xjFvTbJgQTwqfn4IHIDF0Cdb6GgScN+z4DRLCdT3GmJ X-Received: by 2002:a17:902:f64e:b0:14d:20db:8478 with SMTP id m14-20020a170902f64e00b0014d20db8478mr6584792plg.158.1650659918189; Fri, 22 Apr 2022 13:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650659918; cv=none; d=google.com; s=arc-20160816; b=UvLeJPS7M9eIWRh+aVdztd2dkPi3KLHGOp8MYMbeJd9X7USp/JuR7fIyl9xB14R4RE E6WOH0Flu7b3YHGk76660Kgi/dBMi4U6qJ/QH5wM3/cON+8gIXT2PCjKZ9RhgtH6BGMV ncLt7nzLdTT/VwC0lYCdLoF33BtutKB8alyPJTLdIyudmsozEaRS3sDIAe3w6hzsb8wr KWJYLHZ860MwmYR0PiG5YwJ8RGILEZRk90lbPE2rzShZBubvDSLjliwe8X2S6JiFNLGu TADlXMC2/gnlQDY4kFv9zL0N6hdl8NQvt2F2VhStOCtKSMLVGdBR55zxQaXHJzfPaWRU pYIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=/MJZREkQoOkcIzsntm8w4AEaaNqjLbeosQZdzW/Wx/Y=; b=VWMgKWjhYSQZvqqxgGSLuh22Jr+4jl3h17fRS6jVoH4+QhVeaf+ABNMfE9zoI7Ay8+ eKJ9TyiDsQeR4sDgheUQJd1BvKGy6DZtrvq2CoQ5qXAFmmrSCrBQXdixnkuzdxV9b4fG j5hMqCueHdDOqe3EkufYbosJVbd50a51pi9A4iJNe1wArH6+PJP8Qmg+RLeUueu9/FG5 DFpofI8XlmNDo+RI+vtQkxghlTVvSC4EoPx3fkgfaDhqlgYYVBpNUYY3Nbivbn18A140 8K0p12eLS9JL797fulBXPDL5JttuZ8xEzHr2b+nyalyXfmbxiPRymwquwOJXgxvbfIkj cTFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="C/fCgSNJ"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p13-20020a63f44d000000b003aa3662bf20si8674742pgk.879.2022.04.22.13.38.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:38:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="C/fCgSNJ"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 862561C82FB; Fri, 22 Apr 2022 12:23:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448569AbiDVOgP (ORCPT + 99 others); Fri, 22 Apr 2022 10:36:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233899AbiDVOgK (ORCPT ); Fri, 22 Apr 2022 10:36:10 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F162A5A59F; Fri, 22 Apr 2022 07:33:16 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 817151F37F; Fri, 22 Apr 2022 14:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1650637995; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/MJZREkQoOkcIzsntm8w4AEaaNqjLbeosQZdzW/Wx/Y=; b=C/fCgSNJX3yVbtTBTGNnSJKUDeF+k4GJD97ivJ4cbwoNdxQA1RytuXsAJdWzu6RgE1bYFq NIyNQEBOXyzWa4A7A5rmtWolykorDzo+fCZongbkxv8xhe1Mpd8TO1n7QuivYgm3JM1G6Y hdAITcpiekcmTA3Aha9oxZfbMfyCniQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1650637995; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/MJZREkQoOkcIzsntm8w4AEaaNqjLbeosQZdzW/Wx/Y=; b=gSxgPPeYTa2lJBafS2O4WWs+P9yia9McMxHOx7uQS07Ic7+FGL3eG9DmCf1AjXpdTJ2LRK QwaONnHX8dLvuUCw== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 7267E2C14B; Fri, 22 Apr 2022 14:33:15 +0000 (UTC) Date: Fri, 22 Apr 2022 16:33:15 +0200 Message-ID: From: Takashi Iwai To: Thorsten Leemhuis Cc: Takashi Iwai , Shreeya Patel , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev, Mario Limonciello , Linus Walleij , Bartosz Golaszewski Subject: Re: [REGRESSION] Missing IRQ via amd_gpio In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 On Fri, 22 Apr 2022 16:17:36 +0200, Thorsten Leemhuis wrote: > > 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/ Thanks, good to know that we reached to the very same fix :) So, feel free to take my tags to Mario's patch, if any: Reviewed-by: Takashi Iwai Tested-by: Takashi Iwai Takashi