diff options
author | Brian King <brking@linux.vnet.ibm.com> | 2015-03-04 08:09:44 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-05 15:38:24 -0500 |
commit | da293700568ed3d96fcf062ac15d7d7c41377f11 (patch) | |
tree | 82778a90f3c21b8eae136780b0106c459427bb26 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | |
parent | 08c852c43a707333baa1329c4df6f628c345bbc3 (diff) | |
download | linux-da293700568ed3d96fcf062ac15d7d7c41377f11.tar.gz linux-da293700568ed3d96fcf062ac15d7d7c41377f11.tar.bz2 linux-da293700568ed3d96fcf062ac15d7d7c41377f11.zip |
bnx2x: Force fundamental reset for EEH recovery
EEH recovery for bnx2x based adapters is not reliable on all Power
systems using the default hot reset, which can result in an
unrecoverable EEH error. Forcing the use of fundamental reset
during EEH recovery fixes this.
Cc: stable<stable@vger.kernel.org>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 7155e1d2c208..bef750a09027 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c @@ -12722,6 +12722,9 @@ static int bnx2x_init_dev(struct bnx2x *bp, struct pci_dev *pdev, pci_write_config_dword(bp->pdev, PCICFG_GRC_ADDRESS, PCICFG_VENDOR_ID_OFFSET); + /* Set PCIe reset type to fundamental for EEH recovery */ + pdev->needs_freset = 1; + /* AER (Advanced Error reporting) configuration */ rc = pci_enable_pcie_error_reporting(pdev); if (!rc) |