Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp982545rwl; Thu, 10 Aug 2023 04:56:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUzKxR/Hyh34MQrqmmlrI+tj+CxZ9j+YbZkYmwokeOyOL4TLspdCsHJ5o07BNK4CjJrSv4 X-Received: by 2002:a17:90b:1c11:b0:268:2658:827d with SMTP id oc17-20020a17090b1c1100b002682658827dmr1577198pjb.36.1691668567897; Thu, 10 Aug 2023 04:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691668567; cv=none; d=google.com; s=arc-20160816; b=ZYmKjixaP3KGzSyOcv08y6PWAkcVFISqwfme/zeVEz/PETXoEw5OFZC2BEAvqtuVlg qysFsO1XCdtQ2fmCvV1/aBkOACkOfwpMZgDYH8MyDwnd9z1Yv7GGtuBrUTJ6dvhSpPvt 5KqTEsMpeAcdef/gmYnPjUHOxKMh82GPHpCZnaAN06XXQgmh3JaY7eCAQGSndECLWj31 3yjCnWF+uHoXWrwHnGhYdWPrbzX3LpMyBg+N8ANMFOHeoOgL2MtgafHLDgRK6MBXKgky Bg56MqFwtUjGNp7rn1OyHMaybQmenkuXmSdUsxhYDQ+dOeYE3iE/aPuDcXtVROcmJwh7 hjTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TRU6tUd9wDUUaUwwFM5Bjzb7u7hecXj9L7oTyXsIeCA=; fh=BQ9QBs5iS+RLFyJKIQBs3R2gJb7rEF7TV/ErhGX9Ex4=; b=iStvPmesgy9PMYcUcVXeG1X6ntT7LhWKqBAwEhyCWv5HKFCz+aPQSZ7bSY8op8fBEk I616jpGgUsE9CvS+Z4+Wd1qMq4UnO8ixqI+JiysR5TyvcNyMOO4HH+XKo+/aMHWjQUlp DZ8MnmHZuEMuTPtBhr5xXcZ3hrMfpRs6Rk0WK63+naian/O3JISJpmWyyr2TD5cjB9/3 oUqb/FVSv/+xhRWsYsArn0/wepgBDGTAix4aQGHA6kpWexpiOMat13FIV9TRg1NeMUyV jSNOucjVsTMepowZccLl3+p4fqIlZ7tDj8JAW4AxdGHJOdIyA/77OPsvg+CToEIfQuAR fW+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=kP3sNWpd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z13-20020a17090abd8d00b002681ffd2f97si1408553pjr.90.2023.08.10.04.55.55; Thu, 10 Aug 2023 04:56:07 -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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=kP3sNWpd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234187AbjHJL2o (ORCPT + 99 others); Thu, 10 Aug 2023 07:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234819AbjHJL2n (ORCPT ); Thu, 10 Aug 2023 07:28:43 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB261268D for ; Thu, 10 Aug 2023 04:28:41 -0700 (PDT) Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 1DBCB420B9 for ; Thu, 10 Aug 2023 11:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1691666920; bh=TRU6tUd9wDUUaUwwFM5Bjzb7u7hecXj9L7oTyXsIeCA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=kP3sNWpdI0KPK4+doIR2B4Qsxug9GLeATIPUfF6uHn1gH+muSAHUqirGMCdhkL7TV 56kU9NRgHAA3g7oao/s9daaWkU9yyGJ1M64sqlTIqcM/2ESdHvpR0/TRSkEwQLx36U Jlf7XNBH6SynoJbRcOueytQt5NFtb6gcMY67hbes2zD5cPvFzFUHw8K3SQRnWNH78P wNz/avgWcljFw2DRTURgPHv+QGKAwe5cyQiIXVvdMfmy5dLbFFBfpgV0eB+IBy6kIJ zLFyAwQpt7CtQlmYgOGYBAc6fG2axmi3LvRs715zDV9oSPfGQUTHt1+L7w5eRdBhrY RT25/V4XZEIaw== Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-40fdb989957so10943951cf.3 for ; Thu, 10 Aug 2023 04:28:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691666919; x=1692271719; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TRU6tUd9wDUUaUwwFM5Bjzb7u7hecXj9L7oTyXsIeCA=; b=DyUeXVicWPqdOTMysnV/xwQosPfeviDZuZNl/KZxBUg1oqo1Cwpjtbj+Rx0UNkk0Do mYwZFi1eylurmMCXfkLaMaeOK/jZlMpz5uhB878nXDimQ6Oux1k+uAGeb24ekJJAQgU3 9dOLtRTpNO72ZRKDDj7zniA9jRAKbT9qAW0TYDUitqhY0ot5s41MOAg0Tx83OlHy72u+ vBnsNW3t8yvCRReCrWl1wieOAHD382WlOKKVBlOjHEoG4KI7t7Dg3IvxaqSzMSnMtyg7 nIk6cFAvjVQFUKErUowVpIURjbxwRig8xMGOvOb2w6/PzxcWH3TXX2tQLqmaUyhoXFIJ vqBg== X-Gm-Message-State: AOJu0YxYiNJkfTt2s02O6trzCx0O/YC6q1BHRd8pdb8ynd1yzwlBQdYj PuJ+u3ITn867lPnMW3o1tueWgPwizLgl2t+OLaz6wwVr4a16PbkLvtBELMbydHdsROpvtHGFKk8 76WdQC+f58SNF/lLYtxZ1dVgtrVtM1QKf2/o9Eq7ljGKpc/1/yL9cztexqp8UqsY1pg== X-Received: by 2002:a05:622a:2c1:b0:40f:c669:a130 with SMTP id a1-20020a05622a02c100b0040fc669a130mr2947881qtx.36.1691666919031; Thu, 10 Aug 2023 04:28:39 -0700 (PDT) X-Received: by 2002:a05:622a:2c1:b0:40f:c669:a130 with SMTP id a1-20020a05622a02c100b0040fc669a130mr2947865qtx.36.1691666918799; Thu, 10 Aug 2023 04:28:38 -0700 (PDT) MIME-Version: 1.0 References: <20230810074646.19076-1-samin.guo@starfivetech.com> <20230810074646.19076-2-samin.guo@starfivetech.com> In-Reply-To: <20230810074646.19076-2-samin.guo@starfivetech.com> From: Emil Renner Berthing Date: Thu, 10 Aug 2023 13:28:23 +0200 Message-ID: Subject: Re: [-next v1 1/1] riscv: dts: starfive: jh7110: Fix GMAC configuration To: Samin Guo Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Emil Renner Berthing , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Hal Feng Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 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 > 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 >