Bug 1159941

Summary: strange work of usb 3.0 on laptops with agestar usb-to-sata converter (3FBCP1)
Product: [openSUSE] openSUSE Tumbleweed Reporter: Igor Kuznetsov <virex>
Component: KernelAssignee: E-mail List <kernel-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: nsaenzjulienne, oneukum, tiwai, virex
Version: CurrentFlags: oneukum: needinfo? (virex)
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: First attachment is log of connect to usb 3.0
Second attach of log while connect to same device with a usb2 cabel

Description Igor Kuznetsov 2019-12-31 07:07:59 UTC
Created attachment 826796 [details]
First attachment is log of connect to usb 3.0

I did not understand how it works. But.
1. Agestar usb-to-sata converter work normal on pc, but not work on laptops with linux
2. If we connect with usb2cabel it works fine
3. On windows it works fine with usb 3.0

First attachment is log of connect to usb 3.0
Comment 1 Igor Kuznetsov 2019-12-31 07:15:34 UTC
Created attachment 826797 [details]
Second attach of log while connect to same device with a usb2 cabel
Comment 2 Oliver Neukum 2020-01-13 12:16:42 UTC
(In reply to Igor Kuznetsov from comment #0)
> Created attachment 826796 [details]
> First attachment is log of connect to usb 3.0
> 
> I did not understand how it works. But.
> 1. Agestar usb-to-sata converter work normal on pc, but not work on laptops
> with linux
> 2. If we connect with usb2cabel it works fine
> 3. On windows it works fine with usb 3.0

On the same host?

> First attachment is log of connect to usb 3.0

"Timeout while waiting for setup device command"

About as low level as it gets. We cannot even get a trace at this stage. Please enable dynamic debugging for xhci_hcd and provide dmesg.
Comment 3 Igor Kuznetsov 2020-01-13 17:05:56 UTC
yes this is at the same host.
Comment 4 Igor Kuznetsov 2020-03-17 01:54:31 UTC
Later i can check the work of this devices on another laptops with usb3.0
Comment 5 Igor Kuznetsov 2020-03-17 06:11:56 UTC
on toshiba tecra with usb 3.0 enabled in bios

мар 17 10:10:25 lnxvrxtosh kernel: usb 3-2: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
мар 17 10:10:25 lnxvrxtosh kernel: usb 3-2: New USB device found, idVendor=1f75, idProduct=0611, bcdDevice= 0.06
мар 17 10:10:25 lnxvrxtosh kernel: usb 3-2: New USB device strings: Mfr=4, Product=5, SerialNumber=6
мар 17 10:10:25 lnxvrxtosh kernel: usb 3-2: SerialNumber: 20160515
мар 17 10:10:31 lnxvrxtosh kernel: usb 3-2: Set SEL for device-initiated U1 failed.
мар 17 10:10:36 lnxvrxtosh kernel: usb 3-2: Enable of device-initiated U2 failed.
мар 17 10:10:36 lnxvrxtosh kernel: usb-storage 3-2:1.0: USB Mass Storage device detected
мар 17 10:10:36 lnxvrxtosh kernel: scsi host3: usb-storage 3-2:1.0
мар 17 10:10:36 lnxvrxtosh mtp-probe[4934]: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"
мар 17 10:10:36 lnxvrxtosh mtp-probe[4934]: bus: 3, device: 3 was not an MTP device
мар 17 10:10:36 lnxvrxtosh mtp-probe[4970]: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"
мар 17 10:10:36 lnxvrxtosh mtp-probe[4970]: bus: 3, device: 3 was not an MTP device
Comment 6 Igor Kuznetsov 2020-03-17 06:18:32 UTC
at the same laptop with a usb3.0 disabled in bios

мар 17 10:16:20 lnxvrxtosh kernel: usb 1-1.2: new high-speed USB device number 7 using ehci-pci
мар 17 10:16:20 lnxvrxtosh kernel: usb 1-1.2: New USB device found, idVendor=1f75, idProduct=0611, bcdDevice= 0.06
мар 17 10:16:20 lnxvrxtosh kernel: usb 1-1.2: New USB device strings: Mfr=4, Product=5, SerialNumber=6
мар 17 10:16:20 lnxvrxtosh kernel: usb 1-1.2: SerialNumber: 20160515
мар 17 10:16:20 lnxvrxtosh mtp-probe[4524]: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.2"
мар 17 10:16:20 lnxvrxtosh mtp-probe[4524]: bus: 1, device: 7 was not an MTP device
мар 17 10:16:21 lnxvrxtosh kernel: usb-storage 1-1.2:1.0: USB Mass Storage device detected
мар 17 10:16:21 lnxvrxtosh kernel: scsi host3: usb-storage 1-1.2:1.0
мар 17 10:16:21 lnxvrxtosh kernel: usbcore: registered new interface driver usb-storage
мар 17 10:16:21 lnxvrxtosh kernel: usbcore: registered new interface driver uas
мар 17 10:16:21 lnxvrxtosh mtp-probe[4563]: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.2"
мар 17 10:16:21 lnxvrxtosh mtp-probe[4563]: bus: 1, device: 7 was not an MTP device
мар 17 10:16:22 lnxvrxtosh kernel: scsi host3: scsi scan: INQUIRY result too short (5), using 36
мар 17 10:16:22 lnxvrxtosh kernel: scsi 3:0:0:0: Direct-Access     ST320VM0 01-1AD142             PQ: 0 ANSI: 0
мар 17 10:16:22 lnxvrxtosh kernel: sd 3:0:0:0: Attached scsi generic sg1 type 0
мар 17 10:16:22 lnxvrxtosh kernel: sd 3:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB)
мар 17 10:16:22 lnxvrxtosh kernel: sd 3:0:0:0: [sdb] Write Protect is off
мар 17 10:16:22 lnxvrxtosh kernel: sd 3:0:0:0: [sdb] Mode Sense: 3b 00 00 00
мар 17 10:16:22 lnxvrxtosh kernel: sd 3:0:0:0: [sdb] No Caching mode page found
мар 17 10:16:22 lnxvrxtosh kernel: sd 3:0:0:0: [sdb] Assuming drive cache: write through
мар 17 10:16:22 lnxvrxtosh kernel: sd 3:0:0:0: [sdb] Attached SCSI disk
мар 17 10:16:39 lnxvrxtosh su[4778]: (to root) virex on pts/1
Comment 7 Igor Kuznetsov 2020-03-17 06:52:24 UTC
this output from lenovo x240

