All of lore.kernel.org
 help / color / mirror / Atom feed
* [net-2.6 PATCH 1/2] e1000e: WoL does not work on 82577/82578 with manageability enabled
@ 2009-08-15  0:35 Jeff Kirsher
  2009-08-15  0:35 ` [net-2.6 PATCH 2/2] e1000e: fix use of pci_enable_pcie_error_reporting Jeff Kirsher
  2009-08-16  1:53 ` [net-2.6 PATCH 1/2] e1000e: WoL does not work on 82577/82578 with manageability enabled David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Kirsher @ 2009-08-15  0:35 UTC (permalink / raw)
  To: davem; +Cc: netdev, gospo, Bruce Allan, Jeff Kirsher

From: Bruce Allan <bruce.w.allan@intel.com>

With manageability (Intel AMT) enabled via BIOS, PHY wakeup does not get
configured on newer parts which use PHY wakeup vs. MAC wakeup which causes
WoL to not work.  The driver should configure PHY wakeup whether or not
manageability is enabled.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---

 drivers/net/e1000e/netdev.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 63415bb..58e22fc 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -4538,8 +4538,7 @@ static int __e1000_shutdown(struct pci_dev *pdev, bool *enable_wake)
 		/* Allow time for pending master requests to run */
 		e1000e_disable_pcie_master(&adapter->hw);
 
-		if ((adapter->flags2 & FLAG2_HAS_PHY_WAKEUP) &&
-		    !(hw->mac.ops.check_mng_mode(hw))) {
+		if (adapter->flags2 & FLAG2_HAS_PHY_WAKEUP) {
 			/* enable wakeup by the PHY */
 			retval = e1000_init_phy_wakeup(adapter, wufc);
 			if (retval)
@@ -4557,7 +4556,8 @@ static int __e1000_shutdown(struct pci_dev *pdev, bool *enable_wake)
 	*enable_wake = !!wufc;
 
 	/* make sure adapter isn't asleep if manageability is enabled */
-	if (adapter->flags & FLAG_MNG_PT_ENABLED)
+	if ((adapter->flags & FLAG_MNG_PT_ENABLED) ||
+	    (hw->mac.ops.check_mng_mode(hw)))
 		*enable_wake = true;
 
 	if (adapter->hw.phy.type == e1000_phy_igp_3)


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [net-2.6 PATCH 2/2] e1000e: fix use of pci_enable_pcie_error_reporting
  2009-08-15  0:35 [net-2.6 PATCH 1/2] e1000e: WoL does not work on 82577/82578 with manageability enabled Jeff Kirsher
@ 2009-08-15  0:35 ` Jeff Kirsher
  2009-08-16  1:53   ` David Miller
  2009-08-16  1:53 ` [net-2.6 PATCH 1/2] e1000e: WoL does not work on 82577/82578 with manageability enabled David Miller
  1 sibling, 1 reply; 4+ messages in thread
From: Jeff Kirsher @ 2009-08-15  0:35 UTC (permalink / raw)
  To: davem; +Cc: netdev, gospo, Xiaotian Feng, Jeff Kirsher

From: Xiaotian Feng <dfeng@redhat.com>

commit 111b9dc5 introduces pcie aer support for e1000e, but it is not
reasonable to disable it in e1000_remove but enable it in e1000_resume.
This patch enables aer support in e1000_probe.

Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---

 drivers/net/e1000e/netdev.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 58e22fc..fa92a68 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -4670,14 +4670,6 @@ static int e1000_resume(struct pci_dev *pdev)
 		return err;
 	}
 
-	/* AER (Advanced Error Reporting) hooks */
-	err = pci_enable_pcie_error_reporting(pdev);
-	if (err) {
-		dev_err(&pdev->dev, "pci_enable_pcie_error_reporting failed "
-		                    "0x%x\n", err);
-		/* non-fatal, continue */
-	}
-
 	pci_set_master(pdev);
 
 	pci_enable_wake(pdev, PCI_D3hot, 0);
@@ -4990,6 +4982,14 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
 	if (err)
 		goto err_pci_reg;
 
+	/* AER (Advanced Error Reporting) hooks */
+	err = pci_enable_pcie_error_reporting(pdev);
+	if (err) {
+		dev_err(&pdev->dev, "pci_enable_pcie_error_reporting failed "
+		        "0x%x\n", err);
+		/* non-fatal, continue */
+	}
+
 	pci_set_master(pdev);
 	/* PCI config space info */
 	err = pci_save_state(pdev);


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [net-2.6 PATCH 1/2] e1000e: WoL does not work on 82577/82578 with manageability enabled
  2009-08-15  0:35 [net-2.6 PATCH 1/2] e1000e: WoL does not work on 82577/82578 with manageability enabled Jeff Kirsher
  2009-08-15  0:35 ` [net-2.6 PATCH 2/2] e1000e: fix use of pci_enable_pcie_error_reporting Jeff Kirsher
@ 2009-08-16  1:53 ` David Miller
  1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2009-08-16  1:53 UTC (permalink / raw)
  To: jeffrey.t.kirsher; +Cc: netdev, gospo, bruce.w.allan

From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Fri, 14 Aug 2009 17:35:33 -0700

> From: Bruce Allan <bruce.w.allan@intel.com>
> 
> With manageability (Intel AMT) enabled via BIOS, PHY wakeup does not get
> configured on newer parts which use PHY wakeup vs. MAC wakeup which causes
> WoL to not work.  The driver should configure PHY wakeup whether or not
> manageability is enabled.
> 
> Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

Applied.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [net-2.6 PATCH 2/2] e1000e: fix use of pci_enable_pcie_error_reporting
  2009-08-15  0:35 ` [net-2.6 PATCH 2/2] e1000e: fix use of pci_enable_pcie_error_reporting Jeff Kirsher
@ 2009-08-16  1:53   ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2009-08-16  1:53 UTC (permalink / raw)
  To: jeffrey.t.kirsher; +Cc: netdev, gospo, dfeng

From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Fri, 14 Aug 2009 17:35:52 -0700

> From: Xiaotian Feng <dfeng@redhat.com>
> 
> commit 111b9dc5 introduces pcie aer support for e1000e, but it is not
> reasonable to disable it in e1000_remove but enable it in e1000_resume.
> This patch enables aer support in e1000_probe.
> 
> Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

Applied.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-16  1:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-15  0:35 [net-2.6 PATCH 1/2] e1000e: WoL does not work on 82577/82578 with manageability enabled Jeff Kirsher
2009-08-15  0:35 ` [net-2.6 PATCH 2/2] e1000e: fix use of pci_enable_pcie_error_reporting Jeff Kirsher
2009-08-16  1:53   ` David Miller
2009-08-16  1:53 ` [net-2.6 PATCH 1/2] e1000e: WoL does not work on 82577/82578 with manageability enabled David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.