]> git.hungrycats.org Git - linux/commitdiff
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)
committerZefan Li <lizefan@huawei.com>
Fri, 19 Jun 2015 03:40:23 +0000 (11:40 +0800)
commit da293700568ed3d96fcf062ac15d7d7c41377f11 upstream.

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.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

index b8e7f3e082e9ddf0ab5348132d4d47326b78d554..1e274e72b8f55b805ee75d77cdddfec12ef93e0e 100644 (file)
@@ -10934,6 +10934,10 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev,
        /* clean indirect addresses */
        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;
+
        /*
         * Clean the following indirect addresses for all functions since it
         * is not used by the driver.