Mar 17 05:25:19 localhost.localdomain kernel: xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Mar 17 05:25:24 localhost.localdomain kernel: xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Mar 17 05:25:25 localhost.localdomain kernel: usb 3-1: device not accepting address 2, error -62
Mar 17 05:25:30 localhost.localdomain kernel: xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Mar 17 05:25:35 localhost.localdomain kernel: xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Mar 17 05:25:36 localhost.localdomain kernel: usb 3-1: device not accepting address 2, error -62
Mar 17 05:25:41 localhost.localdomain kernel: xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Mar 17 05:25:46 localhost.localdomain kernel: xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Mar 17 05:25:47 localhost.localdomain kernel: usb 3-1: device not accepting address 2, error -62
Mar 17 05:25:50 localhost.localdomain kwin_x11[2134]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 54402, resource id: 41946244, major code: 20 (GetProperty), minor code: 0
Mar 17 05:25:52 localhost.localdomain kwin_x11[2134]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 55278, resource id: 41947548, major code: 20 (GetProperty), minor code: 0
Mar 17 05:25:52 localhost.localdomain kernel: xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Mar 17 05:25:57 localhost.localdomain kernel: xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Mar 17 05:25:58 localhost.localdomain kernel: usb 3-1: device not accepting address 2, error -62
Mar 17 05:25:58 localhost.localdomain kernel: usb 3-1: USB disconnect, device number 2

inxi -Mxxx
Machine:
  Type: Laptop System: LENOVO product: 20AMS34613 v: ThinkPad X240 serial: PB01Z4FY 
  Chassis: type: 10 serial: PB01Z4FY 
  Mobo: LENOVO model: 20AMS34613 v: 0B98401 PRO serial: L1HF44B03GB 
  UEFI [Legacy]: LENOVO v: GIET85WW (2.35 ) date: 03/10/2016
Comment 8 Igor Kuznetsov 2020-03-17 07:10:25 UTC
same laptop x240 runing on old opensuse 13.1

usb 3.0 adapter work fine

