Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1269645ybp; Wed, 9 Oct 2019 11:22:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwn4p0kDAogTDpm8GBoDIe51y1Mh/g8/7STfLswaWys6dwX+wUYz/a8OKgb7IlrP6mksTCk X-Received: by 2002:a17:906:3053:: with SMTP id d19mr4258689ejd.109.1570645319939; Wed, 09 Oct 2019 11:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570645319; cv=none; d=google.com; s=arc-20160816; b=xA87/Mo4UQpcOoUFv2M1dH0XssjaNGGQUcwIc95L1kCQfHA28nwB+BxIPTD4X5KGl4 eopWSsvKUUN5h/EHtK8YrPMk0KuQRc/vSeRkZfOLtTk3Ns65xrZrZkZuMCYIV+VS++lv K5x3wVPBQ9K7gMINUnwxfaRDXfbvzv0MkgFR22ZEl4jKmGQL7GHvwte92VBBdZFs2Hvk u/xn4rw0Lk4NtDEVEHFcimPZvEUQhWXG0LoltNS0Ad406nzaBMPhS4cv4Jb/r4SiA37X KGWAGkyqZsushSVuwSyL/VOoWIXyxOYTT3DXCohBgJIScp9Fs8ifYSiAo1edUwTcu0PJ PXbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yHkBccBcnNHpwY488jaSLlc6fd4IiAVQm1KLgC1eDwU=; b=RpZpFgwh+eSP81HlsSauSgaCEm+qtAGkaoBmtUtRqEc0eHSRpJcvrvKzKnMTIoJv4s oIh3Qt0UHg1UBaHZzdgf4XgUQttTBiOPdlSLm5pWJCrve6zOPVwc0+SLEmzsTOV1OyaG apxK1GeaFWJeqWqhWgMp7HvbrLKXc9JKtyW6WI5C2JNFTPi3tWZu+JhcjqlFZMe22ePl waAJeqJWDRzVJ59p4e3ZPcMa0UHgJFeOM13ub+lUqcP2XFgF8OZShhpuSvlxMizKRYB/ u1qfKcth2oMU+9/R7cg7g46gqWxXimTbM+MFly7AHyicvzhC1PnaX7fIZMVEMAsWPUnX LX/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JCk2r4lL; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23si2043569edj.201.2019.10.09.11.21.33; Wed, 09 Oct 2019 11:21:59 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=JCk2r4lL; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731304AbfJISVU (ORCPT + 99 others); Wed, 9 Oct 2019 14:21:20 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:33572 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730708AbfJISVT (ORCPT ); Wed, 9 Oct 2019 14:21:19 -0400 Received: by mail-ed1-f65.google.com with SMTP id c4so2969686edl.0 for ; Wed, 09 Oct 2019 11:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yHkBccBcnNHpwY488jaSLlc6fd4IiAVQm1KLgC1eDwU=; b=JCk2r4lLdEAtEB4tPPfCe4gQXtDKOAj/uTZqZjswgMEGnPOS15TmojLgEWg9okNphe AeJnUULN6KjIa4KZEVZaBHInQ1eDypGuDBuuyCdSKoyR8ZJPKDBhIppH6HpDS4jkxN3n kcMVYBHYnDz8YP8O4Zob+eAVkuCmR6JaDum4JOPgVXcl9MnHTqhIHFafpcVv4abD2wWR XhjBxJiSQ7LAYLN62EhUspq0sCkoYw6oz4VleeqTj9068qJZxY9Q6sgL/WOP8KzdYWgv C6zpWOY2j/ctW270naKNeT19e7aMwPErIi8lSgRqOyd1wljb37pqea7d/hBhHPsXd0FJ Gusg== 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=yHkBccBcnNHpwY488jaSLlc6fd4IiAVQm1KLgC1eDwU=; b=cHzPFg+GQTsQC+F7bJCM2+fKLFwYrTBfCVJkTocyTAuO7wpzWLyvjs5hDQEK3cv7Gh Bg3775JfIfDAc8FQ3xKOb+os/FthmoTW+HVCt6UvPTz3tBLE8FoTrD3bkOgi0j8Vu3xi MSZZQE0sUN1pbam6kl20U/nyDGv/wnqWetLKPYFV3eMVDJq4mMAv1FA8YSdP761WveTC 3Cr43zb+94pkdS/DEKvcwVZUF6GkilAsM8UOILEpMwSxdRUE6Z+ZmxdnsHaN0y9Fqgl/ 0znj3liVCWKp2TeNccsMgk98eIactc9VsgAsBppCtN2sUzqf8WXRJqDuK+qlufN8rtGc b8RQ== X-Gm-Message-State: APjAAAV6CgO3lpPbZahg98xGHtK3VmKGL60nWThG/jRVH1dRZkvDBFJu SVehBmuUAU/5OIzdbXq7kWf6aoJ140rqEPvrWcTIqw== X-Received: by 2002:aa7:d04c:: with SMTP id n12mr4125274edo.52.1570645276110; Wed, 09 Oct 2019 11:21:16 -0700 (PDT) MIME-Version: 1.0 References: <20190910213734.3112330-1-vijaykhemka@fb.com> <95e215664612c0487808c02232852ef2188c95a5.camel@kernel.crashing.org> In-Reply-To: <95e215664612c0487808c02232852ef2188c95a5.camel@kernel.crashing.org> From: Oskar Senft Date: Wed, 9 Oct 2019 14:20:59 -0400 Message-ID: Subject: Re: [PATCH] ftgmac100: Disable HW checksum generation on AST2500 To: Benjamin Herrenschmidt Cc: Joel Stanley , Florian Fainelli , Kate Stewart , Andrew Lunn , linux-aspeed , netdev@vger.kernel.org, "openbmc @ lists . ozlabs . org" , YueHaibing , Linux Kernel Mailing List , "David S. Miller" , Luis Chamberlain , Mauro Carvalho Chehab , Thomas Gleixner , Vijay Khemka Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Does HW in the AST2500 actually perform the HW checksum calculation, or would that be the responsibility of the NIC that it's talking to via NC-SI? (Sorry for the double posting! I had HTML mode enabled by default which causes the e-mail to be dropped in some places) On Wed, Oct 9, 2019 at 12:38 AM Benjamin Herrenschmidt wrote: > > 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. >