Skip to contentSkip to conversation

ixgbe: save and restore pcie/msi state to support EEH recovery

PATCH In review wendy xiong 4 participants 6 messages Apr 10, 2008 – Apr 24, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 ixgbe: save and restore pcie/msi state to support EEH recovery

Hi,

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

We have tested this EEH patch with Intel 10G pci-express ixgbe adapter.

drivers/net/ixgbe/ixgbe_main.c 2008-04-10 12:54:17.000000000 -0500 renamed from drivers/net/ixgbe/ixgbe_main.c 2008-04-07 19:18:08.000000000 -0500 +2 -0
diff -Nuarp linux-2.6.25-rc8.orig/drivers/net/ixgbe/ixgbe_main.c linux-2.6.25-rc8/drivers/net/ixgbe/ixgbe_main.c
@@ -2654,6 +2654,7 @@ static int __devinit ixgbe_probe(struct
        }
 
        pci_set_master(pdev);
+       pci_save_state(pdev);
 
        netdev = alloc_etherdev(sizeof(struct ixgbe_adapter));
        if (!netdev) {
@@ -2910,6 +2911,7 @@ static pci_ers_result_t ixgbe_io_slot_re
                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);
#1 lore raw
Quoted 8 lines · wendy xiong

Hi,

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

We have tested this EEH patch with Intel 10G pci-express ixgbe adapter.

Thanks Wendy,

I'll pull (both) these in my tree and make sure they get merged. thanks!

Auke

Quoted 29 lines

diff -Nuarp linux-2.6.25-rc8.orig/drivers/net/ixgbe/ixgbe_main.c linux-2.6.25-rc8/drivers/net/ixgbe/ixgbe_main.c

drivers/net/ixgbe/ixgbe_main.c 2008-04-10 12:54:17.000000000 -0500 renamed from drivers/net/ixgbe/ixgbe_main.c 2008-04-07 19:18:08.000000000 -0500 +2 -1
@@ -2654,6 +2654,7 @@ static int __devinit ixgbe_probe(struct
        }
 
        pci_set_master(pdev);
+       pci_save_state(pdev);
 
        netdev = alloc_etherdev(sizeof(struct ixgbe_adapter));
        if (!netdev) {
@@ -2910,6 +2911,7 @@ static pci_ers_result_t ixgbe_io_slot_re
                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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Hi David,

These two patches got ack by Intel developer. Can you put them in your tree for 2.6.26 kernel?

Thanks,
Wendy

Quoted 51 lines · Auke
Quoted 8 lines · wendy xiong

Hi,

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

We have tested this EEH patch with Intel 10G pci-express ixgbe adapter.

Thanks Wendy,

I'll pull (both) these in my tree and make sure they get merged. thanks!

Auke

Quoted 26 lines

diff -Nuarp linux-2.6.25-rc8.orig/drivers/net/ixgbe/ixgbe_main.c linux-2.6.25-rc8/drivers/net/ixgbe/ixgbe_main.c

drivers/net/ixgbe/ixgbe_main.c 2008-04-10 12:54:17.000000000 -0500 renamed from drivers/net/ixgbe/ixgbe_main.c 2008-04-07 19:18:08.000000000 -0500 +2 -1
@@ -2654,6 +2654,7 @@ static int __devinit ixgbe_probe(struct
        }
 
        pci_set_master(pdev);
+       pci_save_state(pdev);
 
        netdev = alloc_etherdev(sizeof(struct ixgbe_adapter));
        if (!netdev) {
@@ -2910,6 +2911,7 @@ static pci_ers_result_t ixgbe_io_slot_re
                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);
 
 
 
 
--
Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Wendy,

these two patches are not for davem's tree but go into Jeff Garzik's netdev-2.6 upstream tree. As I said would, I have already submitted them to Jeff. A little more patience :)

Auke

Quoted 57 lines · wendy xiong

Hi David,

These two patches got ack by Intel developer. Can you put them in your tree for 2.6.26 kernel?

Thanks,
Wendy

Quoted 48 lines · Auke
Quoted 8 lines · wendy xiong

Hi,

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

We have tested this EEH patch with Intel 10G pci-express ixgbe adapter.

Thanks Wendy,

I'll pull (both) these in my tree and make sure they get merged. thanks!

Auke

Quoted 25 lines

diff -Nuarp linux-2.6.25-rc8.orig/drivers/net/ixgbe/ixgbe_main.c linux-2.6.25-rc8/drivers/net/ixgbe/ixgbe_main.c

drivers/net/ixgbe/ixgbe_main.c 2008-04-10 12:54:17.000000000 -0500 renamed from drivers/net/ixgbe/ixgbe_main.c 2008-04-07 19:18:08.000000000 -0500 +2 -1
@@ -2654,6 +2654,7 @@ static int __devinit ixgbe_probe(struct
        }
 
        pci_set_master(pdev);
+       pci_save_state(pdev);
 
        netdev = alloc_etherdev(sizeof(struct ixgbe_adapter));
        if (!netdev) {
@@ -2910,6 +2911,7 @@ static pci_ers_result_t ixgbe_io_slot_re
                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);
 
 
 
 
--
Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 5 lines · Auke

Wendy,

these two patches are not for davem's tree but go into Jeff Garzik's netdev-2.6 upstream tree. As I said would, I have already submitted them to Jeff. A little more patience :)

Yep, they are in the stack going to davem today.

Jeff

maintainer
#5 lore raw
In reply to wendy xiong

From: wendy xiong <[email protected]>
Date: Thu, 24 Apr 2008 10:50:06 -0500

Quoted 4 lines

Hi David,

These two patches got ack by Intel developer. Can you put them in your tree for 2.6.26 kernel?

I don't take network driver patches, Jeff Garzik does.