netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-2.6 PATCH 1/4] igb: do not force pcs link when in KX mode
@ 2009-12-23 23:20 Jeff Kirsher
  2009-12-23 23:21 ` [net-2.6 PATCH 2/4] igb: do not force retry count to 1 on 82580 phy Jeff Kirsher
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jeff Kirsher @ 2009-12-23 23:20 UTC (permalink / raw)
  To: davem; +Cc: netdev, gospo, Alexander Duyck, Jeff Kirsher

From: Alexander Duyck <alexander.h.duyck@intel.com>

We were forcing the PCS link up in error when we are in KX mode.  We should
only be disabling autoneg, not forcing the link up.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---

 drivers/net/igb/e1000_82575.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/net/igb/e1000_82575.c b/drivers/net/igb/e1000_82575.c
index e8e9e91..c505b50 100644
--- a/drivers/net/igb/e1000_82575.c
+++ b/drivers/net/igb/e1000_82575.c
@@ -1096,9 +1096,7 @@ static s32 igb_setup_serdes_link_82575(struct e1000_hw *hw)
 		hw_dbg("Configuring Autoneg:PCS_LCTL=0x%08X\n", reg);
 	} else {
 		/* Set PCS register for forced link */
-		reg |= E1000_PCS_LCTL_FSD |        /* Force Speed */
-		       E1000_PCS_LCTL_FORCE_LINK | /* Force Link */
-		       E1000_PCS_LCTL_FLV_LINK_UP; /* Force link value up */
+		reg |= E1000_PCS_LCTL_FSD;        /* Force Speed */
 
 		hw_dbg("Configuring Forced Link:PCS_LCTL=0x%08X\n", reg);
 	}


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

* [net-2.6 PATCH 2/4] igb: do not force retry count to 1 on 82580 phy
  2009-12-23 23:20 [net-2.6 PATCH 1/4] igb: do not force pcs link when in KX mode Jeff Kirsher
@ 2009-12-23 23:21 ` Jeff Kirsher
  2009-12-24  4:55   ` David Miller
  2009-12-23 23:21 ` [net-2.6 PATCH 3/4] igb: correctly offset 82575 flow control watermarks by 16 bytes Jeff Kirsher
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Jeff Kirsher @ 2009-12-23 23:21 UTC (permalink / raw)
  To: davem; +Cc: netdev, gospo, Alexander Duyck, Jeff Kirsher

From: Alexander Duyck <alexander.h.duyck@intel.com>

This change resolves an issue seen in some configurations where the link
may drop to 100Mb/s even though the link itself supports 1000Mb/s.  The
issue was root caused to the fact that we were only trying the link once.
Now instead we will try up to 5 attempts on a faulty cable before
downshifting to 100Mb/s.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---

 drivers/net/igb/e1000_phy.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/drivers/net/igb/e1000_phy.c b/drivers/net/igb/e1000_phy.c
index 5c9d73e..3670a66 100644
--- a/drivers/net/igb/e1000_phy.c
+++ b/drivers/net/igb/e1000_phy.c
@@ -457,15 +457,6 @@ s32 igb_copper_link_setup_82580(struct e1000_hw *hw)
 	phy_data |= I82580_CFG_ENABLE_DOWNSHIFT;
 
 	ret_val = phy->ops.write_reg(hw, I82580_CFG_REG, phy_data);
-	if (ret_val)
-		goto out;
-
-	/* Set number of link attempts before downshift */
-	ret_val = phy->ops.read_reg(hw, I82580_CTRL_REG, &phy_data);
-	if (ret_val)
-		goto out;
-	phy_data &= ~I82580_CTRL_DOWNSHIFT_MASK;
-	ret_val = phy->ops.write_reg(hw, I82580_CTRL_REG, phy_data);
 
 out:
 	return ret_val;


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

