* [PATCH 1/2] e1000e: Only disable ASPM on 82573L devices
@ 2010-02-09 23:03 Matthew Garrett
2010-02-09 23:03 ` [PATCH 2/2] e1000e: Don't disable jumbo frames on 82537L due to eeprom contents Matthew Garrett
2010-02-12 20:39 ` [PATCH 1/2] e1000e: Only disable ASPM on 82573L devices David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Matthew Garrett @ 2010-02-09 23:03 UTC (permalink / raw)
To: e1000-devel; +Cc: netdev, linux-kernel, Matthew Garrett
The 82537 errata and comment in e1000e_disable_l1aspm both agree that
only 82537L devices are affected. Limit the L1 disable to them.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
---
drivers/net/e1000e/netdev.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 57f149b..27eed81 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -4642,6 +4642,10 @@ static void e1000e_disable_l1aspm(struct pci_dev *pdev)
* Unfortunately this feature saves about 1W power consumption when
* active.
*/
+
+ if (pdev->device != E1000_DEV_ID_82573L)
+ return;
+
pos = pci_find_capability(pdev, PCI_CAP_ID_EXP);
pci_read_config_word(pdev, pos + PCI_EXP_LNKCTL, &val);
if (val & 0x2) {
--
1.6.6.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] e1000e: Don't disable jumbo frames on 82537L due to eeprom contents
2010-02-09 23:03 [PATCH 1/2] e1000e: Only disable ASPM on 82573L devices Matthew Garrett
@ 2010-02-09 23:03 ` Matthew Garrett
2010-02-12 20:39 ` [PATCH 1/2] e1000e: Only disable ASPM on 82573L devices David Miller
1 sibling, 0 replies; 4+ messages in thread
From: Matthew Garrett @ 2010-02-09 23:03 UTC (permalink / raw)
To: e1000-devel; +Cc: netdev, linux-kernel, Matthew Garrett
According to the 82537L errata, jumbo frames will work correctly if ASPM
is disabled. Since we disable ASPM on these devices, leave jumbo frames
enabled.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
---
drivers/net/e1000e/82571.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/drivers/net/e1000e/82571.c b/drivers/net/e1000e/82571.c
index 02d67d0..2df00cc 100644
--- a/drivers/net/e1000e/82571.c
+++ b/drivers/net/e1000e/82571.c
@@ -381,18 +381,6 @@ static s32 e1000_get_variants_82571(struct e1000_adapter *adapter)
if (pdev->device == E1000_DEV_ID_82571EB_SERDES_QUAD)
adapter->flags &= ~FLAG_HAS_WOL;
break;
-
- case e1000_82573:
- if (pdev->device == E1000_DEV_ID_82573L) {
- if (e1000_read_nvm(&adapter->hw, NVM_INIT_3GIO_3, 1,
- &eeprom_data) < 0)
- break;
- if (!(eeprom_data & NVM_WORD1A_ASPM_MASK)) {
- adapter->flags |= FLAG_HAS_JUMBO_FRAMES;
- adapter->max_hw_frame_size = DEFAULT_JUMBO;
- }
- }
- break;
default:
break;
}
--
1.6.6.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] e1000e: Only disable ASPM on 82573L devices
2010-02-09 23:03 [PATCH 1/2] e1000e: Only disable ASPM on 82573L devices Matthew Garrett
2010-02-09 23:03 ` [PATCH 2/2] e1000e: Don't disable jumbo frames on 82537L due to eeprom contents Matthew Garrett
@ 2010-02-12 20:39 ` David Miller
2010-02-12 20:54 ` Brandeburg, Jesse
1 sibling, 1 reply; 4+ messages in thread
From: David Miller @ 2010-02-12 20:39 UTC (permalink / raw)
To: mjg
Cc: e1000-devel, netdev, linux-kernel, jeffrey.t.kirsher,
peter.p.waskiewicz.jr
Intel folks, are you looking at these patches?
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] e1000e: Only disable ASPM on 82573L devices
2010-02-12 20:39 ` [PATCH 1/2] e1000e: Only disable ASPM on 82573L devices David Miller
@ 2010-02-12 20:54 ` Brandeburg, Jesse
0 siblings, 0 replies; 4+ messages in thread
From: Brandeburg, Jesse @ 2010-02-12 20:54 UTC (permalink / raw)
To: David Miller
Cc: mjg@redhat.com, e1000-devel@lists.sourceforge.net,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Kirsher, Jeffrey T, Waskiewicz Jr, Peter P, bruce.w.allan
On Fri, 12 Feb 2010, David Miller wrote:
> Intel folks, are you looking at these patches?
Hi Dave, yes we're looking at them but due to Bruce being out, we need to
wait until next week to reply. If you can wait, we'll make sure they come
through Jeff or receive comments after full review.
It's a bit of a scary area to mess with as there were lots of ASPM related
bugs in the hardware in this hardware generation (system chipsets and
82573).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-12 20:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-09 23:03 [PATCH 1/2] e1000e: Only disable ASPM on 82573L devices Matthew Garrett
2010-02-09 23:03 ` [PATCH 2/2] e1000e: Don't disable jumbo frames on 82537L due to eeprom contents Matthew Garrett
2010-02-12 20:39 ` [PATCH 1/2] e1000e: Only disable ASPM on 82573L devices David Miller
2010-02-12 20:54 ` Brandeburg, Jesse
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).