Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp781798rwl; Thu, 10 Aug 2023 01:11:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/rZimi2m6c2XDJ58TPBgLpNTxATR8buGuF0lj4gY4DZD1inX1I7eRoyqkXdwrY612bFbk X-Received: by 2002:a05:6402:12d0:b0:522:216a:28d4 with SMTP id k16-20020a05640212d000b00522216a28d4mr1495081edx.7.1691655080890; Thu, 10 Aug 2023 01:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691655080; cv=none; d=google.com; s=arc-20160816; b=Rd9DgBdFl9TjeSqd6PJvZjezM779KR6nisFtH1vlD1dfJBwkeVHozXZWEW+DBfyAZ1 rAwUknRHvZe1LPnbsw+2WxeisWm1YzSVCl/yRta2BRKXzWkMROCBLvg8EyULdblghLeo PcSomxyHeOHUwR9tr6KDA5hgOj5vY1Oqhz//a7tt3gLNNzCeZrSdZeG/Ac/um3HAn1GK esbsM1c3pNNQ6vKeEJiQvREgFAYZ4ueM3F6K9VywIdri7XKqG349n6kORO4PDMAIj+ka KW9tkvXTq1DLZZGEwyjyABFhunim1fW2FII/x2mp8vB0E1P3WOVakvWV622XwIz/Po4c 1mLw== 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=T6i/Wn02lM70KbXIyJRmLDlkNKhjpUDpd/o3dyUm4vc=; fh=IQbEadYrHLfsVKqlTMCTaDJ/yFRefTlibVge5QKPuTY=; b=gqg02YsUL4enEwiMpl5/Y25Yy2fonTcH2EU7ss9fhiklc5OZuYD1vaVdID6smbitbG in3O26w6/StBba7rPMuGqG4eOox5+BbBO+LI7EUh45upzOrL+kCaIp3FjBhrErRI0YBc pwqESK1Pj/nFOI+BOOOoLagkfxBwTDfodpjL8AgFOqTI0zu1eVn9tZkLVhz+Ywb60itP jmoImZV2wTRm2lJYNyag8K2K18EObK3haWHbKdQ4sjxm36mYDxxmsXjJTmXleYdBGxSC XlzvkGhDbhI9PZ5kKgDiH7jRjsoBTRBqMR3ApD5+77n5DiSqzRFuBwkC3G8U2p62RSOd XZIw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020aa7da8b000000b0051e0d7f1e3esi940932eds.419.2023.08.10.01.10.56; Thu, 10 Aug 2023 01:11:20 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232651AbjHJHrJ (ORCPT + 99 others); Thu, 10 Aug 2023 03:47:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233094AbjHJHq5 (ORCPT ); Thu, 10 Aug 2023 03:46:57 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66FA31702; Thu, 10 Aug 2023 00:46:54 -0700 (PDT) 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 DEBE78565; Thu, 10 Aug 2023 15:46:47 +0800 (CST) Received: from EXMBX062.cuchost.com (172.16.6.62) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 10 Aug 2023 15:46:47 +0800 Received: from starfive-sdk.starfivetech.com (171.223.208.138) by EXMBX062.cuchost.com (172.16.6.62) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 10 Aug 2023 15:46:46 +0800 From: Samin Guo To: , , CC: Emil Renner Berthing , Emil Renner Berthing , Conor Dooley , "Rob Herring" , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Samin Guo , Hal Feng Subject: [-next v1 0/1] Fix StarFive JH7110 gmac TCP RX speed issue Date: Thu, 10 Aug 2023 15:46:45 +0800 Message-ID: <20230810074646.19076-1-samin.guo@starfivetech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX062.cuchost.com (172.16.6.62) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS 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 This patch fixes the StarFive JH7110 gmac TCP RX slow issue. And it has been tested on VisionFive 2. Here is the result of the test (iperf3): Before: # iperf3 -s ----------------------------------------------------------- Server listening on 5201 (test #1) ----------------------------------------------------------- Accepted connection from 192.168.1.4, port 47604 [ 5] local 192.168.1.3 port 5201 connected to 192.168.1.4 port 47612 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 36.3 MBytes 305 Mbits/sec [ 5] 1.00-2.00 sec 35.6 MBytes 299 Mbits/sec [ 5] 2.00-3.00 sec 36.5 MBytes 306 Mbits/sec [ 5] 3.00-4.00 sec 36.5 MBytes 306 Mbits/sec [ 5] 4.00-5.00 sec 35.7 MBytes 300 Mbits/sec [ 5] 5.00-6.00 sec 35.4 MBytes 297 Mbits/sec [ 5] 6.00-7.00 sec 37.1 MBytes 311 Mbits/sec [ 5] 7.00-8.00 sec 35.6 MBytes 298 Mbits/sec [ 5] 8.00-9.00 sec 36.4 MBytes 305 Mbits/sec [ 5] 9.00-10.00 sec 36.3 MBytes 304 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate [ 5] 0.00-10.00 sec 361 MBytes 303 Mbits/sec receiver After: # iperf3 -s ----------------------------------------------------------- Server listening on 5201 (test #1) ----------------------------------------------------------- Accepted connection from 192.168.1.4, port 47710 [ 5] local 192.168.1.3 port 5201 connected to 192.168.1.4 port 47720 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 111 MBytes 932 Mbits/sec [ 5] 1.00-2.00 sec 111 MBytes 934 Mbits/sec [ 5] 2.00-3.00 sec 111 MBytes 934 Mbits/sec [ 5] 3.00-4.00 sec 111 MBytes 934 Mbits/sec [ 5] 4.00-5.00 sec 111 MBytes 934 Mbits/sec [ 5] 5.00-6.00 sec 111 MBytes 935 Mbits/sec [ 5] 6.00-7.00 sec 111 MBytes 934 Mbits/sec [ 5] 7.00-8.00 sec 111 MBytes 935 Mbits/sec [ 5] 8.00-9.00 sec 111 MBytes 934 Mbits/sec [ 5] 9.00-10.00 sec 111 MBytes 934 Mbits/sec [ 5] 10.00-10.00 sec 167 KBytes 933 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate [ 5] 0.00-10.00 sec 1.09 GBytes 934 Mbits/sec receiver For more information and support, you can visit RVspace wiki[1]. [1]: https://wiki.rvspace.org/ Samin Guo (1): riscv: starfive: jh7110: Fix GMAC configuration arch/riscv/boot/dts/starfive/jh7110.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.1