Manjaro 5.10 on Surface Book with Surface Dock - Network Port not working

I’m running Manjaro on a Surface Book with Surface Dock and I’m trying to get the Network port on the dock running.
The WLAN works as of now, but as soon as I activate the LAN Port of the dock the whole system starts hanging and can’t even be shut off.
I’m having multiple messages:

INFO: task kworker/... blocked for more than ... seconds

The only way I can use the system currently is to unplug the cable from the Dock - or the system will hang. Even currently as I’m trying to get an output of lsusb nothing happens.

Output of lsusb is:

    Bus 002 Device 005: ID 045e:07c6 Microsoft Corp. RTL8153 GigE [Surface Ethernet Adapter]
    Bus 002 Device 004: ID 045e:0902 Microsoft Corp. Surface Dock Hub
    Bus 002 Device 003: ID 045e:0900 Microsoft Corp. Surface Dock Hub
    Bus 002 Device 002: ID 045e:090b Microsoft Corp. Hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 011: ID 1286:204c Marvell Semiconductor, Inc. Bluetooth and Wireless LAN Composite
    Bus 001 Device 008: ID 045e:0905 Microsoft Corp. Surface Dock Audio
    Bus 001 Device 006: ID 045e:0904 Microsoft Corp. Surface Dock Extender
    Bus 001 Device 010: ID 1532:0001 Razer USA, Ltd RZ01-020300 Optical Mouse [Diamondback]
    Bus 001 Device 009: ID 05e3:0608 Genesys Logic, Inc. Hub
    Bus 001 Device 007: ID 04d9:2013 Holtek Semiconductor, Inc. Keyboard [Das Keyboard]
    Bus 001 Device 005: ID 045e:0903 Microsoft Corp. Surface Dock Hub
    Bus 001 Device 003: ID 045e:0901 Microsoft Corp. Surface Dock Hub
    Bus 001 Device 004: ID 045e:07cd Microsoft Corp. Surface Keyboard
    Bus 001 Device 002: ID 045e:091a Microsoft Corp. Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I’ve already tried installing the AUR Package for r8152.

The driver is installed and in use:

dmesg | grep r8152
    8.675132] r8152: loading out-of-tree module taints kernel.
    [    8.675397] r8152: module verification failed: signature and/or required key missing - tainting kernel
    [    8.679347] usbcore: registered new interface driver r8152
    [    8.825909] r8152 2-4.2:1.0 eth0: v2.14.0 (2020/09/24)
    [    8.825915] r8152 2-4.2:1.0 eth0: This product is covered by one or more of the following patents:
    [    8.855556] r8152 2-4.2:1.0 enp0s20f0u4u2: renamed from eth0

The only way I can get the laptop working more or less is to unplug the network cable from the dock and use the WLAN.

