linux-loongson/drivers/net/ethernet/intel/igc
ValdikSS 1468c1f97c igc: fix disabling L1.2 PCI-E link substate on I226 on init
Device ID comparison in igc_is_device_id_i226 is performed before
the ID is set, resulting in always failing check on init.

Before the patch:
* L1.2 is not disabled on init
* L1.2 is properly disabled after suspend-resume cycle

With the patch:
* L1.2 is properly disabled both on init and after suspend-resume

How to test:
Connect to the 1G link with 300+ mbit/s Internet speed, and run
the download speed test, such as:

    curl -o /dev/null http://speedtest.selectel.ru/1GB

Without L1.2 disabled, the speed would be no more than ~200 mbit/s.
With L1.2 disabled, the speed would reach 1 gbit/s.
Note: it's required that the latency between your host and the remote
be around 3-5 ms, the test inside LAN (<1 ms latency) won't trigger the
issue.

Link: https://lore.kernel.org/intel-wired-lan/15248b4f-3271-42dd-8e35-02bfc92b25e1@intel.com
Fixes: 0325143b59 ("igc: disable L1.2 PCI-E link substate to avoid performance issue")
Signed-off-by: ValdikSS <iam@valdikss.org.ru>
Reviewed-by: Vitaly Lifshits <vitaly.lifshits@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20250819222000.3504873-6-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-08-20 18:46:30 -07:00
..
igc_base.c
igc_base.h igc: move TXDCTL and RXDCTL related macros 2025-06-11 08:52:14 -07:00
igc_defines.h igc: Add wildcard rule support to ethtool NFC using Default Queue 2025-07-18 09:02:28 -07:00
igc_diag.c
igc_diag.h
igc_dump.c
igc_ethtool.c igc: Add wildcard rule support to ethtool NFC using Default Queue 2025-07-18 09:02:28 -07:00
igc_hw.h
igc_i225.c
igc_i225.h
igc_leds.c
igc_mac.c net: Fix typos 2025-07-25 10:29:07 -07:00
igc_mac.h
igc_main.c igc: fix disabling L1.2 PCI-E link substate on I226 on init 2025-08-20 18:46:30 -07:00
igc_nvm.c
igc_nvm.h
igc_phy.c
igc_phy.h
igc_ptp.c igc: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2025-07-03 09:38:33 -07:00
igc_regs.h igc: add support to get frame preemption statistics via ethtool 2025-04-18 09:17:14 -07:00
igc_tsn.c igc: Make the const read-only array supported_sizes static 2025-06-19 15:39:21 -07:00
igc_tsn.h igc: add preemptible queue support in mqprio 2025-06-11 10:06:24 -07:00
igc_xdp.c igc: Fix XSK queue NAPI ID mapping 2025-04-02 08:51:41 -07:00
igc_xdp.h
igc.h igc: Add wildcard rule support to ethtool NFC using Default Queue 2025-07-18 09:02:28 -07:00
Makefile