Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp445244ybp; Tue, 8 Oct 2019 21:40:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyW3dGuwB6eNoAWs/UbCRBAHuFiGjHVn8pcb+U6Ig/9W5gIJUU4AH9RxWt2CpipQRbbtzFc X-Received: by 2002:a05:6402:1454:: with SMTP id d20mr1262250edx.53.1570596007127; Tue, 08 Oct 2019 21:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570596007; cv=none; d=google.com; s=arc-20160816; b=r6lhds5+V0jrQ4r9Cdnw9IF+cor1nDWs/bmK+fXB584DLf09Gp+1CF88EA+4fG62D8 UdhzLCtxBAKrU+Lf3ajS2/yOO1A/qU8prxI20CYWkkHCjJ0M+WufncF06YdLNIk6vmZR eIC4B04b2ncasafeyuRjJJCPcX0cLS1EZ/trXXkjQQwnDZacfiSzsveNr7zAKMDe0WYc KXNyHroK4o6Pvwb0IzvjZCPml2hwEFzFrtLq1qMcbrLC8ikeF6f0RIiCHuN/wuHeqMnp v67lhcum9W+cplozsfyV1HdvF2PP2RejbIhasWeIt1G9z5NCZOknNdkOhg0CU2VyJXgA eSGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=4KKyeJbTNY/TkvVSL36xYXln5LWZAssYwVUw5uZFAq4=; b=TPZn2EB9Ij0SPBsSiLqsmdOnmFpmlmq3sedEe7zPsOnfj6GegpLyn/0YN4VSXolXnb 17lJYrP6KwWCW9RynY1sdqqL77GHUHJXZl7wbW7fyk2BLoV8U0J98a6hCbJBQtMEezFD oWwG7gjjSZshOPblJFdhdiZklGfRlbX1XO3ZOA72fk+Xn3ExkU+WBJLpGG06cHiW1aYf MnqOpRTGCtphkWNEsAWJzV0fm3BhPVVVKwqnukYIopLczzb85LZjsGbNDZHlwoZ8BxoT n1OCLpfGqG/vFNkYF85aw51HnnRgO6XjL5LiO9DkjYlc1V8mw+EA1cCuankRIQ0OW1s7 b+dQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 26si527866ejl.292.2019.10.08.21.39.06; Tue, 08 Oct 2019 21:40:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729931AbfJIEiA (ORCPT + 99 others); Wed, 9 Oct 2019 00:38:00 -0400 Received: from gate.crashing.org ([63.228.1.57]:34610 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729040AbfJIEiA (ORCPT ); Wed, 9 Oct 2019 00:38:00 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x994b9XK015980; Tue, 8 Oct 2019 23:37:11 -0500 Message-ID: <95e215664612c0487808c02232852ef2188c95a5.camel@kernel.crashing.org> Subject: Re: [PATCH] ftgmac100: Disable HW checksum generation on AST2500 From: Benjamin Herrenschmidt To: Joel Stanley , Florian Fainelli Cc: Vijay Khemka , "David S. Miller" , YueHaibing , Andrew Lunn , Kate Stewart , Mauro Carvalho Chehab , Luis Chamberlain , Thomas Gleixner , netdev@vger.kernel.org, Linux Kernel Mailing List , "openbmc @ lists . ozlabs . org" , linux-aspeed , Sai Dasari Date: Wed, 09 Oct 2019 15:37:09 +1100 In-Reply-To: References: <20190910213734.3112330-1-vijaykhemka@fb.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-09-11 at 14:48 +0000, Joel Stanley wrote: > Hi Ben, > > On Tue, 10 Sep 2019 at 22:05, Florian Fainelli > wrote: > > > > On 9/10/19 2:37 PM, Vijay Khemka wrote: > > > HW checksum generation is not working for AST2500, specially with > > > IPV6 > > > over NCSI. All TCP packets with IPv6 get dropped. By disabling > > > this > > > it works perfectly fine with IPV6. > > > > > > Verified with IPV6 enabled and can do ssh. > > > > How about IPv4, do these packets have problem? If not, can you > > continue > > advertising NETIF_F_IP_CSUM but take out NETIF_F_IPV6_CSUM? > > > > > > > > Signed-off-by: Vijay Khemka > > > --- > > > drivers/net/ethernet/faraday/ftgmac100.c | 5 +++-- > > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/net/ethernet/faraday/ftgmac100.c > > > b/drivers/net/ethernet/faraday/ftgmac100.c > > > index 030fed65393e..591c9725002b 100644 > > > --- a/drivers/net/ethernet/faraday/ftgmac100.c > > > +++ b/drivers/net/ethernet/faraday/ftgmac100.c > > > @@ -1839,8 +1839,9 @@ static int ftgmac100_probe(struct > > > platform_device *pdev) > > > if (priv->use_ncsi) > > > netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_FILTER; > > > > > > - /* AST2400 doesn't have working HW checksum generation */ > > > - if (np && (of_device_is_compatible(np, "aspeed,ast2400- > > > mac"))) > > > + /* AST2400 and AST2500 doesn't have working HW checksum > > > generation */ > > > + if (np && (of_device_is_compatible(np, "aspeed,ast2400- > > > mac") || > > > + of_device_is_compatible(np, "aspeed,ast2500- > > > mac"))) > > Do you recall under what circumstances we need to disable hardware > checksumming? Any news on this ? AST2400 has no HW checksum logic in HW, AST2500 should work for IPV4 fine, we should only selectively disable it for IPV6. Can you do an updated patch ? Cheers, Ben.