Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3940173iob; Tue, 17 May 2022 10:17:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz93iQH8wuVvZGeJWh3HxWnpCpwxHdb4aIoCSJ4Y/PjrHl5FlTHQyu7g4mSkElTdX4G2a69 X-Received: by 2002:a17:907:3f02:b0:6f3:5c42:321a with SMTP id hq2-20020a1709073f0200b006f35c42321amr20891143ejc.521.1652807858664; Tue, 17 May 2022 10:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652807858; cv=none; d=google.com; s=arc-20160816; b=pbR7g6jy/aKviJkkXZMARGkGKgj2axsZOjCrWrzytl6xNmuWLtwTFi0AmjHdgfJUf7 G89zPO89/bQOBcQgJGcTl2qtgGVn4iHxgCjsBTYvhs7oKxceonzHGYHipep17ds2gy3z UHSizLGBf/UzG9wPkJ22cAxqP4ICm31V3VygCUoqRduMajExs11Rq41qw5MYDZoeu45b t0wn/QSGL1xOarkzkEb84pDY4zFHHqoOwzoxEIRlA90rwDsUQ+imh6yXKmq0n63bZ7pr AKf396YVs62m6OhNzmE4aUshvSPqBZvGJQxDUzg5E3csOcykc/lJjwViK+a8jOH7YOrd 2ymA== 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=bcX3jvyky5Zk1BA9CMjUs4Jca7mrgBWVxkDo89CEHzg=; b=qgeQSR7m+HkFRURxj6Dbtgj7dr4db97GTNkkU18LMGPBrsDLzPs/jgDG/7lD0Armuc YoiPu6igZHMLU+7TtUguqVar+uHQiUNDpWNWxK1AgUmbi0YlbX1EhAbR6hkKxiMA2IxA PsLLY+9C9j10pbT+/1zysGVjGntJ4xJOt2FhyrEPgC4dIucNCAnWrLV/03tioRlMxl58 Li42DRhgK8P+IpSdjaTWf858G1y93HKUPyFtNyyjANE02oPOwJ6yc2zPCJ088QWicmE+ uN/urITxMciQRCZ6Id9CLMp18yNJ/jpnQQlnejPSCedSk7fB4+0EBKuZN6yvuQiPrZrA vosg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=e+oQjDpV; 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 gt16-20020a1709072d9000b006e85a385741si4038146ejc.376.2022.05.17.10.17.12; Tue, 17 May 2022 10:17:38 -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=@jms.id.au header.s=google header.b=e+oQjDpV; 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 S244485AbiEQJVp (ORCPT + 99 others); Tue, 17 May 2022 05:21:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244871AbiEQJVD (ORCPT ); Tue, 17 May 2022 05:21:03 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D04E964C9; Tue, 17 May 2022 02:20:56 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id k126so10080105wme.2; Tue, 17 May 2022 02:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bcX3jvyky5Zk1BA9CMjUs4Jca7mrgBWVxkDo89CEHzg=; b=e+oQjDpVJTotBuHUxen0PIl62GNZJClBrr6ySobqIJkbmgE/BQHXpDYKaHDmJ6A2Bh CttzTVPFNmITqU31R8RPcoMY7kvQRjXEuAyj0ks2ifwICACW5p2do4LVrx40zoK0+ck6 obqDGtSPvQmFvO88eBrDlGKe1UVPStbDzJqx8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bcX3jvyky5Zk1BA9CMjUs4Jca7mrgBWVxkDo89CEHzg=; b=Odt0+xOQWKNOTU8S79jVeSFfTmgqrhDUsyY2EAJHu+ZSwdD964dQX1kmu/FdFfMoJb MLqLkKXVbHhrtBWJbNCQPuddrnw8X5wmwZ6OKvl+U2Y/Jf8UiJIh9g3tMpMIb6MJV8Ep tLrdvA6CUJDGzuqin7UiA53Dly7uZ1ztMOz1OaHW3Mtc33E/v2FfvCq0RiEzR2TTZgSk bu+WB1GCMhaTg02G0dcK2vPS5nZOVQsgxrmrMGSpo1XZ3fRcYGF6a5jujG5i7Aw+MGZK sYXJgERck5e5EeuBbORgzzcFZAz76OzWYR7E+WFtGlIKfk1CbY3R4hcD9hAtl2oNEzFG tKZA== X-Gm-Message-State: AOAM531pD/kAE9zFGVCXrMstyXBkaxG+N2P9jdx3IvYAt8l3Xt19yDmo ZAwwxw1XoPLhFC4AQ4wDKRZlt5xqzTqb6THftzQ= X-Received: by 2002:a05:600c:1c0e:b0:394:66af:ef0f with SMTP id j14-20020a05600c1c0e00b0039466afef0fmr30434678wms.48.1652779254607; Tue, 17 May 2022 02:20:54 -0700 (PDT) MIME-Version: 1.0 References: <20220512231938.228651-1-joel@jms.id.au> In-Reply-To: From: Joel Stanley Date: Tue, 17 May 2022 09:20:41 +0000 Message-ID: Subject: Re: [PATCH net v2] net: ftgmac100: Disable hardware checksum on AST2600 To: Dylan Hung Cc: "David S . Miller" , Jakub Kicinski , Paolo Abeni , Benjamin Herrenschmidt , David Wilder , "openbmc@lists.ozlabs.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , David Wilder Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, 13 May 2022 at 01:46, Dylan Hung wrote: > > > -----Original Message----- > > From: joel.stan@gmail.com [mailto:joel.stan@gmail.com] On Behalf Of Joel > > Stanley > > Sent: Friday, May 13, 2022 7:20 AM > > To: David S . Miller ; Jakub Kicinski > > ; Paolo Abeni ; Benjamin > > Herrenschmidt ; Dylan Hung > > ; David Wilder > > Cc: openbmc@lists.ozlabs.org; netdev@vger.kernel.org; > > linux-kernel@vger.kernel.org; David Wilder > > Subject: [PATCH net v2] net: ftgmac100: Disable hardware checksum on > > AST2600 > > > > The AST2600 when using the i210 NIC over NC-SI has been observed to > > produce incorrect checksum results with specific MTU values. This was first > > observed when sending data across a long distance set of networks. > > > > On a local network, the following test was performed using a 1MB file of > > random data. > > > > On the receiver run this script: > > > > #!/bin/bash > > while [ 1 ]; do > > # Zero the stats > > nstat -r > /dev/null > > nc -l 9899 > test-file > > # Check for checksum errors > > TcpInCsumErrors=$(nstat | grep TcpInCsumErrors) > > if [ -z "$TcpInCsumErrors" ]; then > > echo No TcpInCsumErrors > > else > > echo TcpInCsumErrors = $TcpInCsumErrors > > fi > > done > > > > On an AST2600 system: > > > > # nc 9899 < test-file > > > > The test was repeated with various MTU values: > > > > # ip link set mtu 1410 dev eth0 > > > > The observed results: > > > > 1500 - good > > 1434 - bad > > 1400 - good > > 1410 - bad > > 1420 - good > > > > The test was repeated after disabling tx checksumming: > > > > # ethtool -K eth0 tx-checksumming off > > > > And all MTU values tested resulted in transfers without error. > > > > An issue with the driver cannot be ruled out, however there has been no bug > > discovered so far. > > > > David has done the work to take the original bug report of slow data transfer > > between long distance connections and triaged it down to this test case. > > > > The vendor suspects this this is a hardware issue when using NC-SI. The fixes > > line refers to the patch that introduced AST2600 support. > > > > Fixes: 39bfab8844a0 ("net: ftgmac100: Add support for DT phy-handle > > property") > > Reported-by: David Wilder > > Signed-off-by: Joel Stanley > Reviewed-by: Dylan Hung Thank you Dylan. I've added your r-b to v3, as the only changes are to the wrapping of the commit message.