[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47FE7D3A.2090703@intel.com>
Date: Thu, 10 Apr 2008 13:48:58 -0700
From: "Kok, Auke" <auke-jan.h.kok@...el.com>
To: wendy xiong <wendyx@...ibm.com>
CC: netdev@...r.kernel.org, jeff@...zik.org, auke-jan.h.kok@...el.com,
jesse.brandeburg@...el.com, e1000-devel@...ts.sourceforge.net
Subject: Re: [PATCH 2/2 2.6.25-rc8] ixgbe: save and restore pcie/msi state
to support EEH recovery
wendy xiong wrote:
> 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.
>
> Signed-off-by: Wendy Xiong <wendyx@...ibm.com>
Thanks Wendy,
I'll pull (both) these in my tree and make sure they get merged. thanks!
Auke
>
>
> 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
> --- linux-2.6.25-rc8.orig/drivers/net/ixgbe/ixgbe_main.c 2008-04-07 19:18:08.000000000 -0500
> +++ linux-2.6.25-rc8/drivers/net/ixgbe/ixgbe_main.c 2008-04-10 12:54:17.000000000 -0500
> @@ -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 majordomo@...r.kernel.org
> 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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists