Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3254760pxu; Tue, 15 Dec 2020 02:28:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxwRuW/eSPPT1WbXp6IzWB1QaU/O8bbIjJDgCjit45LI57bJ3/OFcfta5XzEeke6HnjmuE X-Received: by 2002:a17:906:77ce:: with SMTP id m14mr6570356ejn.10.1608028134350; Tue, 15 Dec 2020 02:28:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608028134; cv=none; d=google.com; s=arc-20160816; b=WNeTftIIuIQEm5PbmqMknOpZT3pdG2cY4rQg+TeCKJadA/d7DnPIUbYt0vJnMefmdV liuZuMOpTbWORyIvMvgw0X14ZnJQ8kjlYyip2Nd0SHuyR9oJdiNecxnmS3WhuppJyR/u pd1nbh6wySHLlCBRX+fRDq3GELUJX22aZW3aKy/o77XAWVQV9YdZ8+SDyPA9IiFxqGvl VA9W0wDSs0nUfNDok3kD7pkmh5TxVi8kh8kMtjhT4NxBEztH67VchOYH0DAlfnS9hmUV g8ztf+DVqElI1ObtD62+EgFljDe9hznElm3LxOmZWFWNS96pb5OyUcJenghE3hHvLitZ 3Hlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=CrWG+xQc+NJYjhh1exiVEm9hrHcAtSqBEgR4D6H9liI=; b=cnAnJkiLAtnL8H+Lnf/fxL8+IN/eQsdV3t4gapIsKOzrKuj8d1ZgGUf6asOO2c6sON Ov9Ao9/dRql3F3hWYwntnF+SG8iUy8e99eKBaRjH9J3FK3gTpBBSgGcOwUODYvN4Qiwh 2CfGI1sTTw6wU3xfydNkByu77gsEnaY0rEP2Zi2C75J7cgoiqc8dieHNG8HVrXehRLPt +hegnefWYt9iI4E9atZczASyTelfSJU44T0RkgQVGqumGj4K0exaRm7gA9Fz7UpFk0KF z4rO2reL+tW3xxi5TRBRykojtHQr64j0Il5USisX7KMZ2ZgujzmD0Vir3sm4LuZ0Guk5 3IAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l5si613035edv.356.2020.12.15.02.28.31; Tue, 15 Dec 2020 02:28:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728092AbgLOKZd (ORCPT + 99 others); Tue, 15 Dec 2020 05:25:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:41458 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727128AbgLOKZ3 (ORCPT ); Tue, 15 Dec 2020 05:25:29 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id F2B66ACA5; Tue, 15 Dec 2020 10:24:47 +0000 (UTC) Date: Tue, 15 Dec 2020 11:24:42 +0100 From: Mian Yousaf Kaukab To: lorenzo.pieralisi@arm.com, vidyas@nvidia.com, robh@kernel.org Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: dwc: tegra194: issue with card containing a bridge Message-ID: <20201215102442.GA20517@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I am seeing an issue with next-20201211 with USB3380[1] based PCIe card (vid:pid 10b5:3380) on Jetson AGX Xavier. Card doesn't show up in the lspci output. In non working case (next-20201211): # lspci 0001:00:00.0 PCI bridge: NVIDIA Corporation Device 1ad2 (rev a1) 0001:01:00.0 SATA controller: Marvell Technology Group Ltd. Device 9171 (rev 13) 0005:00:00.0 PCI bridge: NVIDIA Corporation Device 1ad0 (rev a1) In working case (v5.10-rc7): # lspci 0001:00:00.0 PCI bridge: Molex Incorporated Device 1ad2 (rev a1) 0001:01:00.0 SATA controller: Marvell Technology Group Ltd. Device 9171 (rev 13) 0005:00:00.0 PCI bridge: Molex Incorporated Device 1ad0 (rev a1) 0005:01:00.0 PCI bridge: PLX Technology, Inc. Device 3380 (rev ab) 0005:02:02.0 PCI bridge: PLX Technology, Inc. Device 3380 (rev ab) 0005:03:00.0 USB controller: PLX Technology, Inc. Device 3380 (rev ab) # lspci -t -+-[0005:00]---00.0-[01-ff]----00.0-[02-03]----02.0-[03]----00.0 +-[0001:00]---00.0-[01-ff]----00.0 \-[0000:00]- #lspci -v https://paste.opensuse.org/87573209 git-bisect points to commit b9ac0f9dc8ea ("PCI: dwc: Move dw_pcie_setup_rc() to DWC common code"). dw_pcie_setup_rc() is not removed from pcie-tegra194.c in this commit. Could the failure be caused because dw_pcie_setup_rc() is called twice now in case of tegra194? BR, Yousaf [1]: https://www.broadcom.com/products/pcie-switches-bridges/usb-pci/usb-controllers/usb3380