Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7392144rdb; Wed, 3 Jan 2024 14:40:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYBZQe6U8CDtmZo+6TReuBsIpDjKHZ141WzpGzHfN2GPyftlk/QZpd2kpOtQ/zRP4p2ogz X-Received: by 2002:a17:907:7d8e:b0:a28:2ce:fa90 with SMTP id oz14-20020a1709077d8e00b00a2802cefa90mr1750281ejc.248.1704321653337; Wed, 03 Jan 2024 14:40:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704321653; cv=none; d=google.com; s=arc-20160816; b=NHb2d160L9H/6m/jFpCqoRrMjCprZjbTy4qCFeSzhQC4cjzkz5mCIQ81tD0MvOuUBw ejSmVEYraMKqRj7ohfbWAjpXrOg5E9L82aPNbYn++O31IRdUPXSzaDuUSooppM84ytPj OFfDDh8DOWAvtPHsQFbIrMzquGN5TmXrjgrCdU0i6JQtC/1QucsZiyyvQ9XXK7+FPEfZ qoT4HUIIQKeCxb0Z/tpl41j0Dn+cnULFWf5nfHAeGXXfBtgY6Lf08fV7a807IKtfthWP GoAgfb/S2hbsz/JyMWyWAWyJeNE/55gAHd2244DSDUVC9NYBaVj/yQuhvcZzQgwbQEQ0 WsUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=0h7PgAKHLBBL550JFcFthbjqC6UsTh1CLzAgFeU19vM=; fh=/B9wLnpCbtI5So2BehbbKaeFufdyM7dwUGT1VsnW3bA=; b=FyHWAdObfJivoSzhwCiB7GaLuzYlMD053yuvVNlaXoAXl2QkiDEspoykrNaxSRQsqF BhdJfcB4QSO2QQ+IsMq6bNqICV9e1ta6qeE8ipzLYjS/OOYk4ffSUFFkWlmjKNLdn1e4 ldSIn4hASfYTgk6k7xIl3VRRxmK/tESc9woD0DB/WcTJ9TWh/8SYoUOZ9pq7V+yCFnu1 VT9BNQ8CIb7xGDoYR8GCIVHUaBobwWOzlyQUgLHffEj+52TIIdyt35kB5CgB2/qIndtb 4wQO8x2l9q+DIHeubuQqTH7EjB1Qi62y67NeFI7gs2TO3FX/pD/380YVwqvJOAXFadM4 nCKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=uBh9XVvW; spf=pass (google.com: domain of linux-kernel+bounces-16077-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16077-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h24-20020a1709062dd800b00a28ba5dd13asi330682eji.1055.2024.01.03.14.40.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 14:40:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16077-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=uBh9XVvW; spf=pass (google.com: domain of linux-kernel+bounces-16077-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16077-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CEFD31F247D5 for ; Wed, 3 Jan 2024 22:40:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 325831EB29; Wed, 3 Jan 2024 22:40:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="uBh9XVvW" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCA771DA54 for ; Wed, 3 Jan 2024 22:40:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1d3e6c86868so84035595ad.1 for ; Wed, 03 Jan 2024 14:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1704321638; x=1704926438; darn=vger.kernel.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=0h7PgAKHLBBL550JFcFthbjqC6UsTh1CLzAgFeU19vM=; b=uBh9XVvWyWYQQ09JmpqVoNebkFNQVyb0SUYGJ9TnEaX1jjIOMkginNazGqL3lQ7flU 9jjrclrMyBT3QPzgwLkdM6sw8wPvpOsN4A+PHp2rD0KXAROlsX6VPqmDR8fpD+RDju6L nxW687QdxgEaBWnmZ23bcaA7nmfHskBJ0TxDCJerRLgY/VzXLWWYQEy6lDPzjB2Q2aes aBGlPQTnUHjarPvf2IzbnLvAFl6PLwTlErs+KkKOCCZEKDbXURvAfB6jo2Bgf9DmwVR5 0OXCNJ/9yoGUeVdZqn3iJnJPMrFq+REu8n+fBrt1yeUmeYeA0N3F2Me/KUEEPN+VyO5N Hf0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704321638; x=1704926438; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0h7PgAKHLBBL550JFcFthbjqC6UsTh1CLzAgFeU19vM=; b=xMsIK+kDrjx1JbuLgBLFPD5L5EDlY5VaRfP7kKOBPB3AQkNw2VOhG+OJyspieke6KI KzuqStX5Dtjg+R8R5qWMgDr727y4WV2YnyjEIEFcEU52AKVj+/Ynr2PhAzfzMdr+cO7O Zyx1PB1vRs7RJ8t8K0WC9UQSmMpZRXMQgJo6gt6igQhDHktd3Tnf8va5pKqvQBp/4hcc wICpBr3pfusefX5YVHIbsGZw5ZDQlO+WJ1aysf8/sAdWokTU/sXiX3RstDD5NyZbo/tu hi6IVJxADBt75i2dDG5+u7d3KNYfOoHEe6fCLqlr1zSABuxHHWPkue7lTEidMlrEw38s 6cSw== X-Gm-Message-State: AOJu0YzHpYZJGKI5ev95LOFAIaCpSWMm5VZ1B8r8cqXzriikb6Wuolg+ 74evvG/QpixZdOsEtnDRxMNzlWz6kf9Mhw== X-Received: by 2002:a17:902:d50b:b0:1d4:32d8:ea78 with SMTP id b11-20020a170902d50b00b001d432d8ea78mr22084129plg.79.1704321638123; Wed, 03 Jan 2024 14:40:38 -0800 (PST) Received: from localhost (75-172-121-199.tukw.qwest.net. [75.172.121.199]) by smtp.gmail.com with ESMTPSA id u17-20020a170903125100b001cfa0c04553sm24071484plh.116.2024.01.03.14.40.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 14:40:37 -0800 (PST) From: Kevin Hilman To: Minda Chen , Conor Dooley , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Lorenzo Pieralisi , Daire McNamara , Emil Renner Berthing , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pci@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Mason Huo , Leyfoon Tan , Kevin Xie , Minda Chen Subject: Re: [PATCH v13 0/21] Refactoring Microchip PCIe driver and add StarFive PCIe In-Reply-To: <20231214072839.2367-1-minda.chen@starfivetech.com> References: <20231214072839.2367-1-minda.chen@starfivetech.com> Date: Wed, 03 Jan 2024 14:40:36 -0800 Message-ID: <7hfrzeavmj.fsf@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Minda Chen writes: > This patchset final purpose is add PCIe driver for StarFive JH7110 SoC. > JH7110 using PLDA XpressRICH PCIe IP. Microchip PolarFire Using the > same IP and have commit their codes, which are mixed with PLDA > controller codes and Microchip platform codes. Thank you for this series. I tested this on a VisionFive v2 board, and it seems to probe and find my M.2 NVMe SSD, but then gets timeouts when trying to use the NVMe (e.g. 'blkid' command) Kernel logs below. Kevin [ 15.131094] pcie-starfive 9c0000000.pcie: host bridge /soc/pcie@9c0000000 ranges: [ 15.138637] pcie-starfive 9c0000000.pcie: MEM 0x0038000000..0x003fffffff -> 0x0038000000 [ 15.147180] pcie-starfive 9c0000000.pcie: MEM 0x0980000000..0x09bfffffff -> 0x0980000000 [ 15.368040] pcie-starfive 9c0000000.pcie: port link up [ 15.374219] pcie-starfive 9c0000000.pcie: PCI host bridge to bus 0001:00 [ 15.380944] pci_bus 0001:00: root bus resource [bus 00-ff] [ 15.386443] pci_bus 0001:00: root bus resource [mem 0x38000000-0x3fffffff] [ 15.393330] pci_bus 0001:00: root bus resource [mem 0x980000000-0x9bfffffff pref] [ 15.400882] pci 0001:00:00.0: [1556:1111] type 01 class 0x060400 [ 15.407165] pci 0001:00:00.0: supports D1 D2 [ 15.411447] pci 0001:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold [ 15.419964] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 15.428245] pci 0001:01:00.0: [126f:2263] type 00 class 0x010802 [ 15.434331] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit] [ 15.441578] pci 0001:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x1 link at 0001:00:00.0 (capable of 31.504 Gb/s with 8 .0 GT/s PCIe x4 link) [ 15.456910] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01 [ 15.463553] pci 0001:00:00.0: BAR 8: assigned [mem 0x38000000-0x380fffff] [ 15.470352] pci 0001:01:00.0: BAR 0: assigned [mem 0x38000000-0x38003fff 64bit] [ 15.477699] pci 0001:00:00.0: PCI bridge to [bus 01] [ 15.482686] pci 0001:00:00.0: bridge window [mem 0x38000000-0x380fffff] [ 15.489632] pcieport 0001:00:00.0: enabling device (0000 -> 0002) [ 15.496038] pcieport 0001:00:00.0: PME: Signaling with IRQ 56 [ 15.502472] usb 1-1: new high-speed USB device number 2 using xhci_hcd [ 15.509755] usb usb2-port2: over-current condition [ 15.515883] nvme nvme0: pci function 0001:01:00.0 [ 15.520615] nvme 0001:01:00.0: enabling device (0000 -> 0002) [ 15.532685] nvme nvme0: allocated 64 MiB host memory buffer. [ 15.550070] nvme nvme0: 4/0/0 default/read/poll queues [ 15.562992] nvme nvme0: Ignoring bogus Namespace Identifiers [ 15.663327] hub 1-1:1.0: USB hub found [ 15.667320] hub 1-1:1.0: 4 ports detected [ 46.064052] nvme nvme0: I/O 424 QID 3 timeout, completion polled [ 76.784046] nvme nvme0: I/O 425 (I/O Cmd) QID 3 timeout, aborting [ 76.790179] nvme nvme0: I/O 426 (I/O Cmd) QID 3 timeout, aborting [ 76.796294] nvme nvme0: I/O 427 (I/O Cmd) QID 3 timeout, aborting [ 76.802411] nvme nvme0: I/O 428 (I/O Cmd) QID 3 timeout, aborting [ 76.808525] nvme nvme0: I/O 429 (I/O Cmd) QID 3 timeout, aborting