Bug 213165

Summary: [rtl8106e] if aspm is enabled, take a long time to bring up PHY link
Product: Drivers Reporter: KobaKo (koba.ko)
Component: NetworkAssignee: drivers_network (drivers_network)
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.10 Subsystem:
Regression: No Bisected commit-id:
Attachments: patch Disable ASPM L1_1
lspci vvv
ethool -i
lspci -vvv v1
dmesg

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.