How should I proceed?

  1. In the future, when providing code/output, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text so that the output looks like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    

    instead of like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`

    (as that makes both our lives much easier)

  2. No need to do anything right now as I’m an editor here on this site and have fixed it for you already. However, in the future I might not see your post so review my edits by pushing the orange pencil above the post I just fixed. :wink:

  3. Please read this:
    How to provide good information
    and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies…

  4. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information… (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)

:+1:

P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment you’re using, which CPU/GPU or Kernel, … you have without typing it every time

Thank you for your help - this is the output:

System:
  Kernel: 5.10.19-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=XX rw text 
  cryptdevice=UUID=XX:luks-XX 
  root=/dev/mapper/luks-XX 
  resume=/dev/mapper/luks-XX apparmor=1 
  security=apparmor resume=UUID=XX 
  udev.log_priority=3 
  Desktop: Cinnamon 4.8.6 tk: GTK 3.24.26 dm: LightDM 1.30.0 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Microsoft product: Surface Book v: D:0B:09F:1C:03P:38 
  serial: <filter> Chassis: type: 9 serial: <filter> 
  Mobo: Microsoft model: Surface Book serial: <filter> UEFI: Microsoft 
  v: 91.2706.768 date: 04/18/2019 
Battery:
  ID-1: BAT1 charge: 15.4 Wh condition: 16.0/17.9 Wh (89%) volts: 8.7/7.5 
  model: DYN X906971 type: Li-ion serial: <filter> status: Charging 
  cycles: 224 
  ID-2: BAT2 charge: 40.1 Wh condition: 40.1/51.0 Wh (79%) volts: 8.5/7.5 
  model: SMP X905255 type: Li-ion serial: <filter> status: Full cycles: 464 
Memory:
  RAM: total: 15.56 GiB used: 2.48 GiB (15.9%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Dual Core model: Intel Core i7-6600U bits: 64 type: MT MCP 
  arch: Skylake family: 6 model-id: 4E (78) stepping: 3 microcode: E2 
  L2 cache: 4 MiB bogomips: 22408 
  Speed: 597 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 597 2: 570 3: 590 
  4: 594 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art 
  avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid 
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est 
  f16c flexpriority flush_l1d fma fpu fsgsbase fxsr hle ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm 
  mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts 
  rdrand rdseed rdtscp rep_good rtm sdbg sep smap smep smx ss ssbd sse sse2 
  sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust 
  tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt 
  xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable 
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Microsoft driver: i915 
  v: kernel bus ID: 00:02.0 chip ID: 8086:1916 class ID: 0300 
  Display: x11 server: X.Org 1.20.10 driver: loaded: intel 
  unloaded: modesetting alternate: fbdev,vesa display ID: :0 screens: 1 
  Screen-1: 0 s-res: 4320x1975 s-dpi: 96 s-size: 1143x523mm (45.0x20.6") 
  s-diag: 1257mm (49.5") 
  Monitor-1: DP1-1-1 res: 1920x1200 hz: 60 dpi: 94 
  size: 520x320mm (20.5x12.6") diag: 611mm (24") 
  Monitor-2: DP1-1-2 res: 1200x1920 hz: 60 
  Monitor-3: DP1-1-3 res: 1200x1920 hz: 60 
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 20.3.4 
  direct render: Yes 
Audio:
  Device-1: Intel Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Imaging 
  Unit 
  driver: ipu3-imgu alternate: ipu3_imgu bus ID: 00:05.0 chip ID: 8086:1919 
  class ID: 0480 
  Device-2: Intel CSI-2 Host driver: ipu3-cio2 alternate: ipu3_cio2 
  bus ID: 00:14.3 chip ID: 8086:9d32 class ID: 0480 
  Device-3: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel v: kernel 
  alternate: snd_soc_skl bus ID: 00:1f.3 chip ID: 8086:9d70 class ID: 0403 
  Device-4: Microsoft Surface Dock Audio type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-4.4:8 chip ID: 045e:0905 
  class ID: 0300 serial: <filter> 
  Sound Server: ALSA v: k5.10.19-1-MANJARO 
Network:
  Device-1: Marvell 88W8897 [AVASTAR] 802.11ac Wireless driver: mwifiex_pcie 
  v: 1.0 port: 3000 bus ID: 03:00.0 chip ID: 11ab:2b38 class ID: 0200 
  IF: wlp3s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  Device-2: Marvell Bluetooth and Wireless LAN Composite type: USB 
  driver: btusb bus ID: 1-6:11 chip ID: 1286:204c class ID: e001 
  serial: <filter> 
  Device-3: Microsoft RTL8153 GigE [Surface Ethernet Adapter] type: USB 
  driver: r8152 bus ID: 2-4.2:5 chip ID: 045e:07c6 class ID: 0000 
  serial: <filter> 
  IF: enp0s20f0u4u2 state: down mac: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Marvell Bluetooth and Wireless LAN Composite type: USB 
  driver: btusb v: 0.8 bus ID: 1-6:11 chip ID: 1286:204c class ID: e001 
  serial: <filter> 
  Message: Required tool hciconfig not installed. Check --recommends 
RAID:
  Message: No RAID data was found. 
Drives:
  Local Storage: total: 476.94 GiB used: 52.94 GiB (11.1%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZFLV512HCJH-000MV 
  size: 476.94 GiB block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 rotation: SSD serial: <filter> rev: BXV75M0Q temp: 27.9 C 
  scheme: GPT 
  Message: No Optical or Floppy data was found. 
Partition:
  ID-1: / raw size: 147.5 GiB size: 144.18 GiB (97.75%) 
  used: 52.94 GiB (36.7%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0 
  mapped: luks-XX label: N/A 
  uuid: XX
  ID-2: /boot/efi raw size: 512 MiB size: 511 MiB (99.80%) 
  used: 456 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p5 maj-min: 259:5 label: N/A 
  uuid: F6FB-4081 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 2 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p6 maj-min: 259:6 label: N/A 
  uuid: XX
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Hub-2: 1-1:2 info: Microsoft Hub ports: 4 rev: 2.1 speed: 480 Mb/s 
  chip ID: 045e:091a class ID: 0900 
  Device-1: 1-1.4:4 info: Microsoft Surface Keyboard type: HID 
  driver: hid-multitouch,usbhid interfaces: 1 rev: 2.1 speed: 12 Mb/s 
  chip ID: 045e:07cd class ID: 0300 
  Hub-3: 1-4:3 info: Microsoft Surface Dock Hub ports: 4 rev: 2.1 
  speed: 480 Mb/s chip ID: 045e:0901 class ID: 0900 
  Hub-4: 1-4.1:5 info: Microsoft Surface Dock Hub ports: 4 rev: 2.1 
  speed: 480 Mb/s chip ID: 045e:0903 class ID: 0900 
  Device-1: 1-4.1.1:7 info: Holtek Keyboard [Das Keyboard] 
  type: Keyboard,Mouse driver: hid-generic,usbhid interfaces: 2 rev: 1.1 
  speed: 1.5 Mb/s chip ID: 04d9:2013 class ID: 0301 
  Hub-5: 1-4.1.2:9 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  chip ID: 05e3:0608 class ID: 0900 
  Device-1: 1-4.1.4:10 info: Razer USA RZ01-020300 Optical Mouse [Diamondback] 
  type: Mouse driver: hid-generic,usbhid interfaces: 1 rev: 2.0 
  speed: 1.5 Mb/s chip ID: 1532:0001 class ID: 0301 
  Device-2: 1-4.3:6 info: Microsoft Surface Dock Extender type: HID 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.1 speed: 12 Mb/s 
  chip ID: 045e:0904 class ID: 0300 
  Device-3: 1-4.4:8 info: Microsoft Surface Dock Audio type: Audio,HID 
  driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 2.0 
  speed: 12 Mb/s chip ID: 045e:0905 class ID: 0300 serial: <filter> 
  Device-4: 1-6:11 info: Marvell Bluetooth and Wireless LAN Composite 
  type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 480 Mb/s 
  chip ID: 1286:204c class ID: e001 serial: <filter> 
  Hub-6: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 speed: 5 Gb/s 
  chip ID: 1d6b:0003 class ID: 0900 
  Hub-7: 2-1:2 info: Microsoft Hub ports: 3 rev: 3.0 speed: 5 Gb/s 
  chip ID: 045e:090b class ID: 0900 
  Hub-8: 2-4:3 info: Microsoft Surface Dock Hub ports: 2 rev: 3.1 
  speed: 5 Gb/s chip ID: 045e:0900 class ID: 0900 
  Hub-9: 2-4.1:4 info: Microsoft Surface Dock Hub ports: 4 rev: 3.1 
  speed: 5 Gb/s chip ID: 045e:0902 class ID: 0900 
  Device-1: 2-4.2:5 info: Microsoft RTL8153 GigE [Surface Ethernet Adapter] 
  type: Network driver: r8152 interfaces: 1 rev: 3.0 speed: 5 Gb/s 
  chip ID: 045e:07c6 class ID: 0000 serial: <filter> 
Sensors:
  System Temperatures: cpu: 38.0 C mobo: 0.0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 207 Uptime: 3m wakeups: 1 Init: systemd v: 247 Compilers: 
  gcc: 10.2.0 Packages: pacman: 1313 lib: 420 flatpak: 0 Shell: Bash v: 5.1.0 
  running in: gnome-terminal inxi: 3.3.01 

Urgh! These are pieces of &@#µ$*.

  • Please change the LAN cable first
  • Yes! Buy a new LAN cable <100m first!
  • if that doesn’t help:
    • turn off auto-negotiation
    • set the speed to 10Mbps Half Duplex (HD)
    • If that makes it work but at a bloody slow speed: that’s good!
    • Now go up to 10 Mbps Full Duplex (FD), then 100Mbps HD, 100Mbps FD, 1Gb HD and when it stops working, go back to the last working speed.

As

I can’t tell you how to do that exactly as I’m on KDE. If you can’t find how to do that in Cinnamon, please post the output to:

nmcli connection show | grep ethernet

as we’ll have to take it to the CLI.

:crossed_fingers:

Hello Fabby,
I’ve changed the cable (didn’t buy one but had another one ready) :slight_smile: - no difference.
But I’ve got it running with full speed BUT that only works if I don’t connect the LAN Cable on boot (#@?!).
This means:
Plugged in LAN Cable

  • Reboot
  • Try ping
  • System hangs

Unplugged LAN Cable

  • Reboot
  • Plug in LAN Cable (Auto negotiation or any speed / duplex setting)
  • ping works, system runs
  • After some minutes the system hangs

But the bad side is that even if I do it like this - the system will hang after a few minutes (actually just as I was writing this reply).

In journalctl I’ve found the following - just before I’ve turned off the machine and rebooted (the hard way)

Mär 15 22:13:38 surface kernel: INFO: task kworker/1:0:25 blocked for more than 122 seconds.
Mär 15 22:13:38 surface kernel:       Tainted: G         CIOE     5.10.19-1-MANJARO #1
Mär 15 22:13:38 surface kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Mär 15 22:13:38 surface kernel: task:kworker/1:0     state:D stack:    0 pid:   25 ppid:     2 flags:0x00004000
Mär 15 22:13:38 surface kernel: Workqueue: events rtl_work_func_t [r8152]
Mär 15 22:13:38 surface kernel: Call Trace:
Mär 15 22:13:38 surface kernel:  __schedule+0x295/0x810
Mär 15 22:13:38 surface kernel:  schedule+0x5b/0xc0
Mär 15 22:13:38 surface kernel:  rpm_resume+0x18c/0x810
Mär 15 22:13:38 surface kernel:  ? wait_woken+0x80/0x80
Mär 15 22:13:38 surface kernel:  rpm_resume+0x308/0x810
Mär 15 22:13:38 surface kernel:  __pm_runtime_resume+0x3b/0x60
Mär 15 22:13:38 surface kernel:  usb_autopm_get_interface+0x18/0x50
Mär 15 22:13:38 surface kernel:  rtl8152_set_mac_address+0x6e/0x1e0 [r8152]
Mär 15 22:13:38 surface kernel:  set_ethernet_addr.isra.0+0x83/0x90 [r8152]
Mär 15 22:13:38 surface kernel:  rtl8152_reset_resume+0x4b/0x90 [r8152]
Mär 15 22:13:38 surface kernel:  usb_resume_interface.part.0.isra.0+0x3a/0xb0
Mär 15 22:13:38 surface kernel:  usb_resume_both+0x103/0x180
Mär 15 22:13:38 surface kernel:  ? usb_runtime_suspend+0x70/0x70
Mär 15 22:13:38 surface kernel:  ? usb_runtime_suspend+0x70/0x70
Mär 15 22:13:38 surface kernel:  __rpm_callback+0xc5/0x170
Mär 15 22:13:38 surface kernel:  ? usb_runtime_suspend+0x70/0x70
Mär 15 22:13:38 surface kernel:  rpm_callback+0x4f/0x70
Mär 15 22:13:38 surface kernel:  rpm_resume+0x5c4/0x810
Mär 15 22:13:38 surface kernel:  rpm_resume+0x308/0x810
Mär 15 22:13:38 surface kernel:  __pm_runtime_resume+0x3b/0x60
Mär 15 22:13:38 surface kernel:  usb_autopm_get_interface+0x18/0x50
Mär 15 22:13:38 surface kernel:  rtl_work_func_t+0x69/0x2d0 [r8152]
Mär 15 22:13:38 surface kernel:  process_one_work+0x1d6/0x3a0
Mär 15 22:13:38 surface kernel:  worker_thread+0x4d/0x3d0
Mär 15 22:13:38 surface kernel:  ? rescuer_thread+0x3c0/0x3c0
Mär 15 22:13:38 surface kernel:  kthread+0x133/0x150
Mär 15 22:13:38 surface kernel:  ? __kthread_bind_mask+0x60/0x60
Mär 15 22:13:38 surface kernel:  ret_from_fork+0x22/0x30

Could it be a USB power / autosleep problem?

Try kernel 5.4 LTS first.

I don’t know…

:sob:

I think - or better hope - I was able to resolve it.
Steps:

  • Install TLP
  • In USB Options (UI) add the network card to the USB_BLACKLIST
  • Disable USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN

The network card seems to be working fine now!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.