Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1293513yba; Thu, 16 May 2019 18:38:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzi3bXvCflqF0j4yXRm/qv2y9LzF+dMgI+0l00qAvNYd1litIoP900sSxOmAfR6fXSK6a1B X-Received: by 2002:a17:902:2d03:: with SMTP id o3mr18356741plb.309.1558057091171; Thu, 16 May 2019 18:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558057091; cv=none; d=google.com; s=arc-20160816; b=x6ymqPwqGfuv/3TyJeMk6p71y4dXQSyM+0EiFjeO5an1VdH9EzKJDThMAou5nVM49U 3A2cSKvrSxJ2nYAD1zzPPCB2MIpornAnxO+d4lJZlKqvlk8ckErnmk6KXByNrPZ/7PRz A8rgk4GrC0Xo2HtGnTq535SlDoeCgkre0ABKPwjWKeoitRS3xjaZYSiX7+FWE1gR5cpZ 1+cssXIRZwNXfl4agf2xdNJER6nQBWNSsb4/gnOwfvkoXHdgYkSTbTlVVArODslZgq29 v4JgrQNpfxeA7X+fiwdc+cwX3ASEKU3FCxlZS3CYtuUOlz+oJCnCjTowjGJ72+Ybi15u gAqA== 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=TGyj0UlvriQqPhFkMOpCzziLUNYzk2soTPxlk6S8Jyo=; b=ru6O5Vs5gOOJdI9sD9whiVba5C/9H6SFSTHkpWXbH0zhVC4msuyfpQbHEYEuMTF3HQ xhkuhH80XEi+JTinxu0XJ+raA2gGMyYC4mpQtc5tZpyBPQ9bMDL8SovHW/2qnJe4aM80 tBwSyYHH7m9S+n4le5io2gNqYgt/ypbWQpkJAzROgxP4WexXa3rm+rB0A+M1ZkfD/XkK 3Cwiu5AZe5hKSpObbk2I49XGNwNGna6NZHY/4qVODHlS07BEY9c8Jnz946N527CSsF/L gPZkPLXrI0bs8rnHNFI3LaNerI4PlVKg4adJC6/4tcxZFn7eWmHflB+LwAOUOoWzL8fY kuIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=MceW4Xnm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si6426077pls.113.2019.05.16.18.37.55; Thu, 16 May 2019 18:38:11 -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=@cisco.com header.s=iport header.b=MceW4Xnm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727335AbfEQBKn (ORCPT + 99 others); Thu, 16 May 2019 21:10:43 -0400 Received: from alln-iport-3.cisco.com ([173.37.142.90]:29054 "EHLO alln-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725929AbfEQBKl (ORCPT ); Thu, 16 May 2019 21:10:41 -0400 X-Greylist: delayed 427 seconds by postgrey-1.27 at vger.kernel.org; Thu, 16 May 2019 21:10:40 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1954; q=dns/txt; s=iport; t=1558055440; x=1559265040; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CdtFlPdIxBflewxo8eZNJ3cZUeGIx4ZiQQJbr+jUzY4=; b=MceW4XnmB1ay+HdRTwqFEDWmfPqAWu2W2AyGtD1iK893bX8AwH1WyEUf P6h9GSmP6+tvlpm4Lpve/frfOI9eLsX1ETBOU9T9f1jyQuybz0R1lH6J8 GGBPt6DTLRTetgAc25jTB54Hs496j00hguRi4pR0+LK7J2Ko/swGF2SYC Q=; X-IronPort-AV: E=Sophos;i="5.60,477,1549929600"; d="scan'208";a="277980231" Received: from alln-core-11.cisco.com ([173.36.13.133]) by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 17 May 2019 01:03:33 +0000 Received: from zorba ([10.24.21.190]) by alln-core-11.cisco.com (8.15.2/8.15.2) with ESMTPS id x4H13VMX014537 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 17 May 2019 01:03:32 GMT Date: Thu, 16 May 2019 18:03:30 -0700 From: Daniel Walker To: Florian Fainelli Cc: "Nikunj Kela (nkela)" , "jeffrey.t.kirsher@intel.com" , "xe-linux-external(mailer list)" , "David S. Miller" , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] igb: add parameter to ignore nvm checksum validation Message-ID: <20190517010330.2wynopuhsqycqzuq@zorba> References: <1557357269-9498-1-git-send-email-nkela@cisco.com> <9be117dc6e818ab83376cd8e0f79dbfaaf193aa9.camel@intel.com> <76B41175-0CEE-466C-91BF-89A1CA857061@cisco.com> <4469196a-0705-5459-8aca-3f08e9889d61@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4469196a-0705-5459-8aca-3f08e9889d61@gmail.com> User-Agent: NeoMutt/20170609 (1.8.3) X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.24.21.190, [10.24.21.190] X-Outbound-Node: alln-core-11.cisco.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 16, 2019 at 03:02:18PM -0700, Florian Fainelli wrote: > On 5/16/19 12:55 PM, Nikunj Kela (nkela) wrote: > > > > > > On 5/16/19, 12:35 PM, "Jeff Kirsher" wrote: > > > > On Wed, 2019-05-08 at 23:14 +0000, Nikunj Kela wrote: > > >> Some of the broken NICs don't have EEPROM programmed correctly. It > > >> results > > >> in probe to fail. This change adds a module parameter that can be > > >> used to > > >> ignore nvm checksum validation. > > >> > > >> Cc: xe-linux-external@cisco.com > > >> Signed-off-by: Nikunj Kela > > >> --- > > >> drivers/net/ethernet/intel/igb/igb_main.c | 28 > > >> ++++++++++++++++++++++------ > > >> 1 file changed, 22 insertions(+), 6 deletions(-) > > > > >NAK for two reasons. First, module parameters are not desirable > > >because their individual to one driver and a global solution should be > > >found so that all networking device drivers can use the solution. This > > >will keep the interface to change/setup/modify networking drivers > > >consistent for all drivers. > > > > > > >Second and more importantly, if your NIC is broken, fix it. Do not try > > >and create a software workaround so that you can continue to use a > > >broken NIC. There are methods/tools available to properly reprogram > > >the EEPROM on a NIC, which is the right solution for your issue. > > > > I am proposing this as a debug parameter. Obviously, we need to fix EEPROM but this helps us continuing the development while manufacturing fixes NIC. > > Then why even bother with sending this upstream? It seems rather drastic to disable the entire driver because the checksum doesn't match. It really should be a warning, even a big warning, to let people know something is wrong, but disabling the whole driver doesn't make sense. Daniel