On 12/6/2024 6:06 PM, ValdikSS wrote:
Hello Intel team,
I have Intel NUC13ANKI5 machine, with I226-V network card, and gigabit
Internet connection.
After (presumably) latest UEFI v0033 update for the NUC, my network is
limited to ~250 Mbit/s download unless I disable PCIE ASPM option in
UEFI settings.
ASUS support (which now handles support for NUC products) has confirmed
the issue and provided me with Windows NetAdapterCx 2.1.4.3 driver,
which has this issue fixed (I have not tested it on Windows).
Linux drivers are not fixed. I'm seeing the issue on Fedora 39, just
tested network speed with PCIE ASPM enabled on
6.12.3-200.vanilla.fc39.x86_64 kernel - the issue is still here, 25 MB/s
download max.
Let me know if you need debug output of igc driver, I can run any tests.
56:00.0 Ethernet controller [0200]: Intel Corporation Ethernet
Controller I226-V [8086:125c] (rev 04)
Hello,
I believe that the issue you are facing is related to PCIE L1.2 state
exit latency. To confirm this please try to reproduce it after making
the following changes in the igc code:
diff --git a/drivers/net/ethernet/intel/igc/igc_i225.c
b/drivers/net/ethernet/intel/igc/igc_i225.c
index 0dd61719f1ed..1c0c3d665a0c 100644
--- a/drivers/net/ethernet/intel/igc/igc_i225.c
+++ b/drivers/net/ethernet/intel/igc/igc_i225.c
@@ -612,6 +612,10 @@ s32 igc_set_ltr_i225(struct igc_hw *hw, bool link)
*/
ltr_min = (1000 * size) / speed;
ltr_max = ltr_min + tw_system;
+ if (speed == SPEED_1000) {
+ ltr_min = ltr_max = 100 * 1000;
+ }
+
scale_min = (ltr_min / 1024) < 1024 ?
IGC_LTRMINV_SCALE_1024 :
IGC_LTRMINV_SCALE_32768;
scale_max = (ltr_max / 1024) < 1024 ?
IGC_LTRMAXV_SCALE_1024 :