Hi list, (copied from https://bugzilla.kernel.org/show_bug.cgi?id=80131:) I have a problem with an external HDD USB 3 dock which gets regularly disconnected. It happens on my main computer, but not on an older linux box (with a recent kernel) and is also fine with a Mac OS X, so I believe that the device is OK. Below is a dmesg extract. I mounted the device shortly after s60, and then started to generate some IO (it seems to trigger the problem faster, but I'm not 100% sure). Problems begins at s137-142. At 143.328 the device comes back, I did not mount it this time, and it gets disconnected again some time after. [ 54.714646] usb 3-5: new SuperSpeed USB device number 2 using xhci_hcd [ 54.731397] usb 3-5: New USB device found, idVendor=152d, idProduct=2551 [ 54.731399] usb 3-5: New USB device strings: Mfr=1, Product=11, SerialNumber=3 [ 54.731400] usb 3-5: Product: USB Mass Storage [ 54.731401] usb 3-5: Manufacturer: JMicron [ 54.731402] usb 3-5: SerialNumber: 000000000023 [ 54.742900] usb-storage 3-5:1.0: USB Mass Storage device detected [ 54.742953] scsi6 : usb-storage 3-5:1.0 [ 54.743258] usbcore: registered new interface driver usb-storage [ 55.743830] scsi 6:0:0:0: Direct-Access HDD 0000 PQ: 0 ANSI: 2 CCS [ 55.744024] sd 6:0:0:0: Attached scsi generic sg4 type 0 [ 55.744243] sd 6:0:0:0: [sdd] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB) [ 55.744553] sd 6:0:0:0: [sdd] Write Protect is off [ 55.744556] sd 6:0:0:0: [sdd] Mode Sense: 28 00 00 00 [ 55.744848] sd 6:0:0:0: [sdd] No Caching mode page found [ 55.744850] sd 6:0:0:0: [sdd] Assuming drive cache: write through [ 55.745851] sd 6:0:0:0: [sdd] No Caching mode page found [ 55.745855] sd 6:0:0:0: [sdd] Assuming drive cache: write through [ 55.779813] sdd: sdd1 [ 55.780955] sd 6:0:0:0: [sdd] No Caching mode page found [ 55.780957] sd 6:0:0:0: [sdd] Assuming drive cache: write through [ 55.780959] sd 6:0:0:0: [sdd] Attached SCSI disk [ 56.025800] BTRFS: device label backup devid 1 transid 2941 /dev/sdd1 [ 56.027363] BTRFS: device label backup devid 1 transid 2941 /dev/sdd1 [ 60.369517] BTRFS: device label backup devid 1 transid 2941 /dev/sdd1 [ 60.370996] BTRFS info (device sdd1): disk space caching is enabled [ 137.654793] usb 3-5: Disable of device-initiated U1 failed. [ 142.649035] usb 3-5: Disable of device-initiated U2 failed. [ 142.792959] usb 3-5: USB disconnect, device number 2 [ 142.796813] scsi 6:0:0:0: rejecting I/O to offline device [ 142.796818] scsi 6:0:0:0: [sdd] killing request [ 142.796825] scsi 6:0:0:0: [sdd] Unhandled error code [ 142.796827] scsi 6:0:0:0: [sdd] [ 142.796829] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK [ 142.796831] scsi 6:0:0:0: [sdd] CDB: [ 142.796833] Read(10): 28 00 00 0f f1 c0 00 00 f0 00 [ 142.796837] end_request: I/O error, dev sdd, sector 1044928 [ 142.796844] scsi 6:0:0:0: rejecting I/O to offline device [ 142.796846] scsi 6:0:0:0: [sdd] killing request [ 142.796937] scsi 6:0:0:0: [sdd] Unhandled error code [ 142.796939] scsi 6:0:0:0: [sdd] [ 142.796939] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK [ 142.796940] scsi 6:0:0:0: [sdd] CDB: [ 142.796941] Read(10): 28 00 00 07 f7 20 00 00 20 00 [ 142.796945] end_request: I/O error, dev sdd, sector 522016 [ 142.796947] BTRFS: bdev /dev/sdd1 errs: wr 0, rd 1, flush 0, corrupt 0, gen 0 [ 142.796986] BTRFS: i/o error at logical 525565952 on dev /dev/sdd1, sector 1042880: metadata leaf (level 0) in tree 524779520 [ 142.796988] BTRFS: i/o error at logical 525565952 on dev /dev/sdd1, sector 1042880: metadata leaf (level 0) in tree 524779520 [ 142.796990] BTRFS: bdev /dev/sdd1 errs: wr 0, rd 2, flush 0, corrupt 0, gen 0 [ 142.796993] BTRFS: unable to fixup (regular) error at logical 525565952 on dev /dev/sdd1 [ 142.797004] BTRFS: i/o error at logical 525582336 on dev /dev/sdd1, sector 1042912: metadata leaf (level 0) in tree 7 [ 142.797005] BTRFS: i/o error at logical 525582336 on dev /dev/sdd1, sector 1042912: metadata leaf (level 0) in tree 7 [ 142.797006] BTRFS: bdev /dev/sdd1 errs: wr 0, rd 3, flush 0, corrupt 0, gen 0 [ 142.797010] BTRFS: unable to fixup (regular) error at logical 525582336 on dev /dev/sdd1 [ 142.797017] BTRFS: i/o error at logical 525598720 on dev /dev/sdd1, sector 1042944: metadata leaf (level 0) in tree 7 [ 142.797018] BTRFS: i/o error at logical 525598720 on dev /dev/sdd1, sector 1042944: metadata leaf (level 0) in tree 7 [ 142.797020] BTRFS: bdev /dev/sdd1 errs: wr 0, rd 4, flush 0, corrupt 0, gen 0 [ 142.797023] BTRFS: unable to fixup (regular) error at logical 525598720 on dev /dev/sdd1 [ 142.797030] BTRFS: i/o error at logical 525615104 on dev /dev/sdd1, sector 1042976: metadata leaf (level 0) in tree 7 [ 142.797031] BTRFS: i/o error at logical 525615104 on dev /dev/sdd1, sector 1042976: metadata leaf (level 0) in tree 7 [ 142.797032] BTRFS: bdev /dev/sdd1 errs: wr 0, rd 5, flush 0, corrupt 0, gen 0 [ 142.797035] BTRFS: unable to fixup (regular) error at logical 525615104 on dev /dev/sdd1 [ 142.797042] BTRFS: i/o error at logical 525631488 on dev /dev/sdd1, sector 1043008: metadata leaf (level 0) in tree 524779520 [ 142.797044] BTRFS: i/o error at logical 525631488 on dev /dev/sdd1, sector 1043008: metadata leaf (level 0) in tree 524779520 [ 142.797045] BTRFS: bdev /dev/sdd1 errs: wr 0, rd 6, flush 0, corrupt 0, gen 0 [ 142.797048] BTRFS: unable to fixup (regular) error at logical 525631488 on dev /dev/sdd1 [ 142.797055] BTRFS: i/o error at logical 525647872 on dev /dev/sdd1, sector 1043040: metadata leaf (level 0) in tree 524779520 [ 142.797056] BTRFS: i/o error at logical 525647872 on dev /dev/sdd1, sector 1043040: metadata leaf (level 0) in tree 524779520 [ 142.797058] BTRFS: bdev /dev/sdd1 errs: wr 0, rd 7, flush 0, corrupt 0, gen 0 [ 142.797061] BTRFS: unable to fixup (regular) error at logical 525647872 on dev /dev/sdd1 [ 142.797070] BTRFS: i/o error at logical 525664256 on dev /dev/sdd1, sector 1043072: metadata leaf (level 0) in tree 524779520 [ 142.797071] BTRFS: i/o error at logical 525664256 on dev /dev/sdd1, sector 1043072: metadata leaf (level 0) in tree 524779520 [ 142.797072] BTRFS: bdev /dev/sdd1 errs: wr 0, rd 8, flush 0, corrupt 0, gen 0 [ 142.797076] BTRFS: unable to fixup (regular) error at logical 525664256 on dev /dev/sdd1 [ 142.797090] BTRFS: i/o error at logical 525680640 on dev /dev/sdd1, sector 1043104: metadata leaf (level 0) in tree 7 [ 142.797091] BTRFS: i/o error at logical 525680640 on dev /dev/sdd1, sector 1043104: metadata leaf (level 0) in tree 7 [ 142.797092] BTRFS: bdev /dev/sdd1 errs: wr 0, rd 9, flush 0, corrupt 0, gen 0 [ 142.797095] BTRFS: unable to fixup (regular) error at logical 525680640 on dev /dev/sdd1 [ 142.797104] BTRFS: i/o error at logical 525697024 on dev /dev/sdd1, sector 1043136: metadata leaf (level 0) in tree 524779520 [ 142.797105] BTRFS: i/o error at logical 525697024 on dev /dev/sdd1, sector 1043136: metadata leaf (level 0) in tree 524779520 [ 142.797106] BTRFS: bdev /dev/sdd1 errs: wr 0, rd 10, flush 0, corrupt 0, gen 0 [ 142.797109] BTRFS: unable to fixup (regular) error at logical 525697024 on dev /dev/sdd1 [ 142.797117] BTRFS: i/o error at logical 525713408 on dev /dev/sdd1, sector 1043168: metadata leaf (level 0) in tree 524779520 [ 142.797119] BTRFS: i/o error at logical 525713408 on dev /dev/sdd1, sector 1043168: metadata leaf (level 0) in tree 524779520 [ 142.797122] BTRFS: unable to fixup (regular) error at logical 525713408 on dev /dev/sdd1 [ 142.996504] BUG: unable to handle kernel paging request at ffff8809b9d13170 [ 142.996508] IP: [<ffffffff8116cb74>] kfree+0x104/0x200 [ 142.996513] PGD 1aa3067 PUD 0 [ 142.996515] Oops: 0002 [#1] SMP [ 142.996517] Modules linked in: usb_storage xt_addrtype xt_CHECKSUM iptable_mangle ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT xt_tcpudp xt_multiport bridge stp llc aufs(C) iptable_filter ip_tables x_tables bnep rfcomm bluetooth 6lowpan_iphc pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) binfmt_misc nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc fuse loop parport_pc ppdev lp parport snd_hda_codec_hdmi x86_pkg_temp_thermal intel_powerclamp coretemp joydev kvm crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel nvidia(PO) eeepc_wmi asus_wmi iTCO_wdt sparse_keymap aes_x86_64 iTCO_vendor_support lrw rfkill snd_hda_codec_realtek snd_hda_codec_generic gf128mul glue_helper mxm_wmi ablk_helper snd_seq evdev cryptd snd_hda_intel snd_seq_device snd_hda_codec snd_hwdep psmouse snd_pcm i2c_i801 serio_raw snd_timer lpc_ich pcspkr i2c_core mfd_core snd tpm_infineon mei_me shpchp mei tpm_tis tpm video processor wmi soundcore button battery ext4 crc16 mbcache jbd2 crc32c btrfs xor raid6_pq dm_mod hid_generic usbhid hid sg sd_mod sr_mod crc_t10dif cdrom crct10dif_common ahci libahci libata ehci_pci ehci_hcd xhci_hcd scsi_mod r8169 mii usbcore usb_common thermal fan thermal_sys [ 142.996573] CPU: 6 PID: 4922 Comm: btrfs Tainted: P C O 3.14-1-amd64 #1 Debian 3.14.9-1 [ 142.996574] Hardware name: ASUS All Series/Z87-A, BIOS 2005 06/03/2014 [ 142.996576] task: ffff88040d2dc010 ti: ffff8803bc9f6000 task.ti: ffff8803bc9f6000 [ 142.996577] RIP: 0010:[<ffffffff8116cb74>] [<ffffffff8116cb74>] kfree+0x104/0x200 [ 142.996579] RSP: 0018:ffff8803bc9f7950 EFLAGS: 00010087 [ 142.996581] RAX: 00000000bf5021c8 RBX: ffff8803bf502318 RCX: ffff88043c9f79a8 [ 142.996582] RDX: 00000000bf5021c9 RSI: 0000000000000000 RDI: ffff8803bc9f79a8 [ 142.996583] RBP: ffff8803bc9f79a8 R08: 0000000000000000 R09: 0000000041c00000 [ 142.996584] R10: 0000000000000001 R11: ffff8803bf421c44 R12: 0000000000000282 [ 142.996585] R13: ffff8803bc9f79b8 R14: ffffea000d142c80 R15: 00000000421dc000 [ 142.996586] FS: 00007f67f18f2700(0000) GS:ffff88041ed80000(0000) knlGS:0000000000000000 [ 142.996587] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 142.996588] CR2: ffff8809b9d13170 CR3: 00000003f8d99000 CR4: 00000000001407e0 [ 142.996590] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 142.996591] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 142.996591] Stack: [ 142.996592] ffff8803bf421c40 ffff8803bf421c40 ffff8800d8b2c000 0000000000000004 [ 142.996594] ffff8803bc9f79b8 00000000fffffffb ffffffffa01cdd94 00000000421dc000 [ 142.996595] ffff8803bf421c40 0000000000000890 00000000421dffff ffff8800d919f240 [ 142.996597] Call Trace: [ 142.996607] [<ffffffffa01cdd94>] ? btrfs_lookup_csums_range+0x284/0x470 [btrfs] [ 142.996613] [<ffffffffa022c541>] ? scrub_stripe+0x761/0xee0 [btrfs] [ 142.996619] [<ffffffffa022cdcc>] ? scrub_chunk.isra.13+0x10c/0x130 [btrfs] [ 142.996625] [<ffffffffa022d037>] ? scrub_enumerate_chunks+0x247/0x430 [btrfs] [ 142.996627] [<ffffffff8109e200>] ? prepare_to_wait_event+0x20/0xf0 [ 142.996633] [<ffffffffa022e522>] ? btrfs_scrub_dev+0x1a2/0x530 [btrfs] [ 142.996639] [<ffffffffa020c168>] ? btrfs_ioctl+0x1368/0x2bb0 [btrfs] [ 142.996641] [<ffffffff81149165>] ? handle_mm_fault+0x485/0xf00 [ 142.996643] [<ffffffff814c3199>] ? __do_page_fault+0x1c9/0x4e0 [ 142.996646] [<ffffffff811979af>] ? do_vfs_ioctl+0x2cf/0x4b0 [ 142.996648] [<ffffffff811c144c>] ? set_task_ioprio+0x7c/0x90 [ 142.996650] [<ffffffff81197c09>] ? SyS_ioctl+0x79/0x90 [ 142.996651] [<ffffffff814c0108>] ? page_fault+0x28/0x30 [ 142.996652] [<ffffffff814c7b79>] ? system_call_fastpath+0x16/0x1b [ 142.996653] Code: 8b 2c 01 65 8b 04 25 a8 00 01 00 49 c1 ed 3a 41 39 c5 0f 85 8f 00 00 00 8b 43 04 39 03 73 65 0f 1f 44 00 00 8b 03 8d 50 01 89 13 <48> 89 6c c3 18 4c 89 e7 57 9d 0f 1f 44 00 00 48 83 c4 08 5b 5d [ 142.996665] RIP [<ffffffff8116cb74>] kfree+0x104/0x200 [ 142.996667] RSP <ffff8803bc9f7950> [ 142.996667] CR2: ffff8809b9d13170 [ 142.996669] ---[ end trace f9561b57d1b05ecd ]--- [ 143.328478] usb 3-5: new SuperSpeed USB device number 3 using xhci_hcd [ 143.345254] usb 3-5: New USB device found, idVendor=152d, idProduct=2551 [ 143.345257] usb 3-5: New USB device strings: Mfr=1, Product=11, SerialNumber=3 [ 143.345259] usb 3-5: Product: USB Mass Storage [ 143.345260] usb 3-5: Manufacturer: JMicron [ 143.345261] usb 3-5: SerialNumber: 000000000023 [ 143.346213] usb-storage 3-5:1.0: USB Mass Storage device detected [ 143.346343] scsi7 : usb-storage 3-5:1.0 [ 144.345723] scsi 7:0:0:0: Direct-Access HDD 0000 PQ: 0 ANSI: 2 CCS [ 144.346007] sd 7:0:0:0: Attached scsi generic sg4 type 0 [ 144.346259] sd 7:0:0:0: [sde] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB) [ 144.346561] sd 7:0:0:0: [sde] Write Protect is off [ 144.346564] sd 7:0:0:0: [sde] Mode Sense: 28 00 00 00 [ 144.346866] sd 7:0:0:0: [sde] No Caching mode page found [ 144.346869] sd 7:0:0:0: [sde] Assuming drive cache: write through [ 144.347914] sd 7:0:0:0: [sde] No Caching mode page found [ 144.347918] sd 7:0:0:0: [sde] Assuming drive cache: write through [ 144.366784] sde: sde1 [ 144.368007] sd 7:0:0:0: [sde] No Caching mode page found [ 144.368009] sd 7:0:0:0: [sde] Assuming drive cache: write through [ 144.368010] sd 7:0:0:0: [sde] Attached SCSI disk [ 144.600873] BTRFS: device label backup devid 1 transid 2941 /dev/sde1 [ 144.602417] BTRFS: device label backup devid 1 transid 2941 /dev/sde1 [ 1236.355705] usb 3-5: Disable of device-initiated U1 failed. [ 1241.349924] usb 3-5: Disable of device-initiated U2 failed. [ 1246.456023] xhci_hcd 0000:00:14.0: Timeout while waiting for setup address command [ 1251.654023] xhci_hcd 0000:00:14.0: Timeout while waiting for setup address command [ 1251.857788] usb 3-5: device not accepting address 3, error -62 [ 1251.945814] usb 3-5: USB disconnect, device number 3 [ 1251.946262] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c327d200 [ 1251.946265] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c327d240 [ 1257.055799] xhci_hcd 0000:00:14.0: Timeout while waiting for a slot [ 1257.055805] hub 3-0:1.0: couldn't allocate port 5 usb_device Please let me know if you need additional information. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html