e1000e driver stuck at 10Mbps after reconnection
Subsystems (3)
Hello,
Recently we experienced some issues with intel NIC (I219-LM and I219-V). It seems that after a wire reconnection, auto-negotation "fails" and link speed drips to 10 Mbps.
From kernel logs:
[17616.346150] e1000e: enp0s31f6 NIC Link is Down [17627.003322] e1000e: enp0s31f6 NIC Link is Up 10 Mbps Full Duplex, Flow Control: None [17627.003325] e1000e 0000:00:1f.6 enp0s31f6: 10/100 speed: disabling TSO
$ethtool enp0s31f6
Settings for enp0s31f6:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes Advertised FEC modes: Not reported
Speed: 10Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on (auto)
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Notice that if disconnection last less than about 5 seconds, nothing wrong happens.
And if after last failure, disconnection / connection occurs again and last less than 5 seconds, link speed is back to 1000 Mbps.
[18075.350678] e1000e: enp0s31f6 NIC Link is Down [18078.716245] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
The following patch seems to fix this issue.
However I don't clearly understand why.
drivers/net/ethernet/intel/e1000e/netdev.c +1 -1
@@ -5069,7 +5069,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)case e1000_media_type_copper:if (hw->mac.get_link_status) { ret_val = hw->mac.ops.check_for_link (hw); - link_active = !hw->mac.get_link_status; + link_active = false; }else { link_active = true; }
Maybe this is related to watchdog task.
I've found out this fix by comparing with last commit that works fine :
commit 0b76aae741abb9d16d2c0e67f8b1e766576f897d.
However I don't know if this information is relevant.
Thank you.
Camille Bordignon
Quoted 66 lines · Camille Bordignon
Hello,
Recently we experienced some issues with intel NIC (I219-LM and I219-V). It seems that after a wire reconnection, auto-negotation "fails" and link speed drips to 10 Mbps.
From kernel logs:
[17616.346150] e1000e: enp0s31f6 NIC Link is Down [17627.003322] e1000e: enp0s31f6 NIC Link is Up 10 Mbps Full Duplex, Flow Control: None [17627.003325] e1000e 0000:00:1f.6 enp0s31f6: 10/100 speed: disabling TSO$ethtool enp0s31f6
Settings for enp0s31f6:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes Advertised FEC modes: Not reported
Speed: 10Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on (auto)
Supports Wake-on: pumbg
Wake-on: g
Current message level:0x00000007(7)
drv probe link
Link detected: yesNotice that if disconnection last less than about 5 seconds, nothing wrong happens.
And if after last failure, disconnection / connection occurs again and last less than 5 seconds, link speed is back to 1000 Mbps.[18075.350678] e1000e: enp0s31f6 NIC Link is Down [18078.716245] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: NoneThe following patch seems to fix this issue.
However I don't clearly understand why.drivers/net/ethernet/intel/e1000e/netdev.c +1
-1@@ -5069,7 +5069,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)case e1000_media_type_copper:if (hw->mac.get_link_status) { ret_val = hw->mac.ops.check_for_link (hw); - link_active = !hw->mac.get_link_status; + link_active = false; }else { link_active = true; }
Quoted 8 lines
Maybe this is related to watchdog task.
I've found out this fix by comparing with last commit that works fine :
commit0b76aae741abb9d16d2c0e67f8b1e766576f897d.
However I don't know if this information is relevant.Thank you.
Camille Bordignon
What kernel were you testing this on? I know there have been a number of changes over the past few months in this area and it would be useful to know exactly what code base you started out with and what the latest version of the kernel is you have tested.
Looking over the code change the net effect of it should be to add a 2 second delay from the time the link has changed until you actually check the speed/duplex configuration. It is possible we could be seeing some sort of timing issue and adding the 2 second delay after the link event is enough time for things to stabilize and detect the link at 1000 instead of 10/100.
- Alex
Le lundi 06 ao?t 2018 ? 15:45:29 (-0700), Alexander Duyck a ?crit :
Quoted 82 lines
Quoted 66 lines · Camille Bordignon
Hello,
Recently we experienced some issues with intel NIC (I219-LM and I219-V). It seems that after a wire reconnection, auto-negotation "fails" and link speed drips to 10 Mbps.
From kernel logs:
[17616.346150] e1000e: enp0s31f6 NIC Link is Down [17627.003322] e1000e: enp0s31f6 NIC Link is Up 10 Mbps Full Duplex, Flow Control: None [17627.003325] e1000e 0000:00:1f.6 enp0s31f6: 10/100 speed: disabling TSO$ethtool enp0s31f6
Settings for enp0s31f6:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes Advertised FEC modes: Not reported
Speed: 10Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on (auto)
Supports Wake-on: pumbg
Wake-on: g
Current message level:0x00000007(7)
drv probe link
Link detected: yesNotice that if disconnection last less than about 5 seconds, nothing wrong happens.
And if after last failure, disconnection / connection occurs again and last less than 5 seconds, link speed is back to 1000 Mbps.[18075.350678] e1000e: enp0s31f6 NIC Link is Down [18078.716245] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: NoneThe following patch seems to fix this issue.
However I don't clearly understand why.drivers/net/ethernet/intel/e1000e/netdev.c +1
-1@@ -5069,7 +5069,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)case e1000_media_type_copper:if (hw->mac.get_link_status) { ret_val = hw->mac.ops.check_for_link (hw); - link_active = !hw->mac.get_link_status; + link_active = false; }else { link_active = true; }Quoted 8 lines
Maybe this is related to watchdog task.
I've found out this fix by comparing with last commit that works fine :
commit0b76aae741abb9d16d2c0e67f8b1e766576f897d.
However I don't know if this information is relevant.Thank you.
Camille BordignonWhat kernel were you testing this on? I know there have been a number of changes over the past few months in this area and it would be useful to know exactly what code base you started out with and what the latest version of the kernel is you have tested.
Quoted 8 lines
Looking over the code change the net effect of it should be to add a 2 second delay from the time the link has changed until you actually check the speed/duplex configuration. It is possible we could be seeing some sort of timing issue and adding the 2 second delay after the link event is enough time for things to stabilize and detect the link at 1000 instead of 10/100.
- Alex
We've found out this issue using Fedora 27 (4.17.11-100.fc27.x86_64).
Then I've tested wth a more recent version of the driver v4.18-rc7 but behavior looks the same.
Thanks for you reply.
Camille Bordignon
Quoted 97 lines · Camille Bordignon
Le lundi 06 ao?t 2018 ? 15:45:29 (-0700), Alexander Duyck a ?crit :
Quoted 82 lines
Quoted 66 lines · Camille Bordignon
Hello,
Recently we experienced some issues with intel NIC (I219-LM and I219-V). It seems that after a wire reconnection, auto-negotation "fails" and link speed drips to 10 Mbps.
From kernel logs:
[17616.346150] e1000e: enp0s31f6 NIC Link is Down [17627.003322] e1000e: enp0s31f6 NIC Link is Up 10 Mbps Full Duplex, Flow Control: None [17627.003325] e1000e 0000:00:1f.6 enp0s31f6: 10/100 speed: disabling TSO$ethtool enp0s31f6
Settings for enp0s31f6:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes Advertised FEC modes: Not reported
Speed: 10Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on (auto)
Supports Wake-on: pumbg
Wake-on: g
Current message level:0x00000007(7)
drv probe link
Link detected: yesNotice that if disconnection last less than about 5 seconds, nothing wrong happens.
And if after last failure, disconnection / connection occurs again and last less than 5 seconds, link speed is back to 1000 Mbps.[18075.350678] e1000e: enp0s31f6 NIC Link is Down [18078.716245] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: NoneThe following patch seems to fix this issue.
However I don't clearly understand why.drivers/net/ethernet/intel/e1000e/netdev.c +1
-1@@ -5069,7 +5069,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)case e1000_media_type_copper:if (hw->mac.get_link_status) { ret_val = hw->mac.ops.check_for_link (hw); - link_active = !hw->mac.get_link_status; + link_active = false; }else { link_active = true; }Quoted 8 lines
Maybe this is related to watchdog task.
I've found out this fix by comparing with last commit that works fine :
commit0b76aae741abb9d16d2c0e67f8b1e766576f897d.
However I don't know if this information is relevant.Thank you.
Camille BordignonWhat kernel were you testing this on? I know there have been a number of changes over the past few months in this area and it would be useful to know exactly what code base you started out with and what the latest version of the kernel is you have tested.
Quoted 8 lines
Looking over the code change the net effect of it should be to add a 2 second delay from the time the link has changed until you actually check the speed/duplex configuration. It is possible we could be seeing some sort of timing issue and adding the 2 second delay after the link event is enough time for things to stabilize and detect the link at 1000 instead of 10/100.
- Alex
We've found out this issue using Fedora 27 (4.17.11-100.fc27.x86_64).
Then I've tested wth a more recent version of the driver v4.18-rc7 but behavior looks the same.
Quoted 8 lines
Thanks for you reply.
Camille Bordignon
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
I've agree with Alex. Let's try add 2s delay after a link event. Please, let us know if it will solve your problem.
Also, I would like recommend try work with different link partner and see if you see same problem.
Quoted 112 lines · Sasha
Quoted 103 lines · Camille Bordignon
Le lundi 06 ao?t 2018 ? 15:45:29 (-0700), Alexander Duyck a ?crit :
Quoted 88 lines
Quoted 72 lines · Camille Bordignon
Hello,
Recently we experienced some issues with intel NIC (I219-LM and I219-V).
It seems that after a wire reconnection, auto-negotation "fails" and link speed drips to 10 Mbps.?From kernel logs:
[17616.346150] e1000e: enp0s31f6 NIC Link is Down [17627.003322] e1000e: enp0s31f6 NIC Link is Up 10 Mbps Full Duplex, Flow Control: None [17627.003325] e1000e 0000:00:1f.6 enp0s31f6: 10/100 speed:disabling TSO
$ethtool enp0s31f6
Settings for enp0s31f6:
???????? Supported ports: [ TP ]
???????? Supported link modes:?? 10baseT/Half 10baseT/Full ???????????????????????????????? 100baseT/Half 100baseT/Full ???????????????????????????????? 1000baseT/Full ???????? Supported pause frame use: No
???????? Supports auto-negotiation: Yes
???????? Supported FEC modes: Not reported ???????? Advertised link modes:? 10baseT/Half 10baseT/Full ???????????????????????????????? 100baseT/Half 100baseT/Full ???????????????????????????????? 1000baseT/Full ???????? Advertised pause frame use: No
???????? Advertised auto-negotiation: Yes
???????? Advertised FEC modes: Not reported ???????? Speed: 10Mb/s
???????? Duplex: Full
???????? Port: Twisted Pair
???????? PHYAD: 1
???????? Transceiver: internal
???????? Auto-negotiation: on
???????? MDI-X: on (auto)
???????? Supports Wake-on: pumbg
???????? Wake-on: g
???????? Current message level:0x00000007(7) ??????????????????????????????? drv probe link ???????? Link detected: yesNotice that if disconnection last less than about 5 seconds, nothing wrong happens.
And if after last failure, disconnection / connection occurs again and last less than 5 seconds, link speed is back to 1000 Mbps.[18075.350678] e1000e: enp0s31f6 NIC Link is Down [18078.716245] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps FullDuplex, Flow Control: None
The following patch seems to fix this issue.
However I don't clearly understand why.drivers/net/ethernet/intel/e1000e/netdev.c +0
-0@@ -5069,7 +5069,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)???????? case
e1000_media_type_copper:
???????????????? if (hw->mac.get_link_status) { ????????????????????????ret_val=hw->mac.ops.check_for_link(hw); -??????????????????????link_active= !hw->mac.get_link_status; +??????????????????????link_active= false; ???????????????? } else {
????????????????????????link_active= true; ???????????????? }Quoted 8 lines
Maybe this is related to watchdog task.
I've found out this fix by comparing with last commit that works fine :
commit0b76aae741abb9d16d2c0e67f8b1e766576f897d.
However I don't know if this information is relevant.Thank you.
Camille BordignonWhat kernel were you testing this on? I know there have been a number of changes over the past few months in this area and it would be useful to know exactly what code base you started out with and what the latest version of the kernel is you have tested.
Quoted 8 lines
Looking over the code change the net effect of it should be to add a 2 second delay from the time the link has changed until you actually check the speed/duplex configuration. It is possible we could be seeing some sort of timing issue and adding the 2 second delay after the link event is enough time for things to stabilize and detect the link at 1000 instead of 10/100.
- Alex
We've found out this issue using Fedora 27 (4.17.11-100.fc27.x86_64).
Then I've tested wth a more recent version of the driver v4.18-rc7 but behavior looks the same.
Quoted 8 lines
Thanks for you reply.
Camille Bordignon
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
Quoted 8 lines
I've agree with Alex. Let's try add 2s delay after a link event. Please, let us know if it will solve your problem.
Also, I would like recommend try work with different link partner and see if you see same problem.
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
Camille,
My apologies, I wrong understand Alex. Please, do not try add delay. Please, check if you see same problem with different link partners. Thanks,
Sasha
Le mercredi 08 ao?t 2018 ? 18:00:28 (+0300), Neftin, Sasha a ?crit :
Quoted 121 lines · Sasha
Quoted 112 lines · Camille Bordignon
Quoted 103 lines
Le lundi 06 ao?t 2018 ? 15:45:29 (-0700), Alexander Duyck a ?crit :
Quoted 88 lines
Quoted 72 lines · Camille Bordignon
Hello,
Recently we experienced some issues with intel NIC (I219-LM and I219-V).
It seems that after a wire reconnection, auto-negotation "fails" and link speed drips to 10 Mbps.?From kernel logs:
[17616.346150] e1000e: enp0s31f6 NIC Link is Down [17627.003322] e1000e: enp0s31f6 NIC Link is Up 10 Mbps Full Duplex, Flow Control: None [17627.003325] e1000e 0000:00:1f.6 enp0s31f6: 10/100 speed:disabling TSO
$ethtool enp0s31f6
Settings for enp0s31f6:
???????? Supported ports: [ TP ]
???????? Supported link modes:?? 10baseT/Half 10baseT/Full ???????????????????????????????? 100baseT/Half 100baseT/Full ???????????????????????????????? 1000baseT/Full ???????? Supported pause frame use: No
???????? Supports auto-negotiation: Yes
???????? Supported FEC modes: Not reported ???????? Advertised link modes:? 10baseT/Half 10baseT/Full ???????????????????????????????? 100baseT/Half 100baseT/Full ???????????????????????????????? 1000baseT/Full ???????? Advertised pause frame use: No
???????? Advertised auto-negotiation: Yes
???????? Advertised FEC modes: Not reported ???????? Speed: 10Mb/s
???????? Duplex: Full
???????? Port: Twisted Pair
???????? PHYAD: 1
???????? Transceiver: internal
???????? Auto-negotiation: on
???????? MDI-X: on (auto)
???????? Supports Wake-on: pumbg
???????? Wake-on: g
???????? Current message level:0x00000007(7) ??????????????????????????????? drv probe link ???????? Link detected: yesNotice that if disconnection last less than about 5 seconds, nothing wrong happens.
And if after last failure, disconnection / connection occurs again and last less than 5 seconds, link speed is back to 1000 Mbps.[18075.350678] e1000e: enp0s31f6 NIC Link is Down [18078.716245] e1000e: enp0s31f6 NIC Link is Up 1000 MbpsFull Duplex, Flow Control: None
The following patch seems to fix this issue.
However I don't clearly understand why.drivers/net/ethernet/intel/e1000e/netdev.c +0
-0@@ -5069,7 +5069,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)???????? case
e1000_media_type_copper:
???????????????? if (hw->mac.get_link_status) { ????????????????????????ret_val=hw->mac.ops.check_for_link(hw); -??????????????????????link_active= !hw->mac.get_link_status; +??????????????????????link_active= false; ???????????????? } else {
????????????????????????link_active= true; ???????????????? }Quoted 8 lines
Maybe this is related to watchdog task.
I've found out this fix by comparing with last commit that works fine :
commit0b76aae741abb9d16d2c0e67f8b1e766576f897d.
However I don't know if this information is relevant.Thank you.
Camille BordignonWhat kernel were you testing this on? I know there have been a number of changes over the past few months in this area and it would be useful to know exactly what code base you started out with and what the latest version of the kernel is you have tested.
Quoted 8 lines
Looking over the code change the net effect of it should be to add a 2 second delay from the time the link has changed until you actually check the speed/duplex configuration. It is possible we could be seeing some sort of timing issue and adding the 2 second delay after the link event is enough time for things to stabilize and detect the link at 1000 instead of 10/100.
- Alex
We've found out this issue using Fedora 27 (4.17.11-100.fc27.x86_64).
Then I've tested wth a more recent version of the driver v4.18-rc7 but behavior looks the same.
Quoted 8 lines
Thanks for you reply.
Camille Bordignon
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lanQuoted 8 lines
I've agree with Alex. Let's try add 2s delay after a link event. Please, let us know if it will solve your problem.
Also, I would like recommend try work with different link partner and see if you see same problem.
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
Quoted 5 lines
Camille,
My apologies, I wrong understand Alex. Please, do not try add delay. Please, check if you see same problem with different link partners. Thanks,
Sasha
I tried to reproduce the issue with differents devices. On computer side :
- HP ZBook 14u G5 (Intel NIC I219-V)
- Dell Tower 3620 (Intel NIC I219-LM)
On network side :
- TP-LINK TL-SG108E
- Advantech EKI-2728I
- Freebox v6 (https://en.wikipedia.org/wiki/Freebox)
It always happens with any configuration.
Thanks.
Camille Bordignon
Le mercredi 08 ao?t 2018 ? 18:00:28 (+0300), Neftin, Sasha a ?crit :
Quoted 121 lines · Sasha
Quoted 112 lines · Camille Bordignon
Quoted 103 lines
Le lundi 06 ao?t 2018 ? 15:45:29 (-0700), Alexander Duyck a ?crit :
Quoted 88 lines
Quoted 72 lines · Camille Bordignon
Hello,
Recently we experienced some issues with intel NIC (I219-LM and I219-V).
It seems that after a wire reconnection, auto-negotation "fails" and link speed drips to 10 Mbps.?From kernel logs:
[17616.346150] e1000e: enp0s31f6 NIC Link is Down [17627.003322] e1000e: enp0s31f6 NIC Link is Up 10 Mbps Full Duplex, Flow Control: None [17627.003325] e1000e 0000:00:1f.6 enp0s31f6: 10/100 speed:disabling TSO
$ethtool enp0s31f6
Settings for enp0s31f6:
???????? Supported ports: [ TP ]
???????? Supported link modes:?? 10baseT/Half 10baseT/Full ???????????????????????????????? 100baseT/Half 100baseT/Full ???????????????????????????????? 1000baseT/Full ???????? Supported pause frame use: No
???????? Supports auto-negotiation: Yes
???????? Supported FEC modes: Not reported ???????? Advertised link modes:? 10baseT/Half 10baseT/Full ???????????????????????????????? 100baseT/Half 100baseT/Full ???????????????????????????????? 1000baseT/Full ???????? Advertised pause frame use: No
???????? Advertised auto-negotiation: Yes
???????? Advertised FEC modes: Not reported ???????? Speed: 10Mb/s
???????? Duplex: Full
???????? Port: Twisted Pair
???????? PHYAD: 1
???????? Transceiver: internal
???????? Auto-negotiation: on
???????? MDI-X: on (auto)
???????? Supports Wake-on: pumbg
???????? Wake-on: g
???????? Current message level:0x00000007(7) ??????????????????????????????? drv probe link ???????? Link detected: yesNotice that if disconnection last less than about 5 seconds, nothing wrong happens.
And if after last failure, disconnection / connection occurs again and last less than 5 seconds, link speed is back to 1000 Mbps.[18075.350678] e1000e: enp0s31f6 NIC Link is Down [18078.716245] e1000e: enp0s31f6 NIC Link is Up 1000 MbpsFull Duplex, Flow Control: None
The following patch seems to fix this issue.
However I don't clearly understand why.drivers/net/ethernet/intel/e1000e/netdev.c +0
-0@@ -5069,7 +5069,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)???????? case
e1000_media_type_copper:
???????????????? if (hw->mac.get_link_status) { ????????????????????????ret_val=hw->mac.ops.check_for_link(hw); -??????????????????????link_active= !hw->mac.get_link_status; +??????????????????????link_active= false; ???????????????? } else {
????????????????????????link_active= true; ???????????????? }Quoted 8 lines
Maybe this is related to watchdog task.
I've found out this fix by comparing with last commit that works fine :
commit0b76aae741abb9d16d2c0e67f8b1e766576f897d.
However I don't know if this information is relevant.Thank you.
Camille BordignonWhat kernel were you testing this on? I know there have been a number of changes over the past few months in this area and it would be useful to know exactly what code base you started out with and what the latest version of the kernel is you have tested.
Quoted 8 lines
Looking over the code change the net effect of it should be to add a 2 second delay from the time the link has changed until you actually check the speed/duplex configuration. It is possible we could be seeing some sort of timing issue and adding the 2 second delay after the link event is enough time for things to stabilize and detect the link at 1000 instead of 10/100.
- Alex
We've found out this issue using Fedora 27 (4.17.11-100.fc27.x86_64).
Then I've tested wth a more recent version of the driver v4.18-rc7 but behavior looks the same.
Quoted 8 lines
Thanks for you reply.
Camille Bordignon
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lanQuoted 8 lines
I've agree with Alex. Let's try add 2s delay after a link event. Please, let us know if it will solve your problem.
Also, I would like recommend try work with different link partner and see if you see same problem.
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
Quoted 5 lines
Camille,
My apologies, I wrong understand Alex. Please, do not try add delay. Please, check if you see same problem with different link partners. Thanks,
Sasha
Hello,
I recently figured out that neither the previous patch nor commit 0b76aae741abb9d16d2c0e67f8b1e766576f897d fix this issue.
In these cases, after reproducing the issue, when ethernet wire is connected kernel logs mention full speed (1000 Mbps) but actually it seems it is not. The problem persists.
I made some simple tests with a web browser and a dowload speed test site (fast.com). As a result speed was always around 8 Mbps.
And again after a quick ethernet wire disconnection / reconnection, same test is around 500 Mbps.
I feel very confused.
Camille Bordignon
Quoted 13 lines · Camille Bordignon
Le mercredi 08 ao?t 2018 ? 18:00:28 (+0300), Neftin, Sasha a ?crit :
Quoted 12 lines · Sasha
Quoted 11 lines · Camille Bordignon
Quoted 10 lines
Le lundi 06 ao?t 2018 ? 15:45:29 (-0700), Alexander Duyck a ?crit :
Quoted 9 lines
Quoted 7 lines · Camille Bordignon
Hello,
Recently we experienced some issues with intel NIC (I219-LM and I219-V).
It seems that after a wire reconnection, auto-negotation "fails" and link speed drips to 10 Mbps.
[...]
Quoted 8 lines
I recently figured out that neither the previous patch nor commit
0b76aae741abb9d16d2c0e67f8b1e766576f897dfix this issue.In these cases, after reproducing the issue, when ethernet wire is connected kernel logs mention full speed (1000 Mbps) but actually it seems it is not. The problem persists.
Hmm, so the newer (post 4110e02eb45e) kernels are actually "better", in that they accurately report that link speed is 10Mb/s.
In the end, do you know of a kernel version that doesn't exhibit the problem of slower actual link speed?
I had a look at the code and I tried to reproduce the problem on the hardware that I have (I217) but could not.
Also, out of curiosity, have you tried playing with the speed, autoneg and advertise settings via ethtool -s to force the link to 1000Mb/s?
Le mardi 11 sept. 2018 ? 17:31:47 (+0900), Benjamin Poirier a ?crit :
Quoted 19 lines · Camille Bordignon
Quoted 13 lines
Le mercredi 08 ao?t 2018 ? 18:00:28 (+0300), Neftin, Sasha a ?crit :
Quoted 12 lines · Sasha
Quoted 11 lines · Camille Bordignon
Quoted 10 lines
Le lundi 06 ao?t 2018 ? 15:45:29 (-0700), Alexander Duyck a ?crit :
Quoted 9 lines
Quoted 7 lines · Camille Bordignon
Hello,
Recently we experienced some issues with intel NIC (I219-LM and I219-V).
It seems that after a wire reconnection, auto-negotation "fails" and link speed drips to 10 Mbps.[...]
Quoted 4 lines
I recently figured out that neither the previous patch nor commit
0b76aae741abb9d16d2c0e67f8b1e766576f897dfix this issue.
Quoted 8 lines
Quoted 4 lines
In these cases, after reproducing the issue, when ethernet wire is connected kernel logs mention full speed (1000 Mbps) but actually it seems it is not. The problem persists.
Hmm, so the newer (post
4110e02eb45e) kernels are actually "better", in that they accurately report that link speed is 10Mb/s.
Exactly.
Quoted 3 lines
In the end, do you know of a kernel version that doesn't exhibit the problem of slower actual link speed?
No. I've tried older version but at some point API has changed and it fails to compile.
Quoted 5 lines
I had a look at the code and I tried to reproduce the problem on the hardware that I have (I217) but could not.
Also, out of curiosity, have you tried playing with the speed, autoneg and advertise settings via ethtool -s to force the link to 1000Mb/s?
Forcing the speed fixes the issue in any case (I mean even when speed is wronly reported to 1000Mb/s).
Done this way:
#ethtool -s enp0s31f6 speed 1000 duplex full autoneg off
Thanks.