* [PATCH 1/3] ixgbe: save and restore pcie/msi state to support EEH recovery
@ 2008-04-15 17:57 Auke Kok
2008-04-15 17:57 ` [PATCH 2/3] e1000e: " Auke Kok
2008-04-15 17:57 ` [PATCH 3/3] igb: " Auke Kok
0 siblings, 2 replies; 5+ messages in thread
From: Auke Kok @ 2008-04-15 17:57 UTC (permalink / raw)
To: jeff; +Cc: e1000-devel, netdev, wendyx
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);
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] e1000e: save and restore pcie/msi state to support EEH recovery
2008-04-15 17:57 [PATCH 1/3] ixgbe: save and restore pcie/msi state to support EEH recovery Auke Kok
@ 2008-04-15 17:57 ` Auke Kok
2008-04-15 17:57 ` [PATCH 3/3] igb: " Auke Kok
1 sibling, 0 replies; 5+ messages in thread
From: Auke Kok @ 2008-04-15 17:57 UTC (permalink / raw)
To: jeff; +Cc: e1000-devel, netdev, wendyx
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 2ports and 4ports pci-express e1000e
adapters.
Signed-off-by: Wendy Xiong <wendyx@us.ibm.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
---
drivers/net/e1000e/netdev.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 146edf7..7282751 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -3815,6 +3815,7 @@ static pci_ers_result_t e1000_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);
@@ -3941,6 +3942,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
goto err_pci_reg;
pci_set_master(pdev);
+ pci_save_state(pdev);
err = -ENOMEM;
netdev = alloc_etherdev(sizeof(struct e1000_adapter));
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] igb: save and restore pcie/msi state to support EEH recovery
2008-04-15 17:57 [PATCH 1/3] ixgbe: save and restore pcie/msi state to support EEH recovery Auke Kok
2008-04-15 17:57 ` [PATCH 2/3] e1000e: " Auke Kok
@ 2008-04-15 17:57 ` Auke Kok
2008-04-16 13:13 ` Bill Fink
1 sibling, 1 reply; 5+ messages in thread
From: Auke Kok @ 2008-04-15 17:57 UTC (permalink / raw)
To: jeff; +Cc: e1000-devel, netdev, wendyx
To enable EEH support for pci-express network adapters, pcie/msi state
needs to be saved and restored for that adapter.
[after similar patches for ixgbe and e1000e from Wendy Xiong]
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Cc: Wendy Xiong <wendyx@us.ibm.com>
---
0 files changed, 0 insertions(+), 0 deletions(-)
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 3/3] igb: save and restore pcie/msi state to support EEH recovery
2008-04-15 17:57 ` [PATCH 3/3] igb: " Auke Kok
@ 2008-04-16 13:13 ` Bill Fink
2008-04-16 18:08 ` Kok, Auke
0 siblings, 1 reply; 5+ messages in thread
From: Bill Fink @ 2008-04-16 13:13 UTC (permalink / raw)
To: Auke Kok; +Cc: e1000-devel, netdev, wendyx, jeff
On Tue, 15 Apr 2008, Auke Kok wrote:
> To enable EEH support for pci-express network adapters, pcie/msi state
> needs to be saved and restored for that adapter.
>
> [after similar patches for ixgbe and e1000e from Wendy Xiong]
>
> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
> Cc: Wendy Xiong <wendyx@us.ibm.com>
> ---
>
> 0 files changed, 0 insertions(+), 0 deletions(-)
Was there supposed to be a patch here?
-Bill
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 3/3] igb: save and restore pcie/msi state to support EEH recovery
2008-04-16 13:13 ` Bill Fink
@ 2008-04-16 18:08 ` Kok, Auke
0 siblings, 0 replies; 5+ messages in thread
From: Kok, Auke @ 2008-04-16 18:08 UTC (permalink / raw)
To: Bill Fink; +Cc: jeff, netdev, e1000-devel, wendyx
Bill Fink wrote:
> On Tue, 15 Apr 2008, Auke Kok wrote:
>
>> To enable EEH support for pci-express network adapters, pcie/msi state
>> needs to be saved and restored for that adapter.
>>
>> [after similar patches for ixgbe and e1000e from Wendy Xiong]
>>
>> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
>> Cc: Wendy Xiong <wendyx@us.ibm.com>
>> ---
>>
>> 0 files changed, 0 insertions(+), 0 deletions(-)
>
> Was there supposed to be a patch here?
I messed up.. new patch coming in a sec.
Auke
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-04-16 18:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-15 17:57 [PATCH 1/3] ixgbe: save and restore pcie/msi state to support EEH recovery Auke Kok
2008-04-15 17:57 ` [PATCH 2/3] e1000e: " Auke Kok
2008-04-15 17:57 ` [PATCH 3/3] igb: " Auke Kok
2008-04-16 13:13 ` Bill Fink
2008-04-16 18:08 ` Kok, Auke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).