Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2121890rwb; Thu, 19 Jan 2023 21:30:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXv7kgojnZhy3hHCMjRIvDBOsNL1LzRHTGZM0J5fF9UtisLr5PG/MRBxOrg0wEyhULSecsXV X-Received: by 2002:a17:906:6d9:b0:7c0:bbab:22e5 with SMTP id v25-20020a17090606d900b007c0bbab22e5mr13997017ejb.16.1674192650150; Thu, 19 Jan 2023 21:30:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674192650; cv=none; d=google.com; s=arc-20160816; b=K2aX7I7jw7MtuWFMN983a+ZYWAGN07sOv8vHjg5V5xBLT1Rwl7dpgl/Mly4b/Yst5T hy7+YjBrhY8ckKhkihJWS3kPgntlREwbbp89EI9EpXGGW023tJi/qcnTMGNGwzoDYin7 fNT7+NVYSBPDTfp7NzClKKcJO7x0NrxFfKroAh0GsiFGpaHkNqjfoL/oFhxEDV55+qwK sD1KkLGkoRpxxrrbCY+bvRU4oeuLY+/MBNV4SuzHJJTs9rdj1BHyELmdr7Ctvkth22Wi yQ3iguC2cTP1PPBDu736FJLrY0uMSSC6taZw1Idg7vv03zPl7FwODWYpeyHJSHuV0JJH wfGw== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=s87Y9b/ufLAWFESsD00eal2aKrWns5uKPf02Y9bSzjU=; b=kmEkBjdgb5mbZgX5D4sQQ8g6511cGDVWbqcU8YhKZX9nlCw91bYSGVQVj/VyMsK9RN kciH6OoAAWC7NMz96bNFTcsIt18xqWKogSjQwvQ1ssNdYl9x4qY/Nk2hC350qDOsR+31 cWSfr51Kr4JRW56SQ61ojYPzdGTROyrdpiNRa7sxdhUaYcACuU+SgcHKozd2pnXV/bpA uyIlsxklNanRP9DUvzI0Bn7ciu0b+iMtBTgBt8FxNuVw/IbeIu04xkxwSGiTLWxJEwO/ QjljA7wNYSLx1xvLco7W0Fep5++3GygKX0KLdSAGAaHy5Eg1QXlWUYx9CgO2BndTKWk1 jDvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="O+/lT7Yv"; 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 be5-20020a1709070a4500b0084cb7291b22si42112551ejc.847.2023.01.19.21.30.38; Thu, 19 Jan 2023 21:30:50 -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="O+/lT7Yv"; 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 S231305AbjATFPO (ORCPT + 47 others); Fri, 20 Jan 2023 00:15:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231414AbjATFOz (ORCPT ); Fri, 20 Jan 2023 00:14:55 -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 D829545212; Thu, 19 Jan 2023 21:03:36 -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 E3972B82015; Thu, 19 Jan 2023 04:26:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B590C433EF; Thu, 19 Jan 2023 04:26:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674102381; bh=Mfk8kWgrggh7nLfPyOq/xtH5uobwBVywJEcQt80do9w=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=O+/lT7YvCltvh3aXo3p5FdOCc6qZIONAmVtNYqX5UY80lHSuJrC8/mMfq4xQXSeIU LUeG3Owic9BOxrXKhO8UhYFIMgD5Y97kMZb3SWScz8uzbAN9CkCUvaRFYcCC4qF206 rwoRxp7h9b9vOGf3i4TpltaoBO4d9bNM7TUp6QXGN8SZ/hpzJPUD04zhrSVGKXrznZ xOCAWki2QdNb+uUd0l2VgHoKbKUKGhsJ27JKG8OX/O6HFelcZ5kahfPkVTmg9Ky2p9 ZUHHONT6BgB9fj4/XDGE49oQExT0BxxVkhh2gShlrjyS6J8+Pzjv4lQEz2inJeyTQ3 FuQMfiBCw8mWg== Date: Wed, 18 Jan 2023 22:26:19 -0600 From: Bjorn Helgaas To: Sathyanarayanan Kuppuswamy Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: Re: [PATCH 0/9] PCI/AER: Remove redundant Device Control Error Reporting Enable Message-ID: <20230119042619.GA288847@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 Wed, Jan 18, 2023 at 07:55:33PM -0800, Sathyanarayanan Kuppuswamy wrote: > On 1/18/23 3:46 PM, Bjorn Helgaas wrote: > > From: Bjorn Helgaas > > > > Since f26e58bf6f54 ("PCI/AER: Enable error reporting when AER is native"), > > ths PCI core sets the Device Control bits that enable error reporting for > > PCIe devices. > > > > This series removes redundant calls to pci_enable_pcie_error_reporting() > > that do the same thing from the AER driver and several NIC drivers. > > > > There are several more drivers where this should be removed; I started with > > just the Intel drivers here. > > > > Bjorn Helgaas (9): > > PCI/AER: Remove redundant Device Control Error Reporting Enable > > e1000e: Remove redundant pci_enable_pcie_error_reporting() > > fm10k: Remove redundant pci_enable_pcie_error_reporting() > > i40e: Remove redundant pci_enable_pcie_error_reporting() > > iavf: Remove redundant pci_enable_pcie_error_reporting() > > ice: Remove redundant pci_enable_pcie_error_reporting() > > igb: Remove redundant pci_enable_pcie_error_reporting() > > igc: Remove redundant pci_enable_pcie_error_reporting() > > ixgbe: Remove redundant pci_enable_pcie_error_reporting() > > It should be simpler to do in one patch. Any reason to split > it into multiple patches? Sure, the driver patches could easily be squashed, either by me or be the netdev folks if they prefer it that way. There are close to 50 callers, and I hesitate to do them all in a single patch because it becomes unwieldy to backport (probably pointless for this situation) or to revert if there's any issue. These are all trivial removals, but there are a few that are more complicated and will require closer review, so I didn't include those here. > > drivers/net/ethernet/intel/e1000e/netdev.c | 7 --- > > drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 5 -- > > drivers/net/ethernet/intel/i40e/i40e_main.c | 4 -- > > drivers/net/ethernet/intel/iavf/iavf_main.c | 5 -- > > drivers/net/ethernet/intel/ice/ice_main.c | 3 -- > > drivers/net/ethernet/intel/igb/igb_main.c | 5 -- > > drivers/net/ethernet/intel/igc/igc_main.c | 5 -- > > drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 5 -- > > drivers/pci/pcie/aer.c | 48 ------------------- > > 9 files changed, 87 deletions(-) > > > > -- > Sathyanarayanan Kuppuswamy > Linux Kernel Developer