Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1394867pxb; Thu, 14 Apr 2022 05:22:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/QainnLmEfNbCSieuQjAp2nSXFi1PcMAoUCWt311k6qT6hptNcWL1yR2YQvcc8h2ryqcB X-Received: by 2002:a17:90a:5291:b0:1ca:b45d:eb3e with SMTP id w17-20020a17090a529100b001cab45deb3emr4007145pjh.207.1649938946131; Thu, 14 Apr 2022 05:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649938946; cv=none; d=google.com; s=arc-20160816; b=zawuydOZt2TqqPmA/5ZlxcADUKL07mm6DsBY9pPZff/1c6GSZ+P5pfD35/Gd6zfBL9 A2WUZWHDORLLq5ktRV/I1g/c7Hbp7oEpE+UetJrlQcwU8dKNz5Gnm8zCSvkn5P70hPCn qCQTR9vwRSMcbnQhvWDV9ZJ7fXBPq4P3VEZbw6Dcc2yBT8glzlX4hDzIxmlP5QnayHgg oOzFnz+mIqImvbwSzPceLKOYqoz6EA1e4LwWXOxL4lmjNIRTjNW+9pDz+1c48y7jGoFL 79Md9cvlWeWfFeBHVxqLomiNjxlN3vBFnfI3Ms7h19rZLtyTB2ihcxoOM6NE27WIh59V Yofw== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id; bh=uJ8HJuK6QfrOq97Vk4oKxObs/tTLhTBGKuyGuRCEKTY=; b=i/lC1rFt9vmTvLEvIi6UTgKh/qHerdDfEGT5J5k8Ft2MSgcyOlTZIlUkI27qzo+n7o PApY3AQOOfldp9Vy6hPhMPSJf+ZKUr+NdZ61rjOMupTDlw5IBAyAtlbwezabJlTUalgm zr+4NqGMHs4niHGHM2N9nShYFMp45EqdvDJ1WiYfmfR2DHNxS9ji0R0G22VMh6SAuqc/ WA692qd8UohUv5of4Q/CBUtnWkHxNNDpBw+nwyy7WdL0FdKAmjY1Q5KSr0Dgv2XES6tB jnUp36/hmhMz1g81vwWeJiMGwot0GusMdzXkUUOZxBt319ZLjMzw3Zqo2DpwgdN9UhG8 dBDA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a056a00188700b004fa3a8e0013si17387898pfh.202.2022.04.14.05.22.13; Thu, 14 Apr 2022 05:22:25 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237492AbiDNHwB (ORCPT + 99 others); Thu, 14 Apr 2022 03:52:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231676AbiDNHv5 (ORCPT ); Thu, 14 Apr 2022 03:51:57 -0400 X-Greylist: delayed 2305 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 14 Apr 2022 00:49:31 PDT Received: from imap3.hz.codethink.co.uk (imap3.hz.codethink.co.uk [176.9.8.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D0CA12602; Thu, 14 Apr 2022 00:49:29 -0700 (PDT) Received: from cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net ([86.15.83.122] helo=[192.168.0.21]) by imap3.hz.codethink.co.uk with esmtpsa (Exim 4.92 #3 (Debian)) id 1netd6-0005jh-I9; Thu, 14 Apr 2022 08:11:00 +0100 Message-ID: <3acd20b2-5882-7cc0-8a7b-7b406b768c1c@codethink.co.uk> Date: Thu, 14 Apr 2022 08:11:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [V3] PCI: fu740: Drop to 2.5GT/s to fix initial device probing on some boards Content-Language: en-GB To: "Maciej W. Rozycki" 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 References: <20220318152430.526320-1-ben.dooks@codethink.co.uk> <2442936e-a53e-59bf-488f-95eac26d1252@ghiti.fr> <85e864fd-762e-0780-f829-bfbb178ab24e@ghiti.fr> From: Ben Dooks Organization: Codethink Limited. In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,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 14/04/2022 01:10, Maciej W. Rozycki wrote: > 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. I'll see if we can reproduce this -- Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius https://www.codethink.co.uk/privacy.html