Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3497165pxp; Mon, 14 Mar 2022 22:36:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiLh/AmyIBQFpSK2DgeMv3MLwfzul0GbXHDvlV7Jut1cV2LZP5E3KX8gKejHMBrzdzH7y9 X-Received: by 2002:a05:6a00:80a:b0:4f7:6735:be6d with SMTP id m10-20020a056a00080a00b004f76735be6dmr26788947pfk.54.1647322574520; Mon, 14 Mar 2022 22:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647322574; cv=none; d=google.com; s=arc-20160816; b=EiTyeLbMopjFdmsCLMuJvjERx80PyFcpvaqwiTgpqSYlwQuue+7q9Wdpj4IbX6R31/ bOA7ySq4QGmxLtUbSUl+j55lypFbX1AEZFSMkPf7x8uiYZlSJfwjUFmbQmVwyGa4WwOt aX9sUXL5p4hS1U/yWmtxtQ2OZ/w3ooazzdz53znVFpnaqVUKkotm7pwRPgxpI8kpo8Vl NW4JHNFjFqwZGurKwd9mbUvh45edMuTbjGnMVZpwVEutCtRLWUyYMiC0om6vSQmdsg3o DMVFbQbp/RMWiBzv/hv/2KpR02brgV2sJSSs7OW1Z6Q4cLCbOSqkfFT76dtthO5Hn1Qx uYGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9FfAmAKjAgj6bQe6BTe66EUAUXF5Jrw46PifagMQ1u0=; b=AATxEjxC6YGJqI4NP8nAQ5a3zS8OU3H+T7eA0ELXvTN86QArmyINUNXQHQRXmkgxk6 +FMA1wATuXr28rCZqG6Qgw2Y0leCx5JbcSoE7Yi5ofK9w9/yUCrFGsy1L4DAqO0JB2/N 5v7ORbS8aY0gAg9UPJjvhn6bV6JEMeESRFtEJo2hNiiwreQiAKLlCunCn9Evp3LBNYlj /hf3zNkvbONS3vKhT60VLApb6TtB2RyAAmOF/oCTho843V7FN6xCxQLJesFaMQPi4lX7 bRHaqvzMpT3FulKBrf5IT608mDCIHQb8fyV1XqlvTo68SCiMQDBeqxgLM2wztj34Nzdh DwFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=o4oWGwwe; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ks4-20020a17090b328400b001bf05af44e1si989733pjb.82.2022.03.14.22.36.01; Mon, 14 Mar 2022 22:36:14 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=o4oWGwwe; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242929AbiCOAqq (ORCPT + 99 others); Mon, 14 Mar 2022 20:46:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241328AbiCOAqm (ORCPT ); Mon, 14 Mar 2022 20:46:42 -0400 Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A0CE656D for ; Mon, 14 Mar 2022 17:45:32 -0700 (PDT) Received: by mail-oo1-xc2f.google.com with SMTP id p10-20020a056820044a00b00320d7d4af22so4695553oou.4 for ; Mon, 14 Mar 2022 17:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9FfAmAKjAgj6bQe6BTe66EUAUXF5Jrw46PifagMQ1u0=; b=o4oWGwwe5ko2FVrqYc2L7nRRBp6MMHzzsXeI1UYczON1Mu4N2iS9kgdj//y/A6aMd8 MtnK+XRkuYOH2hZsq9n2zgHjlTRaUyToYjj0LIQoFnj5SpEYrhxHlsrEs76yt9jRhL9a tdr+/IhN1k/uEBL231BTExmyKtlWyOinbXeB454Fbf4j10RJAxc3C/gEkcCiDHy/YM7+ SnYm/qd7bbZjyYpaPYWOI9I3P3T2VMZIcqbwyF+p9r/Zi7Q6/S0VkYSr74xdALKLeB4n GUmh/orAHAnOHKSi05sK+jDPaEWTL+QzAQzpwp+laW0hiBll46B4gZlhZD7OxUutW/Lt odyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9FfAmAKjAgj6bQe6BTe66EUAUXF5Jrw46PifagMQ1u0=; b=meiUvJTfRDkLgIm09f/OBQ8CqQNLnPhzHykacDdF2VSgdBTStPJ8MRnEQ1UJ2V+tVS cvS8vZ9SRIMMulxzUJkWepDUkjTZt7LU8tUjjnCNWIw/5Xjb5FmLlZWGvYDGgrzrNd2Z x3y2/X6Sr2pfeF2nc1tZ8X6pL2fXGPiEsPrb52wPg3QTSrWPuQ56pWXbtRt2MOs5V5YC SEnlqyzcaXswK+ZI3TRAuHRYKPJaMYILGlFxMdsH63fgbMV8YV211z7aBG1pxZGcch07 SVKzImNH6vjSCtRlP0KklyKvcmt4Xfw04hDwADP71jpJrAGHthdvZLetFniabHPCS9HP AckQ== X-Gm-Message-State: AOAM5311hlFbIA5/g/StzwTpwpWeLpqPy8mbaG7fkDfsuSVo47gmIQmM R2ASukBszQv9y/FuPxN1H5yHGR3tXlBm0GA9oPU= X-Received: by 2002:a05:6870:1807:b0:d7:2a4c:14b8 with SMTP id t7-20020a056870180700b000d72a4c14b8mr599258oaf.97.1647305131065; Mon, 14 Mar 2022 17:45:31 -0700 (PDT) MIME-Version: 1.0 References: <20220314192522.GA3031157@roeck-us.net> In-Reply-To: From: Marcelo Roberto Jimenez Date: Mon, 14 Mar 2022 21:45:05 -0300 Message-ID: Subject: Re: Linux 5.17-rc8 To: Linus Torvalds Cc: Guenter Roeck , Thierry Reding , Linus Walleij , Vidya Sagar , Edmond Chung , Andrew Chant , Will McVicker , Linux Kernel Mailing List , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Linus, I am the author of the "gpio: Revert regression..." patch. On Mon, Mar 14, 2022 at 5:14 PM Linus Torvalds wrote: > > [ Adding more people to the cc, since this last change was triggered > by earlier changes. > > On Mon, Mar 14, 2022 at 12:25 PM Guenter Roeck wrote: > > > > Build results: > > total: 155 pass: 155 fail: 0 > > Qemu test results: > > total: 488 pass: 484 fail: 4 > > Uhhuh. We got all the previous problems sorted out, but a new one instead. > > > This is a new problem. It bisects to commit fc328a7d1fcc ("gpio: Revert > > regression in sysfs-gpio (gpiolib.c)"). The network connection fails > > in the affected tests. Reverting the offending commit (ie reverting the > > revert) fixes the problem. > > Hmm. Looking at the changes since 5.16, that commit fc328a7d1fcc looks > somewhat suspicious. > > It claims to "revert" things, but the behavior it reverts goes > basically all the way back to v5.7 (with one of the patches going into > 5.10). > > And it clearly breaks things that used to work much more recently (ie > this worked in rc7, but it was also the state in every release since > 5.10). > > So unless somebody can find the _real_ issue here, I suspect very > strongly that that "fix" that came in last week was just wrong. > > It is also very non-specific "Some GPIO lines have stopped working" > with no pointer to actual reports. The original message in which I posted the patch also had a small report. I listed the board in which the problem appeared and a small test script to show the error, which I have used to bisect the issue. The whole thread is here, the test is in the first message: https://lore.kernel.org/all/a7fbb773-eb85-ccc7-8bfb-0bfab062ffe1@leemhuis.info/t/ > LinusW? Thierry? Bartoz? Anybody? > > Yes, there;s something bad going on here, but we can't randomly "fix" > things in an rc8 that have worked for several releases by now. The original patch just reverted the patch that introduced the problem I found. But if the reversion introduces problems at this point, then the sane thing to do is to revert the reversion. At a certain point, I tried Thorsten's suggestion to add a gpio-ranges property in a way similar to another patch, but the kernel went into an EPROBE_DEFER deadlock. Thierry Reding made some comments about this in the sequence. Following Linus Walleij's suggestion, we are moving the code from the sysfs interface to the character device. But in the meantime, we are using this "revert patch" in a 5.10.80 kernel, so maybe someone could point me to details of the network misbehaviour so that I can also check it? > > Linus Regards, Marcelo.