Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8077719rwi; Tue, 25 Oct 2022 02:05:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM444RN/9DiDRqARTyeIe+VkJSHC7hqsAnYkoX20U/neKRQsJxqlDW30mnjn0nogt4KcQmlp X-Received: by 2002:a05:6402:50d4:b0:461:e349:56b2 with SMTP id h20-20020a05640250d400b00461e34956b2mr6455307edb.17.1666688712801; Tue, 25 Oct 2022 02:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666688712; cv=none; d=google.com; s=arc-20160816; b=IZspLkSu6QkASWWN8qDx+tFTBvE0QlyrJSctesyes9X1OhtQhcLgtEsBAcgBT9Kfwv 66tkWDS6RXteOPBBdegkCSWVuEx93XvF+khomd5CESP3zljfZ0uN0uVgKLKMtSydqy5n YLkS4tTLCbOlKNeGhT1IBYKMAr9Cpp5t/X7HBJjWn3v/VI57PMHXYVHV+v+CDIi480Mq cwPqCJzXUBCYlvrV2UfpkBvfZMAwAEIrgL/KrowFavgsr995uuKycQEDGTXRP9CAHa+G WOq+YRFUGGsURBMMruPkz4RTBTCEn8hMZaXnM1Hmu8KXs3lvxG1rVeo+xvQdyS5Utq9p 7IlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=dAXgF0Vw75OM4m93jZheeRAI+t1Cyx6a/MIOmAcmuSg=; b=tg7wo77QGDCsgDxC66HHtsG/Em5jgb+izPUMarseJ/rhbUBT56lkm35VWuFX2IJiJA cqpQux2jaqglcUoO4rYtP3oq7E3MT3HXO4I3eThj4YSKEHbaUODhEGENhsAaE8M95rXM h4MLsUtQy5alE6+yGPpSsSxo9vRuLEX6OE/f8rfwL3c0FbUG093m47UvzmycRrbjHLss UNETJFCt9q9H13mjTAbHycAGHyoO4laOmyyPmO+lr5+pA1SCfzIdHtP291K7DwZeTIN0 V9r1npJ2ysZXKZO9GFPbnGfqQjX9ElOYXTW1KPgTNBw3axvcMA3YkfmFGNleH7ch5VdC BLsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=dBBSXeoY; 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 a10-20020a1709063e8a00b007a1b3e38293si1834021ejj.265.2022.10.25.02.04.41; Tue, 25 Oct 2022 02:05:12 -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=@gmx.net header.s=badeba3b8450 header.b=dBBSXeoY; 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 S232138AbiJYIEF (ORCPT + 99 others); Tue, 25 Oct 2022 04:04:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232140AbiJYIEC (ORCPT ); Tue, 25 Oct 2022 04:04:02 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B607118756; Tue, 25 Oct 2022 01:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666685003; bh=Z2HSpaRQj29O9zp94GLJhtJEeTFRJ0EOqD6UEleaf74=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=dBBSXeoY3Eqyxvo9sdp3Ai6RmiwHSGeIu5/wMEMkZpNfD+/i6yETtWD4FTkb0nylP QwcUaWUnmc7zPFNdLdjGFQZighJpw8STFiM7lgRWTj4qE2mAjXoT2N1fAFuPt5447T dLYK7I5fLpBEexB4XX4DYXqc7TbsiajwJk0XV8kw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [217.61.152.57] ([217.61.152.57]) by web-mail.gmx.net (3c-app-gmx-bap29.server.lan [172.19.172.99]) (via HTTP); Tue, 25 Oct 2022 10:03:23 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: "Russell King (Oracle)" Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, Alexander Couzens , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: Re: [PATCH v2] net: mtk_sgmii: implement mtk_pcs_ops Content-Type: text/plain; charset=UTF-8 Date: Tue, 25 Oct 2022 10:03:23 +0200 Importance: normal Sensitivity: Normal In-Reply-To: References: Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:53WuUgAivhzjnbgTyCQ6ngUqS8VdgbK75ZA8qrv0jKAGadej8zg5bKvaxG2slWsUqvlar YQhB/6zRVpxflislPQnApGvGw85ekSAkh5GbGVLFfcvFYYJ3kT3dj+MObr31CFyop6B+UoLTcN5T X/+OXXbcWykkmlaL3bJX+GzK4WIEgjKnk+wBU7IS9ozKMXzRBMnQyaJC2VvkrnQNooxu5anmHshB 8XpsMOb6k0zc3VtcwgW6jHQ3VnZqzIbOppgtq+tv0rM5NMg462jQpenEXY1s/SQPQRrHahfipUNZ Jo= X-UI-Out-Filterresults: notjunk:1;V03:K0:mxDCYmMzkp0=:wOIllALP4nys1rPLXv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zwQZKapusMeuVRKtC3 UzhbyNXLn3HUpo6mYPopa2L7lRNYMyHhujWYf8OzIf/8EqC7KB+t7dn9BHB2i5hheOOIGUDN/ xwmvILfAMz42LQgi/HoKQtnqWO5Sh9I9lgwUAHdBuVEc0hxsEIOyKWKJO7jKlLbpp1UGWXuLt 3v+BZwIJRpS3agG85HFYet5Vh4QGQvZBYcID4DvK6rQxSioUTEq0xONoSOADfAQ4dtUI5GZPJ 1UDweX5X X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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 > Gesendet: Montag, 24=2E Oktober 2022 um 16:56 Uhr > Von: "Russell King (Oracle)" > On Mon, Oct 24, 2022 at 04:45:40PM +0200, Frank Wunderlich wrote: > > Hi > > > Gesendet: Montag, 24=2E Oktober 2022 um 11:27 Uhr > > > Von: "Russell King (Oracle)" > >=20 > > > Here's the combined patch for where I would like mtk_sgmii to get to= =2E > > > > > > It looks like this PCS is similar to what we know as pcs-lynx=2Ec, b= ut > > > there do seem to be differences - the duplex bit for example appears > > > to be inverted=2E > > > > > > Please confirm whether this still works for you, thanks=2E > >=20 > > basicly Patch works, but i get some (1-50) retransmitts on iperf3 on f= irst interval in tx-mode (on r3 without -R), other 9 are clean=2E reverse m= ode is mostly clean=2E > > run iperf3 multiple times, every first interval has retransmitts=2E sa= me for gmac0 (fixed-link 2500baseX) > >=20 > > i notice that you have changed the timer again to 10000000 for 1000/25= 00baseX=2E=2E=2Emaybe use here the default value too like the older code do= es? >=20 > You obviously missed my explanation=2E I will instead quote the 802=2E3 > standard which covers 1000base-X: sorry, right i remember you've already mentioned it > 37=2E3=2E1=2E4 Timers >=20 > link_timer > Timer used to ensure Auto-Negotiation protocol stability and > register read/write by the management interface=2E >=20 > Duration: 10 ms, tolerance +10 ms, =E2=80=930 s=2E >=20 > For SGMII, the situation is different=2E Here is what the SGMII > specification says: >=20 > The link_timer inside the Auto-Negotiation has been changed from 10 > msec to 1=2E6 msec to ensure a prompt update of the link status=2E >=20 > So, 10ms is correct for 1000base-X, and 1=2E6ms correct for SGMII=2E >=20 > However, feel free to check whether changing it solves that issue, but > also check whether it could be some ARP related issue - remember, if > two endpoints haven't communicated, they need to ARP to get the other > end's ethernet addresses which adds extra latency, and may result in > some packet loss in high packet queuing rate situations=2E tried with 1=2E6ms, same result (or even worse on 1000baseX)=2E i guess ar= p cache should stay for ~5s? so at least second round followed directly after the first should be clean= when looking on ARP=2E apart from this little problem it works much better than it actually is so= imho more people should test it on different platforms=2E regards Frank