* [net-2.6 PATCH 3/4] igb: correctly offset 82575 flow control watermarks by 16 bytes
  2009-12-23 23:20 [net-2.6 PATCH 1/4] igb: do not force pcs link when in KX mode Jeff Kirsher
  2009-12-23 23:21 ` [net-2.6 PATCH 2/4] igb: do not force retry count to 1 on 82580 phy Jeff Kirsher
@ 2009-12-23 23:21 ` Jeff Kirsher
  2009-12-24  4:55   ` David Miller
  2009-12-23 23:21 ` [net-2.6 PATCH 4/4] igb: check both function bits in status register in wol exception Jeff Kirsher
  2009-12-24  4:55 ` [net-2.6 PATCH 1/4] igb: do not force pcs link when in KX mode David Miller
  3 siblings, 1 reply; 8+ messages in thread
From: Jeff Kirsher @ 2009-12-23 23:21 UTC (permalink / raw)
  To: davem; +Cc: netdev, gospo, Alexander Duyck, Jeff Kirsher

From: Alexander Duyck <alexander.h.duyck@intel.com>

The watermark values for the 82575 were not being set correctly.  As a
result the high and low watermark values were set to the same value which
can lead to excess xon/xoff packets being generated.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---

 drivers/net/igb/igb_main.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index 78963a0..933c64f 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -1306,13 +1306,8 @@ void igb_reset(struct igb_adapter *adapter)
 	hwm = min(((pba << 10) * 9 / 10),
 			((pba << 10) - 2 * adapter->max_frame_size));
 
-	if (mac->type < e1000_82576) {
-		fc->high_water = hwm & 0xFFF8;	/* 8-byte granularity */
-		fc->low_water = fc->high_water - 8;
-	} else {
-		fc->high_water = hwm & 0xFFF0;	/* 16-byte granularity */
-		fc->low_water = fc->high_water - 16;
-	}
+	fc->high_water = hwm & 0xFFF0;	/* 16-byte granularity */
+	fc->low_water = fc->high_water - 16;
 	fc->pause_time = 0xFFFF;
 	fc->send_xon = 1;
 	fc->current_mode = fc->requested_mode;


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

* [net-2.6 PATCH 4/4] igb: check both function bits in status register in wol exception
  2009-12-23 23:20 [net-2.6 PATCH 1/4] igb: do not force pcs link when in KX mode Jeff Kirsher
  2009-12-23 23:21 ` [net-2.6 PATCH 2/4] igb: do not force retry count to 1 on 82580 phy Jeff Kirsher
  2009-12-23 23:21 ` [net-2.6 PATCH 3/4] igb: correctly offset 82575 flow control watermarks by 16 bytes Jeff Kirsher
@ 2009-12-23 23:21 ` Jeff Kirsher
  2009-12-24  4:55   ` David Miller
  2009-12-24  4:55 ` [net-2.6 PATCH 1/4] igb: do not force pcs link when in KX mode David Miller
  3 siblings, 1 reply; 8+ messages in thread
From: Jeff Kirsher @ 2009-12-23 23:21 UTC (permalink / raw)
  To: davem; +Cc: netdev, gospo, Alexander Duyck, Jeff Kirsher

From: Alexander Duyck <alexander.h.duyck@intel.com>

The ethtool code for enabling Wake on Lan was not correctly checking the
status register bits so as a result ports 0 and 2 were both being allowed
to set WOL to enabled even though it is only supported on the first port
for our adapters.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---

 drivers/net/igb/igb_ethtool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/igb/igb_ethtool.c b/drivers/net/igb/igb_ethtool.c
