Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11775973rwl; Tue, 3 Jan 2023 04:41:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXu09632ef9vBIbXtUueEu1ldQad87JRaZ//kGRTb1xFzBW7mtB9ooD68tarVoSZO+Dt06s0 X-Received: by 2002:a05:6a20:2d99:b0:af:c871:c723 with SMTP id bf25-20020a056a202d9900b000afc871c723mr49023815pzb.33.1672749717582; Tue, 03 Jan 2023 04:41:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672749717; cv=none; d=google.com; s=arc-20160816; b=ZPKMOuLPTVdby11f7WtrUvxcm3j5cw2JI5R0POeEzkbEDxFTak/YH3e4t5JY3EnXrg crtPlmVyY1Hi3Pn9dECXD3OtCSgrMUMIAm8Q+DWSM1Wec4CuVNmSMLbntJKdLXRy0v5X SHIApybJNRWE2TrFhhnVirzdi0Z3bkFu3bUvVvO6DuuXDF+yQO0gHyD4T+fG4LTtiKaK OeW465UGwCCHuDvX6pyU+LGmXJmj5h4p1MeEGwD/OrY9uz/as47VUy7LP30drcIQ8UR2 0S5tiHW5y9sHetIgb9KExegDwqP+wtm0Za9w8N+r/IAaE19HeU/BV2L6JLWGi2lrMJXW MjeQ== 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=iuk4dqVeW/k5C6EMRjVnfSXxZaEu9DIcrC2YsI3peyw=; b=Ic5f/ZIQUzoc72ubkfnwN5NqLDLUC0bU+hj2BWs/NCaHfqkPRRDaZbGb7EZ0PqggCK ZERZhtNJvBkurIXb75d9sfULaV7XHyUergGLCIDvgLSs1y5oIOoGohtweW6UuoimhDqZ Y8vGEuGdDsABNkA88/1L1yoCCw6YrWztwWZOdmosnjMwp/dPsWYBfmQ+8UR9jCS3M+XA QqPx+kYUWw51pqRUULP1c1ADJlsjonx3rCwwKRqZ6i5DgaYK56tKW4vO+38MukPSQnvp kb+AoemPS/4fNpiaQ+5TgwOhM6M7yhCqY3b3X2x59+kCcS3e3muIK7arPd98+rn4Ewn5 0R4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q38z5R7W; 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 i70-20020a638749000000b0046ef5b3572fsi32070446pge.562.2023.01.03.04.41.40; Tue, 03 Jan 2023 04:41:57 -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=q38z5R7W; 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 S237513AbjACMAO (ORCPT + 60 others); Tue, 3 Jan 2023 07:00:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232179AbjACMAK (ORCPT ); Tue, 3 Jan 2023 07:00:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D829DDF55; Tue, 3 Jan 2023 04:00:09 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 6E043612D6; Tue, 3 Jan 2023 12:00:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11E8CC433EF; Tue, 3 Jan 2023 12:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672747208; bh=h9kbUWYnH4uArH2bII+AxBQ3uPevdlLQIWanWnBVjHE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q38z5R7Wd5krBkticzxr5cxpBQ+YI7yuKgc63H0GQ3zlDV7LmPUlvb5iQm6WpJAft Sxnd24XCamUMxt+EttTPccaKXWv2elj/CBQI6DyrrnBM8n6z6Tc6c8QD5t33rCug7+ kTw7DfxbjsTvpcF00WZgEsNDKDXw4JSalHR3exzPEBYor3+A8cE5m6ehbqWRTEt3DG K1Ne/T13pWfiG8yUkv9SpoAVh4fWcq+PgsIYlGk1fBbnKjGXyDeDL53c7Lii/Aglbu vDhRjcmXUAqCWauLQ9RWopeJiSxYG3ocHhqaugixEKM0qfM8v3yNE2/fPP8cxYi2RO 2zJEs2gERKq9w== Date: Tue, 3 Jan 2023 14:00:04 +0200 From: Leon Romanovsky To: Bjorn Helgaas Cc: Paul Menzel , Rajat Khandelwal , linux-pci@vger.kernel.org, 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, kuba@kernel.org, Bjorn Helgaas , anthony.l.nguyen@intel.com, pabeni@redhat.com, davem@davemloft.net Subject: Re: [Intel-wired-lan] [PATCH] igc: Mask replay rollover/timeout errors in I225_LMVP Message-ID: References: <20230103115402.GA848993@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230103115402.GA848993@bhelgaas> 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 05:54:02AM -0600, Bjorn Helgaas wrote: > On Tue, Jan 03, 2023 at 11:54:24AM +0200, Leon Romanovsky wrote: > > On Sun, Jan 01, 2023 at 11:34:21AM +0100, Paul Menzel wrote: > > > Am 01.01.23 um 09:32 schrieb Leon Romanovsky: > > > > On Thu, Dec 29, 2022 at 05:56:40PM +0530, Rajat Khandelwal wrote: > > > > > The CPU logs get flooded with replay rollover/timeout AER errors in > > > > > the system with i225_lmvp connected, usually inside thunderbolt devices. > > > > > > > > > > One of the prominent TBT4 docks we use is HP G4 Hook2, which incorporates > > > > > an Intel Foxville chipset, which uses the igc driver. > > > > > On connecting ethernet, CPU logs get inundated with these errors. The point > > > > > is we shouldn't be spamming the logs with such correctible errors as it > > > > > confuses other kernel developers less familiar with PCI errors, support > > > > > staff, and users who happen to look at the logs. > > > > > > --- a/drivers/net/ethernet/intel/igc/igc_main.c > > > > > +++ b/drivers/net/ethernet/intel/igc/igc_main.c > > > > > > +static void igc_mask_aer_replay_correctible(struct igc_adapter *adapter) > > > > > Shouldn't this igc_mask_aer_replay_correctible function be implemented > > > > in drivers/pci/quirks.c and not in igc_probe()? > > > > > > Probably. Though I think, the PCI quirk file, is getting too big. > > > > As long as that file is right location, we should use it. > > One can refactor quirk file later. > > 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. Thanks