Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp780730rwl; Thu, 10 Aug 2023 01:10:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHloXyrkSgVPJsUQy7SwIfoK4eyhjihYLS1+zTgng5jBLFXmxy86/r0mNWiR9F/UAxA/XIR X-Received: by 2002:a05:6512:464:b0:4fb:9f93:365f with SMTP id x4-20020a056512046400b004fb9f93365fmr1217052lfd.38.1691655006571; Thu, 10 Aug 2023 01:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691655006; cv=none; d=google.com; s=arc-20160816; b=QfnyuCzIy+fc+m8ER3PodoUhy2yb4R5IKb2qr9Jy7PUJx0OmzdfOUN7FwXnlsMOmC+ rJoTDKf1iveH/tBqf5AFSmFroDK1PZi8SPKu2UkeAtH2k+ip2gfXW8lf2XU/TNDNaLOe B+xrMg5iduv5g4e8YME37UbVtof+Y1KeQJTGy/Ge164j1GDdxwWTsDBsyauzfnwj5JKT jWsbfANMGJjSd0VtGTbr2QFHMoeJYUhazshIKV1oIxNX+jLvwPTGMKC1Rf6LXIxu50Jx 9kXMji1ITB/OmSBi5QD8+U5v8zRvUu1B/sm8pUv8uaIX9YSLxp/7jCm/ZS0tBMbP4SjL ZiMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=PTtJgdRuMebOjNpCRD4E26ym1xE7wIxMufXk/ngSSNo=; fh=IQbEadYrHLfsVKqlTMCTaDJ/yFRefTlibVge5QKPuTY=; b=B0HHGu2T0uD2bWLFoF9wLnh8b/C235nlwOKnxgh4fF2po5RbDLTCP11Cy/Gv00pzau Py+3thVew7aFdQ0wFBPifF9HjPZj9p1KQZwu1b6QqU0IS9nQg946Efd09dTnKalK0HBu 0MOrUIxNdKQ9hNDU2wQPxe051grpGZGUILd1r45Ddp1l/Xq6UDzFaG9wbO7tC384HSsP 98L9ZJjrrTuQ+x0dh6lrjkY9SF1hz5jOUeGKybalSZtAFNbfdN7+fnHfq6aEwUTv67Y/ tvNXvzOGdL2LRTJSdrI0a+en1sgNirD8Om15pRwCaINPpNMX0R01RYlH30Qm7DaOVm+O aagA== 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 l20-20020a056402029400b00522aa0dd077si926190edv.502.2023.08.10.01.09.41; Thu, 10 Aug 2023 01:10:06 -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 S233094AbjHJHrK (ORCPT + 99 others); Thu, 10 Aug 2023 03:47:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232960AbjHJHq5 (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 F15B12127; Thu, 10 Aug 2023 00:46:51 -0700 (PDT) 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 fd01.gateway.ufhost.com (Postfix) with ESMTP id A31FA8567; Thu, 10 Aug 2023 15:46:48 +0800 (CST) Received: from EXMBX062.cuchost.com (172.16.6.62) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 10 Aug 2023 15:46:48 +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:47 +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 1/1] riscv: dts: starfive: jh7110: Fix GMAC configuration Date: Thu, 10 Aug 2023 15:46:46 +0800 Message-ID: <20230810074646.19076-2-samin.guo@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230810074646.19076-1-samin.guo@starfivetech.com> References: <20230810074646.19076-1-samin.guo@starfivetech.com> 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 Fixed configuration to improve the speed of TCP RX. 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 Reviewed-by: Hal Feng Signed-off-by: Samin Guo --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index a608433200e8..76884cf373bf 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -318,8 +318,8 @@ stmmac_axi_setup: stmmac-axi-config { snps,lpi_en; - snps,wr_osr_lmt = <4>; - snps,rd_osr_lmt = <4>; + snps,wr_osr_lmt = <0xf>; + snps,rd_osr_lmt = <0xf>; snps,blen = <256 128 64 32 0 0 0>; }; @@ -839,7 +839,7 @@ rx-fifo-depth = <2048>; tx-fifo-depth = <2048>; snps,multicast-filter-bins = <64>; - snps,perfect-filter-entries = <8>; + snps,perfect-filter-entries = <256>; snps,fixed-burst; snps,no-pbl-x8; snps,force_thresh_dma_mode; @@ -870,7 +870,7 @@ rx-fifo-depth = <2048>; tx-fifo-depth = <2048>; snps,multicast-filter-bins = <64>; - snps,perfect-filter-entries = <8>; + snps,perfect-filter-entries = <256>; snps,fixed-burst; snps,no-pbl-x8; snps,force_thresh_dma_mode; -- 2.17.1