From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C565C636D3 for ; Fri, 3 Feb 2023 03:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:CC:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Cp/yagx813VVXJqWnhMQFJFJGQrgAYSapzVGE8gOCBc=; b=1kK87y15AOFGVd 71hJ5mK2UKLWYTNgL/AoAtNzHe5Ye8eCzetTeHNT9OWqi8lcv/nSBCNxwYhBz2x9xnfBeLJHnDMu+ zKt2UphJ3B2oZFqFhTkcQWhWT5dwaNoxQq3o98x7QpeMIp+VOKB6o43wVTt7LKapbiWlrHwsrGaWe 3VUlrFdfUywV0rD0SbJ+MQDjPpBdqWrSgUEf5DBmGOkDyHHHwRUYjoJP8RbV1Y6omdIaN46Rr3Koy bgtPxGtoerCI8QPusmm7D4JnkBcOeVXV0akBK6hxwfOnlyTSv1AmV2rG5D3hiXw2kpYHropgdTsKQ oEXwGZjg5Cd7/grtOwwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNmMM-0008ff-AQ; Fri, 03 Feb 2023 03:03:30 +0000 Received: from fd01.gateway.ufhost.com ([61.152.239.71]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNmMH-0008bL-9o for linux-riscv@lists.infradead.org; Fri, 03 Feb 2023 03:03:29 +0000 Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id EA3B124E167; Fri, 3 Feb 2023 11:02:56 +0800 (CST) Received: from EXMBX073.cuchost.com (172.16.6.83) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 3 Feb 2023 11:02:56 +0800 Received: from [192.168.120.49] (171.223.208.138) by EXMBX073.cuchost.com (172.16.6.83) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 3 Feb 2023 11:02:55 +0800 Message-ID: <81217dc9-5673-f7eb-3114-b39de8302687@starfivetech.com> Date: Fri, 3 Feb 2023 11:02:54 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v4 0/7] Add Ethernet driver for StarFive JH7110 SoC Content-Language: en-US To: Conor Dooley CC: , , , , "David S . Miller" , Eric Dumazet , "Jakub Kicinski" , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Richard Cochran , Andrew Lunn , Heiner Kallweit , Peter Geis References: <20230118061701.30047-1-yanhong.wang@starfivetech.com> From: yanhong wang In-Reply-To: X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX073.cuchost.com (172.16.6.83) X-YovoleRuleAgent: yovoleflag X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230202_190325_516733_515EAF31 X-CRM114-Status: GOOD ( 19.90 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On 2023/1/19 7:21, Conor Dooley wrote: > Hey Yanhong! > > On Wed, Jan 18, 2023 at 02:16:54PM +0800, Yanhong Wang wrote: >> This series adds ethernet support for the StarFive JH7110 RISC-V SoC. The series >> includes MAC driver. The MAC version is dwmac-5.20 (from Synopsys DesignWare). >> For more information and support, you can visit RVspace wiki[1]. >> >> This patchset should be applied after the patchset [2], [3], [4]. >> [1] https://wiki.rvspace.org/ >> [2] https://lore.kernel.org/all/20221118010627.70576-1-hal.feng@starfivetech.com/ >> [3] https://lore.kernel.org/all/20221118011108.70715-1-hal.feng@starfivetech.com/ >> [4] https://lore.kernel.org/all/20221118011714.70877-1-hal.feng@starfivetech.com/ > > I've got those series applied, albeit locally, since they're not ready, > but I cannot get the Ethernet to work properly on my board. > I boot all of my dev boards w/ tftp, and the visionfive2 is no exception. > The fact that I am getting to the kernel in the first place means the > ethernet is working in the factory supplied U-Boot [1]. > > However, in Linux this ethernet port does not appear to work at all. > The other ethernet port is functional in Linux, but not in the factory > supplied U-Boot. > > Is this a known issue? If it's not, I'll post the logs somewhere for > you. In case it is relevant, my board is a v1.2a. > > Thanks, > Conor. > > 1 - U-Boot 2021.10 (Oct 31 2022 - 12:11:37 +0800), Build: jenkins-VF2_515_Branch_SDK_Release-10 No, this is not a issue. These patches need to rely on the yt8531 phy driver of motorcomm company and the corresponding clock delay configuration to work normally, and the yt8531 phy driver is being submitted. I have applied the motorcomm patchs during my test on board v1.2b, so the ethernet cannot work without the application of the motorcomm patchs. For the patchs of yt8531, see [1] 1 - https://patchwork.kernel.org/project/netdevbpf/cover/20230202030037.9075-1-Frank.Sae@motor-comm.com/ Thanks, Yanhong. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05C1BC636D4 for ; Fri, 3 Feb 2023 03:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232301AbjBCDEe (ORCPT ); Thu, 2 Feb 2023 22:04:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232330AbjBCDEc (ORCPT ); Thu, 2 Feb 2023 22:04:32 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0448F222D2; Thu, 2 Feb 2023 19:04:05 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id EA3B124E167; Fri, 3 Feb 2023 11:02:56 +0800 (CST) Received: from EXMBX073.cuchost.com (172.16.6.83) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 3 Feb 2023 11:02:56 +0800 Received: from [192.168.120.49] (171.223.208.138) by EXMBX073.cuchost.com (172.16.6.83) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 3 Feb 2023 11:02:55 +0800 Message-ID: <81217dc9-5673-f7eb-3114-b39de8302687@starfivetech.com> Date: Fri, 3 Feb 2023 11:02:54 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v4 0/7] Add Ethernet driver for StarFive JH7110 SoC Content-Language: en-US To: Conor Dooley CC: , , , , "David S . Miller" , Eric Dumazet , "Jakub Kicinski" , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Richard Cochran , Andrew Lunn , Heiner Kallweit , Peter Geis References: <20230118061701.30047-1-yanhong.wang@starfivetech.com> From: yanhong wang In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX073.cuchost.com (172.16.6.83) X-YovoleRuleAgent: yovoleflag Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/1/19 7:21, Conor Dooley wrote: > Hey Yanhong! > > On Wed, Jan 18, 2023 at 02:16:54PM +0800, Yanhong Wang wrote: >> This series adds ethernet support for the StarFive JH7110 RISC-V SoC. The series >> includes MAC driver. The MAC version is dwmac-5.20 (from Synopsys DesignWare). >> For more information and support, you can visit RVspace wiki[1]. >> >> This patchset should be applied after the patchset [2], [3], [4]. >> [1] https://wiki.rvspace.org/ >> [2] https://lore.kernel.org/all/20221118010627.70576-1-hal.feng@starfivetech.com/ >> [3] https://lore.kernel.org/all/20221118011108.70715-1-hal.feng@starfivetech.com/ >> [4] https://lore.kernel.org/all/20221118011714.70877-1-hal.feng@starfivetech.com/ > > I've got those series applied, albeit locally, since they're not ready, > but I cannot get the Ethernet to work properly on my board. > I boot all of my dev boards w/ tftp, and the visionfive2 is no exception. > The fact that I am getting to the kernel in the first place means the > ethernet is working in the factory supplied U-Boot [1]. > > However, in Linux this ethernet port does not appear to work at all. > The other ethernet port is functional in Linux, but not in the factory > supplied U-Boot. > > Is this a known issue? If it's not, I'll post the logs somewhere for > you. In case it is relevant, my board is a v1.2a. > > Thanks, > Conor. > > 1 - U-Boot 2021.10 (Oct 31 2022 - 12:11:37 +0800), Build: jenkins-VF2_515_Branch_SDK_Release-10 No, this is not a issue. These patches need to rely on the yt8531 phy driver of motorcomm company and the corresponding clock delay configuration to work normally, and the yt8531 phy driver is being submitted. I have applied the motorcomm patchs during my test on board v1.2b, so the ethernet cannot work without the application of the motorcomm patchs. For the patchs of yt8531, see [1] 1 - https://patchwork.kernel.org/project/netdevbpf/cover/20230202030037.9075-1-Frank.Sae@motor-comm.com/ Thanks, Yanhong.