lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1207856390.24768.26.camel@wendyx.austin.ibm.com>
Date:	Thu, 10 Apr 2008 14:39:50 -0500
From:	wendy xiong <wendyx@...ibm.com>
To:	netdev@...r.kernel.org, jeff@...zik.org, auke-jan.h.kok@...el.com,
	jesse.brandeburg@...el.com, e1000-devel@...ts.sourceforge.net
Subject: [PATCH 1/2 2.6.25-rc8] e1000e: 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 2ports and 4ports pci-express e1000e
adapters.

Signed-off-by: Wendy Xiong <wendyx@...ibm.com>


diff -Nuarp linux-2.6.25-rc8.orig/drivers/net/e1000e/netdev.c linux-2.6.25-rc8/drivers/net/e1000e/netdev.c
--- linux-2.6.25-rc8.orig/drivers/net/e1000e/netdev.c   2008-04-07 19:18:08.000000000 -0500
+++ linux-2.6.25-rc8/drivers/net/e1000e/netdev.c        2008-04-10 13:13:21.000000000 -0500
@@ -3630,6 +3630,7 @@ static pci_ers_result_t e1000_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);
@@ -3754,6 +3755,7 @@ static int __devinit e1000_probe(struct
                goto err_pci_reg;

        pci_set_master(pdev);
+       pci_save_state(pdev);

        err = -ENOMEM;
        netdev = alloc_etherdev(sizeof(struct e1000_adapter));


--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