journalctl -f
-- Logs begin at Tue 2020-03-17 10:04:13 UTC. --
Mar 17 10:04:44 linux.site pulseaudio[3256]: [pulseaudio] pid.c: Daemon already running.
Mar 17 10:04:44 linux.site rtkit-daemon[3239]: Successfully made thread 3259 of process 3259 (/usr/bin/pulseaudio) owned by 'linux' high priority at nice level -11.
Mar 17 10:04:44 linux.site rtkit-daemon[3239]: Supervising 5 threads of 2 processes of 1 users.
Mar 17 10:04:44 linux.site pulseaudio[3259]: [pulseaudio] pid.c: Daemon already running.
Mar 17 10:04:45 linux.site polkitd[2226]: Registered Authentication Agent for unix-session:1 (system bus name :1.35 [/usr/lib/kde4/libexec/polkit-kde-authentication-agent-1], ob...en_US.UTF-8)
Mar 17 10:04:56 linux.site su[3292]: (to linux) linux on none
Mar 17 10:04:56 linux.site su[3292]: pam_unix(su:session): session opened for user root by linux(uid=999)
Mar 17 10:04:57 linux.site systemd[1]: Starting Stop Read-Ahead Data Collection...
Mar 17 10:04:57 linux.site systemd[1]: Started Stop Read-Ahead Data Collection.
Mar 17 10:04:57 linux.site systemd-readahead[1661]: No pack files
Mar 17 10:05:17 linux.site kernel: usb 3-1: new SuperSpeed USB device number 2 using xhci_hcd
Mar 17 10:05:17 linux.site kernel: usb 3-1: New USB device found, idVendor=1f75, idProduct=0611
Mar 17 10:05:17 linux.site kernel: usb 3-1: New USB device strings: Mfr=4, Product=5, SerialNumber=6
Mar 17 10:05:17 linux.site kernel: usb 3-1: SerialNumber: 20160515
Mar 17 10:05:17 linux.site kernel: usb-storage 3-1:1.0: USB Mass Storage device detected
Mar 17 10:05:17 linux.site kernel: scsi4 : usb-storage 3-1:1.0
Mar 17 10:05:17 linux.site mtp-probe[3318]: checking bus 3, device 2: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1"
Mar 17 10:05:17 linux.site mtp-probe[3318]: bus: 3, device: 2 was not an MTP device
Mar 17 10:05:18 linux.site kernel: scsi_probe_lun: 54 callbacks suppressed
Mar 17 10:05:18 linux.site kernel: scsi scan: INQUIRY result too short (5), using 36
Mar 17 10:05:18 linux.site kernel: scsi 4:0:0:0: Direct-Access     ST320VM0 01-1AD142             PQ: 0 ANSI: 0
Mar 17 10:05:18 linux.site kernel: sd 4:0:0:0: Attached scsi generic sg2 type 0
Mar 17 10:05:18 linux.site kernel: sd 4:0:0:0: [sdc] 625142448 512-byte logical blocks: (320 GB/298 GiB)
Mar 17 10:05:18 linux.site kernel: sd 4:0:0:0: [sdc] Write Protect is off
Mar 17 10:05:18 linux.site kernel: sd 4:0:0:0: [sdc] Mode Sense: 3b 00 00 00
Mar 17 10:05:18 linux.site kernel: sd 4:0:0:0: [sdc] No Caching mode page found
Mar 17 10:05:18 linux.site kernel: sd 4:0:0:0: [sdc] Assuming drive cache: write through
Mar 17 10:05:18 linux.site kernel: sd 4:0:0:0: [sdc] No Caching mode page found
Mar 17 10:05:18 linux.site kernel: sd 4:0:0:0: [sdc] Assuming drive cache: write through
Mar 17 10:05:18 linux.site kernel:  sdc: unknown partition table
Mar 17 10:05:18 linux.site kernel: sd 4:0:0:0: [sdc] No Caching mode page found
Mar 17 10:05:18 linux.site kernel: sd 4:0:0:0: [sdc] Assuming drive cache: write through
Mar 17 10:05:18 linux.site kernel: sd 4:0:0:0: [sdc] Attached SCSI disk

^C
linux:/home/linux # lsscsi                                                                                                                                                                      
[0:0:0:0]    disk    ATA      SAMSUNG MZ7TY256 MAT0  /dev/sda                                                                                                                                   
[3:0:0:0]    disk    SanDisk  Cruzer Blade     1.00  /dev/sdb                                                                                                                                   
[4:0:0:0]    disk    ST320VM0 01-1AD142              /dev/sdc

Linux linux.site 3.11.6-4-default #1 SMP Wed Oct 30 18:04:56 UTC 2013 (e6d4a27) i686 i686 i386 GNU/Linux
Comment 9 Igor Kuznetsov 2020-04-11 01:49:17 UTC
After several updates it is work now very well