Message ID | 20231214072839.2367-1-minda.chen@starfivetech.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp8373176dys; Wed, 13 Dec 2023 23:29:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgtOWLSUr5A9q9gJjWdQ8V4yLju9m00/0St5/c6JWEmzr0YIr2xE6LAjcQ4NBghjCqA2NH X-Received: by 2002:a17:903:1245:b0:1d0:cbef:2efe with SMTP id u5-20020a170903124500b001d0cbef2efemr10026162plh.102.1702538949180; Wed, 13 Dec 2023 23:29:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702538949; cv=none; d=google.com; s=arc-20160816; b=WGz5Yw+pCxcLS3WxxS6TyYVO6svCJPulGH253Fg17CeFtk9To7qlLMMYdX3IgzFtmP 4oggU3+hKT2Ht3dSSsoU1sG5I3KJRAUFJu3KgdrNCLhBqRDNUMPcF9a+3GZ71f2bafkv 27lYaQNoUuDHK0I5GtlGaz/K5HliGDBpgre1Ma/DX5onC4YZS1i+fD/SePrkzKEQTpAq E0DoO4woiOQd0y1mdwpZKYa46G82Upi6A1q+FpCFxgAgts3j6nCfj7TaSljiu4M2xSuk 270ksAks3L8AqnPbYSOEC21dOfpY8TNfHJAzRkDBtbYhzTX+jnrDNeON7aPLPh0JS9w/ 54Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=8UfNR5JcLEgWUOc4tS90G1Ob4N8iTT5OisPY3CucI2s=; fh=ld3UXb1S5Y4IkunPfuj6e9Ppmc+fy6ncC+eQtrVLfK8=; b=O7Im6BYI3IH6YVWgMMQwwv5BBQnwlecfw0QFyytE4Uka2ynw8wzimEKPMrkuPlIb/w I47ncnv3Xg1RqfKXficZUkFCD2seAmWiNB0jlVUCghqujidHyKArHXBVjOqJ1gPqeAY8 zs3WSUT8EMUC941oFKnE9Dz/4WJG8TKT824IIgQHaW5SPr6Jyuy7U8hvWuDnzxsdQPAp JysicTW42vra/AK7PC/+G2Q6qwsIhgN1mgzAOvV80oAXNc3lmigLqwU1MeiP3QRQOzZZ 6mPOMBzYsshTCcdR9KKjoYOnsGPARxkVj6l7Kyfn43FICHQEY8VPk7a4kRqipZ9GP6GJ k1Mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id b18-20020a170903229200b001cfd0fe5125si11005619plh.290.2023.12.13.23.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 23:29:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2EDE380E4B07; Wed, 13 Dec 2023 23:29:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443250AbjLNH2x (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Thu, 14 Dec 2023 02:28:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231129AbjLNH2w (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 14 Dec 2023 02:28:52 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C176FF5; Wed, 13 Dec 2023 23:28:56 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 63BCC24E2C6; Thu, 14 Dec 2023 15:28:55 +0800 (CST) Received: from EXMBX171.cuchost.com (172.16.6.91) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 14 Dec 2023 15:28:55 +0800 Received: from ubuntu.localdomain (113.72.145.168) by EXMBX171.cuchost.com (172.16.6.91) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 14 Dec 2023 15:28:49 +0800 From: Minda Chen <minda.chen@starfivetech.com> To: Conor Dooley <conor@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= <kw@linux.com>, Rob Herring <robh+dt@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>, Lorenzo Pieralisi <lpieralisi@kernel.org>, "Daire McNamara" <daire.mcnamara@microchip.com>, Emil Renner Berthing <emil.renner.berthing@canonical.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> CC: <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-riscv@lists.infradead.org>, <linux-pci@vger.kernel.org>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Philipp Zabel <p.zabel@pengutronix.de>, Mason Huo <mason.huo@starfivetech.com>, Leyfoon Tan <leyfoon.tan@starfivetech.com>, Kevin Xie <kevin.xie@starfivetech.com>, Minda Chen <minda.chen@starfivetech.com> Subject: [PATCH v13 0/21] Refactoring Microchip PCIe driver and add StarFive PCIe Date: Thu, 14 Dec 2023 15:28:18 +0800 Message-ID: <20231214072839.2367-1-minda.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.145.168] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX171.cuchost.com (172.16.6.91) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Dec 2023 23:29:02 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785241481172769792 X-GMAIL-MSGID: 1785241481172769792 |
Series |
Refactoring Microchip PCIe driver and add StarFive PCIe
|
|
Message
Minda Chen
Dec. 14, 2023, 7:28 a.m. UTC
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. For re-use the PLDA controller codes, I request refactoring microchip codes, move PLDA common codes to PLDA files. Desigware and Cadence is good example for refactoring codes. ---------------------------------------------------------- The refactoring patches total number is 16,(patch 1-16) which do NOT contain changing logic of codes. These patches just contain three type basic operations. (rename, modify codes to support starfive platform, and moving to common file) If these patched are all be reviewed. They can be accepted first. Refactoring patches can be devided to different groups 1. (patch 1- 3 is the prepare work of refactoring) patch1 is move PLDA XpressRICH PCIe host common properties dt-binding docs from microchip,pcie-host.yaml patch2 is move PolarFire codes to PLDA directory. patch3 is move PLDA IP register macros to plda-pcie.h 2. (patch4 - 6 is processing and re-use PCIe host instance) patch4 is add bridge_addr field to PCIe host instance. patch5 is rename data structure in microchip codes. patch6 is moving two data structures to head file 3. (patch 7 - 9 are for re-use two PCIe setup function) patch7 is rename two setup functions in microchip codes, prepare to move to common file. patch8 is change the arguments of plda_pcie_setup_iomems() patch9 is move the two setup functions to common file pcie-plda-host.c 4.(patch 10 - 16 are for re-use interupt processing codes) patch10 is rename the IRQ related functions, prepare to move to pcie-plda-host.c patch 11 - 15 is modify the interrupt event codes, preparing for support starfive and microchip two platforms. patch16 is move IRQ related functions to pcie-plda-host.c ------------------------------------------------------------ The remainder patches (patch 17 -21) are not refactoring patch. They are for adding StarFive codes and dont modify the microchip's codes. patch17 is Add host init/deinit functions. patch18 is add StarFive JH7110 PCIe dt-binding doc. patch19 is Add a PCIe delay time macro patch20 is add StarFive JH7110 Soc PCIe codes. patch21 is Starfive dts config This patchset is base on v6.7-rc4 previous version: v6:https://patchwork.kernel.org/project/linux-pci/cover/20230915102243.59775-1-minda.chen@starfivetech.com/ v7:https://patchwork.kernel.org/project/linux-pci/cover/20230927100802.46620-1-minda.chen@starfivetech.com/ v8:https://patchwork.kernel.org/project/linux-pci/cover/20231011110514.107528-1-minda.chen@starfivetech.com/ v9:https://patchwork.kernel.org/project/linux-pci/cover/20231020104341.63157-1-minda.chen@starfivetech.com/ v10:https://patchwork.kernel.org/project/linux-pci/cover/20231031115430.113586-1-minda.chen@starfivetech.com/ v11:https://patchwork.kernel.org/project/linux-pci/cover/20231115114912.71448-1-minda.chen@starfivetech.com/ v12:https://patchwork.kernel.org/project/linux-pci/cover/20231206105839.25805-1-minda.chen@starfivetech.com/ change: v13: patch14: 1. Add plda_get_event() function. This can be compare with mc_get_event() easily and track the codes changes in case in the future.. 2. The host event_ops is directly set to plda host port. 3. Setting default host event_ops instead of checking event ops. patch15:1. Add PLDA event irq_chip instead of event_domain_ops, The event_domain_ops can be re-used. 2. The host event irq_chip is directly set to plda host port. 3. Add PLDA event irqchip ops codes. 4. Remove Conor's review tag due to whole patch have been changed. patch16: Also move the new added PLDA event codes. patch17: Add plda host init and deinit function only. v12: patch17: modify the commit message and add starfive review tag. Add PCIE_RESET_CONFIG_DEVICE_WAIT_MS to patch 19. patch20: Add disable runtime pm function in starfive_pcie_remove() Add "depens on ARCH_STARFIVE || COMPILE_TEST" in Starfive PCie Kconfig v11: check and modify some commit messages again. All the codes are the same with v10. v10: All the commit message set to fit in 75 columns. All the codes fit in less than 80 colunms. patch 14: Commit message changes suggested by Conor. patch 20: Add 100 ms delay macro to pci.h generic phy pointer related codes moving to pcie-starfive.c This patch Change pcie-starfive only, bus_ops move to patch 16. Some Codes changes suggested by Bjorn. v9: v8 patch 10 squash to v9 patch 12, v8 patch 18 squash to v9 patch 16. patch 4 - 16: Add new review tags and add more accurate commit messages. patch 17: move the plda_pcie_host_init/deinit from patch 19. Make plda driver become to whole driver. v8: The patch description in cover-letter has been changed. v7 patch 4 split to v8 patch 4 - 6. (It is patches about re-use pcie host data structure, new patches just contain one function modification. It is more reguluar and easier to review). patch 7- 9: modify the commit messages and add reason of modifcation. patch10- 16 : Add review tag and add more commit messages to declear the reason of modifying the codes. patch17: plda_handle_events() using bit mask macro. The function are easier to read. v7: patch17: fix the build warning. patch20: Some format changes (Emil's comment) patch21: change the pcie node sequences by alphabetical delete the "interupt-parent" in pcie node. v6: v5 patch 4 split to patch 4 -9. New patches just contain one function modification. It is more reguluar. patch 9: Just move the two setup functions only patch 19 : draw a graph of PLDA local register, make it easier to review the codes. v5 patch 7 split to patch 10- 16. Each patch just contain one function modification. It is more regular. patch 10: rename IRQ related functions. patch 11 - 15 : modify the events codes, total five patch. patch 16: move IRQ related functions to pcie-plda-host.c patch 20- 21 using "linux,pci-domain" dts setting. Kevin Xie (1): PCI: Add PCIE_RESET_CONFIG_DEVICE_WAIT_MS waiting time value Minda Chen (20): dt-bindings: PCI: Add PLDA XpressRICH PCIe host common properties PCI: microchip: Move pcie-microchip-host.c to plda directory PCI: microchip: Move PLDA IP register macros to pcie-plda.h PCI: microchip: Add bridge_addr field to struct mc_pcie PCI: microchip: Rename two PCIe data structures PCI: microchip: Move PCIe host data structures to plda-pcie.h PCI: microchip: Rename two setup functions PCI: microchip: Change the argument of plda_pcie_setup_iomems() PCI: microchip: Move setup functions to pcie-plda-host.c PCI: microchip: Rename interrupt related functions PCI: microchip: Add num_events field to struct plda_pcie_rp PCI: microchip: Add request_event_irq() callback function PCI: microchip: Add INTx and MSI event num to struct plda_event PCI: microchip: Add get_events() callback and add PLDA get_event() PCI: microchip: Add event irqchip field to host port and add PLDA irqchip PCI: microchip: Move IRQ functions to pcie-plda-host.c PCI: plda: Add host init/deinit and map bus functions dt-bindings: PCI: Add StarFive JH7110 PCIe controller PCI: starfive: Add JH7110 PCIe controller riscv: dts: starfive: add PCIe dts configuration for JH7110 .../bindings/pci/microchip,pcie-host.yaml | 55 +- .../pci/plda,xpressrich3-axi-common.yaml | 75 ++ .../bindings/pci/starfive,jh7110-pcie.yaml | 120 ++++ MAINTAINERS | 19 +- .../jh7110-starfive-visionfive-2.dtsi | 64 ++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 86 +++ drivers/pci/controller/Kconfig | 9 +- drivers/pci/controller/Makefile | 2 +- drivers/pci/controller/plda/Kconfig | 30 + drivers/pci/controller/plda/Makefile | 4 + .../{ => plda}/pcie-microchip-host.c | 614 ++-------------- drivers/pci/controller/plda/pcie-plda-host.c | 656 ++++++++++++++++++ drivers/pci/controller/plda/pcie-plda.h | 265 +++++++ drivers/pci/controller/plda/pcie-starfive.c | 462 ++++++++++++ drivers/pci/pci.h | 16 + 15 files changed, 1861 insertions(+), 616 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/plda,xpressrich3-axi-common.yaml create mode 100644 Documentation/devicetree/bindings/pci/starfive,jh7110-pcie.yaml create mode 100644 drivers/pci/controller/plda/Kconfig create mode 100644 drivers/pci/controller/plda/Makefile rename drivers/pci/controller/{ => plda}/pcie-microchip-host.c (54%) create mode 100644 drivers/pci/controller/plda/pcie-plda-host.c create mode 100644 drivers/pci/controller/plda/pcie-plda.h create mode 100644 drivers/pci/controller/plda/pcie-starfive.c base-commit: 33cc938e65a98f1d29d0a18403dbbee050dcad9a
Comments
Minda Chen <minda.chen@starfivetech.com> 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
> Minda Chen <minda.chen@starfivetech.com> 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) > Hi, Kevin: Could you please provide the manufacturer and model of the M.2 NVMe SSD you tested? > 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
Kevin Xie <kevin.xie@starfivetech.com> writes: >> Minda Chen <minda.chen@starfivetech.com> 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) >> > > Hi, Kevin: > Could you please provide the manufacturer and model of the M.2 NVMe SSD > you tested? I have a 256 Gb Silicon Power P34A60 M.2 NVMe SSD (part number: sp256gbp34a60m28) Also for reference, I tested the same SSD on another arm platform (Khadas VIM3) and it works fine. Kevin