X-Received: by 2002:a17:90b:3806:b0:1b8:e628:d88 with SMTP id mq6-20020a17090b380600b001b8e6280d88mr3550435pjb.32.1645526409027; Tue, 22 Feb 2022 02:40:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645526409; cv=none; d=google.com; s=arc-20160816; b=hV6+FNkIl2tVdpR+PmVl8mFAQW2V5WJ7GkeSzd3dItE8YOs+dt0xI8GPowH+W80I1H ck8HYi2Qsjaxo//ypqVhMwiq+LiA1NsZ9dpuz0n8Ei9V2P0voEANoj1YIAA9E6fig+tj 91i9ngLx1BcKnGr9uBgPOaFsVguqwWryfYvC9FaNg9vhOjTS6xGooPIPJb39DsMYQkGA mhUw5mI8pjTwOiCwigGwTelF8Iki3z3IoE0V3rKrsQCQOvdna9iF4Ef9KqaHJsFjeGRM GND8SuJt8k8PNcKcKmtmC/g4VtI+PNICD0xQf2u2BW9Ksc5kL+r7RnLnowqGIFOgsIrm OMAQ== 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=ALI8eLHS1fHRxhnoRGCRPkKgmapUSXzSpYtL73HGAPg=; b=C68VP2ho3sTWBj4jDgeu624AucUW4M/QQfAY+5C697BXvufH5iZs8CWzThodecIXSU balVGryNKz4gsJYSiYxXtgcopHKiYghS47r9JBJOxBHVYsdqjKJUkIYuumbU546utbz4 DyX12f/nxH3bGadsVMsDbImj8xxPAixgJp02K8w8yzaZmGIYlbuwE8owV/KDrAIhqRfB 9WsijSvBPcaNbxSpAOGtLMPt7G/rDmQpIB+CoIppu108alc6rm3mkEjjkkXnauyX6b0Z Bx2Nn4n1l7rzjX+eeKYGm/Orj0kfzdTs1IwstqeENDul1S0NHeUmEVjc/rsFj2qenbZj PYZA== 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 p24si31309186plo.435.2022.02.22.02.39.55; Tue, 22 Feb 2022 02:40:09 -0800 (PST) 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 S230410AbiBVKYI (ORCPT + 99 others); Tue, 22 Feb 2022 05:24:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbiBVKYH (ORCPT ); Tue, 22 Feb 2022 05:24:07 -0500 Received: from imap3.hz.codethink.co.uk (imap3.hz.codethink.co.uk [176.9.8.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D46F283013; Tue, 22 Feb 2022 02:23:42 -0800 (PST) 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 1nMSKW-0005am-Cx; Tue, 22 Feb 2022 10:23:36 +0000 Message-ID: <48e917d1-c012-29bc-d3be-b9ccb876a074@codethink.co.uk> Date: Tue, 22 Feb 2022 10:23:35 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [[PATCHv3]] PCI: fu740: Force gen1 for initial device probe Content-Language: en-GB To: paul.walmsley@sifive.com, greentime.hu@sifive.com Cc: lorenzo.pieralisi@arm.com, robh@kernel.org, kw@linux.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: <20220221203803.1333012-1-ben.dooks@codethink.co.uk> From: Ben Dooks Organization: Codethink Limited. In-Reply-To: <20220221203803.1333012-1-ben.dooks@codethink.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 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 21/02/2022 20:38, Ben Dooks wrote: > The fu740 PCIe core does not probe any devices on the SiFive Unmatched > board without this fix from U-Boot (or having U-Boot explicitly start > the PCIe via either boot-script or user command). > > The fix claims to set the link-speed to gen1 to get the probe > to work. As this is a copy from U-Boot, the code is assumed to be > correct and does fix the issue on the Unmatched. The code is at: > https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/pci/pcie_dw_sifive.c#L271 > > The code has been this way since the driver was commited in: > https://source.denx.de/u-boot/u-boot/-/commit/416395c772018c6bf52aad36aca163115001793f > Apologies everyone, messed up sending v3 so re-sent as v4. -- Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius https://www.codethink.co.uk/privacy.html