index ac9d527..f771a6c 100644
--- a/drivers/net/igb/igb_ethtool.c
+++ b/drivers/net/igb/igb_ethtool.c
@@ -1795,7 +1795,7 @@ static int igb_wol_exclusion(struct igb_adapter *adapter,
 		/* dual port cards only support WoL on port A from now on
 		 * unless it was enabled in the eeprom for port B
 		 * so exclude FUNC_1 ports from having WoL enabled */
-		if (rd32(E1000_STATUS) & E1000_STATUS_FUNC_1 &&
+		if ((rd32(E1000_STATUS) & E1000_STATUS_FUNC_MASK) &&
 		    !adapter->eeprom_wol) {
 			wol->supported = 0;
 			break;


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

* Re: [net-2.6 PATCH 1/4] igb: do not force pcs link when in KX mode
  2009-12-23 23:20 [net-2.6 PATCH 1/4] igb: do not force pcs link when in KX mode Jeff Kirsher
                   ` (2 preceding siblings ...)
  2009-12-23 23:21 ` [net-2.6 PATCH 4/4] igb: check both function bits in status register in wol exception Jeff Kirsher
@ 2009-12-24  4:55 ` David Miller
  3 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2009-12-24  4:55 UTC (permalink / raw)
  To: jeffrey.t.kirsher; +Cc: netdev, gospo, alexander.h.duyck

From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed, 23 Dec 2009 15:20:47 -0800

> From: Alexander Duyck <alexander.h.duyck@intel.com>
> 
> We were forcing the PCS link up in error when we are in KX mode.  We should
> only be disabling autoneg, not forcing the link up.
> 
> Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

Applied.

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

* Re: [net-2.6 PATCH 2/4] igb: do not force retry count to 1 on 82580 phy
  2009-12-23 23:21 ` [net-2.6 PATCH 2/4] igb: do not force retry count to 1 on 82580 phy Jeff Kirsher
@ 2009-12-24  4:55   ` David Miller
  0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2009-12-24  4:55 UTC (permalink / raw)
  To: jeffrey.t.kirsher; +Cc: netdev, gospo, alexander.h.duyck

From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed, 23 Dec 2009 15:21:07 -0800

> From: Alexander Duyck <alexander.h.duyck@intel.com>
> 
> This change resolves an issue seen in some configurations where the link
> may drop to 100Mb/s even though the link itself supports 1000Mb/s.  The
> issue was root caused to the fact that we were only trying the link once.
> Now instead we will try up to 5 attempts on a faulty cable before
> downshifting to 100Mb/s.
> 
> Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

Applied.

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

* Re: [net-2.6 PATCH 3/4] igb: correctly offset 82575 flow control watermarks by 16 bytes
  2009-12-23 23:21 ` [net-2.6 PATCH 3/4] igb: correctly offset 82575 flow control watermarks by 16 bytes Jeff Kirsher
@ 2009-12-24  4:55   ` David Miller
  0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2009-12-24  4:55 UTC (permalink / raw)
  To: jeffrey.t.kirsher; +Cc: netdev, gospo, alexander.h.duyck

From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed, 23 Dec 2009 15:21:27 -0800

> From: Alexander Duyck <alexander.h.duyck@intel.com>
> 
> The watermark values for the 82575 were not being set correctly.  As a
> result the high and low watermark values were set to the same value which
> can lead to excess xon/xoff packets being generated.
> 
> Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

Applied.

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

* Re: [net-2.6 PATCH 4/4] igb: check both function bits in status register in wol exception
  2009-12-23 23:21 ` [net-2.6 PATCH 4/4] igb: check both function bits in status register in wol exception Jeff Kirsher
@ 2009-12-24  4:55   ` David Miller
  0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2009-12-24  4:55 UTC (permalink / raw)
  To: jeffrey.t.kirsher; +Cc: netdev, gospo, alexander.h.duyck

From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed, 23 Dec 2009 15:21:46 -0800

> From: Alexander Duyck <alexander.h.duyck@intel.com>
> 
> The ethtool code for enabling Wake on Lan was not correctly checking the
> status register bits so as a result ports 0 and 2 were both being allowed
> to set WOL to enabled even though it is only supported on the first port
> for our adapters.
> 
> Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

Applied.

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

end of thread, other threads:[~2009-12-24  4:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-23 23:20 [net-2.6 PATCH 1/4] igb: do not force pcs link when in KX mode Jeff Kirsher
2009-12-23 23:21 ` [net-2.6 PATCH 2/4] igb: do not force retry count to 1 on 82580 phy Jeff Kirsher
2009-12-24  4:55   ` David Miller
2009-12-23 23:21 ` [net-2.6 PATCH 3/4] igb: correctly offset 82575 flow control watermarks by 16 bytes Jeff Kirsher
2009-12-24  4:55   ` David Miller
2009-12-23 23:21 ` [net-2.6 PATCH 4/4] igb: check both function bits in status register in wol exception Jeff Kirsher
2009-12-24  4:55   ` David Miller
2009-12-24  4:55 ` [net-2.6 PATCH 1/4] igb: do not force pcs link when in KX mode David Miller

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