Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp419856ybk; Sat, 9 May 2020 06:55:00 -0700 (PDT) X-Google-Smtp-Source: APiQypLZ54N1+b1Wk1NgzUaPLOuQLcBkk1QSl2DoC4G09My2JdZWuNzBnyX2NJaPJAPH6wuXc4zB X-Received: by 2002:a17:906:9706:: with SMTP id k6mr6333828ejx.103.1589032500678; Sat, 09 May 2020 06:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589032500; cv=none; d=google.com; s=arc-20160816; b=DALHIKXsnJbDaXetRKQb279yI51ouDzWLjO4A5kIZlpRNErDyRxw5YZnkSOsHzEAOH iJgG72Qyc3YYR/BXpNZpzaxpaL6yz2daBk1sVPqjYL2qhzXObk5m0svBEPGqQI2bxszW 0ZEzO8BPmIv/eOlPnq1RD2SmsPNA+LKK/M4HL6YEcLSwOFPs7yer/glcOcoQgbakkejs 2kVPLBB82SU4L4OUW3TaCbG1ByPj2+oACuVMAtEdwc0sTlt8FXZw1u1BbvXLJ/Iw3n2Q OCxzLa1eAqjZ232uxTYIOlMJOJuA7TTFZ/VlhyWeOckuMJOGxXy0/n+lHtkEj5w5rYtT Jdvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2uygEucO5eCGyC1Yl+l/qEGrNAjV1cjP3RBl/px8ykw=; b=zERGl0PQRk3qAPi7tXW2MOZx0UlcdAdsXor+8SXS4YfMR85ohPlKRMezaG1dliF1g8 4Jxvj6EYtoAxZkjfVwr0n2jj/Klbb3MHOcVQQOR/aE05cGbMl+vmIMcxIeE9eVCayMjW hGymsRUmTwVo8CsJ9Tsea+AR3V9khrQyx5QV20QsvE1U/VwxdFBnj3KnR1OmpsLm8IpJ ITuHpQxlCM4vd0xP+V66WtUGkF6tcxsN6pwqj2V4DHr68lvU4Rm3MZKrCtY0hkwCpmBz PFwFAedG5ou8GpZYfOSV1KcKMTZUtlCvexfuDEaDvuRSRD0Q59RlUCu21AERcIDkreKd wlPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=LYvqtNTk; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si652847ejf.95.2020.05.09.06.54.37; Sat, 09 May 2020 06:55:00 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=LYvqtNTk; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727820AbgEINvV (ORCPT + 99 others); Sat, 9 May 2020 09:51:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726904AbgEINvU (ORCPT ); Sat, 9 May 2020 09:51:20 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E42E9C061A0C; Sat, 9 May 2020 06:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2uygEucO5eCGyC1Yl+l/qEGrNAjV1cjP3RBl/px8ykw=; b=LYvqtNTkAfpe2zWTtXqs0AlVr JSY/8pWu8EKEKUpiD3KHRAIrqtN/gZWHmvDAyeY6MYSSAmSw+HjwcOoURlbOlMtkwKx/eYWaE8NAe estJ6I3KznNOQ+XT5SNmMxkySCAiYeQP46EeJpLbeso6Y8i7JQkzn6aN7sAwovHwQVrnnSLUoWnMD ilbvI8F/q0AhjOMwccK28a53kaB6tg7R3G2bnyHC/TP5TqmVJrbWwsESPcr/dVb8e4e1p590UHxg/ o8aW5eD5kKR+Vb8IK/zowKmzjpCn3Fzib3PAmwVQNiVk4K6VhAboF9Et6ayykFoPahOH1R55nlk/S tFwQiXG3w==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:38036) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXPsk-00044H-Uh; Sat, 09 May 2020 14:51:11 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jXPsf-0002u4-W2; Sat, 09 May 2020 14:51:06 +0100 Date: Sat, 9 May 2020 14:51:05 +0100 From: Russell King - ARM Linux admin To: Matteo Croce Cc: Antoine Tenart , netdev , "gregory.clement@bootlin.com" , LKML , Maxime Chevallier , Nadav Haklai , Thomas Petazzoni , "miquel.raynal@bootlin.com" , Stefan Chulski , Marcin Wojtas , "David S . Miller" , Linux ARM Subject: Re: [EXT] Re: [PATCH net-next 3/5] net: mvpp2: cls: Use RSS contexts to handle RSS tables Message-ID: <20200509135105.GE1551@shell.armlinux.org.uk> References: <20190524100554.8606-1-maxime.chevallier@bootlin.com> <20190524100554.8606-4-maxime.chevallier@bootlin.com> <20200423170003.GT25745@shell.armlinux.org.uk> <20200509114518.GB1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 09, 2020 at 03:14:05PM +0200, Matteo Croce wrote: > On Sat, May 9, 2020 at 1:45 PM Russell King - ARM Linux admin > wrote: > > > > On Sat, May 09, 2020 at 11:15:58AM +0000, Stefan Chulski wrote: > > > > > > > > > > -----Original Message----- > > > > From: Matteo Croce > > > > Sent: Saturday, May 9, 2020 3:13 AM > > > > To: David S . Miller > > > > Cc: Maxime Chevallier ; netdev > > > > ; LKML ; Antoine > > > > Tenart ; Thomas Petazzoni > > > > ; gregory.clement@bootlin.com; > > > > miquel.raynal@bootlin.com; Nadav Haklai ; Stefan > > > > Chulski ; Marcin Wojtas ; Linux > > > > ARM ; Russell King - ARM Linux admin > > > > > > > > Subject: [EXT] Re: [PATCH net-next 3/5] net: mvpp2: cls: Use RSS contexts to > > > > handle RSS tables > > > > > > > > Hi, > > > > > > > > What do you think about temporarily disabling it like this? > > > > > > > > --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > > > > +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > > > > @@ -5775,7 +5775,8 @@ static int mvpp2_port_probe(struct platform_device > > > > *pdev, > > > > NETIF_F_HW_VLAN_CTAG_FILTER; > > > > > > > > if (mvpp22_rss_is_supported()) { > > > > - dev->hw_features |= NETIF_F_RXHASH; > > > > + if (port->phy_interface != PHY_INTERFACE_MODE_SGMII) > > > > + dev->hw_features |= NETIF_F_RXHASH; > > > > dev->features |= NETIF_F_NTUPLE; > > > > } > > > > > > > > > > > > David, is this "workaround" too bad to get accepted? > > > > > > Not sure that RSS related to physical interface(SGMII), better just remove NETIF_F_RXHASH as "workaround". > > > > Hmm, I'm not sure this is the right way forward. This patch has the > > effect of disabling: > > > > d33ec4525007 ("net: mvpp2: add an RSS classification step for each flow") > > > > but the commit you're pointing at which caused the regression is: > > > > 895586d5dc32 ("net: mvpp2: cls: Use RSS contexts to handle RSS tables") > > > > > > Hi, > > When git bisect pointed to 895586d5dc32 ("net: mvpp2: cls: Use RSS > contexts to handle RSS tables"), which was merged > almost an year after d33ec4525007 ("net: mvpp2: add an RSS > classification step for each flow"), so I assume that between these > two commits either the feature was working or it was disable and we > didn't notice > > Without knowing what was happening, which commit should my Fixes tag point to? Let me make sure that I get this clear: - Prior to 895586d5dc32, you can turn on and off rxhash without issue on any port. - After 895586d5dc32, turning rxhash on eth2 prevents reception. Prior to 895586d5dc32, with rxhash on, it looks like hashing using CRC32 is supported but only one context. So, if it's possible to enable rxhash on any port on the mcbin without 895586d5dc32, and the port continues to work, I'd say the bug was introduced by 895586d5dc32. Of course, that would be reinforced if there was a measurable difference in performance due to rxhash on each port. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 10.2Mbps down 587kbps up