Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1975549rwo; Sun, 23 Jul 2023 05:13:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlE0TMoRlL6BbI/QhmiZ9tPFBgnThJDiqlpNtxB9axUECask3E5QAZW8Ph5vUz3a1kUVNTyE X-Received: by 2002:a17:902:da89:b0:1b8:2a4d:3eb9 with SMTP id j9-20020a170902da8900b001b82a4d3eb9mr6165992plx.34.1690114390923; Sun, 23 Jul 2023 05:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690114390; cv=none; d=google.com; s=arc-20160816; b=mwTr9uVMLtYDqrESD5f5yrKcBszep9PkCgrE28n2GZxAG3lWcBNojVUuOl6AWjD0Y3 ev0zZeA41VCdR08MfsnOjdS9n4T0SAiluYcynoJ82PS+4UEH2D9MFIZejCjHQ92Py/oM s9lMaWAEaQ3qMnV/++TR7yWMuxrlN2MaD7tYxCtc8FR47IFmaRM3+mstT0uWCde4cOPx w2Ue3XzuSa+HMMgualRe7RdAbMaJFS8gx8omYCODEbwWPTcN8C/fz21F+cyS/RVd1u+p 3WM3TNlgJjm1IBy+2imOlaS1aLvWU7DJ22/bxE/savAnFFNxLtkYo4V0bJvA2MsLNAYn xXHw== 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:user-agent:mime-version :date:message-id; bh=+k33vC8bOVIvRWa+cf9MW5LwSlcH6gWgdSa6pxO2Sl4=; fh=M5E2ueB4EwMnf7Fz+fHXIsIchWE/IIFgzZnSETwb+dU=; b=uZLSMzlwiB9xVPcTdFvvy+Ol3QcXqUneikEHP62twUIbxXb7QJnv+KGU5Lc/K+xSzN jDtt47KhrFxGS+5pzYuZRnQyoJ5coEmU7R3VuMNtxpvaLG23kekhYGFTm/R7KWTXDt4k fsFhF31AqWZCd4XKyo5CLSSmFx8ognaEDE46ru0FDBNaClzUVLA7b99RqhGaDXmX8f36 WL7Sp9TTMVINMzo+O36RhSDlaCCZwPXDgkbmSZ7TFIYAfCLCAJay1M5h7dKp+Fo8RrKC V8QhNQJU8PRHFi5LGVXBIZ61gq83DWSgvudjnfDkTXVedZCu5iaN3CDVo8/UYVGA21kE ayHw== 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 q12-20020a17090311cc00b001b4fc117bf0si7541190plh.116.2023.07.23.05.12.58; Sun, 23 Jul 2023 05:13:10 -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; 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 S229904AbjGWLNL (ORCPT + 99 others); Sun, 23 Jul 2023 07:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbjGWLNK (ORCPT ); Sun, 23 Jul 2023 07:13:10 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2D2810C3; Sun, 23 Jul 2023 04:13:08 -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 1qNX1N-0006H6-2e; Sun, 23 Jul 2023 13:13:05 +0200 Message-ID: Date: Sun, 23 Jul 2023 13:13:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: Fwd: PCI: Loongson: 8b3517f88ff2 breaks PCIe on some system Content-Language: en-US, de-DE To: Bagas Sanjaya , Huacai Chen , Bjorn Helgaas , jiaxun.yang@flygoat.com, Aurelien Jarno Cc: Linux Kernel Mailing List , Linux Regressions , Linux PCI , Linux Loongarch References: <871f22f4-c456-db15-3466-085971bd1221@gmail.com> From: Thorsten Leemhuis In-Reply-To: <871f22f4-c456-db15-3466-085971bd1221@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1690110788;91fa5781; X-HE-SMSGID: 1qNX1N-0006H6-2e 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,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 On 23.07.23 04:03, Bagas Sanjaya wrote: > > I notice a regression report on Bugzilla [1]. Quoting from it: > >> After 8b3517f88ff2 ("PCI: loongson: Prevent LS7A MRRS increases") backported to stable, we have received multiple regression reports including one from Debian build farm[1] that some systems failed to initialize some PCIe devices. >> >> I was able to reproduce on one of my Loongson-3A4000+7A system. It seems like the root cause is firmware on those systems didn't set MRRS properly but 8b3517f88ff2 ("PCI: loongson: Prevent LS7A MRRS increases") assumed firmware's maximum MRRS is always valid. >> >> [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1035587 > > See Bugzilla for the full thread. > > The linked Debian BTS entry have debugging details on this regression > (boot log, cpuinfo, and lspci). > > Anyway, I'm adding this regression to regzbot: > > #regzbot introduced: 8b3517f88ff298 https://bugzilla.kernel.org/show_bug.cgi?id=217680 > #regzbot title: LS7A MRRS quirk fails to initialize PCIe devices > #regzbot link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1035587 FWIW & TWIMC, a fix for this is in the works already afaics: #regzbot monitor: https://lore.kernel.org/all/20230718133259.2867432-1-jiaxun.yang@flygoat.com/ #regzbot fix: pci: loongson: Workaround MIPS firmware MRRS settings 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.