Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4036721rwb; Sat, 21 Jan 2023 04:56:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXs3oFDHFyD4xHEQ1gVS0cBxPMI6l8l33wrSas4nr87UORxZFE+WjxyH3mnvTpvpz0qp2xWL X-Received: by 2002:a05:6a00:4088:b0:58b:af27:dcda with SMTP id bw8-20020a056a00408800b0058baf27dcdamr20263044pfb.14.1674305800579; Sat, 21 Jan 2023 04:56:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674305800; cv=none; d=google.com; s=arc-20160816; b=vlVGMs6zKMHqgCJ3fAv7c4QrZPNtqWA94uM7X/u3SdvwuOzzqJNQlvYo74QFxW68lI GFtZMom9oe3QjLof70vhjm8+LucP76rNfGbY5MilsOTF/UCedvOJuln/Ux1lGFgeIv+P ZX9kzZZKH8twfBQcfIciZWmTpZ0tKxZGQ5nNPscHHhCkRwmmgGD72P0jvjlbwoWIX9YZ EYlmXz/FRR12YXFxut0EXPu3Y2Zd71DvQ6rdtXxnWSZlt1oYOR0PaIzn/YrIrvIK2Pg3 vd4eWAY47l6iTpcWcoX6DM658p9+5x63H2ctx0oOqiRqiAK/KXcmWc45sXgKIDGEsLTd cG6w== 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:reply-to :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=OlejZ4z/jwZEdrLNsRJ0cWI35HYeBkGzNK0Cn4NiJ5Q=; b=uw0p1yntxyhIYiyg+vQNqM8Djab9yf+8qV1P9mUxmgqm/YKsL5YO8ToeXvlVppZlzm 9aHNrdjAL4CgqCr+2fJdAUFNKBhVTHSHZke9qk2zbssn9ih+ICQ6ZPIMdYDDDXMO1mGd MVmvAgO2GZMuyK1dv2a3bbL/i6kamsIlwd9X/m9nsYmmZFg2hhWkKVY1A6Aq5pS2L18n w0Y6I4gP5kQxTetSroBTjsTNINHop9FDSJQUv4f2GEM/LSKzchh9fC36gVlcWIGMPwoO puLeEHcUxXfDEKMgFdTYCC9LYNLtyCtqfPgT1xscHYFSlgFLJAOjXwh8l87BNY1+3cQz a3JA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020aa78e06000000b005807fa620a0si42748472pfr.326.2023.01.21.04.56.34; Sat, 21 Jan 2023 04:56:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229493AbjAUMcn (ORCPT + 52 others); Sat, 21 Jan 2023 07:32:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjAUMcn (ORCPT ); Sat, 21 Jan 2023 07:32:43 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7D1E9B; Sat, 21 Jan 2023 04:32:40 -0800 (PST) Received: from [2a02:8108:963f:de38:4bc7:2566:28bd:b73c]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1pJD2t-0004b6-4q; Sat, 21 Jan 2023 13:32:31 +0100 Message-ID: <3af98200-7240-9e93-bd6a-d0e2f71ab1c4@leemhuis.info> Date: Sat, 21 Jan 2023 13:32:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] pinctrl: aspeed: Force to disable the function's signal Content-Language: en-US, de-DE To: Joel Stanley , Andrew Jeffery Cc: Linus Walleij , Billy Tsai , linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linux kernel regressions list References: <20220818101839.28860-1-billy_tsai@aspeedtech.com> From: "Linux kernel regression tracking (#adding)" Reply-To: Linux regressions mailing list In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1674304360;5a657a65; X-HE-SMSGID: 1pJD2t-0004b6-4q X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 [TLDR: I'm adding this report to the list of tracked Linux kernel regressions; the text you find below is based on a few templates paragraphs you might have encountered already in similar form. See link in footer if these mails annoy you.] [CCing the regression list, as it should be in the loop for regressions: https://docs.kernel.org/admin-guide/reporting-regressions.html] On 19.01.23 02:54, Joel Stanley wrote: > On Fri, 26 Aug 2022 at 22:48, Andrew Jeffery wrote: >> On Sat, 27 Aug 2022, at 07:26, Linus Walleij wrote: >>> On Thu, Aug 18, 2022 at 12:18 PM Billy Tsai wrote: >>> >>>> When the driver want to disable the signal of the function, it doesn't >>>> need to query the state of the mux function's signal on a pin. The >>>> condition below will miss the disable of the signal: > >>> I can't see the verdict for this patch? Will there be a new >>> version, or are we in the middle of a discussion? >>> I'd really like Andrew's ACK on the result before merging. >> >> Apologies, it's been a bit of A Week :) >> >> Given the approach has been discussed with the IP designer and solves a bug I'm okay for it to be merged. If we run into issues it is easy enough to back it out. > > As foreseen by Andrew, this caused a regression. On the Romulus > machine the device tree contains a gpio hog for GPIO S7. With the > patch applied: > > [ 0.384796] aspeed-g5-pinctrl 1e6e2080.pinctrl: request pin 151 > (AA20) for 1e780000.gpio:943 > [ 0.385009] Muxing pin 151 for GPIO > [ 0.385081] Disabling signal VPOB9 for VPO > [ 0.402291] aspeed-g5-pinctrl 1e6e2080.pinctrl: Failed to acquire > regmap for IP block 1 > [ 0.402521] aspeed-g5-pinctrl 1e6e2080.pinctrl: request() failed for pin 151 > > The code path is aspeed-gpio -> pinmux-g5 -> regmap -> clk, and the > of_clock code returns an error as it doesn't have a valid struct > clk_hw pointer. The regmap call happens because pinmux wants to check > the GFX node (IP block 1) to query bits there. > > For reference, reverting the patch gives us this trace: > > [ 0.393160] Muxing pin 151 for GPIO > [ 0.393267] Disabling signal VPOB9 for VPO > [ 0.393383] Want SCU8C[0x00000080]=0x1, got 0x0 from 0x00000000 > [ 0.393552] Disabling signal VPOB9 for VPOOFF1 > [ 0.393681] Want SCU8C[0x00000080]=0x1, got 0x0 from 0x00000000 > [ 0.393835] Disabling signal VPOB9 for VPOOFF2 > [ 0.393965] Want SCU8C[0x00000080]=0x1, got 0x0 from 0x00000000 > [ 0.394097] Enabling signal GPIOS7 for GPIOS7 > [ 0.394217] Muxed pin 151 as GPIOS7 > [ 0.394411] gpio-943 (seq_cont): hogged as output/low > > This can be reproduced in qemu without userspace: > > qemu-system-arm -M romulus-bmc -nographic -kernel arch/arm/boot/zImage > -dtb arch/arm/boot/dts/aspeed-bmc-opp-romulus.dtb -no-reboot > > Billy, do you have any suggestions? Thanks for the report. To be sure the issue doesn't fall through the cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression tracking bot: #regzbot ^introduced cf517fef601b #regzbot title pinctrl: aspeed-g5-pinctrl 1e6e2080.pinctrl: Failed to acquire regmap for IP block 1 #regzbot ignore-activity This isn't a regression? This issue or a fix for it are already discussed somewhere else? It was fixed already? You want to clarify when the regression started to happen? Or point out I got the title or something else totally wrong? Then just reply and tell me -- ideally while also telling regzbot about it, as explained by the page listed in the footer of this mail. Developers: When fixing the issue, remember to add 'Link:' tags pointing to the report (the parent of this mail). See page linked in footer for details. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr That page also explains what to do if mails like this annoy you.