Bug 213165 - [rtl8106e] if aspm is enabled, take a long time to bring up PHY link
Summary: [rtl8106e] if aspm is enabled, take a long time to bring up PHY link
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Network (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_network@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-21 05:49 UTC by KobaKo
Modified: 2021-06-04 07:14 UTC (History)
0 users

See Also:
Kernel Version: 5.10
Subsystem:
Regression: No
Bisected commit-id:


Attachments
patch Disable ASPM L1_1 (1.38 KB, application/mbox)
2021-05-21 05:49 UTC, KobaKo
Details
lspci vvv (3.77 KB, text/plain)
2021-06-04 06:46 UTC, KobaKo
Details
ethool -i (261 bytes, text/plain)
2021-06-04 06:46 UTC, KobaKo
Details
lspci -vvv v1 (3.83 KB, text/plain)
2021-06-04 07:04 UTC, KobaKo
Details
dmesg (81.41 KB, text/plain)
2021-06-04 07:05 UTC, KobaKo
Details

Description KobaKo 2021-05-21 05:49:05 UTC
Created attachment 296909 [details]
patch Disable ASPM L1_1

Use 5.10 and disable the ASPM L1_1,
If link partner's capability have 1Gbps capability.
the phy link can't be established.

If use 5.10 without patch that disable ASPM L1_1(in-box driver disable L0s and L1),
the machine can't put into deeper than PC3.

Will upload more logs.
Comment 1 KobaKo 2021-06-04 06:46:03 UTC
Created attachment 297147 [details]
lspci vvv
Comment 2 KobaKo 2021-06-04 06:46:24 UTC
Created attachment 297149 [details]
ethool -i
Comment 3 KobaKo 2021-06-04 07:04:32 UTC
Created attachment 297151 [details]
lspci -vvv v1
Comment 4 KobaKo 2021-06-04 07:05:16 UTC
Created attachment 297153 [details]
dmesg
Comment 5 KobaKo 2021-06-04 07:14:24 UTC
For rtl8106E, ASPM is enabled.
The issue is observed after boot-up into ubuntu desktop, plug the ethernet cable.
must wait a long time to get "link up" in dmesg.
Once the link is up one time, even hot-plug cable multiple times, the "link up" would show up immediately.
If unplug cable and wait a long time, the issue would be observed again.

In fact, the PHY link is established after plug cable.
but rtl8106e doesn't fire interrupt and OS can't get link status.

Note You need to log in before you can comment on or make changes to this bug.