[Bug 1190539] New: scsi host0: uas_eh_device_reset_handler
https://bugzilla.suse.com/show_bug.cgi?id=1190539 Bug ID: 1190539 Summary: scsi host0: uas_eh_device_reset_handler Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: mkrapp@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I got a new ASUS Zenbook 14 UM524UA. It has two USB-c and one USB-A sockets. An external SATA M2 disk connected to the USB-A Port does not mount, but uas_device_reset happens frequently and the disk is not usable: 22:43:03 susi kernel: usb 4-2: new SuperSpeed USB device number 6 using xhci_hcd 22:43:03 susi kernel: usb 4-2: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00 22:43:03 susi kernel: usb 4-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1 22:43:03 susi kernel: usb 4-2: Product: ASM105x 22:43:03 susi kernel: usb 4-2: Manufacturer: ASMT 22:43:03 susi kernel: usb 4-2: SerialNumber: ACDFD0000000000007B4 22:43:03 susi kernel: scsi host0: uas 22:43:03 susi kernel: scsi 0:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6 22:43:03 susi kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0 22:43:03 susi kernel: sd 0:0:0:0: [sda] 937721856 512-byte logical blocks: (480 GB/447 GiB) 22:43:03 susi kernel: sd 0:0:0:0: [sda] Write Protect is off 22:43:03 susi kernel: sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 22:43:03 susi kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA 22:43:03 susi kernel: sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes 22:43:03 susi kernel: sda: sda1 22:43:03 susi kernel: sd 0:0:0:0: [sda] Attached SCSI disk 22:43:36 susi kernel: sd 0:0:0:0: [sda] tag#16 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN 22:43:36 susi kernel: sd 0:0:0:0: [sda] tag#16 CDB: Read(10) 28 00 00 00 00 78 00 00 08 00 22:43:36 susi kernel: scsi host0: uas_eh_device_reset_handler start 22:43:36 susi kernel: usb 4-2: reset SuperSpeed USB device number 6 using xhci_hcd 22:43:36 susi kernel: scsi host0: uas_eh_device_reset_handler success 22:44:04 susi systemd-udevd[713]: sda: Worker [14902] processing SEQNUM=4825 is taking a long time 22:44:06 susi kernel: sd 0:0:0:0: [sda] tag#4 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD IN 22:44:06 susi kernel: sd 0:0:0:0: [sda] tag#4 CDB: Read(10) 28 00 00 00 01 08 00 00 f8 00 22:44:06 susi kernel: sd 0:0:0:0: [sda] tag#3 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD IN 22:44:06 susi kernel: sd 0:0:0:0: [sda] tag#3 CDB: Read(10) 28 00 00 00 00 88 00 00 78 00 22:44:06 susi kernel: sd 0:0:0:0: [sda] tag#2 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD IN 22:44:06 susi kernel: sd 0:0:0:0: [sda] tag#2 CDB: Read(10) 28 00 00 00 00 48 00 00 30 00 22:44:07 susi kernel: scsi host0: uas_eh_device_reset_handler start 22:44:07 susi kernel: usb 4-2: reset SuperSpeed USB device number 6 using xhci_hcd 22:44:07 susi kernel: scsi host0: uas_eh_device_reset_handler success 22:44:37 susi kernel: scsi host0: uas_eh_device_reset_handler start 22:44:37 susi kernel: sd 0:0:0:0: [sda] tag#1 uas_zap_pending 0 uas-tag 2 inflight: CMD 22:44:37 susi kernel: sd 0:0:0:0: [sda] tag#1 CDB: Read(10) 28 00 00 00 00 88 00 00 78 00 22:44:37 susi kernel: sd 0:0:0:0: [sda] tag#2 uas_zap_pending 0 uas-tag 3 inflight: CMD 22:44:37 susi kernel: sd 0:0:0:0: [sda] tag#2 CDB: Read(10) 28 00 00 00 01 08 00 00 f8 00 22:44:37 susi kernel: usb 4-2: reset SuperSpeed USB device number 6 using xhci_hcd 22:44:37 susi kernel: scsi host0: uas_eh_device_reset_handler success 22:45:08 susi kernel: scsi host0: uas_eh_device_reset_handler start 22:45:08 susi kernel: sd 0:0:0:0: [sda] tag#3 uas_zap_pending 0 uas-tag 1 inflight: CMD 22:45:08 susi kernel: sd 0:0:0:0: [sda] tag#3 CDB: Read(10) 28 00 00 00 01 08 00 00 f8 00 22:45:08 susi kernel: sd 0:0:0:0: [sda] tag#5 uas_zap_pending 0 uas-tag 2 inflight: CMD 22:45:08 susi kernel: sd 0:0:0:0: [sda] tag#5 CDB: Read(10) 28 00 00 00 00 88 00 00 78 00 22:45:08 susi kernel: usb 4-2: reset SuperSpeed USB device number 6 using xhci_hcd 22:45:08 susi kernel: scsi host0: uas_eh_device_reset_handler success /dev/sda1 is not mountable (xfs) and fdisk hangs, disk is not usable -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1190539 https://bugzilla.suse.com/show_bug.cgi?id=1190539#c1 --- Comment #1 from Michael Krapp <mkrapp@suse.com> --- BUT: if I first connect a USB3 hub to the USB-A socket, and connect the disk to the hub, then I can use it: 23:04:32 susi kernel: usb 4-2: new SuperSpeed USB device number 7 using xhci_hcd 23:04:32 susi kernel: usb 4-2: New USB device found, idVendor=2109, idProduct=0812, bcdDevice= b.e1 23:04:32 susi kernel: usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 23:04:32 susi kernel: usb 4-2: Product: USB3.0 Hub 23:04:32 susi kernel: usb 4-2: Manufacturer: VIA Labs, Inc. 23:04:32 susi kernel: hub 4-2:1.0: USB hub found 23:04:32 susi kernel: hub 4-2:1.0: 4 ports detected 23:04:32 susi kernel: usb 3-2: new high-speed USB device number 4 using xhci_hcd 23:04:32 susi kernel: usb 3-2: New USB device found, idVendor=2109, idProduct=2812, bcdDevice= b.e0 23:04:32 susi kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 23:04:32 susi kernel: usb 3-2: Product: USB2.0 Hub 23:04:32 susi kernel: usb 3-2: Manufacturer: VIA Labs, Inc. 23:04:32 susi kernel: hub 3-2:1.0: USB hub found 23:04:32 susi kernel: hub 3-2:1.0: 4 ports detected 23:04:33 susi kernel: usb 4-2.3: new SuperSpeed USB device number 8 using xhci_hcd 23:04:33 susi kernel: usb 4-2.3: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00 23:04:33 susi kernel: usb 4-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=6 23:04:33 susi kernel: usb 4-2.3: Product: USB 10/100/1000 LAN 23:04:33 susi kernel: usb 4-2.3: Manufacturer: Realtek 23:04:33 susi kernel: usb 4-2.3: SerialNumber: 000002000000 23:04:34 susi kernel: usb 4-2.3: reset SuperSpeed USB device number 8 using xhci_hcd 23:04:34 susi upowerd[1707]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb4/4-2 23:04:34 susi upowerd[1707]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-2 23:04:34 susi upowerd[1707]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb4/4-2/4-2.3 23:04:34 susi upowerd[1707]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb4/4-2/4-2.3 23:04:34 susi upowerd[1707]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb4/4-2/4-2.3 23:04:34 susi upowerd[1707]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb4/4-2/4-2.3 23:04:34 susi upowerd[1707]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb4/4-2/4-2.3 23:04:41 susi kernel: usb 4-2.2: new SuperSpeed USB device number 9 using xhci_hcd 23:04:41 susi kernel: usb 4-2.2: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00 23:04:41 susi kernel: usb 4-2.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1 23:04:41 susi kernel: usb 4-2.2: Product: ASM105x 23:04:41 susi kernel: usb 4-2.2: Manufacturer: ASMT 23:04:41 susi kernel: usb 4-2.2: SerialNumber: ACDFD0000000000007B4 23:04:41 susi kernel: scsi host0: uas 23:04:41 susi kernel: scsi 0:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6 23:04:41 susi kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0 23:04:41 susi kernel: sd 0:0:0:0: [sda] 937721856 512-byte logical blocks: (480 GB/447 GiB) 23:04:41 susi kernel: sd 0:0:0:0: [sda] Write Protect is off 23:04:41 susi kernel: sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 23:04:41 susi kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA 23:04:41 susi kernel: sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes 23:04:41 susi kernel: sda: sda1 23:04:41 susi kernel: sd 0:0:0:0: [sda] Attached SCSI disk micha@susi:~> sudo fdisk -l /dev/sda Disk /dev/sda: 447.14 GiB, 480113590272 bytes, 937721856 sectors Disk model: 2115 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 33553920 bytes Disklabel type: dos Disk identifier: 0x2606303b Device Boot Start End Sectors Size Id Type /dev/sda1 2048 937721855 937719808 447.1G 83 Linux :~> mount |grep sda /dev/sda1 on /mnt type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota) :~> sudo dd if=/dev/sda of=/dev/null status=progress 2323831808 bytes (2.3 GB, 2.2 GiB) copied, 10 s, 232 MB/s^C 4651175+0 records in 4651174+0 records out 2381401088 bytes (2.4 GB, 2.2 GiB) copied, 10.2518 s, 232 MB/s -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1190539 https://bugzilla.suse.com/show_bug.cgi?id=1190539#c2 --- Comment #2 from Michael Krapp <mkrapp@suse.com> --- susi:~ # lsscsi [0:0:0:0] disk ASMT 2115 0 /dev/sda [N:0:1:1] disk HFM512GD3JX013N__1 /dev/nvme0n1 susi:~ # lsusb Bus 004 Device 008: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter Bus 004 Device 009: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge Bus 004 Device 007: ID 2109:0812 VIA Labs, Inc. VL812 Hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 004: ID 2109:2812 VIA Labs, Inc. VL812 Hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 8087:0a2b Intel Corp. Bluetooth wireless interface Bus 001 Device 002: ID 13d3:56eb IMC Networks USB2.0 HD UVC WebCam Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub susi:~ # lspci 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU 00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge 00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge 00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge 00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge 00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge 00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge 00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5 00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6 00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7 01:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78) 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01) 03:00.0 Non-Volatile memory controller: SK hynix Device 174a 04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lucienne (rev c1) 04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller 04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor 04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01) 04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller susi:~ # uname -a Linux susi.krapp.internal 5.14.1-1-default #1 SMP Sat Sep 4 08:22:51 UTC 2021 (67af907) x86_64 x86_64 x86_64 GNU/Linux susi:~ # -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1190539 https://bugzilla.suse.com/show_bug.cgi?id=1190539#c3 --- Comment #3 from Michael Krapp <mkrapp@suse.com> --- Created attachment 852579 --> https://bugzilla.suse.com/attachment.cgi?id=852579&action=edit dmesg -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1190539 https://bugzilla.suse.com/show_bug.cgi?id=1190539#c4 --- Comment #4 from Michael Krapp <mkrapp@suse.com> --- Created attachment 852580 --> https://bugzilla.suse.com/attachment.cgi?id=852580&action=edit hwinfo -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1190539 https://bugzilla.suse.com/show_bug.cgi?id=1190539#c5 --- Comment #5 from Michael Krapp <mkrapp@suse.com> --- Ok, seems bad choice of hardware :-( Bus 004 Device 003: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge It was the combination of Laptop Port, one of my cables and the external ssd case Same cable works with different external disk cases as well as the ASM1051E with a different cable. However, disabling uas for the above ASM1051E by booting with "usb-storage.quirks=174c:55aa:u" improves throughput by almost 50% Example: Good cable WITH usb quirk: kernel: usb 4-2: new SuperSpeed USB device number 5 using xhci_hcd kernel: usb 4-2: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00 kernel: usb 4-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1 kernel: usb 4-2: Product: ASM105x kernel: usb 4-2: Manufacturer: ASMT kernel: usb 4-2: SerialNumber: ACDFD0000000000007B4 kernel: usb 4-2: UAS is ignored for this device, using usb-storage instead kernel: usb-storage 4-2:1.0: USB Mass Storage device detected kernel: usb-storage 4-2:1.0: Quirks match for vid 174c pid 55aa: c00000 kernel: scsi host0: usb-storage 4-2:1.0
sudo dd if=/dev/sda of=/dev/null status=progress 2423468032 bytes (2.4 GB, 2.3 GiB) copied, 7 s, 346 MB/s
WithOUT quirks: kernel: usb 4-2: new SuperSpeed USB device number 6 using xhci_hcd kernel: usb 4-2: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00 kernel: usb 4-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1 kernel: usb 4-2: Product: ASM105x kernel: usb 4-2: Manufacturer: ASMT kernel: usb 4-2: SerialNumber: ACDFD0000000000007B4 kernel: usbcore: registered new interface driver usb-storage kernel: scsi host0: uas kernel: usbcore: registered new interface driver uas kernel: scsi 0:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6 kernel: scsi 0:0:0:0: Attached scsi generic sg0 type 0 kernel: sd 0:0:0:0: [sda] 937721856 512-byte logical blocks: (480 GB/447 GiB) kernel: sd 0:0:0:0: [sda] Write Protect is off kernel: sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA kernel: sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes kernel: sda: sda1 kernel: sd 0:0:0:0: [sda] Attached SCSI disk
sudo dd if=/dev/sda of=/dev/null status=progress 1674818048 bytes (1.7 GB, 1.6 GiB) copied, 7 s, 238 MB/s
So, with quirks set (disable uas for this device) I get 346 MB/s reading from device, without quirk, throughput is only 238 MB/s I will definitely look for another ssd case :) -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1190539 https://bugzilla.suse.com/show_bug.cgi?id=1190539#c6 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jslaby@suse.com Resolution|--- |INVALID --- Comment #6 from Jiri Slaby <jslaby@suse.com> --- I assume this was a HW issue then? -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com