cdce0 unable to acquire a lease if laptop boots docked to station

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

cdce0 unable to acquire a lease if laptop boots docked to station

David Demelier-2
>Synopsis: cdce0 unable to acquire a lease if laptop boots docked to station
>Category: kernel
>Environment:
        System      : OpenBSD 6.6
        Details     : OpenBSD 6.6 (GENERIC.MP) #5: Sun Feb 16 01:56:11 MST 2020
                         [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:

Hello,

I have a onelink+ dock that I connect to my Thinkpad x1 Carbon 4th (2016). It
has a USB ethernet interface detected correctly by cdce(4) driver.

I realized that dhclient is unable to acquire a lease from it if I boot my
laptop *already* docked. Otherwise, if I boot my laptop with OpenBSD and wait
until it's finished and *then* dock it into the station, the cdce driver appears
and dhclient will acquire a lease if ran simply with `dhclient cdce0`.

What's interesting is that ifconfig output is different when docking after the
boot.

>How-To-Repeat:

Boot unplugged from dock and plugged into dock. dhclient cdce0 will not work in
latter case.

ifconfig (immediately docked):
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        index 4 priority 0 llprio 3
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
iwm0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 54:ee:75:b2:5a:18
        index 1 priority 4 llprio 3
        trunk: trunkdev trunk0
        groups: wlan
        media: IEEE802.11 autoselect (HT-MCS4 mode 11n)
        status: active
        ieee80211: join Livebox-7168 chan 132 bssid 34:8a:ae:27:71:69 88% wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
em0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
        lladdr 54:ee:75:b2:5a:18
        index 2 priority 0 llprio 3
        trunk: trunkdev trunk0
        media: Ethernet autoselect (none)
        status: no carrier
enc0: flags=0<>
        index 3 priority 0 llprio 3
        groups: enc
        status: active
cdce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:50:b6:90:e0:01
        index 5 priority 0 llprio 3
trunk0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
        lladdr 54:ee:75:b2:5a:18
        index 6 priority 0 llprio 3
        trunk: trunkproto failover
                iwm0 port active
                em0 port master
        groups: trunk egress
        media: Ethernet autoselect
        status: active
        inet 192.168.1.32 netmask 0xffffff00 broadcast 192.168.1.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
        index 7 priority 0 llprio 3
        groups: pflog



ifconfig (docked after boot):
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        index 4 priority 0 llprio 3
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
iwm0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 54:ee:75:b2:5a:18
        index 1 priority 4 llprio 3
        trunk: trunkdev trunk0
        groups: wlan
        media: IEEE802.11 autoselect (HT-MCS8 mode 11n)
        status: active
        ieee80211: join Livebox-7168 chan 132 bssid 34:8a:ae:27:71:69 86% wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
em0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
        lladdr 54:ee:75:b2:5a:18
        index 2 priority 0 llprio 3
        trunk: trunkdev trunk0
        media: Ethernet autoselect (none)
        status: no carrier
enc0: flags=0<>
        index 3 priority 0 llprio 3
        groups: enc
        status: active
trunk0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
        lladdr 54:ee:75:b2:5a:18
        index 5 priority 0 llprio 3
        trunk: trunkproto failover
                iwm0 port active
                em0 port master
        groups: trunk egress
        media: Ethernet autoselect
        status: active
        inet 192.168.1.32 netmask 0xffffff00 broadcast 192.168.1.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
        index 6 priority 0 llprio 3
        groups: pflog
cdce0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:50:b6:90:e0:01
        index 7 priority 0 llprio 3



dmesg (immediately docked):
OpenBSD 6.6 (GENERIC.MP) #5: Sun Feb 16 01:56:11 MST 2020
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8438804480 (8047MB)
avail mem = 8170323968 (7791MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd7055000 (65 entries)
bios0: vendor LENOVO version "N1FET67W (1.41 )" date 01/16/2019
bios0: LENOVO 20FBCTO1WW
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI SSDT SSDT ECDT HPET APIC MCFG SSDT SSDT DBGP DBG2 BOOT BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT BGRT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP9(S4) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 23999999 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 2395.49 MHz, 06-4e-03
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 2394.43 MHz, 06-4e-03
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 2394.43 MHz, 06-4e-03
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 2394.43 MHz, 06-4e-03
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 2 (EXP1)
acpiprt5 at acpi0: bus 4 (EXP3)
acpiprt6 at acpi0: bus 5 (EXP5)
acpiprt7 at acpi0: bus -1 (EXP9)
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI
acpipwrres1 at acpi0: PG00, resource for PEG0
acpipwrres2 at acpi0: PG01, resource for PEG1
acpipwrres3 at acpi0: PG02, resource for PEG2
acpipwrres4 at acpi0: WRST
acpipwrres5 at acpi0: WRST
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
acpicmos0 at acpi0
acpibat0 at acpi0: BAT0 model "00HW028" serial    50 type LiP oem "LGC"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C60" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout at acpivideo0 not configured
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 2395 MHz: speeds: 2501, 2500, 2400, 2300, 2100, 2000, 1800, 1700, 1500, 1300, 1200, 1000, 800, 700, 600, 400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 6G Host" rev 0x08
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 520" rev 0x07
drm0 at inteldrm0
inteldrm0: msi
"Intel Core GMM" rev 0x00 at pci0 dev 8 function 0 not configured
"Intel 100 Series ISH" rev 0x21 at pci0 dev 19 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
pchtemp0 at pci0 dev 20 function 2 "Intel 100 Series Thermal" rev 0x21
"Intel 100 Series MEI" rev 0x21 at pci0 dev 22 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
pci1 at ppb0 bus 2
rtsx0 at pci1 dev 0 function 0 "Realtek RTS525A Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
ppb1 at pci0 dev 28 function 2 "Intel 100 Series PCIE" rev 0xf1: msi
pci2 at ppb1 bus 4
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 8260" rev 0x3a, msi
ppb2 at pci0 dev 28 function 4 "Intel 100 Series PCIE" rev 0xf1: msi
pci3 at ppb2 bus 5
nvme0 at pci3 dev 0 function 0 "Samsung SM951/PM951 NVMe" rev 0x01: msix, NVMe 1.1
nvme0: SAMSUNG MZVPV256HDGL-000L7, firmware 5L6QBXW7, serial S27MNY0HA02588
scsibus1 at nvme0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <NVMe, SAMSUNG MZVPV256, 5L6Q>
sd0: 244198MB, 512 bytes/sector, 500118192 sectors
pcib0 at pci0 dev 31 function 0 "Intel 100 Series LPC" rev 0x21
"Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured
azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev 0x21: msi
azalia0: codecs: Conexant/0x5111, Intel/0x2809, using Conexant/0x5111
audio0 at azalia0
ichiic0 at pci0 dev 31 function 4 "Intel 100 Series SMBus" rev 0x21: apic 2 int 16
iic0 at ichiic0
em0 at pci0 dev 31 function 6 "Intel I219-V" rev 0x21: msi, address 54:ee:75:b2:5a:18
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics clickpad, firmware 8.2, 0x1e2b1 0x940300
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
uhub1 at uhub0 port 4 configuration 1 interface 0 "VIA Labs, Inc. USB2.0 Hub" rev 2.10/52.84 addr 2
uhub2 at uhub1 port 1 configuration 1 interface 0 "VIA Labs, Inc. USB2.0 Hub" rev 2.10/52.81 addr 3
uaudio0 at uhub2 port 4 configuration 1 interface 1 "C-Media Electronics Inc. ThinkPad OneLink Plus Dock Audio" rev 2.00/1.09 addr 4
uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 5 ctls
audio1 at uaudio0
uhidev0 at uhub2 port 4 configuration 1 interface 3 "C-Media Electronics Inc. ThinkPad OneLink Plus Dock Audio" rev 2.00/1.09 addr 4
uhidev0: iclass 3/0, 1 report id
uhid0 at uhidev0 reportid 1: input=15, output=15, feature=0
uhub3 at uhub1 port 2 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" rev 2.00/85.37 addr 5
uhidev1 at uhub3 port 2 configuration 1 interface 0 "Holtek USB Keyboard" rev 1.10/2.09 addr 6
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev2 at uhub3 port 2 configuration 1 interface 1 "Holtek USB Keyboard" rev 1.10/2.09 addr 6
uhidev2: iclass 3/1, 2 report ids
uhid1 at uhidev2 reportid 1: input=6, output=0, feature=0
uhid2 at uhidev2 reportid 2: input=1, output=0, feature=0
ugen0 at uhub0 port 7 "Intel Bluetooth" rev 2.00/0.01 addr 7
uvideo0 at uhub0 port 8 configuration 1 interface 0 "Chicony Electronics Co.,Ltd. Integrated Camera" rev 2.00/0.04 addr 8
video0 at uvideo0
uhub4 at uhub0 port 16 configuration 1 interface 0 "VIA Labs, Inc. USB3.0 Hub" rev 3.00/52.85 addr 9
uhub5 at uhub4 port 1 configuration 1 interface 0 "VIA Labs, Inc. USB3.0 Hub" rev 3.00/52.81 addr 10
umass0 at uhub5 port 1 configuration 1 interface 0 "jmicron jmicron" rev 3.00/5.08 addr 11
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <WDC WD32, 00BEKT-60F3T1, 0508> serial.152d13377F833EEF5DC0
sd1: 305245MB, 512 bytes/sector, 625142448 sectors
umass1 at uhub5 port 2 configuration 1 interface 0 "Western Digital My Passport 0810" rev 3.00/10.42 addr 12
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd2 at scsibus3 targ 1 lun 0: <WD, My Passport 0810, 1042>
sd2: 476908MB, 512 bytes/sector, 976707584 sectors
ses0 at scsibus3 targ 1 lun 1: <WD, SES Device, 1042>
ses0: unable to read enclosure configuration
cdce0 at uhub5 port 3 configuration 2 interface 0 "Lenovo OneLink+ Giga" rev 3.00/30.01 addr 13
cdce0: address 00:50:b6:90:e0:01
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on sd0a (0c45c1203324a0bf.a) swap on sd0b dump on sd0b
inteldrm0: 2560x1440, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
iwm0: hw rev 0x200, fw ver 16.242414.0, address b8:8a:60:db:b4:74



dmesg (docked after boot):
OpenBSD 6.6 (GENERIC.MP) #5: Sun Feb 16 01:56:11 MST 2020
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8438804480 (8047MB)
avail mem = 8170344448 (7791MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd7055000 (65 entries)
bios0: vendor LENOVO version "N1FET67W (1.41 )" date 01/16/2019
bios0: LENOVO 20FBCTO1WW
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI SSDT SSDT ECDT HPET APIC MCFG SSDT SSDT DBGP DBG2 BOOT BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT BGRT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP9(S4) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 23999999 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 1297.62 MHz, 06-4e-03
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 1090.31 MHz, 06-4e-03
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 997.68 MHz, 06-4e-03
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 997.68 MHz, 06-4e-03
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 2 (EXP1)
acpiprt5 at acpi0: bus 4 (EXP3)
acpiprt6 at acpi0: bus 5 (EXP5)
acpiprt7 at acpi0: bus -1 (EXP9)
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI
acpipwrres1 at acpi0: PG00, resource for PEG0
acpipwrres2 at acpi0: PG01, resource for PEG1
acpipwrres3 at acpi0: PG02, resource for PEG2
acpipwrres4 at acpi0: WRST
acpipwrres5 at acpi0: WRST
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
acpicmos0 at acpi0
acpibat0 at acpi0: BAT0 model "00HW028" serial    50 type LiP oem "LGC"
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0
"PNP0C60" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout at acpivideo0 not configured
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 1297 MHz: speeds: 2501, 2500, 2400, 2300, 2100, 2000, 1800, 1700, 1500, 1300, 1200, 1000, 800, 700, 600, 400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 6G Host" rev 0x08
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 520" rev 0x07
drm0 at inteldrm0
inteldrm0: msi
"Intel Core GMM" rev 0x00 at pci0 dev 8 function 0 not configured
"Intel 100 Series ISH" rev 0x21 at pci0 dev 19 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
pchtemp0 at pci0 dev 20 function 2 "Intel 100 Series Thermal" rev 0x21
"Intel 100 Series MEI" rev 0x21 at pci0 dev 22 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
pci1 at ppb0 bus 2
rtsx0 at pci1 dev 0 function 0 "Realtek RTS525A Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
ppb1 at pci0 dev 28 function 2 "Intel 100 Series PCIE" rev 0xf1: msi
pci2 at ppb1 bus 4
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 8260" rev 0x3a, msi
ppb2 at pci0 dev 28 function 4 "Intel 100 Series PCIE" rev 0xf1: msi
pci3 at ppb2 bus 5
nvme0 at pci3 dev 0 function 0 "Samsung SM951/PM951 NVMe" rev 0x01: msix, NVMe 1.1
nvme0: SAMSUNG MZVPV256HDGL-000L7, firmware 5L6QBXW7, serial S27MNY0HA02588
scsibus1 at nvme0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <NVMe, SAMSUNG MZVPV256, 5L6Q>
sd0: 244198MB, 512 bytes/sector, 500118192 sectors
pcib0 at pci0 dev 31 function 0 "Intel 100 Series LPC" rev 0x21
"Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured
azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev 0x21: msi
azalia0: codecs: Conexant/0x5111, Intel/0x2809, using Conexant/0x5111
audio0 at azalia0
ichiic0 at pci0 dev 31 function 4 "Intel 100 Series SMBus" rev 0x21: apic 2 int 16
iic0 at ichiic0
em0 at pci0 dev 31 function 6 "Intel I219-V" rev 0x21: msi, address 54:ee:75:b2:5a:18
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics clickpad, firmware 8.2, 0x1e2b1 0x940300
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
ugen0 at uhub0 port 7 "Intel Bluetooth" rev 2.00/0.01 addr 2
uvideo0 at uhub0 port 8 configuration 1 interface 0 "Chicony Electronics Co.,Ltd. Integrated Camera" rev 2.00/0.04 addr 3
video0 at uvideo0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (0c45c1203324a0bf.a) swap on sd0b dump on sd0b
inteldrm0: 2560x1440, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
iwm0: hw rev 0x200, fw ver 16.242414.0, address b8:8a:60:db:b4:74
uhub1 at uhub0 port 4 configuration 1 interface 0 "VIA Labs, Inc. USB2.0 Hub" rev 2.10/52.84 addr 4
uhub2 at uhub1 port 1 configuration 1 interface 0 "VIA Labs, Inc. USB2.0 Hub" rev 2.10/52.81 addr 5
uaudio0 at uhub2 port 4 configuration 1 interface 1 "C-Media Electronics Inc. ThinkPad OneLink Plus Dock Audio" rev 2.00/1.09 addr 6
uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 5 ctls
audio1 at uaudio0
uhidev0 at uhub2 port 4 configuration 1 interface 3 "C-Media Electronics Inc. ThinkPad OneLink Plus Dock Audio" rev 2.00/1.09 addr 6
uhidev0: iclass 3/0, 1 report id
uhid0 at uhidev0 reportid 1: input=15, output=15, feature=0
uhub3 at uhub1 port 2 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" rev 2.00/85.37 addr 7
uhidev1 at uhub3 port 2 configuration 1 interface 0 "Holtek USB Keyboard" rev 1.10/2.09 addr 8
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub3 port 2 configuration 1 interface 1 "Holtek USB Keyboard" rev 1.10/2.09 addr 8
uhidev2: iclass 3/1, 2 report ids
uhid1 at uhidev2 reportid 1: input=6, output=0, feature=0
uhid2 at uhidev2 reportid 2: input=1, output=0, feature=0
uhub4 at uhub0 port 16 configuration 1 interface 0 "VIA Labs, Inc. USB3.0 Hub" rev 3.00/52.85 addr 9
uhub5 at uhub4 port 1 configuration 1 interface 0 "VIA Labs, Inc. USB3.0 Hub" rev 3.00/52.81 addr 10
umass0 at uhub5 port 1 configuration 1 interface 0 "jmicron jmicron" rev 3.00/5.08 addr 11
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
sd1 at scsibus4 targ 1 lun 0: <WDC WD32, 00BEKT-60F3T1, 0508> serial.152d13377F833EEF5DC0
sd1: 305245MB, 512 bytes/sector, 625142448 sectors
umass1 at uhub5 port 2 configuration 1 interface 0 "Western Digital My Passport 0810" rev 3.00/10.42 addr 12
umass1: using SCSI over Bulk-Only
scsibus5 at umass1: 2 targets, initiator 0
sd2 at scsibus5 targ 1 lun 0: <WD, My Passport 0810, 1042>
sd2: 476908MB, 512 bytes/sector, 976707584 sectors
ses0 at scsibus5 targ 1 lun 1: <WD, SES Device, 1042>
ses0: unable to read enclosure configuration
cdce0 at uhub5 port 3 configuration 2 interface 0 "Lenovo OneLink+ Giga" rev 3.00/30.01 addr 13
cdce0: address 00:50:b6:90:e0:01
audio1 detached
uaudio0 detached
uhid0 detached
uhidev0 detached
uhub2 detached
wskbd1: disconnecting from wsdisplay0
wskbd1 detached
ukbd0 detached
uhidev1 detached
uhid1 detached
uhid2 detached
uhidev2 detached
uhub3 detached
uhub1 detached
uhub1 at uhub0 port 4 configuration 1 interface 0 "VIA Labs, Inc. USB2.0 Hub" rev 2.10/52.84 addr 4
uhub2 at uhub1 port 1 configuration 1 interface 0 "VIA Labs, Inc. USB2.0 Hub" rev 2.10/52.81 addr 5
uaudio0 at uhub2 port 4 configuration 1 interface 1 "C-Media Electronics Inc. ThinkPad OneLink Plus Dock Audio" rev 2.00/1.09 addr 6
uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 5 ctls
audio1 at uaudio0
uhidev0 at uhub2 port 4 configuration 1 interface 3 "C-Media Electronics Inc. ThinkPad OneLink Plus Dock Audio" rev 2.00/1.09 addr 6
uhidev0: iclass 3/0, 1 report id
uhid0 at uhidev0 reportid 1: input=15, output=15, feature=0
uhub3 at uhub1 port 2 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" rev 2.00/85.37 addr 7
uhidev1 at uhub3 port 2 configuration 1 interface 0 "Holtek USB Keyboard" rev 1.10/2.09 addr 8
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub3 port 2 configuration 1 interface 1 "Holtek USB Keyboard" rev 1.10/2.09 addr 8
uhidev2: iclass 3/1, 2 report ids
uhid1 at uhidev2 reportid 1: input=6, output=0, feature=0
uhid2 at uhidev2 reportid 2: input=1, output=0, feature=0

usbdevs:
Controller /dev/usb0:
addr 01: 8086:0000 Intel, xHCI root hub
         super speed, self powered, config 1, rev 1.00
         driver: uhub0
addr 02: 8087:0a2b Intel, Bluetooth
         full speed, self powered, config 1, rev 0.01
         driver: ugen0
addr 03: 04f2:b5c1 Chicony Electronics Co.,Ltd., Integrated Camera
         high speed, power 500 mA, config 1, rev 0.04
         driver: uvideo0
addr 04: 17ef:1018 VIA Labs, Inc., USB2.0 Hub
         high speed, self powered, config 1, rev 52.84
         driver: uhub1
addr 05: 05e3:0608 Genesys Logic, USB2.0 Hub
         high speed, self powered, config 1, rev 85.37
         driver: uhub2
addr 06: 04d9:0169 Holtek, USB Keyboard
         low speed, power 100 mA, config 1, rev 2.09
         driver: uhidev0
         driver: uhidev1
addr 07: 17ef:1018 VIA Labs, Inc., USB3.0 Hub
         super speed, self powered, config 1, rev 52.85
         driver: uhub3
addr 08: 17ef:1019 VIA Labs, Inc., USB3.0 Hub
         super speed, self powered, config 1, rev 52.81
         driver: uhub4
addr 09: 152d:1337 jmicron, jmicron
         super speed, power 224 mA, config 1, rev 5.08, iSerial 7F833EEF5DC0
         driver: umass0
addr 10: 1058:0810 Western Digital, My Passport 0810
         super speed, power 224 mA, config 1, rev 10.42, iSerial 57583131453233484A313430
         driver: umass1
addr 11: 17ef:3054 Lenovo, OneLink+ Giga
         super speed, power 64 mA, config 2, rev 30.01, iSerial 0001FD000000
         driver: cdce0
addr 12: 17ef:1019 VIA Labs, Inc., USB2.0 Hub
         high speed, self powered, config 1, rev 52.81
         driver: uhub5
addr 13: 17ef:3055 C-Media Electronics Inc., ThinkPad OneLink Plus Dock Audio
         full speed, power 100 mA, config 1, rev 1.09
         driver: uaudio0
         driver: uhidev2

Reply | Threaded
Open this post in threaded view
|

Re: cdce0 unable to acquire a lease if laptop boots docked to station

Stefan Sperling-5
On Mon, Mar 02, 2020 at 04:04:46PM +0100, David Demelier wrote:

> >Synopsis: cdce0 unable to acquire a lease if laptop boots docked to station
> >Category: kernel
> >Environment:
> System      : OpenBSD 6.6
> Details     : OpenBSD 6.6 (GENERIC.MP) #5: Sun Feb 16 01:56:11 MST 2020
> [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> Architecture: OpenBSD.amd64
> Machine     : amd64
> >Description:
>
> Hello,
>
> I have a onelink+ dock that I connect to my Thinkpad x1 Carbon 4th (2016). It
> has a USB ethernet interface detected correctly by cdce(4) driver.
>
> I realized that dhclient is unable to acquire a lease from it if I boot my
> laptop *already* docked. Otherwise, if I boot my laptop with OpenBSD and wait
> until it's finished and *then* dock it into the station, the cdce driver appears
> and dhclient will acquire a lease if ran simply with `dhclient cdce0`.

Where is cdce0 plugged? If it is plugged into a USB port on the laptop,
have you tried plugging the adapter into a USB port on the dock instead?
Just a guess, but sometimes dock plugs will override plugs on the laptop.

Reply | Threaded
Open this post in threaded view
|

Re: cdce0 unable to acquire a lease if laptop boots docked to station

David Demelier-2
Le 03/03/2020 à 09:25, Stefan Sperling a écrit :
> Where is cdce0 plugged? If it is plugged into a USB port on the laptop,
> have you tried plugging the adapter into a USB port on the dock instead?
> Just a guess, but sometimes dock plugs will override plugs on the laptop.

It's a proprietary socket/plug (called onelink for oldest thinkpads).
More recent x1 carbon use USB-C IIRC but I have a 4th generation that
use this proprietary socket so you can't plug it elsewhere on the laptop.

That is the dock:

https://support.lenovo.com/fr/en/solutions/acc100252

Regards,

--
David

Reply | Threaded
Open this post in threaded view
|

Re: cdce0 unable to acquire a lease if laptop boots docked to station

Kevin Lo
In reply to this post by David Demelier-2
On Mon, Mar 02, 2020 at 04:04:46PM +0100, David Demelier wrote:

>
> >Synopsis: cdce0 unable to acquire a lease if laptop boots docked to station
> >Category: kernel
> >Environment:
> System      : OpenBSD 6.6
> Details     : OpenBSD 6.6 (GENERIC.MP) #5: Sun Feb 16 01:56:11 MST 2020
> [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> Architecture: OpenBSD.amd64
> Machine     : amd64
> >Description:
>
> Hello,
>
> I have a onelink+ dock that I connect to my Thinkpad x1 Carbon 4th (2016). It
> has a USB ethernet interface detected correctly by cdce(4) driver.
>
> I realized that dhclient is unable to acquire a lease from it if I boot my
> laptop *already* docked. Otherwise, if I boot my laptop with OpenBSD and wait
> until it's finished and *then* dock it into the station, the cdce driver appears
> and dhclient will acquire a lease if ran simply with `dhclient cdce0`.
>
> What's interesting is that ifconfig output is different when docking after the
> boot.

The OneLink+ is based on a RTL8153 chipset, could you try this patch?  Thanks.

Index: sys/dev/usb/if_ure.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_ure.c,v
retrieving revision 1.13
diff -u -p -u -p -r1.13 if_ure.c
--- sys/dev/usb/if_ure.c 7 Dec 2019 08:45:28 -0000 1.13
+++ sys/dev/usb/if_ure.c 4 Mar 2020 02:23:09 -0000
@@ -71,6 +71,7 @@ int uredebug = 0;
 #endif
 
 const struct usb_devno ure_devs[] = {
+ { USB_VENDOR_LENOVO, USB_PRODUCT_LENOVO_ONELINKPLUS },
  { USB_VENDOR_LENOVO, USB_PRODUCT_LENOVO_DOCK_ETHERNET },
  { USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8152 },
  { USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8153 },
Index: sys/dev/usb/usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.711
diff -u -p -u -p -r1.711 usbdevs
--- sys/dev/usb/usbdevs 23 Feb 2020 11:52:10 -0000 1.711
+++ sys/dev/usb/usbdevs 4 Mar 2020 02:23:09 -0000
@@ -2531,6 +2531,7 @@ product LEADTEK 9531 0x2101 9531 GPS
 
 /* Lenovo products */
 product LENOVO AX88179 0x304b AX88179
+product LENOVO ONELINKPLUS 0x3054 OneLink+ Dock
 product LENOVO DOCK_ETHERNET 0x3062 USB-C Dock Ethernet
 product LENOVO ETHERNET 0x7203 USB 2.0 Ethernet
 
Index: sys/dev/usb/usbdevs.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.723
diff -u -p -u -p -r1.723 usbdevs.h
--- sys/dev/usb/usbdevs.h 23 Feb 2020 11:52:44 -0000 1.723
+++ sys/dev/usb/usbdevs.h 4 Mar 2020 02:23:09 -0000
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdevs.h,v 1.723 2020/02/23 11:52:44 jasper Exp $ */
+/* $OpenBSD$ */
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -2538,6 +2538,7 @@
 
 /* Lenovo products */
 #define USB_PRODUCT_LENOVO_AX88179 0x304b /* AX88179 */
+#define USB_PRODUCT_LENOVO_ONELINKPLUS 0x3054 /* OneLink+ Dock */
 #define USB_PRODUCT_LENOVO_DOCK_ETHERNET 0x3062 /* USB-C Dock Ethernet */
 #define USB_PRODUCT_LENOVO_ETHERNET 0x7203 /* USB 2.0 Ethernet */
 
Index: sys/dev/usb/usbdevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.717
diff -u -p -u -p -r1.717 usbdevs_data.h
--- sys/dev/usb/usbdevs_data.h 23 Feb 2020 11:52:45 -0000 1.717
+++ sys/dev/usb/usbdevs_data.h 4 Mar 2020 02:23:09 -0000
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdevs_data.h,v 1.717 2020/02/23 11:52:45 jasper Exp $ */
+/* $OpenBSD$ */
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -5556,6 +5556,10 @@ const struct usb_known_product usb_known
  {
     USB_VENDOR_LENOVO, USB_PRODUCT_LENOVO_AX88179,
     "AX88179",
+ },
+ {
+    USB_VENDOR_LENOVO, USB_PRODUCT_LENOVO_ONELINKPLUS,
+    "OneLink+ Dock",
  },
  {
     USB_VENDOR_LENOVO, USB_PRODUCT_LENOVO_DOCK_ETHERNET,

Reply | Threaded
Open this post in threaded view
|

[solved] Re: cdce0 unable to acquire a lease if laptop boots docked to station

David Demelier-2
In reply to this post by David Demelier-2
Hello,

Thanks to the kind and quick work of Kevin Lo, the dock is now working
with the ure(4) driver.

# dmesg | grep ure
ure0 at uhub5 port 3 configuration 1 interface 0 "Lenovo OneLink+ Giga" rev 3.00/30.01 addr 12
ure0: RTL8153 (0x5c20), address 00:50:b6:90:e0:01
rgephy0 at ure0 phy 0: RTL8251 PHY, rev. 0

# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        index 4 priority 0 llprio 3
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
iwm0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr b8:8a:60:db:b4:74
        index 1 priority 4 llprio 3
        trunk: trunkdev trunk0
        groups: wlan
        media: IEEE802.11 autoselect (HT-MCS10 mode 11n)
        status: active
        ieee80211: join Livebox-7168 chan 136 bssid 34:8a:ae:27:71:69 86% wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 54:ee:75:b2:5a:18
        index 2 priority 0 llprio 3
        media: Ethernet autoselect (none)
        status: no carrier
enc0: flags=0<>
        index 3 priority 0 llprio 3
        groups: enc
        status: active
ure0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:50:b6:90:e0:01
        index 5 priority 0 llprio 3
        media: Ethernet autoselect (1000baseT full-duplex,master,rxpause,txpause)
        status: active
trunk0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
        lladdr b8:8a:60:db:b4:74
        index 6 priority 0 llprio 3
        trunk: trunkproto failover
                iwm0 port master,active
        groups: trunk egress
        media: Ethernet autoselect
        status: active
        inet 192.168.1.24 netmask 0xffffff00 broadcast 192.168.1.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
        index 7 priority 0 llprio 3
        groups: pflog

Regards

--
David