Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1307324rdb; Wed, 20 Sep 2023 05:53:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXvNalqJC0B/sJtk8nyDGzKMx23pA9KSGnY+DkkqMwvMtSzqDbrrsuJujVEHBNXIbiting X-Received: by 2002:a05:6a20:428e:b0:15c:8555:a21c with SMTP id o14-20020a056a20428e00b0015c8555a21cmr3645833pzj.8.1695214389902; Wed, 20 Sep 2023 05:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695214389; cv=none; d=google.com; s=arc-20160816; b=WFncSYqv1Q2o2HMpXKoKhjE4R1VuA/lE/Y38xzTFVbMf2w7/dVbXumajoAVtk2RzjO yuXJJHtAOFdib4Zw8NGEQB29MLywHUTBa0rEzI18exW2DL5PK11Q8Ejqccw7rg5GdCHb jazhvzM0wbxpXaf1sEbDrKFyL5QnCR5EofTF+pik8PDE9r2RTAqDdhsnkCN9DZrvJMVJ IsHYmVzASlW3HdHcMPIPBlOKHf//W7ecPp9+cMwEFdF2ALvrRxvFNOcX4eDb3al/Olwm /AYXzx9SHCqNZpmzP1COROT0UiR7bpH3H7c2Z+mYaKZbVT1ueM31DKZnDLlRjy3OC1bo uOow== 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:from :references:cc:to:content-language:subject:reply-to:user-agent :mime-version:date:message-id; bh=wiAfNeDew5ibkmzlUBV3GM6AlKk+dlUq9IbI+5K+0Ow=; fh=Cy+gyAIp1fwmCOCpEQAEx4lmySry1YmdKhgWWg5rrK8=; b=guvEvrZQx/XJDfH2Ctwng6Yo9TGdoILnIuQ3YPfOOb5S7FmwsmxmSu91KEdARIHE/H N2bOOOrIlPiI0bUyXyNBiPdEws5qPH2oWxDfac+mGPUH4liuCyezUQ5UF1eFyOvTJ+Ae EV//OXTwMXZOdyMhRookOMhDLYCdtJyJWK2gSFK5pAA+wTE8SvdA70wGJS7ikrF6TPXj /hnu1RtR4DVp379wRj9rtWj0LDmumGR75sBmXXzyrVlOh7ohtL8xOFSK9dgeANsPeDIb 1u6CGzvvamCOQJsr7l6KqQjYo+WjYrwiQHhwuSs+Ps8/SMo3TD3Y3avUm2CyzyrGX6jM UdjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id fi6-20020a056a00398600b0068fcf194dacsi11869708pfb.92.2023.09.20.05.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 05:53:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 6C85C82F96A4; Wed, 20 Sep 2023 05:33:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236189AbjITMdd (ORCPT + 99 others); Wed, 20 Sep 2023 08:33:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236190AbjITMda (ORCPT ); Wed, 20 Sep 2023 08:33:30 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39696EC; Wed, 20 Sep 2023 05:33:22 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1qiwON-0003gR-8R; Wed, 20 Sep 2023 14:33:19 +0200 Message-ID: <91336c97-0831-3ce3-5ff0-54344f18e065@leemhuis.info> Date: Wed, 20 Sep 2023 14:33:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: Linux regressions mailing list Subject: Re: [PATCH v2] pci: loongson: Workaround MIPS firmware MRRS settings Content-Language: en-US, de-DE To: Manivannan Sadhasivam , Jiaxun Yang Cc: Huacai Chen , linux-pci@vger.kernel.org, bhelgaas@google.com, linux-kernel@vger.kernel.org, kw@linux.com, lpieralisi@kernel.org, stable@vger.kernel.org, Linux kernel regressions list References: <20230725061008.1504292-1-jiaxun.yang@flygoat.com> <861a809d-3df1-327e-e033-87506f6d89e5@flygoat.com> <20230907011828.GA2865@thinkpad> <6e1bdebf-f335-23a5-c79f-d603c5d0150c@flygoat.com> <20230907050805.GA3218@thinkpad> From: "Linux regression tracking (Thorsten Leemhuis)" In-Reply-To: <20230907050805.GA3218@thinkpad> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1695213202;524c3247; X-HE-SMSGID: 1qiwON-0003gR-8R X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 20 Sep 2023 05:33:46 -0700 (PDT) [CCing the regression list, as it should be in the loop for regressions: https://docs.kernel.org/admin-guide/reporting-regressions.html] On 07.09.23 07:08, Manivannan Sadhasivam wrote: > On Thu, Sep 07, 2023 at 11:13:00AM +0800, Jiaxun Yang wrote: >> 在 2023/9/7 9:18, Manivannan Sadhasivam 写道: >> [...] >>> Why do you need to walk through every single device instead of just bridges? >>> I'm not the maintainer, but my suggestion is to go for Huacai Chen's solution. >> >> Thanks for your reply, unfortunately Huacai's solution is impractical in >> this case. >> >> The problem we have, is firmware (or BIOS) setting improper MRRS for devices >> attached under those bridges. So we have to fix up MRRS for every single >> device. >> We can't iterate child device in bridge quirk because there is no guarantee >> that >> bridge will be probed before  it's child device, partly due to hotplug. > > Okay, this clarifies and also warrants improvement in commit message. > > You could also use pci_walk_bus() after pci_host_probe() to iterate over the > child devices under root bridge and set MRRS. IMO that would look neat. Hi, Thorsten here, the Linux kernel's regression tracker. What's the status here? The regression that was supposed to be fixed by the patched that started this thread was reported 9 weeks ago[1] and the culprit made it to many stable kernels as well. Would be really good to finally fix this, as a regression like this should ideally be fixed within 2 to 3 weeks (in both mainline and stable). With a revert if necessary -- is this maybe still a option, or would that cause more trouble then it solved (I guess that's the case). [1] https://bugzilla.kernel.org/show_bug.cgi?id=217680 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 If I did something stupid, please tell me, as explained on that page. >> This quirk has been in tree for a while, until Huacai refactored it and >> broke some >> systems in 8b3517f88ff2 ("PCI: loongson: Prevent LS7A MRRS increases"). >> >> Also to note that ks_pcie_quirk in drivers/pci/controller/dwc/pci-keystone.c >> uses similar approach. >>> This avoids iterating over bridges/devices two times. >>> >>> Also, please rename firmware to BIOS, as firmware commonly represents the >>> software running on PCIe endpoint devices. >> Ack, will fix in next reversion. >> >> Thanks >> - Jiaxun >>> >>> - Mani >> [...] >