Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth0: link not detected/ready #43148

Closed
dkwo opened this issue Mar 31, 2023 · 10 comments
Closed

eth0: link not detected/ready #43148

dkwo opened this issue Mar 31, 2023 · 10 comments
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@dkwo
Copy link
Contributor

dkwo commented Mar 31, 2023

Is this a new report?

Yes

System Info

Void 6.2.8_1 x86_64-musl GenuineIntel uptodate rrnFFFFFFFFF

Package(s) Affected

I wish I knew

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

eth0 is up

Actual behaviour

eth0 has no-carrier

Steps to reproduce

the ethernet cable is attached to monitor, which is connected via usb cable to lenovo dock, to which laptop is connected.

with void installer: eth0 is up
with my system: eth0 has no-carrier

relevant dmesg:

[    2.811695] usb 2-4.2.1.2: new SuperSpeed USB device number 5 using xhci_hcd
[    2.825807] usb 2-4.2.1.2: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=33.00
[    2.825823] usb 2-4.2.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[    2.825830] usb 2-4.2.1.2: Product: USB 10/100/1000 LAN
[    2.825835] usb 2-4.2.1.2: Manufacturer: Realtek
[    2.825839] usb 2-4.2.1.2: SerialNumber: 0033000001
[   25.821484] usbcore: registered new interface driver cdc_ether
[   26.220409] cdc_ncm 2-4.2.1.2:2.0: MAC-Address: XXX
[   26.220422] cdc_ncm 2-4.2.1.2:2.0: setting rx_max = 16384
[   26.220657] cdc_ncm 2-4.2.1.2:2.0: setting tx_max = 16384
[   26.221487] cdc_ncm 2-4.2.1.2:2.0 eth0: register 'cdc_ncm' at usb-0000:00:14.0-4.2.1.2, CDC NCM (NO ZLP), XXX
[   26.221651] usbcore: registered new interface driver cdc_ncm
[   26.228984] usbcore: registered new interface driver cdc_wdm
[   26.230680] usbcore: registered new interface driver cdc_mbim

with XXX being the actual mac

$ ip link
4: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether XXX brd ff:ff:ff:ff:ff:ff

i tried downgrading the kernel, linux-firmware, using dracut: same issue.

compared to installer, i'm using booster initramfs, booting from efistub

$ ls /var/service
acpid	    agetty-tty2  agetty-tty4  agetty-tty6  cronie  nanoklogd  runsvdir-dkwo	socklog-unix  udevd
agetty-tty1  agetty-tty3  agetty-tty5  chronyd	   dhcpcd  pipewire   seatd		tlp	     wpa_supplicant
$ cat /etc/xbps.d/ignore.conf 
ignorepkg=sudo
ignorepkg=dracut
ignorepkg=dbus
$ cat /etc/booster.yaml 
busybox: true
enable_lvm: true
modules: i915
modules_force_load: usbkbd
$ cat /etc/default/efibootmgr-kernel-hook 
# Options for the kernel hook script installed by the efibootmgr package.
MODIFY_EFI_ENTRIES=1
OPTIONS="loglevel=4 rd.luks.name=(actual uuid)=cryptroot root=/dev/cryptroot/root rd.luks.options=discard"
DISK="/dev/nvme0n1"
PART=1

Any ideas?

@dkwo dkwo added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Mar 31, 2023
@dkwo
Copy link
Contributor Author

dkwo commented Mar 31, 2023

the installer is void-live-x86_64-musl-20221001-base.iso

relevant difference

dmesg | grep eth0
...(some renaming)
[   27.661631] cdc_ncm 2-4.2.1.2:2.0 eth0: register 'cdc_ncm' at usb-0000:00:14.0-4.2.1.2, CDC NCM (NO ZLP), XXX

vs

dmesg | grep eth0 
...(same renaming)
[   11.346163] cdc_ncm 2-4.2.1.2:2.0 eth0: register 'cdc_ncm' at usb-0000:00:14.0-4.2.1.2, CDC NCM, XXX
[   17.590876] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

@dkwo dkwo changed the title eth0 has no-carrier eth0 does not become ready Mar 31, 2023
@dkwo
Copy link
Contributor Author

dkwo commented Apr 1, 2023

I'll try downgrading to 5.19.10 kernel.

@dkwo
Copy link
Contributor Author

dkwo commented Apr 3, 2023

downgrading kernel, musl, removing hardened-malloc does not fix it.

@dkwo
Copy link
Contributor Author

dkwo commented Apr 3, 2023

nor does it downgrading pciutils, usbutils, iputils, ethtool

@dkwo dkwo changed the title eth0 does not become ready eth0: link not ready Apr 3, 2023
@dkwo
Copy link
Contributor Author

dkwo commented Apr 3, 2023

also useless: only enable services present in live-usb; reinstall -ff eudev with no changes in /etc.

@dkwo
Copy link
Contributor Author

dkwo commented Apr 3, 2023

$ doas ethtool eth0 
Settings for eth0:
	Supported ports: [  ]
	Supported link modes:   Not reported
	Supported pause frame use: No
	Supports auto-negotiation: No
	Supported FEC modes: Not reported
	Advertised link modes:  Not reported
	Advertised pause frame use: No
	Advertised auto-negotiation: No
	Advertised FEC modes: Not reported
	Speed: Unknown!
	Duplex: Half
	Auto-negotiation: off
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: internal
	MDI-X: Unknown
        Current message level: 0x00000007 (7)
                               drv probe link
	Link detected: no

only differences being speed and link detection

@dkwo
Copy link
Contributor Author

dkwo commented Apr 3, 2023

short of wiping luks/lvm, or installing grub (which both seem absurd), not sure what else to try :)

@dkwo
Copy link
Contributor Author

dkwo commented Apr 3, 2023

a new live image from today (linux 6.1) also works, so I exclude any other downgradings.

@dkwo dkwo changed the title eth0: link not ready eth0: link not detected Apr 3, 2023
@dkwo dkwo changed the title eth0: link not detected eth0: link not detected/ready Apr 3, 2023
@dkwo
Copy link
Contributor Author

dkwo commented Apr 3, 2023

finally, the culprit is tlp

@dkwo
Copy link
Contributor Author

dkwo commented Apr 12, 2023

add USB_DENYLIST="0bda:8153" to tlp.conf

@dkwo dkwo closed this as completed Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

1 participant