Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2229954yba; Fri, 17 May 2019 12:57:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9jGWqXzoleZD+/+k28xbOOaAkLhsBv6uyJM9m/vxWrcWbZICr2xgIGdvDx/Cm9k+G2/Zs X-Received: by 2002:a63:8149:: with SMTP id t70mr59502263pgd.134.1558123046794; Fri, 17 May 2019 12:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558123046; cv=none; d=google.com; s=arc-20160816; b=cFM2G9gE0XONP8IlLhHuAPqkfffj+f/ABKb8ovEvxEjAQUsSkihw8fpGuOnNGLhi5f h71UYf2PTrkk+mBNJezAVcy8G9LAatgkDzQ5Qd2upBAcm/uVKjrOgT+FqVmegB4PImQO UrqPZUPzTi8il5EgnG3WmF7CcDmZQmfrubmcA07MP8nArvV9pa284O4c8jSO34FXfsHo 0+pvH+3pHgtvB6LSx/3dVLTDKlwhJmxZDpZCMJYr9LNQIrtFuPXzsORs4s/879ODTqtL sUzSld9eHvH7RjAh1OcW16xeFRVUUbhX27Qt3SEcFTWYEZ1r2yiXYKJDuA+gO5lRZpBI 4Llg== 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=+Vp4m9wurr9QEaqMCASJ57t6/3/sQ8iV4oH9CojFaas=; b=Jz3dcAkG85+kHFvzmf/Y1mYo1mmQpO2b1XeveeXP1czpI4vYqoFdlncKjSFDDjbejg 6dJkWXSzT+d+IyR0FI9ZhpIXQerBvA4jedg172YLrPDlBewFBqegoN0WLDq1Oet7MVTX bWnZYrWmgyKp5wJ1vJrER3o8OyjWYR5GWy3+N78GBRWRIn4MeLtNgCGRAmrRJbDAa+/F LGQxJ+1PcqKafZWHolcqh7y0Ty5PoOLwGP9oRpbzC2+JLS1dFLA8xUs6a3REabujLWg5 CmEVvsWZkM/GFX36AkUNXx5cbsRCeDOYHquNsbaXpjdERrU1wMx+9ovir0u3qlSUbQCT PMnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=Cgirbte1; 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 r3si7620156plb.121.2019.05.17.12.57.11; Fri, 17 May 2019 12:57:26 -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=Cgirbte1; 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 S1729158AbfEQSJm (ORCPT + 99 others); Fri, 17 May 2019 14:09:42 -0400 Received: from alln-iport-3.cisco.com ([173.37.142.90]:33423 "EHLO alln-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbfEQSJl (ORCPT ); Fri, 17 May 2019 14:09:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2361; q=dns/txt; s=iport; t=1558116581; x=1559326181; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0g21aU88ovgbJIF975Ro+MDCo4+fJXC5wnaD5d7XJ2M=; b=Cgirbte1hLym+1ErfgvuY1c5SQl4XNgE058c/5Wr7F5lBfwpMjAtOkjT fH7GxAlz0GLNoTx5h+sq5Yt+tAAF9QS8bfGfoBIQFpeWE/AAi48X6w+Jd aVTPy3zZzUWoMmS28wp3NqTU1wnEO+fPI6h959oMhn++EOW/crxvgEAU7 A=; X-IronPort-AV: E=Sophos;i="5.60,480,1549929600"; d="scan'208";a="278503039" Received: from rcdn-core-4.cisco.com ([173.37.93.155]) by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 17 May 2019 18:09:40 +0000 Received: from zorba ([10.24.25.58]) by rcdn-core-4.cisco.com (8.15.2/8.15.2) with ESMTPS id x4HI9c3L014192 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 17 May 2019 18:09:40 GMT Date: Fri, 17 May 2019 11:09:36 -0700 From: Daniel Walker To: Alexander Duyck Cc: Florian Fainelli , "Nikunj Kela (nkela)" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "xe-linux-external(mailer list)" , "David S. Miller" Subject: Re: [Intel-wired-lan] [PATCH] igb: add parameter to ignore nvm checksum validation Message-ID: <20190517180936.nwsw7brjo2yfvnol@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> <20190517010330.2wynopuhsqycqzuq@zorba> <20190517163643.7tlch7xqplxohoq7@zorba> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.24.25.58, [10.24.25.58] X-Outbound-Node: rcdn-core-4.cisco.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 17, 2019 at 09:58:46AM -0700, Alexander Duyck wrote: > > I don't think you can say because the checksum is valid that all data contained > > inside is also valid. You can have a valid checksum , and someone screwed up the > > data prior to the checksum getting computed. > > If someone screwed up the data prior to writing the checksum then that > is on them. In theory we could also have a multi-bit error that could > similarly be missed. However if the checksum is not valid then the > data contained in the NVM does not match what was originally written, > so we know we have bad data. Why should we act on the data if we know > it is bad? It's hypothetical , but it's likely someone has screwed up the data prior to the checksum getting computed. > > > We need to make the checksum a hard stop. If the part is broken then > > > it needs to be addressed. Workarounds just end up being used and > > > forgotten, which makes it that much harder to support the product. > > > Better to mark the part as being broken, and get it fixed now, than to > > > have parts start shipping that require workarounds in order to > > > function.o > > > > I don't think it's realistic to define the development process for large > > corporations like Cisco, or like what your doing , to define the development > > process for all corporations and products which may use intel parts. It's better > > to be flexible. > > > > Daniel > > This isn't about development. If you are doing development you can do > whatever you want with your own downstream driver. What you are > attempting to do is update the upstream driver which is used in > production environments. Cisco has this issue in development, and in production. So your right, it's not about development in isolation. People make mistakes.. > What concerns me is when this module parameter gets used in a > development environment and then slips into being required for a > production environment. At that point it defeats the whole point of > the checksum in the first place. I agree .. Ultimately it's the choice of the OEM, if it gets into production then it's their product and they support the product. As I was saying in a prior email it should be a priority of the driver to give flexibility for mistakes people will inevitably make. Daniel