bnx2x: Force fundamental reset for EEH recovery
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 4 Mar 2015 14:09:44 +0000 (08:09 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2015 20:38:24 +0000 (15:38 -0500)
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>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

index 7155e1d2c208c7253b846ee954086fef5fd574da..bef750a090276a8dd1131e0e5696129d2b996053 100644 (file)
@@ -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)