Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'pci-aer-remove-redundant-device-control-error-reporting-enable'

Bjorn Helgaas says:

====================
PCI/AER: Remove redundant Device Control Error Reporting Enable

From: Bjorn Helgaas <bhelgaas@google.com>

Since f26e58bf6f54 ("PCI/AER: Enable error reporting when AER is native"),
which appeared in v6.0, the PCI core has enabled PCIe error reporting for
all devices during enumeration.

Remove driver code to do this and remove unnecessary includes of
<linux/aer.h> from several other drivers.

Intel folks, sorry that I missed removing the <linux/aer.h> includes in the
first series.
====================

Link: https://lore.kernel.org/r/20230307181940.868828-1-helgaas@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+1 -136
-4
drivers/net/ethernet/atheros/alx/main.c
··· 39 39 #include <linux/ipv6.h> 40 40 #include <linux/if_vlan.h> 41 41 #include <linux/mdio.h> 42 - #include <linux/aer.h> 43 42 #include <linux/bitops.h> 44 43 #include <linux/netdevice.h> 45 44 #include <linux/etherdevice.h> ··· 1744 1745 goto out_pci_disable; 1745 1746 } 1746 1747 1747 - pci_enable_pcie_error_reporting(pdev); 1748 1748 pci_set_master(pdev); 1749 1749 1750 1750 if (!pdev->pm_cap) { ··· 1877 1879 free_netdev(netdev); 1878 1880 out_pci_release: 1879 1881 pci_release_mem_regions(pdev); 1880 - pci_disable_pcie_error_reporting(pdev); 1881 1882 out_pci_disable: 1882 1883 pci_disable_device(pdev); 1883 1884 return err; ··· 1894 1897 iounmap(hw->hw_addr); 1895 1898 pci_release_mem_regions(pdev); 1896 1899 1897 - pci_disable_pcie_error_reporting(pdev); 1898 1900 pci_disable_device(pdev); 1899 1901 1900 1902 mutex_destroy(&alx->mtx);
-21
drivers/net/ethernet/broadcom/bnx2.c
··· 48 48 #include <linux/cache.h> 49 49 #include <linux/firmware.h> 50 50 #include <linux/log2.h> 51 - #include <linux/aer.h> 52 51 #include <linux/crash_dump.h> 53 52 54 53 #if IS_ENABLED(CONFIG_CNIC) ··· 8092 8093 int rc, i, j; 8093 8094 u32 reg; 8094 8095 u64 dma_mask, persist_dma_mask; 8095 - int err; 8096 8096 8097 8097 SET_NETDEV_DEV(dev, &pdev->dev); 8098 8098 bp = netdev_priv(dev); ··· 8174 8176 bp->flags |= BNX2_FLAG_PCIE; 8175 8177 if (BNX2_CHIP_REV(bp) == BNX2_CHIP_REV_Ax) 8176 8178 bp->flags |= BNX2_FLAG_JUMBO_BROKEN; 8177 - 8178 - /* AER (Advanced Error Reporting) hooks */ 8179 - err = pci_enable_pcie_error_reporting(pdev); 8180 - if (!err) 8181 - bp->flags |= BNX2_FLAG_AER_ENABLED; 8182 - 8183 8179 } else { 8184 8180 bp->pcix_cap = pci_find_capability(pdev, PCI_CAP_ID_PCIX); 8185 8181 if (bp->pcix_cap == 0) { ··· 8452 8460 return 0; 8453 8461 8454 8462 err_out_unmap: 8455 - if (bp->flags & BNX2_FLAG_AER_ENABLED) { 8456 - pci_disable_pcie_error_reporting(pdev); 8457 - bp->flags &= ~BNX2_FLAG_AER_ENABLED; 8458 - } 8459 - 8460 8463 pci_iounmap(pdev, bp->regview); 8461 8464 bp->regview = NULL; 8462 8465 ··· 8625 8638 bnx2_free_stats_blk(dev); 8626 8639 kfree(bp->temp_stats_blk); 8627 8640 8628 - if (bp->flags & BNX2_FLAG_AER_ENABLED) { 8629 - pci_disable_pcie_error_reporting(pdev); 8630 - bp->flags &= ~BNX2_FLAG_AER_ENABLED; 8631 - } 8632 - 8633 8641 bnx2_release_firmware(bp); 8634 8642 8635 8643 free_netdev(dev); ··· 8747 8765 dev_close(dev); 8748 8766 } 8749 8767 rtnl_unlock(); 8750 - 8751 - if (!(bp->flags & BNX2_FLAG_AER_ENABLED)) 8752 - return result; 8753 8768 8754 8769 return result; 8755 8770 }
-1
drivers/net/ethernet/broadcom/bnx2.h
··· 6808 6808 #define BNX2_FLAG_JUMBO_BROKEN 0x00000800 6809 6809 #define BNX2_FLAG_CAN_KEEP_VLAN 0x00001000 6810 6810 #define BNX2_FLAG_BROKEN_STATS 0x00002000 6811 - #define BNX2_FLAG_AER_ENABLED 0x00004000 6812 6811 6813 6812 struct bnx2_napi bnx2_napi[BNX2_MAX_MSIX_VEC]; 6814 6813
-1
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
··· 1486 1486 #define IS_VF_FLAG (1 << 22) 1487 1487 #define BC_SUPPORTS_RMMOD_CMD (1 << 23) 1488 1488 #define HAS_PHYS_PORT_ID (1 << 24) 1489 - #define AER_ENABLED (1 << 25) 1490 1489 #define PTP_SUPPORTED (1 << 26) 1491 1490 #define TX_TIMESTAMPING_EN (1 << 27) 1492 1491
-19
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
··· 29 29 #include <linux/slab.h> 30 30 #include <linux/interrupt.h> 31 31 #include <linux/pci.h> 32 - #include <linux/aer.h> 33 32 #include <linux/init.h> 34 33 #include <linux/netdevice.h> 35 34 #include <linux/etherdevice.h> ··· 13036 13037 .ndo_features_check = bnx2x_features_check, 13037 13038 }; 13038 13039 13039 - static void bnx2x_disable_pcie_error_reporting(struct bnx2x *bp) 13040 - { 13041 - if (bp->flags & AER_ENABLED) { 13042 - pci_disable_pcie_error_reporting(bp->pdev); 13043 - bp->flags &= ~AER_ENABLED; 13044 - } 13045 - } 13046 - 13047 13040 static int bnx2x_init_dev(struct bnx2x *bp, struct pci_dev *pdev, 13048 13041 struct net_device *dev, unsigned long board_type) 13049 13042 { ··· 13147 13156 13148 13157 /* Set PCIe reset type to fundamental for EEH recovery */ 13149 13158 pdev->needs_freset = 1; 13150 - 13151 - /* AER (Advanced Error reporting) configuration */ 13152 - rc = pci_enable_pcie_error_reporting(pdev); 13153 - if (!rc) 13154 - bp->flags |= AER_ENABLED; 13155 - else 13156 - BNX2X_DEV_INFO("Failed To configure PCIe AER [%d]\n", rc); 13157 13159 13158 13160 /* 13159 13161 * Clean the following indirect addresses for all functions since it ··· 14004 14020 bnx2x_free_mem_bp(bp); 14005 14021 14006 14022 init_one_exit: 14007 - bnx2x_disable_pcie_error_reporting(bp); 14008 - 14009 14023 if (bp->regview) 14010 14024 iounmap(bp->regview); 14011 14025 ··· 14084 14102 pci_set_power_state(pdev, PCI_D3hot); 14085 14103 } 14086 14104 14087 - bnx2x_disable_pcie_error_reporting(bp); 14088 14105 if (remove_netdev) { 14089 14106 if (bp->regview) 14090 14107 iounmap(bp->regview);
-4
drivers/net/ethernet/broadcom/bnxt/bnxt.c
··· 48 48 #include <linux/prefetch.h> 49 49 #include <linux/cache.h> 50 50 #include <linux/log2.h> 51 - #include <linux/aer.h> 52 51 #include <linux/bitmap.h> 53 52 #include <linux/cpu_rmap.h> 54 53 #include <linux/cpumask.h> ··· 12705 12706 goto init_err_release; 12706 12707 } 12707 12708 12708 - pci_enable_pcie_error_reporting(pdev); 12709 - 12710 12709 INIT_WORK(&bp->sp_task, bnxt_sp_task); 12711 12710 INIT_DELAYED_WORK(&bp->fw_reset_task, bnxt_fw_reset_task); 12712 12711 ··· 13184 13187 bnxt_rdma_aux_device_uninit(bp); 13185 13188 13186 13189 bnxt_ptp_clear(bp); 13187 - pci_disable_pcie_error_reporting(pdev); 13188 13190 unregister_netdev(dev); 13189 13191 clear_bit(BNXT_STATE_IN_FW_RESET, &bp->state); 13190 13192 /* Flush any pending tasks */
-4
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
··· 51 51 #include <linux/mutex.h> 52 52 #include <linux/netdevice.h> 53 53 #include <linux/pci.h> 54 - #include <linux/aer.h> 55 54 #include <linux/rtnetlink.h> 56 55 #include <linux/sched.h> 57 56 #include <linux/seq_file.h> ··· 6686 6687 goto out_free_adapter; 6687 6688 } 6688 6689 6689 - pci_enable_pcie_error_reporting(pdev); 6690 6690 pci_set_master(pdev); 6691 6691 pci_save_state(pdev); 6692 6692 adap_idx++; ··· 7090 7092 out_unmap_bar0: 7091 7093 iounmap(regs); 7092 7094 out_disable_device: 7093 - pci_disable_pcie_error_reporting(pdev); 7094 7095 pci_disable_device(pdev); 7095 7096 out_release_regions: 7096 7097 pci_release_regions(pdev); ··· 7168 7171 } 7169 7172 #endif 7170 7173 iounmap(adapter->regs); 7171 - pci_disable_pcie_error_reporting(pdev); 7172 7174 if ((adapter->flags & CXGB4_DEV_ENABLED)) { 7173 7175 pci_disable_device(pdev); 7174 7176 adapter->flags &= ~CXGB4_DEV_ENABLED;
-8
drivers/net/ethernet/emulex/benet/be_main.c
··· 16 16 #include "be.h" 17 17 #include "be_cmds.h" 18 18 #include <asm/div64.h> 19 - #include <linux/aer.h> 20 19 #include <linux/if_bridge.h> 21 20 #include <net/busy_poll.h> 22 21 #include <net/vxlan.h> ··· 5725 5726 be_unmap_pci_bars(adapter); 5726 5727 be_drv_cleanup(adapter); 5727 5728 5728 - pci_disable_pcie_error_reporting(pdev); 5729 - 5730 5729 pci_release_regions(pdev); 5731 5730 pci_disable_device(pdev); 5732 5731 ··· 5842 5845 goto free_netdev; 5843 5846 } 5844 5847 5845 - status = pci_enable_pcie_error_reporting(pdev); 5846 - if (!status) 5847 - dev_info(&pdev->dev, "PCIe error reporting enabled\n"); 5848 - 5849 5848 status = be_map_pci_bars(adapter); 5850 5849 if (status) 5851 5850 goto free_netdev; ··· 5886 5893 unmap_bars: 5887 5894 be_unmap_pci_bars(adapter); 5888 5895 free_netdev: 5889 - pci_disable_pcie_error_reporting(pdev); 5890 5896 free_netdev(netdev); 5891 5897 rel_reg: 5892 5898 pci_release_regions(pdev);
-5
drivers/net/ethernet/fungible/funcore/fun_dev.c
··· 1 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 2 2 3 - #include <linux/aer.h> 4 3 #include <linux/bitmap.h> 5 4 #include <linux/delay.h> 6 5 #include <linux/interrupt.h> ··· 747 748 pci_free_irq_vectors(pdev); 748 749 749 750 pci_clear_master(pdev); 750 - pci_disable_pcie_error_reporting(pdev); 751 751 pci_disable_device(pdev); 752 752 753 753 fun_unmap_bars(fdev); ··· 778 780 dev_err(&pdev->dev, "Couldn't enable device, err %d\n", rc); 779 781 goto unmap; 780 782 } 781 - 782 - pci_enable_pcie_error_reporting(pdev); 783 783 784 784 rc = sanitize_dev(fdev); 785 785 if (rc) ··· 826 830 free_irqs: 827 831 pci_free_irq_vectors(pdev); 828 832 disable_dev: 829 - pci_disable_pcie_error_reporting(pdev); 830 833 pci_disable_device(pdev); 831 834 unmap: 832 835 fun_unmap_bars(fdev);
-1
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
··· 13 13 #include <linux/ipv6.h> 14 14 #include <linux/module.h> 15 15 #include <linux/pci.h> 16 - #include <linux/aer.h> 17 16 #include <linux/skbuff.h> 18 17 #include <linux/sctp.h> 19 18 #include <net/gre.h>
-1
drivers/net/ethernet/intel/e1000e/netdev.c
··· 23 23 #include <linux/smp.h> 24 24 #include <linux/pm_qos.h> 25 25 #include <linux/pm_runtime.h> 26 - #include <linux/aer.h> 27 26 #include <linux/prefetch.h> 28 27 #include <linux/suspend.h> 29 28
-1
drivers/net/ethernet/intel/fm10k/fm10k_pci.c
··· 3 3 4 4 #include <linux/module.h> 5 5 #include <linux/interrupt.h> 6 - #include <linux/aer.h> 7 6 8 7 #include "fm10k.h" 9 8
-1
drivers/net/ethernet/intel/i40e/i40e.h
··· 10 10 #include <linux/errno.h> 11 11 #include <linux/module.h> 12 12 #include <linux/pci.h> 13 - #include <linux/aer.h> 14 13 #include <linux/netdevice.h> 15 14 #include <linux/ioport.h> 16 15 #include <linux/iommu.h>
-1
drivers/net/ethernet/intel/iavf/iavf.h
··· 6 6 7 7 #include <linux/module.h> 8 8 #include <linux/pci.h> 9 - #include <linux/aer.h> 10 9 #include <linux/netdevice.h> 11 10 #include <linux/vmalloc.h> 12 11 #include <linux/interrupt.h>
-1
drivers/net/ethernet/intel/ice/ice.h
··· 20 20 #include <linux/pci.h> 21 21 #include <linux/workqueue.h> 22 22 #include <linux/wait.h> 23 - #include <linux/aer.h> 24 23 #include <linux/interrupt.h> 25 24 #include <linux/ethtool.h> 26 25 #include <linux/timer.h>
-1
drivers/net/ethernet/intel/igb/igb_main.c
··· 28 28 #include <linux/tcp.h> 29 29 #include <linux/sctp.h> 30 30 #include <linux/if_ether.h> 31 - #include <linux/aer.h> 32 31 #include <linux/prefetch.h> 33 32 #include <linux/bpf.h> 34 33 #include <linux/bpf_trace.h>
-1
drivers/net/ethernet/intel/igc/igc_main.c
··· 4 4 #include <linux/module.h> 5 5 #include <linux/types.h> 6 6 #include <linux/if_vlan.h> 7 - #include <linux/aer.h> 8 7 #include <linux/tcp.h> 9 8 #include <linux/udp.h> 10 9 #include <linux/ip.h>
-1
drivers/net/ethernet/intel/ixgbe/ixgbe.h
··· 9 9 #include <linux/pci.h> 10 10 #include <linux/netdevice.h> 11 11 #include <linux/cpumask.h> 12 - #include <linux/aer.h> 13 12 #include <linux/if_vlan.h> 14 13 #include <linux/jiffies.h> 15 14 #include <linux/phy.h>
-4
drivers/net/ethernet/marvell/octeon_ep/octep_main.c
··· 8 8 #include <linux/types.h> 9 9 #include <linux/module.h> 10 10 #include <linux/pci.h> 11 - #include <linux/aer.h> 12 11 #include <linux/netdevice.h> 13 12 #include <linux/etherdevice.h> 14 13 #include <linux/rtnetlink.h> ··· 1049 1050 goto err_pci_regions; 1050 1051 } 1051 1052 1052 - pci_enable_pcie_error_reporting(pdev); 1053 1053 pci_set_master(pdev); 1054 1054 1055 1055 netdev = alloc_etherdev_mq(sizeof(struct octep_device), ··· 1104 1106 err_octep_config: 1105 1107 free_netdev(netdev); 1106 1108 err_alloc_netdev: 1107 - pci_disable_pcie_error_reporting(pdev); 1108 1109 pci_release_mem_regions(pdev); 1109 1110 err_pci_regions: 1110 1111 err_dma_mask: ··· 1136 1139 octep_device_cleanup(oct); 1137 1140 pci_release_mem_regions(pdev); 1138 1141 free_netdev(netdev); 1139 - pci_disable_pcie_error_reporting(pdev); 1140 1142 pci_disable_device(pdev); 1141 1143 } 1142 1144
+1 -9
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
··· 18 18 #include <linux/ipv6.h> 19 19 #include <linux/inetdevice.h> 20 20 #include <linux/sysfs.h> 21 - #include <linux/aer.h> 22 21 23 22 MODULE_DESCRIPTION("QLogic/NetXen (1/10) GbE Intelligent Ethernet Driver"); 24 23 MODULE_LICENSE("GPL"); ··· 1463 1464 if ((err = pci_request_regions(pdev, netxen_nic_driver_name))) 1464 1465 goto err_out_disable_pdev; 1465 1466 1466 - if (NX_IS_REVISION_P3(pdev->revision)) 1467 - pci_enable_pcie_error_reporting(pdev); 1468 - 1469 1467 pci_set_master(pdev); 1470 1468 1471 1469 netdev = alloc_etherdev(sizeof(struct netxen_adapter)); ··· 1599 1603 free_netdev(netdev); 1600 1604 1601 1605 err_out_free_res: 1602 - if (NX_IS_REVISION_P3(pdev->revision)) 1603 - pci_disable_pcie_error_reporting(pdev); 1604 1606 pci_release_regions(pdev); 1605 1607 1606 1608 err_out_disable_pdev: ··· 1653 1659 1654 1660 netxen_release_firmware(adapter); 1655 1661 1656 - if (NX_IS_REVISION_P3(pdev->revision)) { 1662 + if (NX_IS_REVISION_P3(pdev->revision)) 1657 1663 netxen_cleanup_minidump(adapter); 1658 - pci_disable_pcie_error_reporting(pdev); 1659 - } 1660 1664 1661 1665 pci_release_regions(pdev); 1662 1666 pci_disable_device(pdev);
-9
drivers/net/ethernet/qlogic/qed/qed_main.c
··· 23 23 #include <linux/qed/qed_if.h> 24 24 #include <linux/qed/qed_ll2_if.h> 25 25 #include <net/devlink.h> 26 - #include <linux/aer.h> 27 26 #include <linux/phylink.h> 28 27 29 28 #include "qed.h" ··· 258 259 { 259 260 struct pci_dev *pdev = cdev->pdev; 260 261 261 - pci_disable_pcie_error_reporting(pdev); 262 - 263 262 if (cdev->doorbells && cdev->db_size) 264 263 iounmap(cdev->doorbells); 265 264 if (cdev->regview) ··· 362 365 DP_NOTICE(cdev, "Cannot map doorbell space\n"); 363 366 return -ENOMEM; 364 367 } 365 - 366 - /* AER (Advanced Error reporting) configuration */ 367 - rc = pci_enable_pcie_error_reporting(pdev); 368 - if (rc) 369 - DP_VERBOSE(cdev, NETIF_MSG_DRV, 370 - "Failed to configure PCIe AER [%d]\n", rc); 371 368 372 369 return 0; 373 370
-1
drivers/net/ethernet/qlogic/qede/qede_main.c
··· 35 35 #include <net/ip6_checksum.h> 36 36 #include <linux/bitops.h> 37 37 #include <linux/vmalloc.h> 38 - #include <linux/aer.h> 39 38 #include "qede.h" 40 39 #include "qede_ptp.h" 41 40
-1
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
··· 8 8 #include <linux/ipv6.h> 9 9 #include <linux/ethtool.h> 10 10 #include <linux/interrupt.h> 11 - #include <linux/aer.h> 12 11 13 12 #include "qlcnic.h" 14 13 #include "qlcnic_sriov.h"
-4
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
··· 12 12 #include <net/ip.h> 13 13 #include <linux/ipv6.h> 14 14 #include <linux/inetdevice.h> 15 - #include <linux/aer.h> 16 15 #include <linux/log2.h> 17 16 #include <linux/pci.h> 18 17 #include <net/vxlan.h> ··· 2444 2445 goto err_out_disable_pdev; 2445 2446 2446 2447 pci_set_master(pdev); 2447 - pci_enable_pcie_error_reporting(pdev); 2448 2448 2449 2449 ahw = kzalloc(sizeof(struct qlcnic_hardware_context), GFP_KERNEL); 2450 2450 if (!ahw) { ··· 2673 2675 kfree(ahw); 2674 2676 2675 2677 err_out_free_res: 2676 - pci_disable_pcie_error_reporting(pdev); 2677 2678 pci_release_regions(pdev); 2678 2679 2679 2680 err_out_disable_pdev: ··· 2754 2757 2755 2758 qlcnic_release_firmware(adapter); 2756 2759 2757 - pci_disable_pcie_error_reporting(pdev); 2758 2760 pci_release_regions(pdev); 2759 2761 pci_disable_device(pdev); 2760 2762
-1
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c
··· 12 12 #include <linux/ipv6.h> 13 13 #include <linux/inetdevice.h> 14 14 #include <linux/sysfs.h> 15 - #include <linux/aer.h> 16 15 #include <linux/log2.h> 17 16 #ifdef CONFIG_QLCNIC_HWMON 18 17 #include <linux/hwmon.h>
-3
drivers/net/ethernet/sfc/ef100.c
··· 11 11 12 12 #include "net_driver.h" 13 13 #include <linux/module.h> 14 - #include <linux/aer.h> 15 14 #include "efx_common.h" 16 15 #include "efx_channels.h" 17 16 #include "io.h" ··· 438 439 efx_fini_io(efx); 439 440 440 441 pci_dbg(pci_dev, "shutdown successful\n"); 441 - 442 - pci_disable_pcie_error_reporting(pci_dev); 443 442 444 443 pci_set_drvdata(pci_dev, NULL); 445 444 efx_fini_struct(efx);
-5
drivers/net/ethernet/sfc/efx.c
··· 18 18 #include <linux/ethtool.h> 19 19 #include <linux/topology.h> 20 20 #include <linux/gfp.h> 21 - #include <linux/aer.h> 22 21 #include <linux/interrupt.h> 23 22 #include "net_driver.h" 24 23 #include <net/gre.h> ··· 891 892 free_netdev(efx->net_dev); 892 893 probe_data = container_of(efx, struct efx_probe_data, efx); 893 894 kfree(probe_data); 894 - 895 - pci_disable_pcie_error_reporting(pci_dev); 896 895 }; 897 896 898 897 /* NIC VPD information ··· 1122 1125 if (rc && rc != -EPERM) 1123 1126 netif_warn(efx, probe, efx->net_dev, 1124 1127 "failed to create MTDs (%d)\n", rc); 1125 - 1126 - (void)pci_enable_pcie_error_reporting(pci_dev); 1127 1128 1128 1129 if (efx->type->udp_tnl_push_ports) 1129 1130 efx->type->udp_tnl_push_ports(efx);
-9
drivers/net/ethernet/sfc/falcon/efx.c
··· 17 17 #include <linux/ethtool.h> 18 18 #include <linux/topology.h> 19 19 #include <linux/gfp.h> 20 - #include <linux/aer.h> 21 20 #include <linux/interrupt.h> 22 21 #include "net_driver.h" 23 22 #include "efx.h" ··· 2764 2765 2765 2766 ef4_fini_struct(efx); 2766 2767 free_netdev(efx->net_dev); 2767 - 2768 - pci_disable_pcie_error_reporting(pci_dev); 2769 2768 }; 2770 2769 2771 2770 /* NIC VPD information ··· 2923 2926 if (rc && rc != -EPERM) 2924 2927 netif_warn(efx, probe, efx->net_dev, 2925 2928 "failed to create MTDs (%d)\n", rc); 2926 - 2927 - rc = pci_enable_pcie_error_reporting(pci_dev); 2928 - if (rc && rc != -EINVAL) 2929 - netif_notice(efx, probe, efx->net_dev, 2930 - "PCIE error reporting unavailable (%d).\n", 2931 - rc); 2932 2929 2933 2930 return 0; 2934 2931
-5
drivers/net/ethernet/sfc/siena/efx.c
··· 18 18 #include <linux/ethtool.h> 19 19 #include <linux/topology.h> 20 20 #include <linux/gfp.h> 21 - #include <linux/aer.h> 22 21 #include <linux/interrupt.h> 23 22 #include "net_driver.h" 24 23 #include <net/gre.h> ··· 873 874 874 875 efx_siena_fini_struct(efx); 875 876 free_netdev(efx->net_dev); 876 - 877 - pci_disable_pcie_error_reporting(pci_dev); 878 877 }; 879 878 880 879 /* NIC VPD information ··· 1090 1093 if (rc && rc != -EPERM) 1091 1094 netif_warn(efx, probe, efx->net_dev, 1092 1095 "failed to create MTDs (%d)\n", rc); 1093 - 1094 - (void)pci_enable_pcie_error_reporting(pci_dev); 1095 1096 1096 1097 if (efx->type->udp_tnl_push_ports) 1097 1098 efx->type->udp_tnl_push_ports(efx);
-4
drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
··· 6 6 #include <linux/pci.h> 7 7 #include <linux/netdevice.h> 8 8 #include <linux/string.h> 9 - #include <linux/aer.h> 10 9 #include <linux/etherdevice.h> 11 10 #include <net/ip.h> 12 11 #include <linux/phy.h> ··· 519 520 goto err_pci_disable_dev; 520 521 } 521 522 522 - pci_enable_pcie_error_reporting(pdev); 523 523 pci_set_master(pdev); 524 524 525 525 netdev = devm_alloc_etherdev_mqs(&pdev->dev, ··· 667 669 err_free_mac_table: 668 670 kfree(wx->mac_table); 669 671 err_pci_release_regions: 670 - pci_disable_pcie_error_reporting(pdev); 671 672 pci_release_selected_regions(pdev, 672 673 pci_select_bars(pdev, IORESOURCE_MEM)); 673 674 err_pci_disable_dev: ··· 695 698 696 699 kfree(wx->mac_table); 697 700 wx_clear_interrupt_scheme(wx); 698 - pci_disable_pcie_error_reporting(pdev); 699 701 700 702 pci_disable_device(pdev); 701 703 }
-5
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c
··· 6 6 #include <linux/pci.h> 7 7 #include <linux/netdevice.h> 8 8 #include <linux/string.h> 9 - #include <linux/aer.h> 10 9 #include <linux/etherdevice.h> 11 10 #include <net/ip.h> 12 11 ··· 537 538 goto err_pci_disable_dev; 538 539 } 539 540 540 - pci_enable_pcie_error_reporting(pdev); 541 541 pci_set_master(pdev); 542 542 543 543 netdev = devm_alloc_etherdev_mqs(&pdev->dev, ··· 696 698 err_free_mac_table: 697 699 kfree(wx->mac_table); 698 700 err_pci_release_regions: 699 - pci_disable_pcie_error_reporting(pdev); 700 701 pci_release_selected_regions(pdev, 701 702 pci_select_bars(pdev, IORESOURCE_MEM)); 702 703 err_pci_disable_dev: ··· 725 728 726 729 kfree(wx->mac_table); 727 730 wx_clear_interrupt_scheme(wx); 728 - 729 - pci_disable_pcie_error_reporting(pdev); 730 731 731 732 pci_disable_device(pdev); 732 733 }