login
Header Space

 
 

[PATCH 5/8] ixgbe: save and restore pcie/msi state to support EEH recovery

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <jeff@...>
Cc: <netdev@...>, <e1000-devel@...>
Date: Wednesday, April 23, 2008 - 2:09 pm

From: Wendy Xiong <wendyx@us.ibm.com>

To enable EEH support for pci-express network adapters, pcie/msi state
needs to be saved and restored for that adapter.

Tested this EEH patch with Intel 10G pci-express ixgbe adapter.

Signed-off-by: Wendy Xiong <wendyx@us.ibm.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
---

 drivers/net/ixgbe/ixgbe_main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index cb371a8..7b85922 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -3431,6 +3431,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
 	}
 
 	pci_set_master(pdev);
+	pci_save_state(pdev);
 
 #ifdef CONFIG_NETDEVICES_MULTIQUEUE
 	netdev = alloc_etherdev_mq(sizeof(struct ixgbe_adapter), MAX_TX_QUEUES);
@@ -3721,6 +3722,7 @@ static pci_ers_result_t ixgbe_io_slot_reset(struct pci_dev *pdev)
 		return PCI_ERS_RESULT_DISCONNECT;
 	}
 	pci_set_master(pdev);
+	pci_restore_state(pdev);
 
 	pci_enable_wake(pdev, PCI_D3hot, 0);
 	pci_enable_wake(pdev, PCI_D3cold, 0);

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/8] e1000e: cleanup several stats issues, Auke Kok, (Wed Apr 23, 2:09 pm)
Re: [PATCH 1/8] e1000e: cleanup several stats issues, Jeff Garzik, (Fri Apr 25, 2:01 am)
Re: [PATCH 1/8] e1000e: cleanup several stats issues, Kok, Auke, (Fri Apr 25, 12:39 pm)
[PATCH 5/8] ixgbe: save and restore pcie/msi state to suppor..., Auke Kok, (Wed Apr 23, 2:09 pm)
[PATCH 8/8] e1000e: Increment version to 0.2.1, Auke Kok, (Wed Apr 23, 2:09 pm)
[PATCH 4/8] e1000e: lower ring minimum size to 64, Auke Kok, (Wed Apr 23, 2:09 pm)
speck-geostationary