Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1551899pxb; Thu, 14 Apr 2022 08:32:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL2oniNd9dIPZPYaFl/DAOGtxgvV80gYQ3nh3KHeHFErKjlF1+GKCNQk50/KjSG+4efj4o X-Received: by 2002:a17:902:db05:b0:158:8021:119a with SMTP id m5-20020a170902db0500b001588021119amr15741618plx.113.1649950320962; Thu, 14 Apr 2022 08:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649950320; cv=none; d=google.com; s=arc-20160816; b=Blq5f+DUpZphZcunr95t1XDAyrbqYNRLUMAUsVfNGXJy47FUep2oH/ZwQbbhSE8g/g 3vNszF3MIdR7ptVJJZPAu7hhdwcL04fdrx/LWnOlSbRvAPDOrbZkg3uisVxcgR+XLKZm syRDrBciTazswIsvoxs8wBZtky8N2t+FyNFhXsurJK5j1XNkMJaP5mcpQBwn1q3FV3X6 6XbMT0jaHAThMr9GZbKQq4tE0jA9GCPDMUUJxaYnxrZmWB2r0I1QbTItf8eH7yh2LMh8 TF8Agt52KIr/mH0l2ROUcpdicd7DzkWSTNRemTxWul+x30b6RKsvA0TBFQK//f7s9ZqT Iy/Q== 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:message-id :in-reply-to:subject:cc:to:from:date; bh=NdebhFHmSZf6DY0xqk45FDUVe0tIW6gg/s5uAuwJk/A=; b=z3RA+bGIILb2Z7/dREFvpIhWnV+wFbISAbFOn9aSw6S9pX1HikH/xJuztQydQiPf91 66xG5gLzQP1yaycMZWRjJHzMfXvFaiho68dXaAiDhzEb7kiDtbnst2Nh/ZHIPTEPZkec rOwd6zZKdkv87LQI1eriwKyoOgs/bkhJrDxBMHdw3Jj4rHOrxQpdtiMnQkJo+i6w7d6Y ucDkakPYa/XmiVU1zgTAVp0+nUdPxKXc5O2SF6YAt6LhsR5Wyb+O8FBNPu/CbaTn7Xgo 7j0xh/5bjW2/IcI0dv9d/MlIW5dMvzk8vTVqwNn+NP1+1KBznmBWUVv8luvV1j7wFZbu 7tFA== 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 x17-20020a170902e05100b00158474bd561si13317490plx.481.2022.04.14.08.31.46; Thu, 14 Apr 2022 08:32:00 -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 S236060AbiDNANB (ORCPT + 99 others); Wed, 13 Apr 2022 20:13:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237281AbiDNAM5 (ORCPT ); Wed, 13 Apr 2022 20:12:57 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9697115FEA; Wed, 13 Apr 2022 17:10:34 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id AD3BA92009C; Thu, 14 Apr 2022 02:10:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 9E7F592009B; Thu, 14 Apr 2022 01:10:33 +0100 (BST) Date: Thu, 14 Apr 2022 01:10:33 +0100 (BST) From: "Maciej W. Rozycki" To: Ben Dooks cc: Alexandre Ghiti , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Bjorn Helgaas , Palmer Dabbelt , Rob Herring , Lorenzo Pieralisi , Greentime Hu , Paul Walmsley , David Abdurachmanov , Neill Whillans Subject: Re: [V3] PCI: fu740: Drop to 2.5GT/s to fix initial device probing on some boards In-Reply-To: Message-ID: References: <20220318152430.526320-1-ben.dooks@codethink.co.uk> <2442936e-a53e-59bf-488f-95eac26d1252@ghiti.fr> <85e864fd-762e-0780-f829-bfbb178ab24e@ghiti.fr> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 Wed, 23 Mar 2022, Ben Dooks wrote: > > FWIW, I have tested this and it solved my issue with nvme not being probed, > > so: > > > > Tested-by: Alexandre Ghiti > > Ok, great. Our test rig seems to be still working with this. I ran simple verification of your change by interrupting U-Boot after a power-up and issuing: => setenv boot_pci_enum true at the command prompt before booting from the uSD card and curiously enough the root port comes up with the Link Capabilities Register reporting the lack of Link Bandwidth Notification Capability in this scenario, while it reports its presence if booted undisturbed, i.e.: LnkCap: Port #0, Speed 8GT/s, Width x8, ASPM L0s L1, Exit Latency L0s <4us, L1 <4us ClockPM- Surprise- LLActRep+ BwNot- ASPMOptComp+ vs: LnkCap: Port #0, Speed 8GT/s, Width x8, ASPM L0s L1, Exit Latency L0s <4us, L1 <4us ClockPM- Surprise- LLActRep+ BwNot+ ASPMOptComp+ It is fully reproducible. Any idea what might be causing it? I can't see it being explicitly set or cleared anywhere, be it in U-Boot or Linux, so it must be done by the device itself depending on something. And the lack of this capability seems to me like non-compliance for a multiple-lane, multiple-speed device. Maciej