I am noticing a loss of USB connection if I accidentally / purposely wiggle the cable near the USB type-C device end, using 6.0-current #150.
I have 2 USB-A male to type-C cables, one implements USB 2.1, the other USB 3.1 I get the same problem with both cables. The problem doesn't happen all the time, about 1 in 10 when I try to replicate it, and I haven't had this problem in the past. I get 2 different types of messages when the problem occurs 1. uhub0: port 2 reset failed 2. uhub0: device problem, disabling port X where "disabling port X" can be either port 2 or port 1 - see below I've also attached a dmesg from boot I can compile a kernel with UMASS_DEBUG if further output is needed Edward. # # uhub0: port 2 reset failed # Jan 24 12:10:21 mousse /bsd: sd3 detached Jan 24 12:10:21 mousse /bsd: scsibus5 detached Jan 24 12:10:21 mousse /bsd: umass1 detached Jan 24 12:10:23 mousse /bsd: uhub0: port 2 reset failed # # uhub0: device problem, disabling port 2 # # suddenly connect, from 12:11:19 to 12:11:20 # # detach and attach using same cable, USB 2.1 # Jan 24 12:10:46 mousse /bsd: sd3 detached Jan 24 12:10:46 mousse /bsd: scsibus5 detached Jan 24 12:10:46 mousse /bsd: umass1 detached Jan 24 12:11:19 mousse /bsd: uhub0: device problem, disabling port 2 Jan 24 12:11:20 mousse /bsd: umass1 at uhub0 port 2 configuration 1 interface 0 "Samsung Portable SSD T3" rev 2.10/1.00 addr 5 Jan 24 12:11:20 mousse /bsd: umass1: using SCSI over Bulk-Only Jan 24 12:11:20 mousse /bsd: scsibus5 at umass1: 2 targets, initiator 0 Jan 24 12:11:20 mousse /bsd: sd3 at scsibus5 targ 1 lun 0: <Samsung, Portable SSD T3, 0> SCSI4 0/direct fixed serial.04e861f312345678E41F Jan 24 12:11:20 mousse /bsd: sd3: 476940MB, 512 bytes/sector, 976773168 sectors Jan 24 12:11:20 mousse /bsd: sd3 detached Jan 24 12:11:20 mousse /bsd: scsibus5 detached Jan 24 12:11:20 mousse /bsd: umass1 detached # # uhub0: device problem, disabling port 1 # # suddenly connect, from 12:20:43 to 12:20:45 # # detach and attach using different cables # # detach with USB 2.1 cable, attach with USB 3.1 cable # Jan 24 12:19:57 mousse /bsd: umass1 at uhub0 port 1 configuration 1 interface 0 "Samsung Portable SSD T3" rev 2.10/1.00 addr 5 Jan 24 12:19:57 mousse /bsd: umass1: using SCSI over Bulk-Only Jan 24 12:19:57 mousse /bsd: scsibus5 at umass1: 2 targets, initiator 0 Jan 24 12:19:57 mousse /bsd: sd3 at scsibus5 targ 1 lun 0: <Samsung, Portable SSD T3, 0> SCSI4 0/direct fixed serial.04e861f312345678E41F Jan 24 12:19:57 mousse /bsd: sd3: 476940MB, 512 bytes/sector, 976773168 sectors Jan 24 12:19:59 mousse /bsd: sd3 detached Jan 24 12:19:59 mousse /bsd: scsibus5 detached Jan 24 12:19:59 mousse /bsd: umass1 detached Jan 24 12:20:43 mousse /bsd: uhub0: device problem, disabling port 1 Jan 24 12:20:45 mousse /bsd: umass1 at uhub0 port 13 configuration 1 interface 0 "Samsung Portable SSD T3" rev 3.00/1.00 addr 5 Jan 24 12:20:45 mousse /bsd: umass1: using SCSI over Bulk-Only Jan 24 12:20:45 mousse /bsd: scsibus5 at umass1: 2 targets, initiator 0 Jan 24 12:20:45 mousse /bsd: sd3 at scsibus5 targ 1 lun 0: <Samsung, Portable SSD T3, 0> SCSI4 0/direct fixed serial.04e861f312345678E41F Jan 24 12:20:45 mousse /bsd: sd3: 476940MB, 512 bytes/sector, 976773168 sectors # # dmesg # OpenBSD 6.0-current (GENERIC.MP) #150: Tue Jan 17 17:41:15 MST 2017 bu...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 17094049792 (16302MB) avail mem = 16571342848 (15803MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x7ce42020 (9 entries) bios0: vendor coreboot version "(null)" date 04/02/2015 bios0: GOOGLE Samus acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S2 S3 S4 S5 acpi0: tables DSDT FACP HPET APIC MCFG SSDT acpi0: wakeup devices HDEF(S3) WLAN(S3) EHCI(S3) XHCI(S3) ATPA(S3) CODC(S3) LID0(S5) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz, 2394.83 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,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,POPCN T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,IT SC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT cpu0: 256KB 64b/line 8-way L2 cache cpu0: TSC frequency 2394830480 Hz cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz, 2394.46 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,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,POPCN T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,IT SC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 1, core 0, package 0 cpu2 at mainbus0: apid 3 (application processor) cpu2: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz, 2394.46 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,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,POPCN T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,IT SC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 1, core 1, package 0 cpu3 at mainbus0: apid 2 (application processor) cpu3: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz, 2394.46 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,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,POPCN T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,IT SC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 40 pins acpimcfg0 at acpi0 addr 0xf0000000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (RP01) acpiprt2 at acpi0: bus -1 (RP02) acpiprt3 at acpi0: bus -1 (RP03) acpiprt4 at acpi0: bus -1 (RP04) acpiprt5 at acpi0: bus -1 (RP05) acpiprt6 at acpi0: bus -1 (RP06) acpiprt7 at acpi0: bus -1 (RP07) acpiprt8 at acpi0: bus -1 (RP08) acpiec0 at acpi0 acpicpu0 at acpi0: C3(700@148 mwait.1@0x33), C2(900@67 mwait.1@0x10), C1(1000@0 mwait.1@0x1), PSS acpicpu1 at acpi0: C3(700@148 mwait.1@0x33), C2(900@67 mwait.1@0x10), C1(1000@0 mwait.1@0x1), PSS acpicpu2 at acpi0: C3(700@148 mwait.1@0x33), C2(900@67 mwait.1@0x10), C1(1000@0 mwait.1@0x1), PSS acpicpu3 at acpi0: C3(700@148 mwait.1@0x33), C2(900@67 mwait.1@0x10), C1(1000@0 mwait.1@0x1), PSS acpitz0 at acpi0: critical temperature is 104 degC "INT3438" at acpi0 not configured "INT3437" at acpi0 not configured acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model "3487041" serial 876949808 type LION oem "21484737139854675" acpials0 at acpi0: ALS_ "GOOG0003" at acpi0 not configured "PNP0501" at acpi0 not configured "PNP0303" at acpi0 not configured tpm0 at acpi0: TPM_ addr 0xfed40000/0x5000: Infineon SLB9635 1.2 rev 0x10 "INTL9C60" at acpi0 not configured dwiic0 at acpi0: I2C0 addr 0xe121f000/0x1000 irq 7 iic0 at dwiic0 iatp0 at iic0 addr 0x4a irq 27: Atmel maXTouch Touchpad (960x540) wsmouse0 at iatp0 mux 0 "ATML0000" at acpi0 not configured "ATML0000" at acpi0 not configured "RT5677CE" at acpi0 not configured dwiic1 at acpi0: I2C1 addr 0xe1221000/0x1000 irq 7 iic1 at dwiic1 iatp1 at iic1 addr 0x4b irq 28: Atmel maXTouch Touchscreen (2559x1699) wsmouse1 at iatp1 mux 0 "ATML0001" at acpi0 not configured "ATML0001" at acpi0 not configured "INT3430" at acpi0 not configured "RT5677AA" at acpi0 not configured "GOOG9999" at acpi0 not configured acpibtn0 at acpi0: LID0 acpibtn1 at acpi0: PWRB acpicbkbd0 at acpi0: KBLT "GGL0001" at acpi0 not configured cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1700, 1300, 900, 500 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel Core 5G Host" rev 0x09 inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 5500" rev 0x09 drm0 at inteldrm0 inteldrm0: msi inteldrm0: 2560x1700, 32bpp wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation) wsdisplay0: screen 1-5 added (std, vt100 emulation) azalia0 at pci0 dev 3 function 0 "Intel Core 5G HD Audio" rev 0x09: msi xhci0 at pci0 dev 20 function 0 "Intel 9 Series xHCI" rev 0x03: msi 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 ppb0 at pci0 dev 28 function 0 "Intel 9 Series PCIE" rev 0xe3 pci1 at ppb0 bus 1 iwm0 at pci1 dev 0 function 0 "Intel Dual Band Wireless AC 7260" rev 0xcb, msi pcib0 at pci0 dev 31 function 0 "Intel 9 Series LPC" rev 0x03 ahci0 at pci0 dev 31 function 2 "Intel 9 Series AHCI" rev 0x03: msi, AHCI 1.3 ahci0: port 0: 6.0Gb/s scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 0 lun 0: <ATA, KINGSTON RBU-SUS, S9FM> SCSI3 0/direct fixed t10.ATA_KINGSTON_RBU-SUS151S364GD_50026B7E51F46543_ sd0: 61057MB, 512 bytes/sector, 125045424 sectors, thin pchtemp0 at pci0 dev 31 function 6 "Intel 9 Series Thermal" rev 0x03: disabled isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 vmm0 at mainbus0: VMX/EPT uvideo0 at uhub0 port 7 configuration 1 interface 0 "NMGAAI00010200255P00130 NCM-G102" rev 2.00/0.02 addr 2 video0 at uvideo0 ugen0 at uhub0 port 8 "Intel product 0x07dc" rev 2.00/0.01 addr 3 umass0 at uhub0 port 14 configuration 1 interface 0 "Mushkin Ventura Ultra" rev 3.00/1.00 addr 4 umass0: using SCSI over Bulk-Only scsibus2 at umass0: 2 targets, initiator 0 sd1 at scsibus2 targ 1 lun 0: <Mushkin, Ventura Ultra, 0> SCSI4 0/direct fixed serial.174c55aa000000000013 sd1: 114473MB, 512 bytes/sector, 234441648 sectors vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets sd2 at scsibus4 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed sd2: 16383MB, 512 bytes/sector, 33553904 sectors root on sd2a (d0336ae2b90d92d2.a) swap on sd2b dump on sd2b iwm0: hw rev 0x140, fw ver 16.242414.0, address 6c:29:95:72:ad:3f