* [PATCH 1/5] igb: add support for x2 link width configurations
@ 2009-04-01 6:38 Jeff Kirsher
2009-04-01 6:38 ` [PATCH 2/5] igb: set num_rx/tx_queues to 0 when queues are freed Jeff Kirsher
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Jeff Kirsher @ 2009-04-01 6:38 UTC (permalink / raw)
To: davem; +Cc: netdev, gospo, Alexander Duyck, Jeff Kirsher
From: Alexander Duyck <alexander.h.duyck@intel.com>
When device is on PCIe link trained as x2 the driver is currently reporting
link width as "unknown". The original patch provided by Myron adds the x2
link support and my changes are cosmetic to clean up the readability of the
conditional operators.
Based on work by: Myron Stowe <myron.stowe@hp.com>
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 | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index ca84216..be02045 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -1476,9 +1476,10 @@ static int __devinit igb_probe(struct pci_dev *pdev,
netdev->name,
((hw->bus.speed == e1000_bus_speed_2500)
? "2.5Gb/s" : "unknown"),
- ((hw->bus.width == e1000_bus_width_pcie_x4)
- ? "Width x4" : (hw->bus.width == e1000_bus_width_pcie_x1)
- ? "Width x1" : "unknown"),
+ ((hw->bus.width == e1000_bus_width_pcie_x4) ? "Width x4" :
+ (hw->bus.width == e1000_bus_width_pcie_x2) ? "Width x2" :
+ (hw->bus.width == e1000_bus_width_pcie_x1) ? "Width x1" :
+ "unknown"),
netdev->dev_addr);
igb_read_part_num(hw, &part_num);
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/5] igb: set num_rx/tx_queues to 0 when queues are freed
2009-04-01 6:38 [PATCH 1/5] igb: add support for x2 link width configurations Jeff Kirsher
@ 2009-04-01 6:38 ` Jeff Kirsher
2009-04-02 7:59 ` David Miller
2009-04-01 6:38 ` [PATCH 3/5] igb: increase delay for copper link setup Jeff Kirsher
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Jeff Kirsher @ 2009-04-01 6:38 UTC (permalink / raw)
To: davem; +Cc: netdev, gospo, Alexander Duyck, Jeff Kirsher
From: Alexander Duyck <alexander.h.duyck@intel.com>
An issue was seen on suspend in which the system reported a page fault. This
was due to the new reg_idx code being called after the queues were freed.
This update prevents any for loops from going through the queues by setting
the number of queues to 0 when they are freed.
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 | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index be02045..10b095d 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -420,6 +420,9 @@ static void igb_free_queues(struct igb_adapter *adapter)
for (i = 0; i < adapter->num_rx_queues; i++)
netif_napi_del(&adapter->rx_ring[i].napi);
+ adapter->num_rx_queues = 0;
+ adapter->num_tx_queues = 0;
+
kfree(adapter->tx_ring);
kfree(adapter->rx_ring);
}
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/5] igb: increase delay for copper link setup
2009-04-01 6:38 [PATCH 1/5] igb: add support for x2 link width configurations Jeff Kirsher
2009-04-01 6:38 ` [PATCH 2/5] igb: set num_rx/tx_queues to 0 when queues are freed Jeff Kirsher
@ 2009-04-01 6:38 ` Jeff Kirsher
2009-04-02 8:00 ` David Miller
2009-04-01 6:38 ` [PATCH 4/5] igb: cleanup igb loopback path Jeff Kirsher
2009-04-02 7:59 ` [PATCH 1/5] igb: add support for x2 link width configurations David Miller
3 siblings, 1 reply; 8+ messages in thread
From: Jeff Kirsher @ 2009-04-01 6:38 UTC (permalink / raw)
To: davem; +Cc: netdev, gospo, Alexander Duyck, Jeff Kirsher
From: Alexander Duyck <alexander.h.duyck@intel.com>
Increase the delay for copper phy init from 15ms to 100ms. This is to
address issues seen in which ethtool -t was failing in some cases on 82576
based adapters.
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 | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/net/igb/e1000_phy.c b/drivers/net/igb/e1000_phy.c
index de2d486..f50fac2 100644
--- a/drivers/net/igb/e1000_phy.c
+++ b/drivers/net/igb/e1000_phy.c
@@ -448,8 +448,11 @@ s32 igb_copper_link_setup_igp(struct e1000_hw *hw)
goto out;
}
- /* Wait 15ms for MAC to configure PHY from NVM settings. */
- msleep(15);
+ /*
+ * Wait 100ms for MAC to configure PHY from NVM settings, to avoid
+ * timeout issues when LFS is enabled.
+ */
+ msleep(100);
/*
* The NVM settings will configure LPLU in D3 for
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 4/5] igb: cleanup igb loopback path
2009-04-01 6:38 [PATCH 1/5] igb: add support for x2 link width configurations Jeff Kirsher
2009-04-01 6:38 ` [PATCH 2/5] igb: set num_rx/tx_queues to 0 when queues are freed Jeff Kirsher
2009-04-01 6:38 ` [PATCH 3/5] igb: increase delay for copper link setup Jeff Kirsher
@ 2009-04-01 6:38 ` Jeff Kirsher
2009-04-02 8:00 ` David Miller
2009-04-02 7:59 ` [PATCH 1/5] igb: add support for x2 link width configurations David Miller
3 siblings, 1 reply; 8+ messages in thread
From: Jeff Kirsher @ 2009-04-01 6:38 UTC (permalink / raw)
To: davem; +Cc: netdev, gospo, Alexander Duyck, Jeff Kirsher
From: Alexander Duyck <alexander.h.duyck@intel.com>
The code path for setting up phy loopback testing was out of date and was
setting bits it didn't need to. This change cleans up the code path and
removes some code that has no effect on teh driver.
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 | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/drivers/net/igb/igb_ethtool.c b/drivers/net/igb/igb_ethtool.c
index fb09c8a..27eae49 100644
--- a/drivers/net/igb/igb_ethtool.c
+++ b/drivers/net/igb/igb_ethtool.c
@@ -1419,7 +1419,6 @@ static int igb_integrated_phy_loopback(struct igb_adapter *adapter)
{
struct e1000_hw *hw = &adapter->hw;
u32 ctrl_reg = 0;
- u32 stat_reg = 0;
hw->mac.autoneg = false;
@@ -1443,18 +1442,11 @@ static int igb_integrated_phy_loopback(struct igb_adapter *adapter)
ctrl_reg |= (E1000_CTRL_FRCSPD | /* Set the Force Speed Bit */
E1000_CTRL_FRCDPX | /* Set the Force Duplex Bit */
E1000_CTRL_SPD_1000 |/* Force Speed to 1000 */
- E1000_CTRL_FD); /* Force Duplex to FULL */
+ E1000_CTRL_FD | /* Force Duplex to FULL */
+ E1000_CTRL_SLU); /* Set link up enable bit */
- if (hw->phy.media_type == e1000_media_type_copper &&
- hw->phy.type == e1000_phy_m88)
+ if (hw->phy.type == e1000_phy_m88)
ctrl_reg |= E1000_CTRL_ILOS; /* Invert Loss of Signal */
- else {
- /* Set the ILOS bit on the fiber Nic if half duplex link is
- * detected. */
- stat_reg = rd32(E1000_STATUS);
- if ((stat_reg & E1000_STATUS_FD) == 0)
- ctrl_reg |= (E1000_CTRL_ILOS | E1000_CTRL_SLU);
- }
wr32(E1000_CTRL, ctrl_reg);
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/5] igb: add support for x2 link width configurations
2009-04-01 6:38 [PATCH 1/5] igb: add support for x2 link width configurations Jeff Kirsher
` (2 preceding siblings ...)
2009-04-01 6:38 ` [PATCH 4/5] igb: cleanup igb loopback path Jeff Kirsher
@ 2009-04-02 7:59 ` David Miller
3 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2009-04-02 7:59 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev, gospo, alexander.h.duyck
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Tue, 31 Mar 2009 23:38:00 -0700
> When device is on PCIe link trained as x2 the driver is currently reporting
> link width as "unknown". The original patch provided by Myron adds the x2
> link support and my changes are cosmetic to clean up the readability of the
> conditional operators.
>
> Based on work by: Myron Stowe <myron.stowe@hp.com>
> 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: [PATCH 2/5] igb: set num_rx/tx_queues to 0 when queues are freed
2009-04-01 6:38 ` [PATCH 2/5] igb: set num_rx/tx_queues to 0 when queues are freed Jeff Kirsher
@ 2009-04-02 7:59 ` David Miller
0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2009-04-02 7:59 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev, gospo, alexander.h.duyck
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Tue, 31 Mar 2009 23:38:19 -0700
> An issue was seen on suspend in which the system reported a page fault. This
> was due to the new reg_idx code being called after the queues were freed.
>
> This update prevents any for loops from going through the queues by setting
> the number of queues to 0 when they are freed.
>
> 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: [PATCH 3/5] igb: increase delay for copper link setup
2009-04-01 6:38 ` [PATCH 3/5] igb: increase delay for copper link setup Jeff Kirsher
@ 2009-04-02 8:00 ` David Miller
0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2009-04-02 8:00 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev, gospo, alexander.h.duyck
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Tue, 31 Mar 2009 23:38:38 -0700
> Increase the delay for copper phy init from 15ms to 100ms. This is to
> address issues seen in which ethtool -t was failing in some cases on 82576
> based 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
* Re: [PATCH 4/5] igb: cleanup igb loopback path
2009-04-01 6:38 ` [PATCH 4/5] igb: cleanup igb loopback path Jeff Kirsher
@ 2009-04-02 8:00 ` David Miller
0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2009-04-02 8:00 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev, gospo, alexander.h.duyck
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Tue, 31 Mar 2009 23:38:56 -0700
> The code path for setting up phy loopback testing was out of date and was
> setting bits it didn't need to. This change cleans up the code path and
> removes some code that has no effect on teh driver.
>
> 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-04-02 8:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01 6:38 [PATCH 1/5] igb: add support for x2 link width configurations Jeff Kirsher
2009-04-01 6:38 ` [PATCH 2/5] igb: set num_rx/tx_queues to 0 when queues are freed Jeff Kirsher
2009-04-02 7:59 ` David Miller
2009-04-01 6:38 ` [PATCH 3/5] igb: increase delay for copper link setup Jeff Kirsher
2009-04-02 8:00 ` David Miller
2009-04-01 6:38 ` [PATCH 4/5] igb: cleanup igb loopback path Jeff Kirsher
2009-04-02 8:00 ` David Miller
2009-04-02 7:59 ` [PATCH 1/5] igb: add support for x2 link width configurations 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).