e1000e: Only disable ASPM on 82573L devices
Subsystems (2)
PATCH v2 1/2 e1000e: Only disable ASPM on 82573L devices
The 82537 errata and comment in e1000e_disable_l1aspm both agree that only 82537L devices are affected. Limit the L1 disable to them.
--- drivers/net/e1000e/netdev.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/net/e1000e/netdev.c +4 -0
@@ -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 ) {
Signature · 1 line
1.6.6.1
PATCH v2 2/2 e1000e: Don't disable jumbo frames on 82537L due to eeprom contents
According to the 82537L errata, jumbo frames will work correctly if ASPM is disabled. Since we disable ASPM on these devices, enable jumbo frames.
---
Fixed so that the flags get applied.
drivers/net/e1000e/82571.c | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-)
drivers/net/e1000e/82571.c +2 -9
@@ -330,7 +330,6 @@ static s32 e1000_get_variants_82571(struct e1000_adapter *adapter)struct e1000_hw *hw = &adapter->hw;static int global_quad_port_a;/* global port a indication */ struct pci_dev *pdev = adapter->pdev; -u16 eeprom_data =0 ;int is_port_b =er32 (STATUS ) &E1000_STATUS_FUNC_1 ;s32 rc;
@@ -381,16 +380,10 @@ 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 ; - } + adapter->flags |=FLAG_HAS_JUMBO_FRAMES ; + adapter->max_hw_frame_size =DEFAULT_JUMBO ; }break ;default :
Signature · 1 line
1.6.6.1
Quoted 2 lines · Matthew Garrett
The 82537 errata and comment in
e1000e_disable_l1aspmboth agree that only 82537L devices are affected. Limit the L1 disable to them.
Hi Matthew, its a nitpick, but can you please change the part number to the correct one? it should be s/82537/82573
Quoted 11 lines
Signed-off-by Matthew Garrett <[email protected]>--- drivers/net/e1000e/netdev.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)drivers/net/e1000e/netdev.c +0
-0
drivers/net/e1000e/netdev.c static void e1000e_disable_l1aspm(struct pci_dev *pdev) · line 4651
Quoted 10 lines
drivers/net/e1000e/netdev.c +4
-0@@ -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 ) {
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
Quoted 9 lines · Jesse
Quoted 2 lines · Matthew Garrett
The 82537 errata and comment in
e1000e_disable_l1aspmboth agree that only 82537L devices are affected. Limit the L1 disable to them.Hi Matthew, its a nitpick, but can you please change the part number to the correct one? it should be s/82537/82573
Whoops! Sorry, I'll do that.
Signature · 11 lines
Matthew Garrett | [email protected] ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ E1000-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired