Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp740254rdg; Thu, 10 Aug 2023 19:35:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIIOlfTWN+UsjAAXcRUBd8RKJDA82MfaETOhucgdsWhAdfFZPLnkj05YEVNh3LNxsAqFVU X-Received: by 2002:a05:6402:487:b0:522:c0ea:15f with SMTP id k7-20020a056402048700b00522c0ea015fmr477337edv.41.1691721305846; Thu, 10 Aug 2023 19:35:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691721305; cv=none; d=google.com; s=arc-20160816; b=X1zVtxie5AfmLkM9b7CX1TK8LNa6u2/hjj/KALRn0DeyOJ0ouFe2DFRCudt0GRc4Kg W43BWkscVNzZb1a7RN0jaKD+8v5hkLpefmzUmznYLyfLjGCY64Icw15kAayqTmBxnUOV QQmobsLkQbIyseLYUxg9SzBW6zxCW3MEraXoCZjErlM5A2SSTd7DC46otXbPPI2EIXsB kS5Kx5XiuvvAjpNHweAQp0GbzK5oXSkC+d2im9Vcx924x3RlUhxmFGVgh1K+llrLHje/ cHDGe35WUP/XPeP71YGV0dqF58boBbF+aUFiE9m4BtT1RbkBVbsz3lSGpHoaKML0qVaw Yr+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=tsBSKBnKEWpq/o76Q/F5Auc0WVJAP2ase6mN4HivACQ=; fh=NbVh0n/1yThHWyFx7pdmEoKldAoYz5shwydGQnFvOw0=; b=KKBWjdqicTrd9rjpptt+Okb4Kf4avn7e3zcLe29F3T7b8EVnpbsa9jXqPtfngziYvN sgXUlXVH8EZ1L72kDj7v8ZTSW3k/fYNNDWJTy30wIJFLQuWI14rfrzqeg1ZInvvZCb2h UGx8pESfcWFlesoWyKRD/hjhFLkwc5qDYKFPghfx3u1YLX7kXOZCQrhOPKtC0SQAi2u1 W+Fv+jyWouvAQQc4Rd/UKL1LEM7bA4hJDHP0psE8BLYd1mgQxKKy83Ml3KNhGCdaCWhD vrTLZ3VwCHDH0/d0u9too1t8CBoqyuQMsAqw1dvnGHnW3+gOV9tgRO+sR+1mks9kGV2I O7+A== 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 n4-20020aa7c684000000b0052340601105si2538122edq.604.2023.08.10.19.34.42; Thu, 10 Aug 2023 19:35:05 -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 S229706AbjHKBio (ORCPT + 99 others); Thu, 10 Aug 2023 21:38:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231285AbjHKBim (ORCPT ); Thu, 10 Aug 2023 21:38:42 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B4CB10D; Thu, 10 Aug 2023 18:38:40 -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 99D5880C7; Fri, 11 Aug 2023 09:38:26 +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; Fri, 11 Aug 2023 09:38:27 +0800 Received: from [192.168.120.43] (171.223.208.138) by EXMBX062.cuchost.com (172.16.6.62) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 11 Aug 2023 09:38:25 +0800 Message-ID: Date: Fri, 11 Aug 2023 09:38:23 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [-next v1 1/1] riscv: dts: starfive: jh7110: Fix GMAC configuration Content-Language: en-US To: Emil Renner Berthing CC: , , , Emil Renner Berthing , "Conor Dooley" , Rob Herring , "Krzysztof Kozlowski" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Hal Feng References: <20230810074646.19076-1-samin.guo@starfivetech.com> <20230810074646.19076-2-samin.guo@starfivetech.com> From: Guo Samin In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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=-4.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 On 2023/8/10 19:28:23, Emil Renner Berthing wrote: > On Thu, 10 Aug 2023 at 09:46, Samin Guo wrote: >> >> 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>; > > nit: this is a limit, so presumably counting things and not an address > or bitmask, so I'd prefer decimal numbers here, eg <15>. > > It works fine either way, so > Reviewed-by: Emil Renner Berthing Thanks Esmil, that's right. I refer to examples of snps,dwmac.yaml, so I use 0xf... Best regards, Samin > >> 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 >>