Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp90061pxu; Wed, 14 Oct 2020 21:20:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd2YXUkfAUN1SI5Dq091sOQad/WZjgvC+HEvTH/477Vzi1gqxC8/7lRJqx5+WqMKCit3y7 X-Received: by 2002:a17:906:eb48:: with SMTP id mc8mr601875ejb.254.1602735608338; Wed, 14 Oct 2020 21:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602735608; cv=none; d=google.com; s=arc-20160816; b=wWZk4XMnp0N3a0Bchm4RTmSZU6fiArzyDjhoiB3etbrcQcEOq08wNUjYdzy0GEtZdM +bZVz6UE7mPxNJLPm5iSHIPDlSrjgrYL4WJMUH2gva3qoWcHLQ98XqyBOTAudSYet9ez IW62RanT3dg4eR1QrTgXkhbydsU+249kipOcAiYnJJmAZhvCop70yIfTu4ly6RqZSDwt ZMEo+deiQ2ViG0wKhnk4FFCaDozaQb0b0bUvKjgPLJlWRDTcT8AtwfU6htHiM8x9M4ay YYaP8gDyta05jM5tZ2t68Xt4zxUuPhLJZsEaUMzHxSoiI2b32wYrhIF7RGAXwNLaUdFJ OASw== 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=CIr+KzzkGzxVzUKpACDGhDNN7lFkJAx5/cWwJGHb2V0=; b=tW6j+ARELBh6xNlD4aT43e+oK5EdHCrgfM5eoWuplvHAMlI7xvrTNQxX+YwIUoxVg3 oE5/gBnJII4YlIkLhN53WyuLp22NGsMhAgtE99GHTMP5uqxbzInnGNhduKLwmrW+ZaN4 jCsM5T8FX7XOmEUtHdDaGNRdyrGARAvnMjJOlblqwai2NDFVHnlk2l8KaSNK2oci22DD 0+z/MPpUd9ILAvfX5kQq9f8l77bUzNcWi2hcsskGpIzQWwxUJzHSUVqx58VIFKjNmZb0 a1KW+ymOhNqBtLLZKM7OZsZ0tcqJhoH2nIG3Vl1alxi4F+k+u+bCfDGq/gQVtewsycjk jA6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=BINzPpqR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si1056259edo.479.2020.10.14.21.19.46; Wed, 14 Oct 2020 21:20:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=BINzPpqR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730755AbgJOCcP (ORCPT + 99 others); Wed, 14 Oct 2020 22:32:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbgJOCcO (ORCPT ); Wed, 14 Oct 2020 22:32:14 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81652C061755; Wed, 14 Oct 2020 19:32:14 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id a23so1186501qkg.13; Wed, 14 Oct 2020 19:32:14 -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=CIr+KzzkGzxVzUKpACDGhDNN7lFkJAx5/cWwJGHb2V0=; b=BINzPpqRkAE9sw37b5ly+SWHWjeebbr9Syrlvx7cZz6OluSviavis0kwpdZeRAZEte 0gle+dtW+7ZulTpXIQWZW+4BqoUijrvRoMjsXM/sOEd/wPfxQwjvCza/T3YwZQAqo6KP 3VoGPt95/VyALRh/odJXQRXyz7fq2JaAsDTlE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CIr+KzzkGzxVzUKpACDGhDNN7lFkJAx5/cWwJGHb2V0=; b=r9ZI50ZunRZtBVXeKVHN79Dz21qIeXtrTXmHdqJurQan+GLGoYrml4XCjl+znd5JM2 326hNG6wGtcEBMX0A3vfC7QpHVnAYucs8YsA01tZXAy5/Wydj3EshOMEqNs3gcxHAR6+ dSoN2YNtwb37yGQJnvJlhKbLWyNiltVhHsxusOx7GP12jimNt2YWuEkNVDE/NfmNIa0b XpZv7+ZoxevDGDfbsQFzDc9eUaa81rmRldavj9ZcxsPn7BtzN+ogOJvMEnGEp6GYK0PY h+t9hjTYmyh4J8HKcixFKCwc1avOe2xy9uUA+FKDeGmkIVIqKncN77UUATu5rcqi+mFo JttA== X-Gm-Message-State: AOAM530BGI0pPw9axOgRj1AN2y4ap6sf2P6zbJXQhAUceoR+Qot9CRJ+ cmn/5cYLvBr74a/WhYM0UyzkoLbTtDcoxG0e3nUiYSV89jPO0A== X-Received: by 2002:a37:46c4:: with SMTP id t187mr1977786qka.465.1602729133521; Wed, 14 Oct 2020 19:32:13 -0700 (PDT) MIME-Version: 1.0 References: <20201014060632.16085-1-dylan_hung@aspeedtech.com> <20201014060632.16085-2-dylan_hung@aspeedtech.com> In-Reply-To: From: Joel Stanley Date: Thu, 15 Oct 2020 02:32:01 +0000 Message-ID: Subject: Re: [PATCH 1/1] net: ftgmac100: Fix Aspeed ast2600 TX hang issue To: Dylan Hung Cc: "David S . Miller" , Jakub Kicinski , "netdev@vger.kernel.org" , Linux Kernel Mailing List , Po-Yu Chuang , linux-aspeed , OpenBMC Maillist , BMC-SW Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Oct 2020 at 01:49, Dylan Hung wrote: > > > I was encountering this issue when I was running the iperf TX test. The > > symptom is the TX descriptors are consumed, but no complete packet is sent > > out. > > > > What parameters are you using for iperf? I did a lot of testing with > > iperf3 (and stress-ng running at the same time) and couldn't reproduce the > > error. > > > > I simply use "iperf -c " on ast2600. It is very easy to reproduce. I append the log below: > Noticed that this issue only happens when HW scatter-gather (NETIF_F_SG) is on. Ok. This appears to be on by default in the drivers/net/ethernet/faraday/ftgmac100.c: netdev->hw_features = NETIF_F_RXCSUM | NETIF_F_HW_CSUM | NETIF_F_GRO | NETIF_F_SG | NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_HW_VLAN_CTAG_TX; > [AST /]$ iperf3 -c 192.168.100.89 > Connecting to host 192.168.100.89, port 5201 > [ 4] local 192.168.100.45 port 45346 connected to 192.168.100.89 port 5201 > [ ID] Interval Transfer Bandwidth Retr Cwnd > [ 4] 0.00-1.00 sec 44.8 MBytes 375 Mbits/sec 2 1.43 KBytes > [ 4] 1.00-2.00 sec 0.00 Bytes 0.00 bits/sec 2 1.43 KBytes > [ 4] 2.00-3.00 sec 0.00 Bytes 0.00 bits/sec 0 1.43 KBytes > [ 4] 3.00-4.00 sec 0.00 Bytes 0.00 bits/sec 1 1.43 KBytes > [ 4] 4.00-5.00 sec 0.00 Bytes 0.00 bits/sec 0 1.43 KBytes > ^C[ 4] 5.00-5.88 sec 0.00 Bytes 0.00 bits/sec 0 1.43 KBytes > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bandwidth Retr > [ 4] 0.00-5.88 sec 44.8 MBytes 64.0 Mbits/sec 5 sender > [ 4] 0.00-5.88 sec 0.00 Bytes 0.00 bits/sec receiver > iperf3: interrupt - the client has terminated I just realised my test machine must be on a 100Mbit network. I will try testing on a gigabit network. > > We could only reproduce it when performing other functions, such as > > debugging/booting the host processor. > > > Could it be another issue? I hope not! We have deployed your patch on our systems and I will let you know if we see the bug again. > > > > > +/* > > > > > + * test mode control register > > > > > + */ > > > > > +#define FTGMAC100_TM_RQ_TX_VALID_DIS (1 << 28) #define > > > > > +FTGMAC100_TM_RQ_RR_IDLE_PREV (1 << 27) #define > > > > > +FTGMAC100_TM_DEFAULT > > > > \ > > > > > + (FTGMAC100_TM_RQ_TX_VALID_DIS | > > > > FTGMAC100_TM_RQ_RR_IDLE_PREV) > > > > > > > > Will aspeed issue an updated datasheet with this register documented? > > > > Did you see this question? > > > Sorry, I missed this question. Aspeed will update the datasheet accordingly. Thank you.