Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12850876rwl; Tue, 3 Jan 2023 23:00:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXvnpeZG4aNICUFsM25vysuTNpKRnbcvkCHMfpg4edUac4jjNTb0aC9jd+DQKqvj+D9umKbA X-Received: by 2002:a17:906:9f28:b0:7c1:5b5e:4d85 with SMTP id fy40-20020a1709069f2800b007c15b5e4d85mr38096182ejc.51.1672815603291; Tue, 03 Jan 2023 23:00:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672815603; cv=none; d=google.com; s=arc-20160816; b=TxRi+EuHT5M/luS1EHBGcfL2KaSfbsMQM7FDdSkM3nzNlxcOumoy4ufUxpthZ3pAyg ZPu0lMXdiKPYFgSTx9BxMmXb6dZuJYOWk0jE8XA1+mjhRcG4jN/nJFqzJmxxpRwITXF/ WrLwS1PKemlQLXPTQCi7DiirWJ2/sFt+w9MxMAu3N7mX+HMS4IKKMzMR6WopturArRoT NrT5Hv1rMEvPXoh+EN8+TOgzJ42NVVlOVsmvCN7/u+m50jc9sQDejMDfuexaR0BJOMwQ SXyhIOUTXW46zCjbxxCyKPL4zMU1VWRiq5fY3CS7YapQguGtQu8PCf3n3YAdddqF1iPU 7p0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=or27k1+xFlTD+oQycqSHFlZjpBLfPQRuoalt/DpUYkg=; b=SCHI4vXylvYcN5WqWqvlit+RJb/Cn8zxb4eWMAxpRmvpBjF0G619ZmxHXcumLqWFvB fmgfZGUWA/M8KHkckL6lTsshb2Q0KSt05c17l93eJjPTOzeAR1VAVuKDT04k+11PTB91 QGWC3wZguSQGxw7cHkyZN3YR23cjLcI2tE8Lb4qqdsGk6Db1GdbOrUnGz8i2h98VDe5e C984EYe1Fr5QlUSlwyyReGrib8I9qH4xpNCzLUkpiEAPaDITkwx96JO84uRgUqGE1gl9 XlidWjc3kbYVd7egcJxB2LS+DLOLB6MB/Ywz3zoOfc69TknYt714CuQ0BQfnHDTr9EGc kPFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tsyBcvrO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs13-20020a1709072d0d00b0084bbb86a74fsi26847734ejc.540.2023.01.03.22.59.47; Tue, 03 Jan 2023 23:00:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tsyBcvrO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233257AbjADGbm (ORCPT + 59 others); Wed, 4 Jan 2023 01:31:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231201AbjADGbk (ORCPT ); Wed, 4 Jan 2023 01:31:40 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8823D13FAF; Tue, 3 Jan 2023 22:31:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D1FA2B811FC; Wed, 4 Jan 2023 06:31:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDD17C433D2; Wed, 4 Jan 2023 06:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672813896; bh=Jq89Kt6GXbDbgoUy01U5qC9TI8NvX/meP04iOIsIWiI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tsyBcvrO9BpqHYiYlcjjB3N0yH9nUsyCTkPW7A/evdYAongrrcXQX4nAzJL6wC3/K HA6PDhkl9YJln6ARlXdV2EPyjOJbVAJ4wEQVonw6o7o4nQV8Kkn4kCCNzXKwfotpth GlUZOfj/YqcjPoSj4CyL39AUxwcCdXwGQnSMyQpGnVFTJkl/7Br0xPtA2oVrv+W2Iw QuAixiTJuVlBl+L1WSixJ6cRESXTwJcOt0xf3L+hl6AM84HcZbHeDnIm3WAd0SouGs 4AnHa5iixo/WzKvmVbCNof3Sb1WBmV8VnvvX7Ffl88xwqOmAaZ9Y0vaTvZvX7yKVgL Gqte4Rc26WGkw== Date: Wed, 4 Jan 2023 08:31:31 +0200 From: Leon Romanovsky To: Bjorn Helgaas Cc: Paul Menzel , Rajat Khandelwal , anthony.l.nguyen@intel.com, netdev@vger.kernel.org, rajat.khandelwal@intel.com, jesse.brandeburg@intel.com, linux-kernel@vger.kernel.org, edumazet@google.com, intel-wired-lan@lists.osuosl.org, linux-pci@vger.kernel.org, Bjorn Helgaas , kuba@kernel.org, pabeni@redhat.com, davem@davemloft.net Subject: Re: [Intel-wired-lan] [PATCH] igc: Mask replay rollover/timeout errors in I225_LMVP Message-ID: References: <20230103142104.GA996978@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 03, 2023 at 07:16:58PM +0200, Leon Romanovsky wrote: > On Tue, Jan 03, 2023 at 08:21:04AM -0600, Bjorn Helgaas wrote: <...> > > > > If a quirk like this is only needed when the driver is loaded, > > > > > > This is always the case with PCI devices managed through kernel, isn't it? > > > Users don't care/aware about "broken" devices unless they start to use them. > > > > Indeed, that's usually the case. There's a lot of stuff in quirks.c > > that could probably be in drivers instead. > > NP, so or deprecate quirks.c and prohibit any change to that file or > don't allow drivers to mangle PCI in their probe routines. > Everything in-between will cause to enormous mess in long run. Another thing to consider what if you go with "probe variant", users will see behavioral differences between drivers and subsystems on how to control these quirks. As an example, see proposal in this thread to add ethtool private flag to enable/disable quirk. In other places, it will be module parameter, sysfs or special to that subsystem tool. Thanks > > Thanks > > > > > Bjorn