Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB SSD disconnects randomly: xHCI host not responding to stop endpoint command #5060

Open
tomikaa87 opened this issue Jun 10, 2022 · 109 comments

Comments

@tomikaa87
Copy link

tomikaa87 commented Jun 10, 2022

Describe the bug

I have intermittent system crashes with the following setup:

  • Raspberry Pi 4B, rev 1.1, 4 GB RAM
  • USB case: Axagon EE25-XA6 (ASMedia ASM225CM, enabled UASP and TRIM, USB 3.0)
  • SSDs tried: Samsung 840 (non-EVO or PRO) 240 GB, Corsair Force LS 120 GB
  • Official Pi 4 power supply
  • Tried with multiple, high quality USB 3.0 A-to-microB cables
  • The SoC is not overclocked, the Pi has an actively cooled Aluminium Armour case, temps are kept below 55 Celsius
  • The OS is up-to-date

The system boots fine, but crashes randomly after 6-24 hours. dmesg (logs captured via serial port) shows that the USB disk disconnects.

I've ran SSD speeds tests with dd, and successfully read the whole SSD with 300+ MB/s, also written 20+ GB into a test file without problems.

I'm running a few services in Docker, like PiHole, UniFi Controller, Prometheus + Grafana, Blynk local server, Mosquitto MQTT server.

The SSD has an extra partition for ZFS in addition to the standard boot and rootfs partitions. That ZFS volume stores the Docker containers and their data.

My other Pi 4 configuration (8 GB, rev 1.5) uses the same USB 3.0 case, but it runs stable, never had a crash like that. However, it writes less frequently to the SSD since it doesn't run Docker containers.

Steps to reproduce the behaviour

Unfortunately, there are no fix reproduction steps. I've tried disabling USB AutoSuspend via cmdline.txt, but it didn't help. I've also tried a different power supply without luck.
However, the system doesn't crash if I plug the USB disk into a USB 2.0 port.

Device (s)

Raspberry Pi 4 Mod. B

System

/etc/rpi-issue

Raspberry Pi reference 2022-04-04
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 27a8050c3c06e567c794620394a8c2d74262a516, stage2

vcgencmd version

Mar 24 2022 13:19:26
Copyright (c) 2012 Broadcom
version e5a963efa66a1974127860b42e913d2374139ff5 (clean) (release) (start)

uname -a

Linux services 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

sudo rpi-eeprom-update

BOOTLOADER: up to date
   CURRENT: Tue Apr 26 10:24:28 UTC 2022 (1650968668)
    LATEST: Tue Apr 26 10:24:28 UTC 2022 (1650968668)
   RELEASE: default (/lib/firmware/raspberrypi/bootloader/default)
            Use raspi-config to change the release.

  VL805_FW: Dedicated VL805 EEPROM
     VL805: up to date
   CURRENT: 000138a1
    LATEST: 000138a1

lsusb -tv

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
        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 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 2109:3431 VIA Labs, Inc. Hub

sudo lsusb -vd 174c:55aa

Bus 002 Device 002: 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
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.10
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         9
  idVendor           0x174c ASMedia Technology Inc.
  idProduct          0x55aa ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
  bcdDevice            1.00
  iManufacturer           2 AXAGON USB3.0 External HDD
  iProduct                3 AXAGON USB3.0 External HDD
  iSerial                 1 AAAABBBBCCCC0003
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0079
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           4
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     98
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Data-in pipe (0x03)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Data-out pipe (0x04)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Status pipe (0x02)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        Command pipe (0x01)
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0016
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x0000f41e
      BESL Link Power Management (LPM) Supported
    BESL value     1024 us
    Deep BESL value    61440 us
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat        2047 micro seconds
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x000d
  Self Powered
  U1 Enabled
  U2 Enabled

sudo lshw

services
    description: Computer
    product: Raspberry Pi 4 Model B Rev 1.1
    serial: 100000004c4deb14
    width: 64 bits
    capabilities: smp cp15_barrier setend swp tagged_addr_disabled
  *-core
       description: Motherboard
       physical id: 0
     *-cpu:0
          description: CPU
          product: cpu
          physical id: 1
          bus info: cpu@0
          size: 1500MHz
          capacity: 1500MHz
          capabilities: fp asimd evtstrm crc32 cpuid cpufreq
     *-cpu:1
          description: CPU
          product: cpu
          physical id: 2
          bus info: cpu@1
          size: 1500MHz
          capacity: 1500MHz
          capabilities: fp asimd evtstrm crc32 cpuid cpufreq
     *-cpu:2
          description: CPU
          product: cpu
          physical id: 3
          bus info: cpu@2
          size: 1500MHz
          capacity: 1500MHz
          capabilities: fp asimd evtstrm crc32 cpuid cpufreq
     *-cpu:3
          description: CPU
          product: cpu
          physical id: 4
          bus info: cpu@3
          size: 1500MHz
          capacity: 1500MHz
          capabilities: fp asimd evtstrm crc32 cpuid cpufreq
     *-memory
          description: System memory
          physical id: 5
          size: 3793MiB
     *-pci
          description: PCI bridge
          product: BCM2711 PCIe Bridge
          vendor: Broadcom Inc. and subsidiaries
          physical id: 0
          bus info: pci@0000:00:00.0
          version: 10
          width: 32 bits
          clock: 33MHz
          capabilities: pci pm pciexpress normal_decode bus_master cap_list
          resources: memory:600000000-6000fffff
        *-usb
             description: USB controller
             product: VL805 USB 3.0 Host Controller
             vendor: VIA Technologies, Inc.
             physical id: 0
             bus info: pci@0000:01:00.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi pciexpress xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:46 memory:600000000-600000fff
           *-usbhost:0
                product: xHCI Host Controller
                vendor: Linux 5.15.32-v8+ xhci-hcd
                physical id: 0
                bus info: usb@1
                logical name: usb1
                version: 5.15
                capabilities: usb-2.00
                configuration: driver=hub slots=1 speed=480Mbit/s
              *-usb
                   description: USB hub
                   product: USB2.0 Hub
                   vendor: VIA Labs, Inc.
                   physical id: 1
                   bus info: usb@1:1
                   version: 4.21
                   capabilities: usb-2.10
                   configuration: driver=hub maxpower=100mA slots=4 speed=480Mbit/s
           *-usbhost:1
                product: xHCI Host Controller
                vendor: Linux 5.15.32-v8+ xhci-hcd
                physical id: 1
                bus info: usb@2
                logical name: usb2
                version: 5.15
                capabilities: usb-3.00
                configuration: driver=hub slots=4 speed=5000Mbit/s
              *-usb
                   description: Mass storage device
                   product: AXAGON USB3.0 External HDD
                   vendor: AXAGON USB3.0 External HDD
                   physical id: 1
                   bus info: usb@2:1
                   logical name: scsi0
                   version: 1.00
                   serial: AAAABBBBCCCC0003
                   capabilities: usb-3.10 scsi
                   configuration: driver=uas speed=5000Mbit/s
                 *-disk
                      description: SCSI Disk
                      product: Force LS SSD
                      vendor: Corsair
                      physical id: 0.0.0
                      bus info: scsi@0:0.0.0
                      logical name: /dev/sda
                      version: 0
                      serial: 3000CCCCBBBBAAAA
                      size: 111GiB (120GB)
                      capabilities: gpt-1.00 partitioned partitioned:gpt
                      configuration: ansiversion=6 guid=91639514-c964-49a3-bb8c-90f7d0a1c96e logicalsectorsize=512 sectorsize=512
                    *-volume:0
                         description: Windows FAT volume
                         vendor: mkfs.fat
                         physical id: 1
                         bus info: scsi@0:0.0.0,1
                         logical name: /dev/sda1
                         logical name: /boot
                         version: FAT16
                         serial: 048b-0011
                         size: 253MiB
                         capacity: 255MiB
                         capabilities: fat initialized
                         configuration: FATs=2 filesystem=fat label=boot mount.fstype=vfat mount.options=rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,flush,errors=remount-ro name=Microsoft basic data state=mounted
                    *-volume:1
                         description: EXT4 volume
                         vendor: Linux
                         physical id: 2
                         bus info: scsi@0:0.0.0,2
                         logical name: /dev/sda2
                         version: 1.0
                         serial: b79fd5d8-0ff9-47f0-9d99-33e8c30786af
                         size: 39GiB
                         capacity: 39GiB
                         capabilities: journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized
                         configuration: created=2022-06-06 19:25:35 filesystem=ext4 label=rootfs lastmountpoint=/ modified=2022-06-07 22:28:48 mounted=2022-06-10 18:17:01 name=Linux filesystem state=clean
                    *-volume:2
                         description: EFI partition
                         physical id: 3
                         bus info: scsi@0:0.0.0,3
                         logical name: /dev/sda3
                         serial: 30f1e2a0-24bb-4f21-929c-60f405bd6719
                         capacity: 71GiB
                         configuration: name=Linux filesystem
  *-network:0
       description: Ethernet interface
       physical id: 1
       logical name: eth0
       serial: dc:a6:32:31:02:13
       size: 1Gbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=bcmgenet driverversion=5.15.32-v8+ duplex=full ip=10.80.0.2 link=yes multicast=yes port=twisted pair speed=1Gbit/s
  *-network:1
       description: Ethernet interface
       physical id: 2
       logical name: br-482150e1dbb6
       serial: 02:42:bc:9e:88:86
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.20.0.1 link=yes multicast=yes speed=10Gbit/s
  *-network:2
       description: Ethernet interface
       physical id: 3
       logical name: docker0
       serial: 02:42:67:67:d3:22
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.17.0.1 link=no multicast=yes
  *-network:3
       description: Ethernet interface
       physical id: 4
       logical name: br-7777bfeb3730
       serial: 02:42:50:bc:ca:c7
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.21.0.1 link=yes multicast=yes speed=10Gbit/s
  *-network:4
       description: Ethernet interface
       physical id: 5
       logical name: br-d9dca40fffc1
       serial: 02:42:c2:c6:5e:d0
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.24.0.1 link=yes multicast=yes speed=10Gbit/s
  *-network:5
       description: Ethernet interface
       physical id: 6
       logical name: br-e50cc143ca3d
       serial: 02:42:81:f8:5d:2f
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.23.0.1 link=yes multicast=yes speed=10Gbit/s
  *-network:6
       description: Ethernet interface
       physical id: 7
       logical name: br-e59a5e6c415e
       serial: 02:42:dd:20:96:9a
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.19.0.1 link=yes multicast=yes speed=10Gbit/s
  *-network:7
       description: Ethernet interface
       physical id: 8
       logical name: br-1d1c33aac596
       serial: 02:42:77:1a:ef:6e
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.18.0.1 link=yes multicast=yes speed=10Gbit/s
  *-network:8
       description: Ethernet interface
       physical id: 9
       logical name: veth27303d5
       serial: 36:84:56:77:44:4e
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full ip=169.254.240.41 link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:9
       description: Ethernet interface
       physical id: a
       logical name: veth419a0fd
       serial: 96:b5:bb:a7:d5:1f
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full ip=169.254.69.105 link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:10
       description: Ethernet interface
       physical id: b
       logical name: vethd0e141a
       serial: 62:5b:95:41:fa:67
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full ip=169.254.237.119 link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:11
       description: Ethernet interface
       physical id: c
       logical name: vethd824777
       serial: 82:78:97:db:21:f7
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full ip=169.254.2.78 link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:12
       description: Ethernet interface
       physical id: d
       logical name: veth7d5d161
       serial: 7a:48:fb:cf:0a:9c
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full ip=169.254.55.254 link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:13
       description: Ethernet interface
       physical id: e
       logical name: vethaed77d8
       serial: be:5d:df:01:26:45
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full ip=169.254.91.13 link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:14
       description: Ethernet interface
       physical id: f
       logical name: vethdc19914
       serial: be:59:17:46:01:d7
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full ip=169.254.194.23 link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:15
       description: Ethernet interface
       physical id: 10
       logical name: veth9c36494
       serial: 4e:af:25:e0:26:77
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full ip=169.254.20.104 link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:16
       description: Ethernet interface
       physical id: 11
       logical name: veth2e1e7c9
       serial: 06:6a:7d:f7:07:39
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full ip=169.254.216.214 link=yes multicast=yes port=twisted pair speed=10Gbit/s

sudo gdisk -l /dev/sda

GPT fdisk (gdisk) version 1.0.6

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 234441648 sectors, 111.8 GiB
Model: Force LS SSD
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 91639514-C964-49A3-BB8C-90F7D0A1C96E
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 234441614
Partitions will be aligned on 2048-sector boundaries
Total free space is 6108 sectors (3.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          524288   255.0 MiB   0700  Microsoft basic data
   2          526336        83886080   39.7 GiB    8300  Linux filesystem
   3        83888128       234441614   71.8 GiB    8300  Linux filesystem

Logs

... (normal kernel messages after booting)
[   49.775023] br-7777bfeb3730: port 1(veth0489e80) entered disabled state
[   49.776023] eth0: renamed from veth9d11393
[   49.816458] br-7777bfeb3730: port 1(veth0489e80) entered blocking state
[   49.816483] br-7777bfeb3730: port 1(veth0489e80) entered forwarding state
[164061.642655] sd 0:0:0:0: [sda] tag#3 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT 
[164061.650878] sd 0:0:0:0: [sda] tag#3 CDB: opcode=0x2a 2a 00 05 d8 e5 80 00 00 10 00
... (messages like these repeating for 16 seconds)
[164077.002902] sd 0:0:0:0: [sda] tag#18 uas_eh_abort_handler 0 uas-tag 19 inflight: CMD OUT 
[164077.011301] sd 0:0:0:0: [sda] tag#18 CDB: opcode=0x2a 2a 00 0a 4b 9d 60 00 00 90 00
[164077.046927] scsi host0: uas_eh_device_reset_handler start
[164077.046927] scsi host0: uas_eh_device_reset_handler start
[164077.187758] usb 2-1: reset SuperSpeed USB device number 2 using xhci_hcd
[164077.187758] usb 2-1: reset SuperSpeed USB device number 2 using xhci_hcd
[164077.215063] scsi host0: uas_eh_device_reset_handler success
[164077.215063] scsi host0: uas_eh_device_reset_handler success
[164084.137487] xhci_hcd 0000:01:00.0: WARNING: Host System Error
[164084.137487] xhci_hcd 0000:01:00.0: WARNING: Host System Error
[164089.279106] xhci_hcd 0000:01:00.0: xHCI host not responding to stop endpoint command.
[164089.287150] xhci_hcd 0000:01:00.0: USBSTS: HCHalted HSE EINT
[164089.293004] xhci_hcd 0000:01:00.0: xHCI host controller not responding, assume dead
[164089.300916] xhci_hcd 0000:01:00.0: HC died; cleaning up
[164089.306352] usb 1-1: USB disconnect, device number 2
[164089.279106] [164089.312578] usb 2-1: USB disconnect, device number 2
xhci_hcd[164089.318189] sd 0:0:0:0: [sda] tag#17 uas_zap_pending 0 uas-tag 2 inflight: CMD 
[164089.326243] sd 0:0:0:0: [sda] tag#17 CDB: opcode=0x2a 2a 00 05 d8 e5 80 00 00 10 00
[164089.334097] sd 0:0:0:0: [sda] tag#18 uas_zap_pending 0 uas-tag 3 inflight: CMD 
[164089.334113] sd 0:0:0:0: [sda] tag#17 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=57s
[164089.341594] sd 0:0:0:0: [sda] tag#18 CDB: opcode=0x2a 2a 00 05 d8 e5 90 00 00 10 00
[164089.341601] sd 0:0:0:0: [sda] tag#19 uas_zap_pending 0 uas-tag 4 inflight: CMD 
[164089.351572] sd 0:0:0:0: [sda] tag#17 CDB: opcode=0x2a 2a 00 05 d8 e5 80 00 00 10 00
[164089.359410] sd 0:0:0:0: [sda] tag#19 CDB: opcode=0x2a 2a 00 02 4e 27 68 00 00 90 00
[164089.359416] sd 0:0:0:0: [sda] tag#20 uas_zap_pending 0 uas-tag 5 inflight: CMD 
[164089.359420] sd 0:0:0:0: [sda] tag#20 CDB: opcode=0x2a 2a 00 0a 4b a2 c0 00 00 90 00
[164089.359428] sd 0:0:0:0: [sda] tag#19 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=56s
[164089.359437] sd 0:0:0:0: [sda] tag#19 CDB: opcode=0x2a 2a 00 02 4e 27 68 00 00 90 00
[164089.359444] blk_update_request: I/O error, dev sda, sector 38676328 op 0x1:(WRITE) flags 0x800 phys_seg 18 prio class 0
[164089.359552] Aborting journal on device sda2-8.
[164089.366921] blk_update_request: I/O error, dev sda, sector 98100608 op 0x1:(WRITE) flags 0x700 phys_seg 2 prio class 0
[164089.374762] sd 0:0:0:0: [sda] tag#21 uas_zap_pending 0 uas-tag 6 inflight: CMD 
[164089.374777] sd 0:0:0:0: [sda] tag#20 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=54s
[164089.374786] sd 0:0:0:0: [sda] tag#20 CDB: opcode=0x2a 2a 00 0a 4b a2 c0 00 00 90 00
[164089.374792] blk_update_request: I/O error, dev sda, sector 172729024 op 0x1:(WRITE) flags 0x700 phys_seg 18 prio class 0
[164089.374805] zio pool=tank vdev=/dev/sda3 error=5 type=2 offset=45486538752 size=73728 flags=180880
[164089.382610] zio pool=tank vdev=/dev/sda3 error=5 type=2 offset=7276789760 size=8192 flags=184880
[164089.390099] sd 0:0:0:0: [sda] tag#21 CDB: opcode=0x2a 2a 00 04 51 e7 38 00 00 08 00
[164089.390108] sd 0:0:0:0: [sda] tag#22 uas_zap_pending 0 uas-tag 7 inflight: CMD 
[164089.512187] sd 0:0:0:0: [sda] tag#22 CDB: opcode=0x2a 2a 00 04 51 e7 20 00 00 08 00
[164089.520039] sd 0:0:0:0: [sda] tag#23 uas_zap_pending 0 uas-tag 8 inflight: CMD 
[164089.527535] sd 0:0:0:0: [sda] tag#23 CDB: opcode=0x2a 2a 00 04 51 e6 f8 00 00 08 00

Additional context

Based on the posts under #4930, the two issues maybe connected.

@tomikaa87 tomikaa87 changed the title USB SSD random disconnects: xHCI host not responding to stop endpoint command USB SSD disconnects randomly: xHCI host not responding to stop endpoint command Jun 10, 2022
@tomikaa87
Copy link
Author

tomikaa87 commented Jun 11, 2022

I've made another try with quirks to disable UAS for the case with usb-storage.quirks=174c:55aa:u, but it still crashes.

The kernel log is a bit different this time, I can't see the message about the unresponsive xHCI host:

[   33.758428] cam-dummy-reg: disabling
[   40.680442] br-7777bfeb3730: port 1(veth7334205) entered disabled state
[   40.681434] eth0: renamed from veth495c423
[   40.703761] br-7777bfeb3730: port 1(veth7334205) entered blocking state
[   40.703787] br-7777bfeb3730: port 1(veth7334205) entered forwarding state
[76306.695335] usb 2-1: reset SuperSpeed USB device number 2 using xhci_hcd
[76306.716668] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=DRIVER_OK cmd_age=31s
[76306.716696] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 0c 28 e6 c0 00 00 30 00
[76306.716709] blk_update_request: I/O error, dev sda, sector 204007104 op 0x1:(WRITE) flags 0x700 phys_seg 3 prio class 0
[76306.716736] zio pool=tank vdev=/dev/sda3 error=5 type=2 offset=61500915712 size=24576 flags=40080c80
[76487.372365] sd 0:0:0:0: [sda] tag#0 timing out command, waited 180s
[76487.372414] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=DRIVER_OK cmd_age=180s
[76487.372432] sd 0:0:0:0: [sda] tag#0 Sense Key : 0x2 [current] 
[76487.372448] sd 0:0:0:0: [sda] tag#0 ASC=0x4 ASCQ=0x1 
[76487.372465] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 1a c2 40 00 00 80 00
[76487.372479] blk_update_request: I/O error, dev sda, sector 1753664 op 0x0:(READ) flags 0x80700 phys_seg 16 prio class 0
[76488.829547] INFO: task jbd2/sda2-8:98 blocked for more than 120 seconds.
[76488.829579]       Tainted: P         C O      5.15.32-v8+ #1538
[76488.829590] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[76488.829599] task:jbd2/sda2-8     state:D stack:    0 pid:   98 ppid:     2 flags:0x00000008
[76488.829623] Call trace:
[76488.829630]  __switch_to+0x114/0x1c8
[76488.829657]  __schedule+0x30c/0x8e8
[76488.829674]  schedule+0x48/0x100
[76488.829688]  io_schedule+0x24/0xa8
[76488.829703]  blk_mq_get_tag+0x1b8/0x310
[76488.829715]  __blk_mq_alloc_request+0x68/0x158
[76488.829731]  blk_mq_submit_bio+0x12c/0x5a0
[76488.829741]  __submit_bio+0x22c/0x280
[76488.829752]  submit_bio_noacct+0x1ec/0x228
[76488.829763]  submit_bio+0x3c/0x138
[76488.829773]  submit_bh_wbc+0x174/0x1f0
[76488.829789]  submit_bh+0x20/0x30
[76488.829803]  jbd2_journal_commit_transaction+0xc68/0x1bd0
[76488.829817]  kjournald2+0xd4/0x260
[76488.829831]  kthread+0x140/0x158
[76488.829842]  ret_from_fork+0x10/0x20

What's strange that the last two crash occurred after around 77000 seconds of runtime.

This is the log for the previous crash (before disabling UAS):

[   33.758593] cam-dummy-reg: disabling
[   40.099279] br-7777bfeb3730: port 1(vethed89085) entered disabled state
[   40.100249] eth0: renamed from veth44025ea
[   40.124528] br-7777bfeb3730: port 1(vethed89085) entered blocking state
[   40.124560] br-7777bfeb3730: port 1(vethed89085) entered forwarding state
[77254.805315] sd 0:0:0:0: [sda] tag#22 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT 
[77254.805335] sd 0:0:0:0: [sda] tag#22 CDB: opcode=0x2a 2a 00 00 22 f9 b8 00 00 80 00
[77254.805695] sd 0:0:0:0: [sda] tag#19 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD OUT 
[77254.805701] sd 0:0:0:0: [sda] tag#19 CDB: opcode=0x2a 2a 00 02 52 12 98 00 00 a0 00
[77254.805990] sd 0:0:0:0: [sda] tag#18 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD OUT 
[77254.805996] sd 0:0:0:0: [sda] tag#18 CDB: opcode=0x2a 2a 00 0a 61 0f f0 00 00 50 00
[77254.806292] sd 0:0:0:0: [sda] tag#17 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT 
[77254.806298] sd 0:0:0:0: [sda] tag#17 CDB: opcode=0x2a 2a 00 08 6b c7 e0 00 00 10 00
[77254.806598] sd 0:0:0:0: [sda] tag#16 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT 
[77254.806604] sd 0:0:0:0: [sda] tag#16 CDB: opcode=0x2a 2a 00 08 80 2d 00 00 00 20 00
[77258.133358] sd 0:0:0:0: [sda] tag#23 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD OUT 
[77258.133379] sd 0:0:0:0: [sda] tag#23 CDB: opcode=0x2a 2a 00 0a 61 0c d0 00 00 50 00
[77258.185364] sd 0:0:0:0: [sda] tag#20 uas_eh_abort_handler 0 uas-tag 7 inflight: CMD OUT 
[77258.185382] sd 0:0:0:0: [sda] tag#20 CDB: opcode=0x2a 2a 00 04 21 9c a0 00 00 08 00
[77258.201373] scsi host0: uas_eh_device_reset_handler start
[77258.330222] usb 2-1: reset SuperSpeed USB device number 2 using xhci_hcd
[77258.353607] scsi host0: uas_eh_device_reset_handler success
[77265.267212] xhci_hcd 0000:01:00.0: WARNING: Host System Error
[77270.4[77270.415926] EXT4-fs (sda2): Delayed block allocation failed for inode 1968773 at logical offset 14997 with max blocks 1 with error 30
13573] x[77270.416517] EXT4-fs error (device sda2) in ext4_reserve_inode_write:5692: Journal has aborted
[77270.416705] EXT4-fs error (device sda2): ext4_dirty_inode:5888: inode #2104291: comm rs:main Q:Reg: mark_inode_dirty error
hci_hcd [77270.416846] EXT4-fs error (device sda2) in ext4_dirty_inode:5889: Journal has aborted
0000:01:[77270.419676] EXT4-fs error (device sda2) in __ext4_new_inode:1093: Journal has aborted
[77270.419953] EXT4-fs error (device sda2) in add_dirent_to_buf:2118: Journal has aborted
[77270.420105] EXT4-fs error (device sda2): ext4_check_bdev_write_error:218: comm containerd-shim: Error while async write back metadata
[77270.420269] EXT4-fs error (device sda2) in ext4_create:2759: Journal has aborted
00.0: xH[77270.420408] EXT4-fs error (device sda2) in ext4_orphan_add:188: Journal has aborted
CI host [77270.420539] EXT4-fs error (device sda2) in ext4_create:2759: Journal has aborted
not resp[77270.420673] EXT4-fs error (device sda2): ext4_journal_check_start:83: comm containerd-shim: Detected aborted journal
onding to stop endpoint command.
[77270.413599] xhci_hcd 0000:01:00.0: USBSTS: HCHalted HSE EINT
[77270.413639] xhci_hcd 0000:01:00.0: xHCI host controller not responding, assume dead
[77270.413707] xhci_hcd 0000:01:00.0: HC died; cleaning up

Probably not a coincidence and I'd assume it depends on the amount of data written during that time.

@tomikaa87
Copy link
Author

tomikaa87 commented Jun 14, 2022

Another test, another crash. I've tried a different case, it's an Axagon EE25-XA3, which has an ASMedia ASM1153 (174c:1153). It doesn't support UASP, so I've used BOT without enabling quirks. The result is the same, usb 2-1: reset SuperSpeed USB device number 2 using xhci_hcd. I didn't see the xHCI host controller not responding, assume dead message in dmesg however. The system ran for about 170000 seconds, more than double compared to the previous runs.

I'd like to help more by not just looking for dmesg output. How should I progress further?

I'm doing another test at the moment and replaced the SSD with an HDD in the XA6 case to see if it changes anything. I've also requested a firmware update from the case vendor, but since another version of the case has the same issue, I don't think it'll behave differently.

@P33M
Copy link
Contributor

P33M commented Jun 14, 2022

What happens if you use a powered USB3 hub between the Pi and the SSD?

@tomikaa87
Copy link
Author

tomikaa87 commented Jun 14, 2022

What happens if you use a powered USB3 hub between the Pi and the SSD?

I haven't tried it yet, this will be the next after the HDD test.

After that, I could try disabling ASPM for the USB host controller via sudo setpci -s 01:00.0 0xd4.B=0x40.

Another possibility could be disabling LPM via echo 0 | sudo tee /sys/bus/usb/devices/usb2/2-0\:1.0/usb2-port1/usb3_lpm_permit. It's currently in u1_u2 mode, but I can try u1 and u2 only too.

Edit: the HDD test is still running, it's still stable after 1 day and 12 hours. I'm going to let it run for a while to make sure it stays stable.

Edit2: HDD test finished, it ran stable for 4 days. I'm running the external hub test with the SSD now. The hub in question is a RaidSonic Icy Box IB-AC6113.

Output of lsusb -tv looks like this now:

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
        ID 2109:0812 VIA Labs, Inc. VL812 Hub
        |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=uas, 5000M
            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
        |__ Port 4: Dev 4, If 0, Class=Hub, Driver=hub/4p, 5000M
            ID 2109:0812 VIA Labs, Inc. VL812 Hub
            |__ Port 4: Dev 5, If 0, Class=Hub, Driver=hub/4p, 5000M
                ID 2109:0812 VIA Labs, Inc. VL812 Hub
                |__ Port 4: Dev 6, If 0, Class=Hub, Driver=hub/4p, 5000M
                    ID 2109:0812 VIA Labs, Inc. VL812 Hub
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 2109:3431 VIA Labs, Inc. Hub
        |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
            ID 2109:2812 VIA Labs, Inc. VL812 Hub
            |__ Port 4: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
                ID 2109:2812 VIA Labs, Inc. VL812 Hub
                |__ Port 4: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
                    ID 2109:2812 VIA Labs, Inc. VL812 Hub
                    |__ Port 4: Dev 6, If 0, Class=Hub, Driver=hub/4p, 480M
                        ID 2109:2812 VIA Labs, Inc. VL812 Hub

@P33M It died after 20 hours. The external hub doesn't seem to make a difference.

Kernel log:

[   53.348114] br-7777bfeb3730: port 1(vethe5db6c3) entered forwarding state
[71777.088275] sd 0:0:0:0: [sda] tag#2 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
[71777.088295] sd 0:0:0:0: [sda] tag#2 CDB: opcode=0x2a 2a 00 02 4d 63 20 00 00 b8 00
[71777.144283] sd 0:0:0:0: [sda] tag#27 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD OUT
[71777.144303] sd 0:0:0:0: [sda] tag#27 CDB: opcode=0x2a 2a 00 01 36 00 f0 00 00 08 00
[71777.144612] sd 0:0:0:0: [sda] tag#26 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD OUT
[71777.144619] sd 0:0:0:0: [sda] tag#26 CDB: opcode=0x2a 2a 00 01 36 00 d8 00 00 08 00
[71777.144929] sd 0:0:0:0: [sda] tag#25 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT
[71777.144934] sd 0:0:0:0: [sda] tag#25 CDB: opcode=0x2a 2a 00 01 36 00 90 00 00 28 00
[71777.145253] sd 0:0:0:0: [sda] tag#24 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT
[71777.145258] sd 0:0:0:0: [sda] tag#24 CDB: opcode=0x2a 2a 00 01 8e 88 80 00 00 08 00
[71777.145566] sd 0:0:0:0: [sda] tag#3 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD OUT
[71777.145571] sd 0:0:0:0: [sda] tag#3 CDB: opcode=0x2a 2a 00 0b 67 2a f0 00 01 00 00
[71777.145890] sd 0:0:0:0: [sda] tag#0 uas_eh_abort_handler 0 uas-tag 7 inflight: CMD OUT
[71777.145895] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 07 70 11 60 00 00 10 00
[71787.584476] sd 0:0:0:0: [sda] tag#1 uas_eh_abort_handler 0 uas-tag 8 inflight: CMD OUT
[71787.584507] sd 0:0:0:0: [sda] tag#1 CDB: opcode=0x2a 2a 00 01 1d b4 18 00 00 08 00
[71804.992697] sd 0:0:0:0: [sda] tag#15 uas_eh_abort_handler 0 uas-tag 11 inflight: CMD OUT
[71804.992718] sd 0:0:0:0: [sda] tag#15 CDB: opcode=0x2a 2a 00 08 d0 58 80 00 00 10 00
[71804.993064] sd 0:0:0:0: [sda] tag#14 uas_eh_abort_handler 0 uas-tag 10 inflight: CMD OUT
[71804.993070] sd 0:0:0:0: [sda] tag#14 CDB: opcode=0x2a 2a 00 08 d0 57 80 00 00 20 00
[71804.993372] sd 0:0:0:0: [sda] tag#13 uas_eh_abort_handler 0 uas-tag 9 inflight: CMD OUT
[71804.993377] sd 0:0:0:0: [sda] tag#13 CDB: opcode=0x2a 2a 00 08 d4 91 d0 00 00 50 00
[71806.564727] sd 0:0:0:0: [sda] tag#12 uas_eh_abort_handler 0 uas-tag 12 inflight: CMD OUT
[71806.564746] sd 0:0:0:0: [sda] tag#12 CDB: opcode=0x2a 2a 00 08 d4 90 e0 00 00 50 00
[71806.588747] scsi host0: uas_eh_device_reset_handler start
[71806.677615] usb 2-1.1: reset SuperSpeed USB device number 3 using xhci_hcd
[71806.701724] scsi host0: uas_eh_device_reset_handler success
[71813.628015] xhci_hcd 0000:01:00.0: WARNING: Host System Error
[71818.804946] xhci_hcd [71818.807043] EXT4-fs error (device sda2) in ext4_reserve_inode_write:5692: Journal has aborted
0000:01:[71818.807517] EXT4-fs error (device sda2) in ext4_reserve_inode_write:5692: Journal has aborted
00.0: xH[71818.807720] EXT4-fs error (device sda2) in ext4_reserve_inode_write:5692: Journal has aborted
CI host [71818.807934] EXT4-fs error (device sda2): ext4_dirty_inode:5888: inode #922716: comm lighttpd: mark_inode_dirty error
[71818.808074] EXT4-fs error (device sda2): ext4_dirty_inode:5888: inode #1966103: comm systemd-journal: mark_inode_dirty error
[71818.808297] EXT4-fs error (device sda2) in __ext4_new_inode:1093: Journal has aborted
[71818.808437] EXT4-fs error (device sda2) in ext4_dirty_inode:5889: Journal has aborted
not resp[71818.808584] EXT4-fs error (device sda2) in ext4_dirty_inode:5889: Journal has aborted
onding t[71818.808734] EXT4-fs error (device sda2) in __ext4_new_inode:1093: Journal has aborted
o stop e[71818.808869] EXT4-fs error (device sda2): ext4_journal_check_start:83: comm lighttpd: Detected aborted journal
ndpoint [71818.812992] Read-error on swap-device (8:0:65177736)
command.[71818.813018] Read-error on swap-device (8:0:65177744)

[71818[71818.813031] Read-error on swap-device (8:0:65177752)
.804970][71818.813042] Read-error on swap-device (8:0:65177760)
 xhci_hc[71818.813053] Read-error on swap-device (8:0:65177768)
d 0000:0[71818.813064] Read-error on swap-device (8:0:65177776)
1:00.0: [71818.813075] Read-error on swap-device (8:0:65177784)
USBSTS: [71818.813086] Read-error on swap-device (8:0:65177792)
HCHalted HSE EINT
[71818.805011] xhci_hcd 0000:01:00.0: xHCI host controller not responding, assume dead
[71818.805108] xhci_hcd 0000:01:00.0: HC died; cleaning up
[71818.805215] usb 1-1: USB disconnect, device number 2
[71818.805235] usb 1-1.1: USB disconnect, device number 3
[71818.805252] usb 1-1.1.4: USB disconnect, device number 4
[71818.805268] usb 1-1.1.4.4: USB disconnect, device number 5
[71818.805506] usb 1-1.1.4.4.4: USB disconnect, device number 6
[71818.806330] usb 2-1: USB disconnect, device number 2
[71818.806353] usb 2-1.1: USB disconnect, device number 3
[71818.806642] sd 0:0:0:0: [sda] tag#23 uas_zap_pending 0 uas-tag 2 inflight: CMD
[71818.806659] sd 0:0:0:0: [sda] tag#23 CDB: opcode=0x2a 2a 00 02 4d 63 20 00 00 b8 00
[71818.806674] sd 0:0:0:0: [sda] tag#20 [71819.017600] Read-error on swap-device (8:0:65177672)

I'm now trying with disabled LPM.

Edit3: it died with LPM disabled. Right now the only working alternative seems to be using an HDD in the case instead of an SSD.

@P33M what should I look at next?

@tomikaa87
Copy link
Author

tomikaa87 commented Jun 30, 2022

It's really a strange issue. One would think that loading both the USB-SATA bridge and the USB controller should lead to a controller crash, but unfortunately not.

I've tried fio to stress the SSD with random 4K reads, but it didn't crash after a couple of hours. I used the following command line:

fio --name TEST --filename=temp.file --rw=randread --size=10g --io_size=100g --blocksize=4k --ioengine=libaio --fsync=1 --iodepth=64 --direct=1 --numjobs=32 --group_reporting

It doesn't just run fine, but easily produces 34k IOPS which seems reasonable for this configuration.

It's a significantly higher load that the Docker containers put on the system, yet it doesn't hang the xHCI controller.

The system also seems to be stable during a random 4K read-write test, but it's running only for a few minutes at the time I'm writing this. I use the following command:

fio --name TEST --filename=temp.file --rw=randrw --size=10g --io_size=10g --blocksize=4k --ioengine=libaio --fsync=1 --iodepth=1 --direct=1 --numjobs=64 --group_reporting

Edit: R/W test didn't crash after 1:30 hours.

Edit2: I'm running an xHCI trace overnight, it might help if the system crashes.

@tomikaa87
Copy link
Author

I've finished the xHCI tracing. It crashed after 2 days.

I saw a few CPU:<cpu number> [LOST EVENTS] lines.

When the file system first detected the error, these event were logged:

z_wr_int-1516174 [003] d..4. 146840.479095: xhci_queue_trb: STREAM: Buffer 000000044d948000 length 4096 TD size 0 intr 0 type 'Normal' flags b:i:I:c:s:i:e:C
        z_wr_int-1516174 [003] d..4. 146840.479096: xhci_inc_enq: STREAM 00000000522b5f79: enq 0x0000000441b66d20(0x0000000441b66000) deq 0x0000000441b66ce0(0x0000000441b66000) segs 2 stream 2 free_trbs 497 bounce 1024 cycle 1
        z_wr_int-1516174 [003] d..4. 146840.479097: xhci_ring_ep_doorbell: Ring doorbell for Slot 2 Stream 2
        z_wr_int-1516174 [003] d..3. 146840.479101: xhci_urb_enqueue: ep4out-bulk: urb 00000000f1504c87 pipe 3221357056 slot 2 length 0/32 sgs 0/0 stream 0 flags 00010100
        z_wr_int-1516174 [003] d..4. 146840.479102: xhci_queue_trb: BULK: Buffer 00000004a3219400 length 32 TD size 0 intr 0 type 'Normal' flags b:i:I:c:s:i:e:C
        z_wr_int-1516174 [003] d..4. 146840.479103: xhci_inc_enq: BULK 000000008743c171: enq 0x00000004419a7370(0x00000004419a7000) deq 0x00000004419a7360(0x00000004419a7000) segs 2 stream 0 free_trbs 500 bounce 1024 cycle 0
        z_wr_int-1516174 [003] d..4. 146840.479103: xhci_ring_ep_doorbell: Ring doorbell for Slot 2 ep4out
        z_wr_int-410     [001] d..3. 146840.479510: xhci_urb_enqueue: ep3in-bulk: urb 000000004646c083 pipe 3221324416 slot 2 length 0/112 sgs 0/0 stream 1 flags 00010300
        z_wr_int-410     [001] d..4. 146840.479513: xhci_queue_trb: STREAM: Buffer 000000045f595500 length 112 TD size 0 intr 0 type 'Normal' flags b:i:I:c:s:I:e:c
        z_wr_int-410     [001] d..4. 146840.479514: xhci_inc_enq: STREAM 0000000057d78eec: enq 0x000000044199e630(0x000000044199e000) deq 0x000000044199e620(0x000000044199e000) segs 2 stream 1 free_trbs 500 bounce 1024 cycle 1
        z_wr_int-410     [001] d..4. 146840.479515: xhci_ring_ep_doorbell: Ring doorbell for Slot  Stream 1
        z_wr_int-410     [001] d..3. 146840.479526: xhci_urb_enqueue: ep2out-bulk: urb 0000000007ed215d pipe 3221291520 slot 2 length 0/8192 sgs 2/2 stream 1 flags 00040000
        z_wr_int-410     [001] d..4. 146840.479528: xhci_queue_trb: STREAM: Buffer 0000000438cf4000 length 4096 TD size 4 intr 0 type 'Normal' flags b:i:i:C:s:i:e:c
        z_wr_int-410     [001] d..4. 146840.479528: xhci_inc_enq: STREAM 000000005820a4c6: enq 0x0000000441b63400(0x0000000441b63000) deq 0x0000000441b633f0(0x0000000441b63000) segs 2 stream 1 free_trbs 500 bounce 1024 cycle 1
        z_wr_int-410     [001] d..4. 146840.479529: xhci_queue_trb: STREAM: Buffer 0000000438cf5000 length 4096 TD size 0 intr 0 type 'Normal' flags b:i:I:c:s:i:e:C
        z_wr_int-410     [001] d..4. 146840.479530: xhci_inc_enq: STREAM 000000005820a4c6: enq 0x0000000441b63410(0x0000000441b63000) deq 0x0000000441b633f0(0x0000000441b63000) segs 2 stream 1 free_trbs 499 bounce 1024 cycle 1
        z_wr_int-410     [001] d..4. 146840.479531: xhci_ring_ep_doorbell: Ring doorbell for Slot 2 Stream 1
        z_wr_int-410     [001] d..3. 146840.479533: xhci_urb_enqueue: ep4out-bulk: urb 00000000622f87c6 pipe 3221357056 slot 2 length 0/32 sgs 0/0 stream 0 flags 00010100
        z_wr_int-[146953.369538] EXT4-fs error (device sda2): ext4_journal_check_start:83: comm kworker/u8:1: Detected aborted journal
410     [146953.369756] EXT4-fs (sda2): Delayed block allocation failed for inode 1968381 at logical offset 5790 with max blocks 1 with error 30
[146953.369775] EXT4-fs (sda2): This should not happen!! Data will be lost
[146953.369775] 
[146953.369801] EXT4-fs error (device sda2) in ext4_writepages:2792: Journal has aborted
[001] d.[146953.370397] EXT4-fs error (device sda2): ext4_journal_check_start:83: comm rs:main Q:Reg: Detected aborted journal
.4. 1468[146953.370504] EXT4-fs (sda2): Remounting filesystem read-only
40.47953[146953.377427] EXT4-fs (sda2): ext4_writepages: jbd2_start: 9223372036854775628 pages, ino 1966211; err -30
4: xhci_[146953.383819] EXT4-fs error (device sda2): ext4_wait_block_bitmap:533: comm in:imklog: Cannot read block bitmap - block_group = 233, block_bitmap = 7340041
queue_tr[146953.383893] EXT4-fs error (device sda2): ext4_discard_preallocations:5000: comm in:imklog: Error -5 loading buddy information for 233
b: BULK:[146953.401929] EXT4-fs (sda2): failed to convert unwritten extents to written extents -- potential data loss!  (inode 2120360, error -30)
 Buffer [146953.401989] EXT4-fs (sda2): failed to convert unwritten extents to written extents -- potential data loss!  (inode 2120362, error -30)
000000045f595680 length 32 TD size 0 intr 0 type 'Normal' flags b:i:I:c:s:i:e:C
        z_wr_int-410     [001] d..4. 146840.479535: xhci_inc_enq: BULK 000000008743c171: enq 0x00000004419a7380(0x00000004419a7000) deq 0x00000004419a7370(0x00000004419a7000) segs 2 stream 0 free_trbs 500 bounce 1024 cycle 0
        z_wr_int-410     [001] d..4. 146840.479537: xhci_ring_ep_doorbell: Ring doorbell for Slot 2 ep4out
        z_wr_int-410     [001] d..3. 146840.480696: xhci_urb_enqueue: ep3in-bulk:[146953.535132] EXT4-fs error (device sda2): __ext4_get_inode_loc_noinmem:4366: inode #2116: block 1194: comm (md-udevd): unable to read itable block
 urb 0000000050138434 pipe 3221324416 slot 2 length 0/112 sgs 0/0 stream 2 flags 00010300
        z_wr_int-410     [001] d..4. 146840.480699: xhci_queue_trb: STREAM: Buffer 000000045f595280 length 112 TD size 0 intr 0 type 'Normal' flags b:i:I:c:s:I:e:C
        z_wr_int-410     [001] d..4. 146840.480700: xhci_inc_enq: STREAM 000000002b5d9d30: enq 0x000000044199caa0(0x000000044199c000) deq 0x000000044199ca90(0x000000044199c000) segs 2 stream 2 free_trbs 500 bounce 1024 cycle 0
        z_wr_int-410     [001] d..4. 146840.480701: xhci_ring_ep_doorbell: Ring doorbell for Slot  Stream 2
        z_wr_int-410   [146953.602895] EXT4-fs error (device sda2): __ext4_get_inode_loc_noinmem:4366: inode #2116: block 1194: comm (md-udevd): unable to read itable block
  [001] d..3. 146840.480710: xhci_urb_enqueue: ep2out-bulk: urb 0000000051b044ad pipe 3221291520 slot 2 length 0/8192 sgs 2/2 stream 2 flags 00040000
        z_wr_int-410     [001] d..4. 146840.480712: xhci_queue_trb: STREAM: Buffer 0000000438cf6000 length 4096 TD size 4 intr 0 type 'Normal' fl[146953.641957] EXT4-fs error (device sda2): __ext4_get_inode_loc_noinmem:4366: inode #2366516: block 9437667: comm (zed): unable to read itable block
ags b:i:i:C:s:i:e:c
        z_wr_int-410     [001] d..4. 146840.480713: xhci_inc_enq: STREAM 0000000052[146953.664436] EXT4-fs error (device sda2): __ext4_find_entry:1614: inode #2115: comm (md-udevd): reading directory lblock 0
2b5f79: enq 0x0000000441b66d30(0x0000000441b66000) deq 0x0000000441b66d20(0x0000000441b66000) segs 2 stream 2 free_trbs 500 bounce 1024 cycle 1
        z_wr_int-410     [001] d..4. 146840.480713: xhci_queue_trb: STREAM: Buffer 0000000438cf7000 length 4096 TD size 0 intr 0 type 'Normal' flags b:i:I:c:s:i:e:C
        z_wr_int-410     [001] d..4. 146840.480714: xhci_inc_enq: STREAM 00000000522b5f79: enq 0x0000000441b66d40(0x0000000441b66000) deq 0x0000000441b66d20(0x0000000441b66000) segs 2 stream 2 free_trbs 499 bounce 1024 cycle 1
        z_wr_[146953.725207] EXT4-fs error (device sda2): __ext4_find_entry:1614: inode #2115: comm (md-udevd): reading directory lblock 0
int-410     [001] d..4. 146840.480715: xhci_ring_ep_doorbell: Ring doorbell for Slot 2 Stream 2
        z_wr_int-410     [001] d..3. 146840.480717: xhci_urb_enqueue: ep4out-bulk: urb 000000006a675781 pipe 3221357056 slot 2 length 0/32 sgs 0/0 stream 0 flags 00010100
        z_wr_int-410     [001] d..4. 146840.480720: xhci_queue_trb: BULK: Buffer 000000045f595700 length 32 TD size 0 intr 0 type 'Normal' flags b:i:I:c:s:i:e:C
        z_wr_int-410     [001] d..4. 146840.480721: xhci_inc_enq: BULK 000000008743c171: enq 0x00000004419a7390(0x00000004419a7000) deq 0x00000004419a7380(0x00000004419a7000) segs 2 stream 0 free_trbs 500 bounce 1024 cycle 0
        z_wr_int-410     [001] d..4. 146840.480721: xhci_ring_ep_doorbell: Ring doorbell for Slot 2 ep4out

After that, just before the controller died, I saw these:

          <idle>-0       [000] dNs2. 146953.345182: xhci_urb_giveback: ep3in-bulk: urb 0000000051b044ad pipe 3221324416 slot 2 length 0/112 sgs 0/0 stream 26 flags 00010300
          <idle>-0       [000] dNs2. 146953.345184: xhci_dbg_cancel_urb: Killing URBs for slot ID 2, ep index 6, stream 27
          <idle>-0       [000] dNs2. 146953.345187: xhci_urb_giveback: ep3in-bulk: urb 00000000622f87c6 pipe 3221324416 slot 2 length 0/112 sgs 0/0 stream 27 flags 00010300
          <idle>-0       [000] dNs2. 146953.345188: xhci_dbg_cancel_urb: Killing URBs for slot ID 2, ep index 6, stream 28
          <idle>-0       [000] dNs2. 146953.345191: xhci_urb_giveback: ep3in-bulk: urb 000000003a3b1c3e pipe 3221324416 slot 2 length 0/112 sgs 0/0 stream 28 flags 00010300
          <idle>-0       [000] dNs2. 146953.345192: xhci_dbg_cancel_urb: Killing URBs for slot ID 2, ep index 6, stream 29
          <idle>-0       [000] dNs2. 146953.345197: xhci_urb_giveback: ep3in-bulk: urb 00000000cef798b4 pipe 3221324416 slot 2 length 0/112 sgs 0/0 stream 29 flags 00010300
          <idle>-0       [000] dNs2. 146953.345198: xhci_dbg_cancel_urb: Killing URBs for slot ID 2, ep index 6, stream 30
          <idle>-0       [000] dNs2. 146953.345200: xhci_dbg_cancel_urb: Killing URBs for slot ID 2, ep index 6, stream 31
          <idle>-0       [000] dNs2. 146953.345203: xhci_dbg_cancel_urb: Killing URBs for slot ID 2, ep index 7
          <idle>-0       [000] .Ns1. 146953.345238: xhci_dbg_cancel_urb: xHCI host controller is dead.
     kworker/0:1-1481649 [000] ..... 146953.347009: xhci_free_dev: RS 00000 high-speed Hub Ctx Entries 3 MEL 0 us Port# 1/4 [TT Slot 0 Port# 0 TTT 3 Intr 0] Addr 1 State configured
     kworker/0:1-1481649 [000] ..... 146953.347338: xhci_free_virt_device: vdev 0000000066dfecce ctx 44197f000 | 44197d000 fake_port 1 real_port 1 current_mel 0
     kworker/0:1-1481649 [000] ..... 146953.347341: xhci_ring_free: CTRL 0000000078f1104e: enq 0x0000000441980390(0x0000000441980000) deq 0x0000000441980390(0x0000000441980000) segs 2 stream 0 free_trbs 501 bounce 0 cycle 1
     kworker/0:1-1481649 [000] ..... 146953.347393: xhci_ring_free: INTR 000000004a8179e5: enq 0x0000000441989010(0x0000000441989000) deq 0x0000000441989010(0x0000000441989000) segs 2 stream 0 free_trbs 501 bounce 1 cycle 1
     kworker/0:1-1481649 [000] ..... 146954.125784: xhci_free_dev: RS 00000 super-speed Ctx Entries 8 MEL 2050 us Port# 2/0 [TT Slot 0 Port# 0 TTT 0 Intr 0] Addr 2 State configured
     kworker/0:1-1481649 [000] ..... 146954.126118: xhci_free_virt_device: vdev 000000008dedafd3 ctx 441983000 | 441982000 fake_port 1 real_port 2 current_mel 2050
     kworker/0:1-1481649 [000] ..... 146954.126120: xhci_ring_free: CTRL 0000000080657522: enq 0x0000000441984620(0x0000000441984000) deq 0x0000000441984620(0x0000000441984000) segs 2 stream 0 free_trbs 501 bounce 0 cycle 1
     kworker/0:1-1481649 [000] ..... 146954.126154: xhci_ring_free: BULK 000000001cf50f3b: enq 0x0000000441be0000(0x0000000441be0000) deq 0x0000000441be0000(0x0000000441be0000) segs 2 stream 0 free_trbs 501 bounce 1024 cycle 1
     kworker/0:1-1481649 [000] ..... 146954.126159: xhci_ring_free: STREAM 00000000f909bbb5: enq 0x0000000441b58000(0x0000000441b58000) deq 0x0000000441b58000(0x0000000441b58000) segs 2 stream 1 free_trbs 501 bounce 1024 cycle 1
     kworker/0:1-1481649 [000] ..... 146954.126170: xhci_ring_free: STREAM 00000000bcab0624: enq 0x0000000441b56000(0x0000000441b56000) deq 0x0000000441b56000(0x0000000441b56000) segs 2 stream 2 free_trbs 501 bounce 1024 cycle 1
     kworker/0:1-1481649 [000] ..... 146954.126179: xhci_ring_free: STREAM 00000000af07a6e6: enq 0x0000000441b53000(0x0000000441b53000) deq 0x0000000441b53000(0x0000000441b53000) segs 2 stream 3 free_trbs 501 bounce 1024 cycle 1

I've uploaded the full log file (1.3 GiB) zipped: https://www.icloud.com/iclouddrive/0fePUI0rqF_J_XGW_2BgkwORg#putty
@P33M if you have time, can you please check it to see if there is anything suspicious?

@tomikaa87
Copy link
Author

It's very likely that this issue has to do something with the one that has been reported more than 2 years ago and still not resolved: #3404

@gtirloni
Copy link

gtirloni commented Jul 8, 2022

Just wanted to chime in and say I'm having the exact same issue (so I won't post lenghy details). It seems we're using the exact same ASMedia chip as well.

Raspberry Pi 4B 8GB with external disk case connected to USB 3.0 port using a Kingston SV300S37A240G SSD.

# lsusb -tv
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
        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 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 2109:3431 VIA Labs, Inc. Hub

After the error happens, unplugging/plugging the disk makes no difference (the disk is gone and nothing is detected or shows up in dmesg). I have to reboot the device to get the disk detected again.

@tomikaa87
Copy link
Author

@gtirloni Can you try it with a powered USB 3.0 hub just to be sure it's not power related?

@gtirloni
Copy link

gtirloni commented Jul 8, 2022

@tomikaa87 sure, just connected them with a powered USB 3.0 hub. It seems to be working and I'm sync'ing about 100GB to it. I'll report back soon.

@tomikaa87
Copy link
Author

@gtirloni thanks. If it's really the same issue, it should not crash when you copy a large data set. It seems to be sensitive to short I/O operations issued during a longer period of time (1-2 days in my case). I couldn't make it crash by copying 200+ GBytes of data.

@tomikaa87
Copy link
Author

I did a fresh install of the previous LTS version of Ubuntu Server (20.04), which has a 5.4.0-1065-raspi #75-Ubuntu kernel, but the issue didn't go away. The system is now on an SD card.

journalctl has the following errors:

Jul 14 08:53:01 services kernel: xhci_hcd 0000:01:00.0: WARNING: Host System Error
Jul 14 08:53:06 services kernel: xhci_hcd 0000:01:00.0: xHCI host not responding to stop endpoint command.
Jul 14 08:53:06 services kernel: xhci_hcd 0000:01:00.0: xHCI host controller not responding, assume dead
Jul 14 08:53:06 services kernel: xhci_hcd 0000:01:00.0: HC died; cleaning up
Jul 14 08:53:06 services kernel: blk_update_request: I/O error, dev sda, sector 104459696 op 0x1:(WRITE) flags 0x700 phys_seg 32 prio class 0
Jul 14 08:53:06 services kernel: zio pool=tank vdev=/dev/sda3 error=5 type=2 offset=10532642816 size=131072 flags=184880

I can't see the drive even if I unplug and re-plug it.

@lucidpuppy
Copy link

lucidpuppy commented Jul 14, 2022

I'm seeing similar error on my Raspberry pi 4B 8GB, connected to Seagate External HDD via Orico USB Hub(externally powered, uses chip VL817)

[ 1.422691] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[ 1.424799] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[ 1.424838] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.424866] usb usb1: Product: xHCI Host Controller
[ 1.424889] usb usb1: Manufacturer: Linux 5.15.32-v8+ xhci-hcd
[ 1.424911] usb usb1: SerialNumber: 0000:01:00.0
[ 1.425645] hub 1-0:1.0: USB hub found
[ 1.426519] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 1.426557] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 1.427021] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[ 1.427057] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.427085] usb usb2: Product: xHCI Host Controller
[ 1.427107] usb usb2: Manufacturer: Linux 5.15.32-v8+ xhci-hcd
[ 1.427130] usb usb2: SerialNumber: 0000:01:00.0
[ 1.427811] hub 2-0:1.0: USB hub found
[ 1.430461] usbcore: registered new interface driver uas
[ 1.430571] usbcore: registered new interface driver usb-storage
[ 1.441388] usbcore: registered new interface driver usbhid
[ 1.441412] usbhid: USB HID core driver
[ 1.678436] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 1.829335] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 1.829394] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.829422] usb 1-1: Product: USB2.0 Hub
[ 1.831271] hub 1-1:1.0: USB hub found
[ 1.954928] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[ 1.976975] usb 2-1: New USB device found, idVendor=2109, idProduct=0817, bcdDevice= 2.14
[ 1.977034] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.977062] usb 2-1: Product: USB3.0 Hub
[ 1.977085] usb 2-1: Manufacturer: VIA Labs, Inc.
[ 1.980732] hub 2-1:1.0: USB hub found
[ 2.126410] usb 1-1.1: new high-speed USB device number 3 using xhci_hcd
[ 2.232502] usb 1-1.1: New USB device found, idVendor=2109, idProduct=2817, bcdDevice= 2.14
[ 2.232564] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.232593] usb 1-1.1: Product: USB2.0 Hub
[ 2.232617] usb 1-1.1: Manufacturer: VIA Labs, Inc.
[ 2.234472] hub 1-1.1:1.0: USB hub found
[ 2.554785] usb 2-1.3: new SuperSpeed USB device number 3 using xhci_hcd
[ 2.576506] usb 2-1.3: New USB device found, idVendor=0bc2, idProduct=231a, bcdDevice= 7.08
[ 2.576566] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.576595] usb 2-1.3: Product: Expansion
[ 2.576618] usb 2-1.3: Manufacturer: Seagate
[ 2.576640] usb 2-1.3: SerialNumber: NAA3CXYQ
[ 6.752599] usbcore: registered new interface driver brcmfmac
[ 37.991141] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 83.930946] xhci_hcd 0000:01:00.0: USBSTS: HCHalted HSE EINT
[ 83.931102] usb 1-1: USB disconnect, device number 2
[ 83.931111] usb 1-1.1: USB disconnect, device number 3
[ 83.931159] usb 2-1: USB disconnect, device number 2
[ 83.931166] usb 2-1.3: USB disconnect, device number 3

brian@parmesan:/ $ lsusb -tv
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
ID 1d6b:0003 Linux Foundation 3.0 root hub
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub

p.s.
Its been 2 weeks I've been trying to connect Raspberry pi with my 4TB External drive, without the USB hub it works for little while but ultimately I see wifi dropping both 2.4GHz and 5GHz. With USB hub, this is what I see -_-

@tomikaa87
Copy link
Author

tomikaa87 commented Jul 14, 2022

@you-are-invited thanks for the info.

I tried to find images of the controller board your HDD has and probably found one that might match, and I see an ASMedia controller, but it's possible that your drive has a totally different type (JMicron for instance). Can you somehow check which one you have? Unfortunately the only way to be sure is to look at the chip on the controller board. If you can and want to do this, you should look at the biggest IC with the most legs/solder pads and write down the model number as well (a string that looks like ASM225CM or JMS567 etc.)

The strange thing is that I didn't have any issues when I put an HDD in the case, only with SSDs, but I can imagine that another controller might have problems with all kinds of disks.

@lucidpuppy
Copy link

lucidpuppy commented Jul 15, 2022

Anyways, I followed this sticky:

https://forums.raspberrypi.com/viewtopic.php?f=28&t=245931
It doesn't crashes anymore. But I do see very frequent "reset SuperSpeed USB device number 3 using xhci_hcd"

also indepth post I found related to the same problem:
https://forums.raspberrypi.com/viewtopic.php?t=258242&start=25

[ 1.453858] usbhid: USB HID core driver
[ 1.690736] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 1.841618] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 1.841679] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.841706] usb 1-1: Product: USB2.0 Hub
[ 1.843432] hub 1-1:1.0: USB hub found
[ 1.967202] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[ 1.989280] usb 2-1: New USB device found, idVendor=2109, idProduct=0817, bcdDevice= 2.14
[ 1.989350] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.989376] usb 2-1: Product: USB3.0 Hub
[ 1.989399] usb 2-1: Manufacturer: VIA Labs, Inc.
[ 1.992990] hub 2-1:1.0: USB hub found
[ 2.138751] usb 1-1.1: new high-speed USB device number 3 using xhci_hcd
[ 2.240809] usb 1-1.1: New USB device found, idVendor=2109, idProduct=2817, bcdDevice= 2.14
[ 2.240867] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.240896] usb 1-1.1: Product: USB2.0 Hub
[ 2.240920] usb 1-1.1: Manufacturer: VIA Labs, Inc.
[ 2.242800] hub 1-1.1:1.0: USB hub found
[ 2.551104] usb 2-1.3: new SuperSpeed USB device number 3 using xhci_hcd
[ 2.572853] usb 2-1.3: New USB device found, idVendor=0bc2, idProduct=231a, bcdDevice= 7.08
[ 2.572911] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.572940] usb 2-1.3: Product: Expansion
[ 2.572963] usb 2-1.3: Manufacturer: Seagate
[ 2.572985] usb 2-1.3: SerialNumber: NAA3CXYQ
[ 2.588884] usb 2-1.3: UAS is ignored for this device, using usb-storage instead
[ 2.589042] usb 2-1.3: UAS is ignored for this device, using usb-storage instead
[ 2.589074] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[ 2.589631] usb-storage 2-1.3:1.0: Quirks match for vid 0bc2 pid 231a: 800000
[ 2.589865] scsi host0: usb-storage 2-1.3:1.0
[ 7.715047] usbcore: registered new interface driver brcmfmac
[ 8.959644] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 9.947690] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 10.359678] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 11.115280] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 11.563308] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 11.987289] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 12.423308] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 12.871338] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 13.287319] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 13.471323] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 13.891286] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 14.319326] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 14.775714] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 15.191309] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 15.643347] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd

Update1:
I let it soak overnight, had some backup's and downloads running.

brian@parmesan:/media/jamun $ ls
ls: reading directory '.': Input/output error

Doesn't look well!!

[ 1009.106954] usb 2-1.3: USB disconnect, device number 3
[ 1009.563120] usb 2-1.3: device not accepting address 3, error -22
[ 1010.059117] usb 2-1.3: device not accepting address 3, error -22
[ 1010.555119] usb 2-1.3: device not accepting address 3, error -22
[ 1011.051123] usb 2-1.3: device not accepting address 3, error -22
[ 1012.063745] usb 2-1: reset SuperSpeed USB device number 2 using xhci_hcd
[ 1012.639416] usb 2-1.3: new SuperSpeed USB device number 4 using xhci_hcd
[ 1012.660716] usb 2-1.3: New USB device found, idVendor=0bc2, idProduct=231a, bcdDevice= 7.08
[ 1012.660731] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1012.660737] usb 2-1.3: Product: Expansion
[ 1012.660742] usb 2-1.3: Manufacturer: Seagate
[ 1012.660746] usb 2-1.3: SerialNumber: NAA3CXYQ
[ 1012.675651] usb 2-1.3: UAS is ignored for this device, using usb-storage instead
[ 1012.675701] usb 2-1.3: UAS is ignored for this device, using usb-storage instead
[ 1012.675707] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[ 1012.675958] usb-storage 2-1.3:1.0: Quirks match for vid 0bc2 pid 231a: 800000
[ 1012.676034] scsi host1: usb-storage 2-1.3:1.0
[ 1013.995733] usb 2-1.3: reset SuperSpeed USB device number 4 using xhci_hcd
[ 1014.543722] usb 2-1.3: reset SuperSpeed USB device number 4 using xhci_hcd
[ 1014.951731] usb 2-1.3: reset SuperSpeed USB device number 4 using xhci_hcd

@tomikaa87
Copy link
Author

@you-are-invited UAS quirks (essentially falling back to BOT protocol) doesn’t seem to help. I’ve tried it multiple times in various configurations, but at the end the xHCI controller died anyway.

@P33M
Copy link
Contributor

P33M commented Jul 15, 2022

One possibility is a malformed packet over PCIe is causing target or completer aborts (which the xhci controller generally can't recover from). One way in which this can happen is marginal silicon that needs more volts to be stable.

What happens if you specify over_voltage=2 in /boot/config.txt?

@tomikaa87
Copy link
Author

tomikaa87 commented Jul 15, 2022

What happens if you specify over_voltage=2 in /boot/config.txt?

I've tried that just forgot to mention, it didn't change anything other than the base temperature of the SoC. I also tried with forced turbo mode to see if CPU clock switching causes it, but nothing.

@P33M is there a possibility that this is a bug in the VL805 firmware? If there is, do you have a way to debug it and report it to VIA Labs so they can release an updated version?

@P33M
Copy link
Contributor

P33M commented Jul 15, 2022

I suppose the acid test would be to swap the Pi4 board for another, keeping all other components exactly the same (and the same VLI firmware version), and seeing if the crash still happens.

@tomikaa87
Copy link
Author

That's doable, I have another Pi4 (rev 1.5, 8GB), but @you-are-invited ran into this problem with that same exact board version.

@gtirloni
Copy link

Just wanted to report that my RPI 4B 8GB has been running stable for days after connecting the SSD to a powered USB 3.0 hub.

@tomikaa87
Copy link
Author

@P33M tried the 8GB Pi4, but no difference. Same VL805 firmware.

@P33M
Copy link
Contributor

P33M commented Jul 18, 2022

Well at least that should eliminate a hardware fault within the Pi as a cause. "Crashes randomly after 1-2 days" isn't going to be reproducible here.

One thing I note is that in the trace, both reads and writes are simultaneously queued after a period of infrequent activity. Are there FIO settings that cause large UAS queue depths for both read and write (32 tags for each), and does this make things crash faster?

@tomikaa87
Copy link
Author

tomikaa87 commented Jul 18, 2022

I'm trying with this, but nothing yet:

fio --name TEST --filename=temp.file --rw=randrw --size=2g --io_size=10g --blocksize=4k --ioengine=libaio --fsync=1 --iodepth=1024 --direct=1 --numjobs=16 --group_reporting

I/O depth is 1024 and I'd assume for randrw test it means both read and write queues.

@P33M unfortunately I didn't find a way to crash the system with FIO. I tried various IO depths ranging from 32 to 1024. Also experimented with numjobs, but the system stayed stable even with 128 jobs. I was absolutely hammering the disk but not a single UAS error was in dmesg. The Docker containers I use put a different load on it. The heaviest one is Grafana with Prometheus. It writes at 400 KB/s in average because Prometheus collects the data samples every 15 seconds. So it's not a constant load, but small bursts. I also tested the system by moving Prometheus's data to a network share and the USB controller still crashed.

@yangxiao989
Copy link

yangxiao989 commented Jul 19, 2022

I have met same problems. I connected a 3.0 hub with two 3.0 udisks to my broad and tried "dd if=/run/media/sdb1/b.log of=/run/media/sda1/11.log bs=2MB count=1024". And then problem happend. But I replace the 3.0 hub with a 2.0 hub, it works well.

@yangxiao989
Copy link

yangxiao989 commented Jul 19, 2022

here is the log:

[13186.058161] LOG xhci_urb_dequeue 1549
[13186.062877] LOG xhci_urb_dequeue 1549
[13191.165960] LOG xhci_stop_endpoint_command_watchdog 961
[13191.166040] LOG xhci_stop_endpoint_command_watchdog 961
[13191.174195] xhci-hcd xhci-hcd.0.auto: xHCI host controller not responding, assume dead
[13191.174537] hub 2-1:1.0: hub_ext_port_status failed (err = -22)
[13191.174591] usb 2-1-port3: cannot reset (err = -22)
[13191.174635] usb 2-1-port3: cannot reset (err = -22)
[13191.174676] usb 2-1-port3: cannot reset (err = -22)
[13191.174714] usb 2-1-port3: cannot reset (err = -22)
[13191.174752] usb 2-1-port3: cannot reset (err = -22)
[13191.174771] usb 2-1-port3: Cannot enable. Maybe the USB cable is bad?
[13191.174814] usb 2-1-port3: cannot disable (err = -22)
[13191.174876] hub 2-1:1.0: hub_ext_port_status failed (err = -22)
[13191.174916] usb 2-1-port3: cannot reset (err = -22)
[13191.174953] usb 2-1-port3: cannot reset (err = -22)
[13191.174990] usb 2-1-port3: cannot reset (err = -22)
[13191.175025] usb 2-1-port3: cannot reset (err = -22)
[13191.175063] usb 2-1-port3: cannot reset (err = -22)
[13191.175082] usb 2-1-port3: Cannot enable. Maybe the USB cable is bad?
[13191.175103] xhci-hcd xhci-hcd.0.auto: HC died; cleaning up
[13191.175121] usb 2-1-port3: cannot disable (err = -22)
[13191.175183] hub 2-1:1.0: hub_ext_port_status failed (err = -22)
[13191.294601] print_req_error: I/O error, dev sdb, sector 18902824
[13191.338621] print_req_error: I/O error, dev sda, sector 56040064
[13191.348613] FAT-fs (sda1): FAT read failed (blocknr 13956)
[13191.352478] print_req_error: I/O error, dev sda, sector 56042112
[13191.424874] FAT-fs (sda1): FAT read failed (blocknr 13956)
[13191.438964] FAT-fs (sdb1): FAT read failed (blocknr 8050)
[13191.444686] FAT-fs (sdb1): FAT read failed (blocknr 8050)
[13191.450351] FAT-fs (sdb1): FAT read failed (blocknr 8050)
[13191.455816] FAT-fs (sdb1): FAT read failed (blocknr 8050)
[13191.461251] FAT-fs (sdb1): FAT read failed (blocknr 8050)
[13191.466712] FAT-fs (sdb1): FAT read failed (blocknr 8050)

@tomikaa87
Copy link
Author

tomikaa87 commented Jul 19, 2022

@yangxiao989 can you show us the output of lsusb -tv, sudo rpi-eeprom-update, uname -a, lshw and usb-devices commands?

@yangxiao989
Copy link

@yangxiao989 can you show us the output of lsusb -tv, sudo rpi-eeprom-update, uname -a, lshw and usb-devices commands?

Sry, I don't have a raspberrypi. I just google for the similiar err and then found this page. But when I tried 'lsusb' after xhci died, only usb controller can be seen while hub or udisks were dismissed.

@JamesH65
Copy link
Contributor

@yangxiao989 can you show us the output of lsusb -tv, sudo rpi-eeprom-update, uname -a, lshw and usb-devices commands?

Sry, I don't have a raspberrypi. I just google for the similiar err and then found this page. But when I tried 'lsusb' after xhci died, only usb controller can be seen while hub or udisks were dismissed.

This repo and tracker is specifically for Raspberry Pi problems only.

@tikurion
Copy link

I'm also suffering from this.

  • Raspberry Pi 4 Model B Rev 1.4, 8 GB version

  • Official power supply

  • Ubuntu 22.04.3, fully up to date

  • ID 152d:0583 JMicron Technology Corp. / JMicron USA Technology Corp. JMS583Gen 2 to PCIe Gen3x2 Bridge, directly attached to the USB 3 port, no hub (powered or unpowered)

  • Disk: Crucial CT500MX500SSD1

Also switched over to USB 2, which isn't a huge loss in my case, since it's pretty much only used for a Nextcloud instance. Would still prefer a proper solution, mind you :).

Sadly the log didn't get captured, since it affects my root file system (ZFS), so the best I can do is a screenshot:

xhci

uname -a: Linux pi4-ubuntu 5.15.0-1037-raspi #40-Ubuntu SMP PREEMPT Fri Aug 25 16:42:00 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

sudo rpi-eeprom-update:

BOOTLOADER: up to date
   CURRENT: Wed Jan 11 17:40:52 UTC 2023 (1673458852)
    LATEST: Tue Jan 25 14:30:41 UTC 2022 (1643121041)
   RELEASE: default (/lib/firmware/raspberrypi/bootloader/default)
            Use raspi-config to change the release.

  VL805_FW: Using bootloader EEPROM
     VL805: up to date
   CURRENT: 000138c0
    LATEST: 000138c0

@barart
Copy link

barart commented Sep 20, 2023

Im having exactly the same problem:

[12331.883614] xhci_hcd 0000:01:00.0: WARNING: Host System Error*
[12336.978570] xhci_hcd 0000:01:00.0: xHCI host not responding to stop endpoint command*
[12336.978588] xhci_hcd 0000:01:00.0: xHCI host controller not responding, assume dead*

I found that i have the same ASM1153, but in my case, i had this enclosure for more than a year on the my raspberry pi 4 working without any problem, let me explain:

First i had a Raspberry Pi 4 Model B Rev 1.1 4GB using this enclosure alone for more than 4 years without any issues, then like 3 years ago, i attatched a 10TB Seagate external drive, the two lived together without any problem during all these years.

3 months ago, i switched my raspberry to this one: Raspberry Pi 4 Model B Rev 1.5 with 8GB, i just switched everything and everything worked as before.

Past week i needed to add a new ssd, so, in order to use all 3 disk with the usb 3 ports of raspsberry pi i bought this hub: https://www.waveshare.com/wiki/USB3.2-Gen1-HUB-2IN-4OUT and as soon as i attatched this hub with the 3rd disk i have been experienced the problem on this issue.

My tests:

  • Powered hub or un-powered hub makes no difference
  • If hub is powered i need to reboot both raspberry and hub in order to re-attatch disks
  • I already tried to connect 3 disk directly on the raspberry (without hub), no difference
  • Change order of the disk in hub and rpi ports, no difference
  • upgrade my pi, rpi-update too, no difference
  • Change cords, no difference

Im using Official Pi 4 power supply also

Here are my command outputs:

lsusb -tv:

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
        ID 2109:0817 VIA Labs, Inc. 
        |__ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=uas, 5000M
            ID 0bc2:331a Seagate RSS LLC Desktop HDD 5TB (ST5000DM000)
        |__ Port 3: Dev 5, If 0, Class=Mass Storage, Driver=uas, 5000M
            ID aabb:1122  
    |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
        ID 174c:1153 ASMedia Technology Inc. ASM1153 SATA 3Gb/s bridge
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 2109:3431 VIA Labs, Inc. Hub
        |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
            ID 2109:2817 VIA Labs, Inc. 

sudo rpi-eeprom-update:

BOOTLOADER: up to date
   CURRENT: Wed 11 Jan 17:40:52 UTC 2023 (1673458852)
    LATEST: Wed 11 Jan 17:40:52 UTC 2023 (1673458852)
   RELEASE: default (/lib/firmware/raspberrypi/bootloader/default)
            Use raspi-config to change the release.

  VL805_FW: Using bootloader EEPROM
     VL805: up to date
   CURRENT: 000138c0
    LATEST: 000138c0

uname -a:

Linux raspberry 6.1.53-v8+ #1680 SMP PREEMPT Wed Sep 13 18:09:06 BST 2023 aarch64 GNU/Linux

sudo lshw:

raspberry        
    description: Computer
    product: Raspberry Pi 4 Model B Rev 1.5
    serial: 10000000a9c85b15
    width: 64 bits
    capabilities: smp cp15_barrier setend swp tagged_addr_disabled
  *-core
       description: Motherboard
       physical id: 0
     *-cpu:0
          description: CPU
          product: cpu
          physical id: 1
          bus info: cpu@0
          size: 1800MHz
          capacity: 1800MHz
          capabilities: fp asimd evtstrm crc32 cpuid cpufreq
        *-cache
             description: L1 Cache
             physical id: 0
             size: 32KiB
     *-cpu:1
          description: CPU
          product: cpu
          physical id: 2
          bus info: cpu@1
          size: 1800MHz
          capacity: 1800MHz
          capabilities: fp asimd evtstrm crc32 cpuid cpufreq
        *-cache
             description: L1 Cache
             physical id: 0
             size: 32KiB
     *-cpu:2
          description: CPU
          product: cpu
          physical id: 3
          bus info: cpu@2
          size: 1800MHz
          capacity: 1800MHz
          capabilities: fp asimd evtstrm crc32 cpuid cpufreq
        *-cache
             description: L1 Cache
             physical id: 0
             size: 32KiB
     *-cpu:3
          description: CPU
          product: cpu
          physical id: 4
          bus info: cpu@3
          size: 1800MHz
          capacity: 1800MHz
          capabilities: fp asimd evtstrm crc32 cpuid cpufreq
        *-cache
             description: L1 Cache
             physical id: 0
             size: 32KiB
     *-cpu:4 DISABLED
          description: CPU
          product: l2-cache0
          physical id: 5
          bus info: cpu@4
     *-memory
          description: System memory
          physical id: 6
          size: 7811MiB
     *-pci
          description: PCI bridge
          product: BCM2711 PCIe Bridge
          vendor: Broadcom Inc. and subsidiaries
          physical id: 0
          bus info: pci@0000:00:00.0
          version: 20
          width: 32 bits
          clock: 33MHz
          capabilities: pci pm pciexpress normal_decode bus_master cap_list
          resources: memory:600000000-6000fffff
        *-usb
             description: USB controller
             product: VL805 USB 3.0 Host Controller
             vendor: VIA Technologies, Inc.
             physical id: 0
             bus info: pci@0000:01:00.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi pciexpress xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:34 memory:600000000-600000fff
           *-usbhost:0
                product: xHCI Host Controller
                vendor: Linux 6.1.53-v8+ xhci-hcd
                physical id: 0
                bus info: usb@1
                logical name: usb1
                version: 6.01
                capabilities: usb-2.00
                configuration: driver=hub slots=1 speed=480Mbit/s
              *-usb
                   description: USB hub
                   product: USB2.0 Hub
                   vendor: VIA Labs, Inc.
                   physical id: 1
                   bus info: usb@1:1
                   version: 4.21
                   capabilities: usb-2.10
                   configuration: driver=hub maxpower=100mA slots=4 speed=480Mbit/s
                 *-usb
                      description: USB hub
                      product: USB2.0 Hub
                      vendor: VIA Labs, Inc.
                      physical id: 1
                      bus info: usb@1:1.1
                      version: 90.23
                      capabilities: usb-2.10
                      configuration: driver=hub slots=4 speed=480Mbit/s
           *-usbhost:1
                product: xHCI Host Controller
                vendor: Linux 6.1.53-v8+ xhci-hcd
                physical id: 1
                bus info: usb@2
                logical name: usb2
                version: 6.01
                capabilities: usb-3.00
                configuration: driver=hub slots=4 speed=5000Mbit/s
              *-usb:0
                   description: USB hub
                   product: USB3.0 Hub
                   vendor: VIA Labs, Inc.
                   physical id: 1
                   bus info: usb@2:1
                   version: 90.23
                   capabilities: usb-3.10
                   configuration: driver=hub slots=4 speed=5000Mbit/s
                 *-usb:0
                      description: Mass storage device
                      product: Expansion Desk
                      vendor: Seagate
                      physical id: 2
                      bus info: usb@2:1.2
                      logical name: scsi1
                      version: 9.15
                      serial: NAABMM6H
                      capabilities: usb-3.00 scsi
                      configuration: driver=uas maxpower=8mA speed=5000Mbit/s
                    *-disk
                         description: SCSI Disk
                         product: Expansion Desk
                         vendor: Seagate
                         physical id: 0.0.0
                         bus info: scsi@1:0.0.0
                         logical name: /dev/sda
                         version: 0915
                         serial: NAABMM6H
                         size: 9313GiB (10TB)
                         capabilities: gpt-1.00 partitioned partitioned:gpt
                         configuration: ansiversion=6 guid=9084d0ae-aa90-4eb6-a302-c245af757a7c logicalsectorsize=512 sectorsize=4096
                       *-volume
                            description: EXT4 volume
                            vendor: Linux
                            physical id: 1
                            bus info: scsi@1:0.0.0,1
                            logical name: /dev/sda1
                            logical name: /home3
                            version: 1.0
                            serial: 8fe2c939-121e-4618-bca3-de3f011c2f33
                            size: 9313GiB
                            capabilities: journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized
                            configuration: created=2021-07-05 12:03:31 filesystem=ext4 label=teras lastmountpoint=/completas modified=2023-09-19 16:43:10 mount.fstype=ext4 mount.options=rw,relatime mounted=2023-09-19 16:43:10 state=mounted
                 *-usb:1
                      description: Mass storage device
                      product: 3639S
                      vendor: Initio
                      physical id: 3
                      bus info: usb@2:1.3
                      logical name: scsi2
                      version: 9.59
                      serial: TEST000004C2
                      capabilities: usb-3.20 scsi
                      configuration: driver=uas maxpower=8mA speed=5000Mbit/s
                    *-disk
                         description: EXT4 volume
                         product: 3639S
                         vendor: Linux
                         physical id: 0.0.0
                         bus info: scsi@2:0.0.0
                         logical name: /dev/sdb
                         logical name: /home4
                         version: 1.0
                         serial: b280ef65-c00e-47a6-9918-aa26499a9441
                         size: 111GiB
                         capabilities: journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized
                         configuration: ansiversion=6 created=2023-08-25 12:14:33 filesystem=ext4 lastmountpoint=/data logicalsectorsize=512 modified=2023-09-19 16:43:09 mount.fstype=ext4 mount.options=rw,relatime,stripe=8191 mounted=2023-09-19 16:43:09 sectorsize=512 state=mounted
              *-usb:1
                   description: Mass storage device
                   product: AS2115
                   vendor: ASMedia
                   physical id: 2
                   bus info: usb@2:2
                   logical name: scsi0
                   version: 0.01
                   serial: 00000000000000000000
                   capabilities: usb-3.00 scsi emulated
                   configuration: driver=usb-storage speed=5000Mbit/s
                 *-disk
                      description: SCSI Disk
                      product: 2115
                      vendor: ASMT
                      physical id: 0.0.0
                      bus info: scsi@0:0.0.0
                      logical name: /dev/sdc
                      version: 0
                      serial: 00000000000000000000
                      size: 1788GiB (1920GB)
                      capabilities: gpt-1.00 partitioned partitioned:gpt
                      configuration: ansiversion=6 guid=1114ce77-6bc3-4d0d-8dba-84774870d943 logicalsectorsize=512 sectorsize=512
                    *-volume
                         description: EXT4 volume
                         vendor: Linux
                         physical id: 1
                         bus info: scsi@0:0.0.0,1
                         logical name: /dev/sdc1
                         logical name: /home2
                         version: 1.0
                         serial: 4fee5f34-5a4b-4b71-8ac4-3ddcf2feee26
                         size: 1788GiB
                         capacity: 1788GiB
                         capabilities: journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
                         configuration: created=2016-03-16 14:51:45 filesystem=ext4 label=backups lastmountpoint=/home2 modified=2023-09-19 16:37:35 mount.fstype=ext4 mount.options=rw,relatime mounted=2023-09-19 16:37:35 state=mounted
  *-network:0
       description: Ethernet interface
       physical id: 1
       logical name: eth0
       serial: d8:3a:dd:19:4e:fd
       size: 1Gbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=bcmgenet driverversion=6.1.53-v8+ duplex=full ip=192.168.0.95 link=yes multicast=yes port=twisted pair speed=1Gbit/s
  *-network:1 DISABLED
       description: Wireless interface
       physical id: 2
       logical name: wlan0
       serial: d8:3a:dd:19:4e:fe
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=brcmfmac driverversion=7.45.241 firmware=01-703fd60 multicast=yes wireless=IEEE 802.11

sudo usb-devices:

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=06.01
S:  Manufacturer=Linux 6.1.53-v8+ xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 4
D:  Ver= 2.10 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2109 ProdID=3431 Rev=04.21
S:  Product=USB2.0 Hub
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=480 MxCh= 4
D:  Ver= 2.10 Cls=09(hub  ) Sub=00 Prot=02 MxPS=64 #Cfgs=  1
P:  Vendor=2109 ProdID=2817 Rev=90.23
S:  Manufacturer=VIA Labs, Inc.         
S:  Product=USB2.0 Hub             
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 1 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=02 Driver=hub

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 4
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=06.01
S:  Manufacturer=Linux 6.1.53-v8+ xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=5000 MxCh= 4
D:  Ver= 3.10 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=2109 ProdID=0817 Rev=90.23
S:  Manufacturer=VIA Labs, Inc.         
S:  Product=USB3.0 Hub             
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=02 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#=  4 Spd=5000 MxCh= 0
D:  Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=0bc2 ProdID=331a Rev=09.15
S:  Manufacturer=Seagate
S:  Product=Expansion Desk
S:  SerialNumber=NAABMM6H
C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=8mA
I:  If#=0x0 Alt= 1 #EPs= 4 Cls=08(stor.) Sub=06 Prot=62 Driver=uas

T:  Bus=02 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#=  5 Spd=5000 MxCh= 0
D:  Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=aabb ProdID=1122 Rev=09.59
S:  Manufacturer=Initio
S:  Product=3639S
S:  SerialNumber=        TEST000004C2
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=8mA
I:  If#=0x0 Alt= 1 #EPs= 4 Cls=08(stor.) Sub=06 Prot=62 Driver=uas

T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=5000 MxCh= 0
D:  Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=174c ProdID=1153 Rev=00.01
S:  Manufacturer=ASMedia
S:  Product=AS2115
S:  SerialNumber=00000000000000000000
C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

@slash-spb
Copy link

slash-spb commented Nov 3, 2023

[6382.291188] sd 0:0:0:0: [sda] tag#5 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT
[ 6382.291214] sd 0:0:0:0: [sda] tag#5 CDB: opcode=0x2a 2a 00 19 56 48 00 00 04 00 00
[ 6382.291370] sd 0:0:0:0: [sda] tag#4 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD OUT
[ 6382.291386] sd 0:0:0:0: [sda] tag#4 CDB: opcode=0x2a 2a 00 53 fd b5 10 00 04 00 00
[ 6382.291501] sd 0:0:0:0: [sda] tag#3 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT
[ 6382.291514] sd 0:0:0:0: [sda] tag#3 CDB: opcode=0x2a 2a 00 19 9d 85 e8 00 02 18 00
[ 6382.291650] sd 0:0:0:0: [sda] tag#2 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD OUT
[ 6382.291663] sd 0:0:0:0: [sda] tag#2 CDB: opcode=0x2a 2a 00 19 56 50 00 00 01 18 00
[ 6382.291750] sd 0:0:0:0: [sda] tag#1 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD OUT
[ 6382.291762] sd 0:0:0:0: [sda] tag#1 CDB: opcode=0x2a 2a 00 19 56 4c 00 00 04 00 00
[ 6382.291868] sd 0:0:0:0: [sda] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
[ 6382.291880] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 53 fd b1 10 00 04 00 00
[ 6382.315191] scsi host0: uas_eh_device_reset_handler start
[ 6382.643282] usb 2-1.4: reset SuperSpeed USB device number 3 using xhci-hcd
[ 6382.668578] scsi host0: uas_eh_device_reset_handler success
[ 6392.774725] sd 0:0:0:0: [sda] tag#5 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD
[ 6392.774747] sd 0:0:0:0: [sda] tag#5 CDB: opcode=0x0 00 00 00 00 00 00
[ 6392.774758] scsi host0: uas_eh_device_reset_handler start
[ 6398.150797] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6403.526264] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6403.734231] usb 2-1.4: device not accepting address 3, error -62
[ 6409.158022] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6414.533817] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6414.741819] usb 2-1.4: device not accepting address 3, error -62
[ 6420.165563] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6425.541335] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6425.749298] usb 2-1.4: device not accepting address 3, error -62
[ 6431.173082] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6436.548853] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6436.756805] usb 2-1.4: device not accepting address 3, error -62
[ 6436.757713] scsi host0: uas_eh_device_reset_handler FAILED err -19
[ 6436.757734] sd 0:0:0:0: Device offlined - not ready after error recovery
[ 6436.757744] sd 0:0:0:0: Device offlined - not ready after error recovery
[ 6436.757751] sd 0:0:0:0: Device offlined - not ready after error recovery
[ 6436.757758] sd 0:0:0:0: Device offlined - not ready after error recovery
[ 6436.757765] sd 0:0:0:0: Device offlined - not ready after error recovery
[ 6436.757772] sd 0:0:0:0: Device offlined - not ready after error recovery
[ 6436.757813] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=DRIVER_OK cmd_age=85s
[ 6436.757826] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 53 fd b1 10 00 04 00 00
[ 6436.757834] blk_update_request: I/O error, dev sda, sector 1409134864 op 0x1:(WRITE) flags 0x4000 phys_seg 128 prio class 0
[ 6436.768898] sd 0:0:0:0: rejecting I/O to offline device
[ 6436.768924] sd 0:0:0:0: [sda] tag#1 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=DRIVER_OK cmd_age=85s
[ 6436.769264] usb 2-1.4: USB disconnect, device number 3
[ 6436.773512] sd 0:0:0:0: [sda] tag#1 CDB: opcode=0x2a 2a 00 19 56 4c 00 00 04 00 00
[ 6436.773513] blk_update_request: I/O error, dev sda, sector 1409136912 op 0x1:(WRITE) flags 0x0 phys_seg 125 prio class 0
[ 6436.773520] blk_update_request: I/O error, dev sda, sector 425085952 op 0x1:(WRITE) flags 0x4000 phys_seg 128 prio class 0
[ 6436.784331] EXT4-fs warning (device sda1): ext4_end_bio:344: I/O error 10 writing to inode 13238281 starting block 176142238)
[ 6436.795309] EXT4-fs warning (device sda1): ext4_end_bio:344: I/O error 10 writing to inode 13238281 starting block 176142239)
[ 6436.795383] blk_update_request: I/O error, dev sda, sector 429756624 op 0x1:(WRITE) flags 0x0 phys_seg 9 prio class 0
[ 6436.795761] blk_update_request: I/O error, dev sda, sector 429780112 op 0x1:(WRITE) flags 0x4000 phys_seg 128 prio class 0
[ 6436.805817] EXT4-fs warning (device sda1): ext4_end_bio:344: I/O error 10 writing to inode 13238281 starting block 53719587)
[ 6436.816805] blk_update_request: I/O error, dev sda, sector 429774320 op 0x1:(WRITE) flags 0x0 phys_seg 29 prio class 0
[ 6436.816850] Buffer I/O error on device sda1, logical block 53719322
[ 6436.817014] blk_update_request: I/O error, dev sda, sector 429781136 op 0x1:(WRITE) flags 0x0 phys_seg 17 prio class 0
[ 6436.817026] EXT4-fs warning (device sda1): ext4_end_bio:344: I/O error 10 writing to inode 13238281 starting block 53722659)
[ 6436.817043] blk_update_request: I/O error, dev sda, sector 425086976 op 0x1:(WRITE) flags 0x0 phys_seg 35 prio class 0
[ 6436.817051] EXT4-fs warning (device sda1): ext4_end_bio:344: I/O error 10 writing to inode 13238281 starting block 53135906)
[ 6436.817057] EXT4-fs warning (device sda1): ext4_end_bio:344: I/O error 10 writing to inode 13238281 starting block 53135907)
[ 6436.817067] blk_update_request: I/O error, dev sda, sector 429753832 op 0x1:(WRITE) flags 0x0 phys_seg 67 prio class 0
[ 6436.817073] EXT4-fs warning (device sda1): ext4_end_bio:344: I/O error 10 writing to inode 13238281 starting block 53719296)
[ 6436.817091] blk_update_request: I/O error, dev sda, sector 1409135888 op 0x1:(WRITE) flags 0x4000 phys_seg 128 prio class 0
[ 6436.817101] EXT4-fs warning (device sda1): ext4_end_bio:344: I/O error 10 writing to inode 13238281 starting block 176142158)
[ 6436.817112] EXT4-fs warning (device sda1): ext4_end_bio:344: I/O error 10 writing to inode 13238281 starting block 53135873)
[ 6436.817157] EXT4-fs warning (device sda1): ext4_end_bio:344: I/O error 10 writing to inode 13238281 starting block 53750564)
[ 6436.818461] Aborting journal on device sda1-8.
[ 6436.818506] Buffer I/O error on dev sda1, logical block 124813312, lost sync page write
[ 6436.819553] EXT4-fs error (device sda1): ext4_journal_check_start:83: comm smbd: Detected aborted journal
[ 6436.821484] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6436.821507] CIFS: VFS: Send error in read = -5
[ 6436.823823] JBD2: Error -5 detected when updating journal superblock for sda1-8.
[ 6436.823930] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[ 6436.823955] EXT4-fs (sda1): I/O error while writing superblock
[ 6436.823960] EXT4-fs (sda1): Remounting filesystem read-only
[ 6436.827386] Buffer I/O error on device sda1, logical block 53721534
[ 6436.834323] Buffer I/O error on device sda1, logical block 53719323
[ 6436.940954] Buffer I/O error on device sda1, logical block 53719324
[ 6436.947262] Buffer I/O error on device sda1, logical block 53719325
[ 6436.955525] Buffer I/O error on device sda1, logical block 53719326
[ 6436.961791] Buffer I/O error on device sda1, logical block 53719327
[ 6436.967733] Buffer I/O error on device sda1, logical block 53719328
[ 6436.974152] Buffer I/O error on device sda1, logical block 53719329
[ 6436.980151] Buffer I/O error on device sda1, logical block 53719330
[ 6436.986323] EXT4-fs (sda1): failed to convert unwritten extents to written extents -- potential data loss! (inode 13238281, error -30)
[ 6437.001657] EXT4-fs (sda1): failed to convert unwritten extents to written extents -- potential data loss! (inode 13238281, error -30)
[ 6437.013428] EXT4-fs (sda1): failed to convert unwritten extents to written extents -- potential data loss! (inode 13238281, error -30)
[ 6437.025570] EXT4-fs (sda1): failed to convert unwritten extents to written extents -- potential data loss! (inode 13238281, error -30)
[ 6437.039009] EXT4-fs (sda1): failed to convert unwritten extents to written extents -- potential data loss! (inode 13238281, error -30)
[ 6437.050706] EXT4-fs (sda1): failed to convert unwritten extents to written extents -- potential data loss! (inode 13238281, error -30)
[ 6437.093675] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 6437.103244] CIFS: VFS: Send error in write = -5
[ 6437.205171] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6437.205209] CIFS: VFS: Send error in read = -5
[ 6437.217253] CIFS: VFS: Send error in write = -5
[ 6437.241299] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6437.241335] CIFS: VFS: Send error in read = -5
[ 6437.253286] CIFS: VFS: Send error in write = -5
[ 6437.273204] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6437.273236] CIFS: VFS: Send error in read = -5
[ 6437.285287] CIFS: VFS: Send error in write = -5
[ 6437.300857] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=DRIVER_OK
[ 6437.316359] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6437.316392] CIFS: VFS: Send error in read = -5
[ 6437.321380] CIFS: VFS: Send error in write = -5
[ 6437.385446] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6437.393611] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6437.404416] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6437.416398] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6437.425220] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6437.436066] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6437.448095] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6437.457091] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6437.468170] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6442.692569] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6448.068340] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6448.276303] usb 2-1.4: device not accepting address 4, error -62
[ 6453.700127] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6459.075884] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6459.283833] usb 2-1.4: device not accepting address 5, error -62
[ 6459.288823] usb 2-1-port4: attempt power cycle
[ 6465.731584] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6467.949444] EXT4-fs error: 200 callbacks suppressed
[ 6467.949459] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6467.957346] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6467.967883] EXT4-fs warning: 23 callbacks suppressed
[ 6467.967895] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6467.967979] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6471.107357] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6471.315314] usb 2-1.4: device not accepting address 6, error -62
[ 6476.739149] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6479.474184] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6479.483011] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6479.492483] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6479.492573] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6479.663321] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6479.672647] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6479.681531] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6479.681612] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6480.263710] Buffer I/O error on dev sda1, logical block 188727351, async page read
[ 6480.277978] Buffer I/O error on dev sda1, logical block 188727351, async page read
[ 6480.282378] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6480.282400] CIFS: VFS: Send error in read = -5
[ 6480.288278] Buffer I/O error on dev sda1, logical block 188727351, async page read
[ 6480.295022] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6480.295049] CIFS: VFS: Send error in read = -5
[ 6480.811456] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6480.821159] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6480.829795] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6480.829881] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6480.914323] Buffer I/O error on dev sda1, logical block 53379658, async page read
[ 6480.928863] Buffer I/O error on dev sda1, logical block 53379658, async page read
[ 6480.932942] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6480.932973] CIFS: VFS: Send error in read = -5
[ 6480.937773] Buffer I/O error on dev sda1, logical block 53379658, async page read
[ 6480.945156] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6480.945185] CIFS: VFS: Send error in read = -5
[ 6481.486329] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6481.495231] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6482.039082] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6482.114893] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[ 6482.322842] usb 2-1.4: device not accepting address 7, error -62
[ 6482.327024] usb 2-1-port4: unable to enumerate USB device
[ 6482.464868] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6482.636411] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6482.732677] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6482.760269] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6482.825807] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6518.858625] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6518.858664] CIFS: VFS: Send error in read = -5
[ 6529.375183] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6529.375221] CIFS: VFS: Send error in read = -5
[ 6540.382714] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6540.382751] CIFS: VFS: Send error in read = -5
[ 6551.382349] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6551.382387] CIFS: VFS: Send error in read = -5
[ 6562.386017] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6562.386055] CIFS: VFS: Send error in read = -5
[ 6566.254501] EXT4-fs error: 71 callbacks suppressed
[ 6566.254517] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6566.262157] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6566.272513] EXT4-fs warning: 17 callbacks suppressed
[ 6566.272524] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6566.272608] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6571.885552] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6571.885588] CIFS: VFS: Send error in read = -5
[ 6573.385632] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6573.385670] CIFS: VFS: Send error in read = -5
[ 6584.400831] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6584.400868] CIFS: VFS: Send error in read = -5
[ 6589.408640] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6589.408680] CIFS: VFS: Send error in read = -5
[ 6591.914822] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6591.914855] CIFS: VFS: Send error in read = -5
[ 6591.919088] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6591.919119] CIFS: VFS: Send error in read = -5
[ 6591.923572] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6591.923610] CIFS: VFS: Send error in read = -5
[ 6601.926935] CIFS: Status code returned 0xc0000185 STATUS_IO_DEVICE_ERROR
[ 6601.926971] CIFS: VFS: Send error in read = -5
[ 6621.443984] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6621.451285] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6621.461885] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6621.461961] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6632.800928] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6632.810258] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6632.818903] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6632.818984] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6634.299864] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6634.307546] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6634.317888] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6634.317990] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6634.500488] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6634.507204] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6634.518463] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6634.518571] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6634.538426] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #13238273: comm smbd: reading directory lblock 0
[ 6634.545784] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6634.553250] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6634.555674] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6634.561471] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6634.567837] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6634.573903] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6634.579814] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #13238273: lblock 0: comm smbd: error -5 reading directory block
[ 6670.902576] EXT4-fs warning: 10 callbacks suppressed
[ 6670.902594] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #2: lblock 0: comm ls: error -5 reading directory block
[ 6718.314714] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #2: lblock 0: comm ls: error -5 reading directory block
[ 6722.626766] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #2: lblock 0: comm ls: error -5 reading directory block
[ 6760.528675] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #2: lblock 0: comm find: error -5 reading directory block
[ 6768.741047] EXT4-fs error: 50 callbacks suppressed
[ 6768.741059] EXT4-fs error (device sda1): ext4_get_inode_loc:4433: inode #46530561: block 186122272: comm smbd: unable to read itable block
[ 6768.752105] EXT4-fs error (device sda1): ext4_get_inode_loc:4433: inode #46530561: block 186122272: comm smbd: unable to read itable block
[ 6768.764832] EXT4-fs error (device sda1): ext4_get_inode_loc:4433: inode #46530561: block 186122272: comm smbd: unable to read itable block
[ 6768.776428] EXT4-fs error (device sda1): ext4_get_inode_loc:4433: inode #46530561: block 186122272: comm smbd: unable to read itable block
[ 6768.793280] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #2: comm smbd: reading directory lblock 0
[ 6768.799967] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #2: comm smbd: reading directory lblock 0
[ 6768.810138] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #2: comm smbd: reading directory lblock 0
[ 6768.820239] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #2: lblock 0: comm smbd: error -5 reading directory block
[ 6768.820344] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #2: comm smbd: reading directory lblock 0
[ 6768.831610] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #2: comm smbd: reading directory lblock 0
[ 6768.840186] EXT4-fs error (device sda1): __ext4_find_entry:1663: inode #2: comm smbd: reading directory lblock 0
[ 6768.850503] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #2: lblock 0: comm smbd: error -5 reading directory block
[ 6768.859854] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #2: lblock 0: comm smbd: error -5 reading directory block
[ 6775.996954] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1072: inode #2: lblock 0: comm smbd: error -5 reading directory block

Goodday!

It's seems i solve the problem aflter replacing short usb cable to long usb cable.

I have ssd usb drive

UPDATE: with short usb cable read speed ~270МB/s(i have odroid c4), write speed ~45MB/s; with long sub cable i have 32MB/s read and write speed.

Seems there is a bug on high data transfer rate...

@pjft
Copy link

pjft commented Nov 18, 2023

I am getting the same on a Pi5 on Bookworm.

I had similar issues back in 2020 when I migrated my NAS to a Pi4 but after upgrading from Kernel 4.x to 5 I've enjoyed issue free usage of my Pi4 as a NAS with 3 external drives permanently plugged into it, and others added at times for adhoc backups - one directly on the Pi4's USB3 port, and the rest via a TP-Link UH700 with external power that I bought for this, plugged into the other Pi4's USB3 port, with no unplanned downtime throughout this period.

I am currently in the process of rebuilding my NAS on a Pi5 but after having the new OS and apps installed, configured and running, my first interactions have been unsuccessful. As I was backing up one of the drives to another one, both connected via the hub, I consistently got the hub drives to fully disconnect. The main error seems to be:

xhci-hcd xhci-hcd.0: xHCI host not responding to stop endpoint command
xhci-hcd xhci-hcd.0: xHCI host controller not responding, assume dead
xhci-hcd xhci-hcd.0: HC died; cleaning up

and then a set of scary looking errors that, to the best of my understanding, are just a consequence of the drives from the hub no longer being accessible by the system. SmartCTL tests seem to suggest they're all still ok, even after a handful of failed attempts at this. After this error, the remaining mountpoints from the hub drives remain inaccessible (though some of them still show as mounted). The drive that gets disconnected first is the one that isn't being used at the time of the tests - it's not one I'm backing up.

The entire behaviors - and troubleshooting steps - are similar to the others' here. This seems to be a potential regression between kernel 5.x and 6.x.

What have I done so far:

  • Added all the drives to quirks (I had forgotten about that since I am rebuilding the entire image). Doesn't seem to change much, unless I missed something. I confirm that on dmesg they sem to apply the quirks.
  • Added the USB hub to quirks as well. This doesn't even seem to be detected, but hey, it was worth a shot.
  • Connected USB Hub to one of the USB2.0 ports, and the HDD-COLD drive (the one that the system complains that got disconnected) to the second USB3.0 port. This seems to work, though of course now I am stuck with USB2.0 speeds for the remaining drives.
  • Force USB autosuspend to false. Just because I seem to recall that back then I toyed with this option (though unsure of the actual effect). However, this didn't change the outcome.

Additional context:

Imaged from the RPiOS Lite 64-bit image from the site. Fully updated and upgraded, including EEPROM.

uname:

Linux openmediavault 6.1.0-rpi6-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.58-1+rpt2 (2023-10-27) aarch64 GNU/Linux

Drives labels and mountpoints:

/dev/sda - connected to the Pi directly, HDD, via the USB 3.0 port
/dev/sdb, sdc and sdd - connected to the hub, connected to the USB3.0 port. Don't quite know the order, though, but they'd be HDDCOPY, HDD-COLD and HDDCOPY-EXT4

I was copying HDDCOPY to HDDCOPY-EXT4 via rsync.

The Pi runs perfectly fine if I'm copying between two drives on different USB3.0 ports, or between 3.0 and 2.0 via the hub. If I'm copying via 2 drives connected to the hub, which then connects to the USB3.0 port this happens. To be clear, I'm making full backups of 4TB drives, which does take a while, so the issue can also be related to either data throughput, data volume, or just simply time. The rsync operation doesn't fail during a dry-run, only in a proper sync. It also always seems to fail at a similar point in time. I have not checked for CPU usage or memory, but I'll test that shortly, just to make sure there's nothing else at play. All drives are EXT4.

lsusb:

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
        ID 1058:2620 Western Digital Technologies, Inc. 
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
        ID 0bda:0411 Realtek Semiconductor Corp. Hub
        |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M
            ID 0bda:0411 Realtek Semiconductor Corp. Hub
            |__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
                ID 1058:2621 Western Digital Technologies, Inc. 
            |__ Port 2: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
                ID 1058:25a1 Western Digital Technologies, Inc. Elements / My Passport
            |__ Port 3: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
                ID 1058:25a1 Western Digital Technologies, Inc. Elements / My Passport
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
        |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M

sample logs:

2023-11-14T23:54:41.847028+00:00 raspberrypi5 kernel: [19302.293787] xhci-hcd xhci-hcd.0: xHCI host not responding to stop endpoint command
2023-11-14T23:54:41.847056+00:00 raspberrypi5 kernel: [19302.313966] xhci-hcd xhci-hcd.0: xHCI host controller not responding, assume dead
2023-11-14T23:54:41.847057+00:00 raspberrypi5 kernel: [19302.313984] xhci-hcd xhci-hcd.0: HC died; cleaning up
2023-11-14T23:54:41.847080+00:00 raspberrypi5 kernel: [19302.314138] sd 2:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=DRIVER_OK cmd_age=36s
2023-11-14T23:54:41.873393+00:00 raspberrypi5 kernel: [19302.314144] sd 2:0:0:0: [sdc] tag#0 CDB: opcode=0x88 88 00 00 00 00 00 8d fd f4 00 00 00 01 00 00 00
2023-11-14T23:54:41.873397+00:00 raspberrypi5 kernel: [19302.314147] I/O error, dev sdc, sector 2382230528 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 2
2023-11-14T23:54:41.873399+00:00 raspberrypi5 kernel: [19302.314181] sd 2:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=0s
2023-11-14T23:54:41.873400+00:00 raspberrypi5 kernel: [19302.314186] sd 2:0:0:0: [sdc] tag#0 CDB: opcode=0x88 88 00 00 00 00 00 8d fd f5 00 00 00 02 00 00 00
2023-11-14T23:54:41.873402+00:00 raspberrypi5 kernel: [19302.314189] I/O error, dev sdc, sector 2382230784 op 0x0:(READ) flags 0x80700 phys_seg 5 prio class 2
2023-11-14T23:54:41.873403+00:00 raspberrypi5 kernel: [19302.314304] usb 1-1: USB disconnect, device number 2
2023-11-14T23:54:41.873404+00:00 raspberrypi5 kernel: [19302.314310] usb 1-1.1: USB disconnect, device number 3
2023-11-14T23:54:41.873404+00:00 raspberrypi5 kernel: [19302.315076] usb 2-1: USB disconnect, device number 2
2023-11-14T23:54:41.873405+00:00 raspberrypi5 kernel: [19302.315080] usb 2-1.1: USB disconnect, device number 3
2023-11-14T23:54:41.873406+00:00 raspberrypi5 kernel: [19302.315084] usb 2-1.1.1: USB disconnect, device number 4
2023-11-14T23:54:41.930471+00:00 raspberrypi5 kernel: [19302.405804] sd 3:0:0:0: [sdd] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=36s
2023-11-14T23:54:41.930499+00:00 raspberrypi5 kernel: [19302.405813] sd 3:0:0:0: [sdd] tag#0 CDB: opcode=0x8a 8a 00 00 00 00 00 27 75 20 00 00 00 08 00 00 00
2023-11-14T23:54:41.930500+00:00 raspberrypi5 kernel: [19302.405816] I/O error, dev sdd, sector 661987328 op 0x1:(WRITE) flags 0x4000 phys_seg 64 prio class 2
2023-11-14T23:54:41.930501+00:00 raspberrypi5 kernel: [19302.409804] sd 2:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=0s
2023-11-14T23:54:41.930502+00:00 raspberrypi5 kernel: [19302.409809] sd 2:0:0:0: [sdc] tag#0 CDB: opcode=0x88 88 00 00 00 00 00 8d fd f4 00 00 00 00 20 00 00
2023-11-14T23:54:41.930503+00:00 raspberrypi5 kernel: [19302.409812] I/O error, dev sdc, sector 2382230528 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
2023-11-14T23:54:42.014418+00:00 raspberrypi5 kernel: [19302.489926] sd 3:0:0:0: [sdd] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=0s
2023-11-14T23:54:42.014444+00:00 raspberrypi5 kernel: [19302.489937] sd 3:0:0:0: [sdd] tag#0 CDB: opcode=0x8a 8a 00 00 00 00 00 27 75 28 00 00 00 08 00 00 00
2023-11-14T23:54:42.014446+00:00 raspberrypi5 kernel: [19302.489941] I/O error, dev sdd, sector 661989376 op 0x1:(WRITE) flags 0x4000 phys_seg 64 prio class 2
2023-11-14T23:54:42.094420+00:00 raspberrypi5 kernel: [19302.569799] sd 3:0:0:0: [sdd] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=0s
2023-11-14T23:54:42.094446+00:00 raspberrypi5 kernel: [19302.569809] sd 3:0:0:0: [sdd] tag#0 CDB: opcode=0x8a 8a 00 00 00 00 00 27 75 30 00 00 00 08 00 00 00
2023-11-14T23:54:42.094449+00:00 raspberrypi5 kernel: [19302.569812] I/O error, dev sdd, sector 661991424 op 0x1:(WRITE) flags 0x4000 phys_seg 64 prio class 2
2023-11-14T23:54:42.118420+00:00 raspberrypi5 kernel: [19302.593807] sd 2:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=0s
2023-11-14T23:54:42.118442+00:00 raspberrypi5 kernel: [19302.593815] sd 2:0:0:0: [sdc] tag#0 CDB: opcode=0x88 88 00 00 00 00 00 8d fd f6 00 00 00 00 20 00 00
2023-11-14T23:54:42.118447+00:00 raspberrypi5 kernel: [19302.593817] I/O error, dev sdc, sector 2382231040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
2023-11-14T23:54:42.118448+00:00 raspberrypi5 kernel: [19302.594827] sd 2:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=0s
2023-11-14T23:54:42.118448+00:00 raspberrypi5 kernel: [19302.594834] sd 2:0:0:0: [sdc] tag#0 CDB: opcode=0x88 88 00 00 00 00 00 8d fd f8 00 00 00 00 20 00 00
2023-11-14T23:54:42.118450+00:00 raspberrypi5 kernel: [19302.594836] I/O error, dev sdc, sector 2382231552 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
2023-11-14T23:54:42.135599+00:00 raspberrypi5 systemd[1]: Unmounting srv-dev\x2ddisk\x2dby\x2dlabel\x2dHDD\x2dCOLD.mount - /srv/dev-disk-by-label-HDD-COLD...
2023-11-14T23:54:42.165108+00:00 raspberrypi5 kernel: [19302.634726] EXT4-fs (sdb1): unmounting filesystem.
2023-11-14T23:54:42.165127+00:00 raspberrypi5 kernel: [19302.634846] Buffer I/O error on dev sdb1, logical block 488144896, lost sync page write
2023-11-14T23:54:42.165128+00:00 raspberrypi5 kernel: [19302.634852] JBD2: I/O error when updating journal superblock for sdb1-8.
2023-11-14T23:54:42.165129+00:00 raspberrypi5 kernel: [19302.634855] Aborting journal on device sdb1-8.
2023-11-14T23:54:42.165130+00:00 raspberrypi5 kernel: [19302.634857] Buffer I/O error on dev sdb1, logical block 488144896, lost sync page write
2023-11-14T23:54:42.165131+00:00 raspberrypi5 kernel: [19302.634859] JBD2: I/O error when updating journal superblock for sdb1-8.
2023-11-14T23:54:42.165132+00:00 raspberrypi5 kernel: [19302.634881] EXT4-fs error (device sdb1): ext4_put_super:1231: comm umount: Couldn't clean up the journal
2023-11-14T23:54:42.170950+00:00 raspberrypi5 kernel: [19302.644667] EXT4-fs (sdb1): Remounting filesystem read-only
2023-11-14T23:54:42.170960+00:00 raspberrypi5 kernel: [19302.644687] usb 2-1.1.2: USB disconnect, device number 5
2023-11-14T23:54:42.190430+00:00 raspberrypi5 kernel: [19302.666224] sd 3:0:0:0: [sdd] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=0s
2023-11-14T23:54:42.190471+00:00 raspberrypi5 kernel: [19302.666235] sd 3:0:0:0: [sdd] tag#0 CDB: opcode=0x8a 8a 00 00 00 00 00 27 75 38 00 00 00 06 60 00 00
2023-11-14T23:54:42.190475+00:00 raspberrypi5 kernel: [19302.666239] I/O error, dev sdd, sector 661993472 op 0x1:(WRITE) flags 0x0 phys_seg 51 prio class 2
2023-11-14T23:54:42.190481+00:00 raspberrypi5 kernel: [19302.666244] EXT4-fs warning (device sdd1): ext4_end_bio:343: I/O error 10 writing to inode 161481025 starting block 82749184)
2023-11-14T23:54:42.190483+00:00 raspberrypi5 kernel: [19302.666251] Buffer I/O error on device sdd1, logical block 82747392
2023-11-14T23:54:42.190485+00:00 raspberrypi5 kernel: [19302.666253] Buffer I/O error on device sdd1, logical block 82747393
2023-11-14T23:54:42.190485+00:00 raspberrypi5 kernel: [19302.666254] Buffer I/O error on device sdd1, logical block 82747394
2023-11-14T23:54:42.190487+00:00 raspberrypi5 kernel: [19302.666256] Buffer I/O error on device sdd1, logical block 82747395
2023-11-14T23:54:42.190488+00:00 raspberrypi5 kernel: [19302.666264] Buffer I/O error on device sdd1, logical block 82747396
2023-11-14T23:54:42.190491+00:00 raspberrypi5 kernel: [19302.666265] Buffer I/O error on device sdd1, logical block 82747397
2023-11-14T23:54:42.190512+00:00 raspberrypi5 kernel: [19302.666266] Buffer I/O error on device sdd1, logical block 82747398
2023-11-14T23:54:42.190513+00:00 raspberrypi5 kernel: [19302.666267] Buffer I/O error on device sdd1, logical block 82747399
2023-11-14T23:54:42.190514+00:00 raspberrypi5 kernel: [19302.666270] Buffer I/O error on device sdd1, logical block 82747400
2023-11-14T23:54:42.190515+00:00 raspberrypi5 kernel: [19302.666271] Buffer I/O error on device sdd1, logical block 82747401
2023-11-14T23:54:42.190516+00:00 raspberrypi5 kernel: [19302.669795] device offline error, dev sdc, sector 2382231552 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
2023-11-14T23:54:42.200312+00:00 raspberrypi5 systemd[1]: srv-dev\x2ddisk\x2dby\x2dlabel\x2dHDD\x2dCOLD.mount: Deactivated successfully.
2023-11-14T23:54:42.202077+00:00 raspberrypi5 systemd[1]: Unmounted srv-dev\x2ddisk\x2dby\x2dlabel\x2dHDD\x2dCOLD.mount - /srv/dev-disk-by-label-HDD-COLD.
2023-11-14T23:54:42.202202+00:00 raspberrypi5 systemd[1]: systemd-fsck@dev-disk-by\x2dlabel-HDD\x2dCOLD.service: Deactivated successfully.
2023-11-14T23:54:42.202257+00:00 raspberrypi5 systemd[1]: Stopped systemd-fsck@dev-disk-by\x2dlabel-HDD\x2dCOLD.service - File System Check on /dev/disk/by-label/HDD-COLD.
2023-11-14T23:54:42.211079+00:00 raspberrypi5 systemd[1]: systemd-fsck@dev-disk-by\x2dlabel-HDD\x2dCOLD.service: Consumed 1.790s CPU time.
2023-11-14T23:54:42.266437+00:00 raspberrypi5 kernel: [19302.741901] sd 3:0:0:0: [sdd] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=0s
2023-11-14T23:54:42.266463+00:00 raspberrypi5 kernel: [19302.741912] sd 3:0:0:0: [sdd] tag#0 CDB: opcode=0x8a 8a 00 00 00 00 00 27 75 3e 60 00 00 08 00 00 00
2023-11-14T23:54:42.446424+00:00 raspberrypi5 kernel: [19302.921837] EXT4-fs warning (device sdd1): ext4_end_bio:343: I/O error 10 writing to inode 161481025 starting block 82749644)
2023-11-14T23:54:42.446460+00:00 raspberrypi5 kernel: [19302.922070] JBD2: Detected IO errors while flushing file data on sdd1-8
2023-11-14T23:54:42.446461+00:00 raspberrypi5 kernel: [19302.922109] Aborting journal on device sdd1-8.
2023-11-14T23:54:42.446462+00:00 raspberrypi5 kernel: [19302.922211] EXT4-fs error (device sdd1): ext4_journal_check_start:83: comm rsync: Detected aborted journal
2023-11-14T23:54:42.630410+00:00 raspberrypi5 kernel: [19303.105802] Buffer I/O error on dev sdd1, logical block 488144896, lost sync page write
2023-11-14T23:54:42.630430+00:00 raspberrypi5 kernel: [19303.105830] JBD2: I/O error when updating journal superblock for sdd1-8.
2023-11-14T23:54:42.991268+00:00 raspberrypi5 kernel: [19303.457927] Buffer I/O error on dev sdd1, logical block 0, lost sync page write
2023-11-14T23:54:42.991355+00:00 raspberrypi5 kernel: [19303.458662] EXT4-fs error (device sdd1): ext4_check_bdev_write_error:217: comm kworker/u8:3: Error while async write back metadata
2023-11-14T23:54:42.991395+00:00 raspberrypi5 kernel: [19303.470721] EXT4-fs (sdd1): I/O error while writing superblock
2023-11-14T23:54:42.991398+00:00 raspberrypi5 kernel: [19303.470741] EXT4-fs (sdd1): Remounting filesystem read-only
2023-11-14T23:54:43.019758+00:00 raspberrypi5 kernel: [19303.477876] EXT4-fs error (device sdd1) in ext4_reserve_inode_write:5856: Journal has aborted
2023-11-14T23:54:43.019793+00:00 raspberrypi5 kernel: [19303.486760] EXT4-fs error (device sdd1): mpage_map_and_submit_extent:2524: inode #161481025: comm kworker/u8:3: mark_inode_dirty error
2023-11-14T23:54:43.032169+00:00 raspberrypi5 kernel: [19303.499731] EXT4-fs error (device sdd1): mpage_map_and_submit_extent:2526: comm kworker/u8:3: Failed to mark inode 161481025 dirty
2023-11-14T23:54:43.154406+00:00 raspberrypi5 kernel: [19303.629791] EXT4-fs warning (device sdd1): ext4_end_bio:343: I/O error 10 writing to inode 161481025 starting block 82750976)
2023-11-14T23:54:43.242401+00:00 raspberrypi5 kernel: [19303.717790] Buffer I/O error on dev sdd1, logical block 0, lost sync page write
2023-11-14T23:54:43.242421+00:00 raspberrypi5 kernel: [19303.717823] EXT4-fs (sdd1): I/O error while writing superblock
2023-11-14T23:54:43.302405+00:00 raspberrypi5 kernel: [19303.778115] EXT4-fs warning (device sdc1): htree_dirblock_to_tree:1082: inode #183115826: lblock 0: comm rsync: error -5 reading directory block
2023-11-14T23:54:43.302424+00:00 raspberrypi5 kernel: [19303.778402] EXT4-fs warning (device sdc1): htree_dirblock_to_tree:1082: inode #183115827: lblock 0: comm rsync: error -5 reading directory block
2023-11-14T23:54:43.302426+00:00 raspberrypi5 kernel: [19303.778625] EXT4-fs warning (device sdc1): htree_dirblock_to_tree:1082: inode #183115828: lblock 0: comm rsync: error -5 reading directory block
2023-11-14T23:54:43.302427+00:00 raspberrypi5 kernel: [19303.778829] EXT4-fs warning (device sdc1): htree_dirblock_to_tree:1082: inode #183115829: lblock 0: comm rsync: error -5 reading directory block
2023-11-14T23:54:43.302428+00:00 raspberrypi5 kernel: [19303.779013] EXT4-fs warning (device sdc1): htree_dirblock_to_tree:1082: inode #183115830: lblock 0: comm rsync: error -5 reading directory block
2023-11-14T23:54:43.302429+00:00 raspberrypi5 kernel: [19303.779188] EXT4-fs warning (device sdc1): htree_dirblock_to_tree:1082: inode #183115831: lblock 0: comm rsync: error -5 reading directory block
2023-11-14T23:54:43.302430+00:00 raspberrypi5 kernel: [19303.779356] EXT4-fs warning (device sdc1): htree_dirblock_to_tree:1082: inode #183115832: lblock 0: comm rsync: error -5 reading directory block
2023-11-14T23:54:43.302431+00:00 raspberrypi5 kernel: [19303.779527] EXT4-fs warning (device sdc1): htree_dirblock_to_tree:1082: inode #183115833: lblock 0: comm rsync: error -5 reading directory block
2023-11-14T23:54:43.302432+00:00 raspberrypi5 kernel: [19303.779696] EXT4-fs warning (device sdc1): htree_dirblock_to_tree:1082: inode #183115834: lblock 0: comm rsync: error -5 reading directory block
2023-11-14T23:54:43.302433+00:00 raspberrypi5 kernel: [19303.779857] EXT4-fs warning (device sdc1): htree_dirblock_to_tree:1082: inode #183115835: lblock 0: comm rsync: error -5 reading directory block
2023-11-14T23:54:43.360514+00:00 raspberrypi5 kernel: [19303.812326] EXT4-fs error (device sdc1): __ext4_get_inode_loc_noinmem:4605: inode #130285569: block 521142304: comm rsync: unable to read itable block
2023-11-14T23:54:43.360536+00:00 raspberrypi5 kernel: [19303.826413] EXT4-fs error (device sdc1): __ext4_get_inode_loc_noinmem:4605: inode #60424193: block 241696800: comm rsync: unable to read itable block
2023-11-14T23:54:43.442408+00:00 raspberrypi5 kernel: [19303.917791] Buffer I/O error on dev sdd1, logical block 0, lost sync page write
2023-11-14T23:54:43.442430+00:00 raspberrypi5 kernel: [19303.917828] EXT4-fs (sdd1): I/O error while writing superblock
2023-11-14T23:54:43.474300+00:00 raspberrypi5 kernel: [19303.926084] EXT4-fs error (device sdc1): __ext4_get_inode_loc_noinmem:4605: inode #190185473: block 760741920: comm rsync: unable to read itable block
2023-11-14T23:54:43.474320+00:00 raspberrypi5 kernel: [19303.940123] EXT4-fs error (device sdc1): __ext4_get_inode_loc_noinmem:4605: inode #233046017: block 932184096: comm rsync: unable to read itable block
2023-11-14T23:54:43.501997+00:00 raspberrypi5 kernel: [19303.954057] EXT4-fs error (device sdc1): __ext4_get_inode_loc_noinmem:4605: inode #75759617: block 303038496: comm rsync: unable to read itable block
2023-11-14T23:54:43.502021+00:00 raspberrypi5 kernel: [19303.967822] EXT4-fs error (device sdc1): __ext4_get_inode_loc_noinmem:4605: inode #219414529: block 877658144: comm rsync: unable to read itable block
2023-11-14T23:54:43.515797+00:00 raspberrypi5 kernel: [19303.981628] EXT4-fs error (device sdc1): __ext4_get_inode_loc_noinmem:4605: inode #221118465: block 884473888: comm rsync: unable to read itable block
2023-11-14T23:54:43.529468+00:00 raspberrypi5 kernel: [19303.995389] EXT4-fs error (device sdc1): __ext4_get_inode_loc_noinmem:4605: inode #75104257: block 300417056: comm rsync: unable to read itable block
2023-11-14T23:54:43.543237+00:00 raspberrypi5 kernel: [19304.009069] EXT4-fs error (device sdc1): __ext4_get_inode_loc_noinmem:4605: inode #147849217: block 591396896: comm rsync: unable to read itable block
2023-11-14T23:54:43.556934+00:00 raspberrypi5 kernel: [19304.022852] EXT4-fs error (device sdc1): __ext4_get_inode_loc_noinmem:4605: inode #87556097: block 350224416: comm rsync: unable to read itable block
2023-11-14T23:54:43.630404+00:00 raspberrypi5 kernel: [19304.105786] EXT4-fs warning (device sdd1): ext4_end_bio:343: I/O error 10 writing to inode 161481025 starting block 82751536)
2023-11-14T23:54:43.630427+00:00 raspberrypi5 kernel: [19304.106203] JBD2: Detected IO errors while flushing file data on sdd1-8
2023-11-14T23:54:43.726443+00:00 raspberrypi5 kernel: [19304.201800] EXT4-fs warning (device sdd1): htree_dirblock_to_tree:1082: inode #161488972: lblock 0: comm rsync: error -5 reading directory block
2023-11-14T23:54:44.022408+00:00 raspberrypi5 kernel: [19304.485797] EXT4-fs error (device sdd1): __ext4_get_inode_loc_noinmem:4605: inode #113115137: block 452460576: comm rsync: unable to read itable block
2023-11-14T23:54:44.098405+00:00 raspberrypi5 kernel: [19304.573786] Buffer I/O error on dev sdd1, logical block 0, lost sync page write
2023-11-14T23:54:44.098426+00:00 raspberrypi5 kernel: [19304.573806] EXT4-fs (sdd1): I/O error while writing superblock
2023-11-14T23:54:44.190406+00:00 raspberrypi5 kernel: [19304.653795] EXT4-fs error (device sdd1): __ext4_get_inode_loc_noinmem:4605: inode #113115137: block 452460576: comm rsync: unable to read itable block
2023-11-14T23:54:44.262418+00:00 raspberrypi5 kernel: [19304.737812] Buffer I/O error on dev sdd1, logical block 0, lost sync page write
2023-11-14T23:54:44.262451+00:00 raspberrypi5 kernel: [19304.737830] EXT4-fs (sdd1): I/O error while writing superblock
2023-11-14T23:54:44.269997+00:00 raspberrypi5 systemd[1]: Unmounting srv-dev\x2ddisk\x2dby\x2dlabel\x2dHDDCOPY.mount - /srv/dev-disk-by-label-HDDCOPY...
2023-11-14T23:54:44.273885+00:00 raspberrypi5 umount[41500]: umount: /srv/dev-disk-by-label-HDDCOPY: target is busy.
2023-11-14T23:54:44.274017+00:00 raspberrypi5 systemd[1]: srv-dev\x2ddisk\x2dby\x2dlabel\x2dHDDCOPY.mount: Mount process exited, code=exited, status=32/n/a
2023-11-14T23:54:44.291782+00:00 raspberrypi5 systemd[1]: Failed unmounting srv-dev\x2ddisk\x2dby\x2dlabel\x2dHDDCOPY.mount - /srv/dev-disk-by-label-HDDCOPY.
2023-11-14T23:54:44.291865+00:00 raspberrypi5 systemd[1]: systemd-fsck@dev-disk-by\x2dlabel-HDDCOPY.service: Deactivated successfully.
2023-11-14T23:54:44.291918+00:00 raspberrypi5 systemd[1]: Stopped systemd-fsck@dev-disk-by\x2dlabel-HDDCOPY.service - File System Check on /dev/disk/by-label/HDDCOPY.
2023-11-14T23:54:44.292376+00:00 raspberrypi5 systemd[1]: systemd-fsck@dev-disk-by\x2dlabel-HDDCOPY.service: Consumed 1.791s CPU time.
2023-11-14T23:54:44.326435+00:00 raspberrypi5 kernel: [19304.802207] usb 2-1.1.3: USB disconnect, device number 6
2023-11-14T23:54:44.370167+00:00 raspberrypi5 kernel: [19304.821830] EXT4-fs error (device sdd1): __ext4_get_inode_loc_noinmem:4605: inode #172359681: block 689438752: comm rsync: unable to read itable block
2023-11-14T23:54:44.370198+00:00 raspberrypi5 kernel: [19304.835544] Buffer I/O error on dev sdd1, logical block 0, lost sync page write
2023-11-14T23:54:44.370199+00:00 raspberrypi5 kernel: [19304.835558] EXT4-fs (sdd1): I/O error while writing superblock
2023-11-14T23:54:44.370200+00:00 raspberrypi5 kernel: [19304.835708] EXT4-fs error (device sdd1): __ext4_get_inode_loc_noinmem:4605: inode #172359681: block 689438752: comm rsync: unable to read itable block
2023-11-14T23:54:44.384402+00:00 raspberrypi5 kernel: [19304.850023] EXT4-fs error (device sdd1): __ext4_get_inode_loc_noinmem:4605: inode #56885249: block 227541024: comm rsync: unable to read itable block
2023-11-14T23:54:44.384427+00:00 raspberrypi5 kernel: [19304.863719] Buffer I/O error on dev sdd1, logical block 0, lost sync page write
2023-11-14T23:54:44.384428+00:00 raspberrypi5 kernel: [19304.863757] EXT4-fs (sdd1): I/O error while writing superblock
2023-11-14T23:54:44.386507+00:00 raspberrypi5 kernel: [19304.864028] EXT4-fs (sdd1): I/O error while writing superblock
2023-11-14T23:54:44.386525+00:00 raspberrypi5 kernel: [19304.864112] EXT4-fs (sdd1): I/O error while writing superblock
2023-11-14T23:54:44.562944+00:00 raspberrypi5 postfix/pickup[41030]: 8958E1F7: uid=0 from=<root>
2023-11-14T23:54:44.571195+00:00 raspberrypi5 postfix/cleanup[41508]: 8958E1F7: message-id=<[email protected]>
2023-11-14T23:54:44.571769+00:00 raspberrypi5 postfix/qmgr[34450]: 8958E1F7: from=<EMAIL-REDACTED>, size=405, nrcpt=2 (queue active)
2023-11-14T23:54:44.613361+00:00 raspberrypi5 postfix/pipe[41510]: 8958E1F7: to=<[email protected]>, relay=omvnotificationfilter, delay=0.06, delays=0.02/0.01/0/0.03, dsn=2.0.0, status=sent (delivered via omvnotificationfilter service)
2023-11-14T23:54:45.265461+00:00 raspberrypi5 postfix/smtp[41511]: 8958E1F7: replace: header Subject: Finished NAS HDDCOPY to Backup4TB EXT4: Subject: [raspberrypi5] Finished NAS HDDCOPY to Backup4TB EXT4
2023-11-14T23:54:45.824463+00:00 raspberrypi5 postfix/smtp[41511]: 8958E1F7: to=<EMAIL-REDACTED>, relay=SMTP_RELAY_REDACTED:465, delay=1.3, delays=0.02/0.06/0.48/0.71, dsn=2.0.0, status=sent (250 2.0.0 OK  1700006085 q2-20020adf9dc2000000b0032db4825495sm9058774wre.22 - gsmtp)
2023-11-14T23:54:45.825064+00:00 raspberrypi5 postfix/qmgr[34450]: 8958E1F7: removed
2023-11-14T23:54:49.502408+00:00 raspberrypi5 kernel: [19309.973810] jbd2_journal_bmap: journal block not found at offset 4 on sdc1-8
2023-11-14T23:54:49.502429+00:00 raspberrypi5 kernel: [19309.980905] Aborting journal on device sdc1-8.
2023-11-14T23:54:49.502430+00:00 raspberrypi5 kernel: [19309.980912] buffer_io_error: 26 callbacks suppressed
2023-11-14T23:54:49.502431+00:00 raspberrypi5 kernel: [19309.980915] Buffer I/O error on dev sdc1, logical block 488144896, lost sync page write
2023-11-14T23:54:49.502432+00:00 raspberrypi5 kernel: [19309.980920] JBD2: I/O error when updating journal superblock for sdc1-8.
2023-11-14T23:54:58.436293+00:00 raspberrypi5 monit[1350]: Lookup for '/srv/dev-disk-by-label-HDD-COLD' filesystem failed  -- not found in /proc/self/mounts
2023-11-14T23:54:58.436428+00:00 raspberrypi5 monit[1350]: Filesystem '/srv/dev-disk-by-label-HDD-COLD' not mounted
2023-11-14T23:54:58.436493+00:00 raspberrypi5 monit[1350]: 'filesystem_srv_dev-disk-by-label-HDD-COLD' unable to read filesystem '/srv/dev-disk-by-label-HDD-COLD' state
2023-11-14T23:54:58.507264+00:00 raspberrypi5 postfix/smtpd[41533]: connect from localhost.localdomain[127.0.0.1]
2023-11-14T23:54:58.508238+00:00 raspberrypi5 postfix/smtpd[41533]: 7C0DE1F8: client=localhost.localdomain[127.0.0.1]
2023-11-14T23:54:58.551076+00:00 raspberrypi5 postfix/cleanup[41508]: 7C0DE1F8: message-id=<1700006098.c9902d89d5d24259@raspberrypi5>
2023-11-14T23:54:58.551165+00:00 raspberrypi5 postfix/smtpd[41533]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
2023-11-14T23:54:58.551420+00:00 raspberrypi5 postfix/qmgr[34450]: 7C0DE1F8: from=<EMAIL-REDACTED>, size=1156, nrcpt=2 (queue active)
2023-11-14T23:54:58.551482+00:00 raspberrypi5 monit[1350]: 'filesystem_srv_dev-disk-by-label-HDD-COLD' trying to restart
2023-11-14T23:54:58.553551+00:00 raspberrypi5 postfix/smtp[41511]: connect to SMTP_RELAY_REDACTED:465: Network is unreachable
2023-11-14T23:54:58.573394+00:00 raspberrypi5 postfix/pipe[41510]: 7C0DE1F8: to=<[email protected]>, relay=omvnotificationfilter, delay=0.07, delays=0.04/0/0/0.02, dsn=2.0.0, status=sent (delivered via omvnotificationfilter service)
2023-11-14T23:54:59.042220+00:00 raspberrypi5 postfix/smtp[41511]: 7C0DE1F8: replace: header Subject: Monitoring restart -- Does not exist filesystem_srv: Subject: [raspberrypi5] Monitoring restart -- Does not exist filesystem_srv_dev-disk-by-label-HDD-COLD
2023-11-14T23:54:59.533486+00:00 raspberrypi5 postfix/smtp[41511]: 7C0DE1F8: to=<EMAIL-REDACTED>, relay=SMTP_RELAY_REDACTED:465, delay=1, delays=0.04/0/0.35/0.63, dsn=2.0.0, status=sent (250 2.0.0 OK  1700006099 a8-20020a05600c224800b0040684abb623sm18419946wmm.24 - gsmtp)
2023-11-14T23:54:59.533966+00:00 raspberrypi5 postfix/qmgr[34450]: 7C0DE1F8: removed
2023-11-14T23:55:28.582565+00:00 raspberrypi5 monit[1350]: Filesystem '/srv/dev-disk-by-label-HDD-COLD' not mounted
2023-11-14T23:55:28.583109+00:00 raspberrypi5 monit[1350]: 'filesystem_srv_dev-disk-by-label-HDD-COLD' unable to read filesystem '/srv/dev-disk-by-label-HDD-COLD' state
2023-11-14T23:55:28.583369+00:00 raspberrypi5 monit[1350]: 'filesystem_srv_dev-disk-by-label-HDD-COLD' trying to restart
2023-11-14T23:55:28.583655+00:00 raspberrypi5 monit[1350]: 'mountpoint_srv_dev-disk-by-label-HDD-COLD' status failed (32) -- /srv/dev-disk-by-label-HDD-COLD is not a mountpoint
2023-11-14T23:55:28.583878+00:00 raspberrypi5 monit[1350]: 'mountpoint_srv_dev-disk-by-label-HDD-COLD' status failed (32) -- /srv/dev-disk-by-label-HDD-COLD is not a mountpoint

As mentioned, I had no issues for years on my Pi4, and the drives are completely fine - and run well via USB2.0. I've exhausted my troubleshooting options. I am tempted to go back to my Pi4 for my NAS for the time being, though I'd love to start running it on a Pi5.

Thank you in advance for your time, and happy to provide more logs or test things out.

@pjft
Copy link

pjft commented Nov 27, 2023

-- removed for noise reduction, updating #5753

@zhuoyang
Copy link

zhuoyang commented Dec 8, 2023

Same thing is happening to my Pi 5 with m.2 nvme usb enclosure as boot drive, I can consistently reproduce it by running a docker image

[  149.078080] sd 0:0:0:0: [sda] tag#29 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
[  149.078090] sd 0:0:0:0: [sda] tag#29 CDB: opcode=0x2a 2a 00 00 10 20 00 00 00 10 00
[  149.078202] sd 0:0:0:0: [sda] tag#28 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT
[  149.078206] sd 0:0:0:0: [sda] tag#28 CDB: opcode=0x2a 2a 00 00 50 20 08 00 00 08 00
[  149.078302] sd 0:0:0:0: [sda] tag#8 uas_eh_abort_handler 0 uas-tag 11 inflight: CMD OUT
[  149.078305] sd 0:0:0:0: [sda] tag#8 CDB: opcode=0x2a 2a 00 00 91 1d b0 00 00 08 00
[  149.078402] sd 0:0:0:0: [sda] tag#7 uas_eh_abort_handler 0 uas-tag 7 inflight: CMD OUT
[  149.078404] sd 0:0:0:0: [sda] tag#7 CDB: opcode=0x2a 2a 00 00 91 1a 88 00 00 08 00
[  149.078498] sd 0:0:0:0: [sda] tag#6 uas_eh_abort_handler 0 uas-tag 10 inflight: CMD OUT
[  149.078501] sd 0:0:0:0: [sda] tag#6 CDB: opcode=0x2a 2a 00 00 91 1d 30 00 00 08 00
[  154.169900] xhci-hcd xhci-hcd.1: xHCI host not responding to stop endpoint command
[  154.190073] xhci-hcd xhci-hcd.1: xHCI host controller not responding, assume dead
[  154.190093] xhci-hcd xhci-hcd.1: HC died; cleaning up
[  154.190147] sd 0:0:0:0: [sda] tag#5 uas_eh_abort_handler 0 uas-tag 9 inflight: CMD
[  154.190151] sd 0:0:0:0: [sda] tag#5 CDB: opcode=0x2a 2a 00 00 91 1c c8 00 00 30 00
[  154.190159] sd 0:0:0:0: [sda] tag#4 uas_eh_abort_handler 0 uas-tag 8 inflight: CMD
[  154.190162] sd 0:0:0:0: [sda] tag#4 CDB: opcode=0x2a 2a 00 00 91 1a d0 00 00 08 00
[  154.190167] sd 0:0:0:0: [sda] tag#3 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD
[  154.190169] sd 0:0:0:0: [sda] tag#3 CDB: opcode=0x2a 2a 00 00 90 23 10 00 00 10 00
[  154.190174] sd 0:0:0:0: [sda] tag#2 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD
[  154.190176] sd 0:0:0:0: [sda] tag#2 CDB: opcode=0x2a 2a 00 00 90 22 d0 00 00 10 00
[  154.190181] sd 0:0:0:0: [sda] tag#1 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD
[  154.190183] sd 0:0:0:0: [sda] tag#1 CDB: opcode=0x2a 2a 00 00 90 20 80 00 00 08 00
[  154.190192] sd 0:0:0:0: [sda] tag#0 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD
[  154.190198] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 00 90 20 00 00 00 08 00
[  154.190228] usb 4-1: USB disconnect, device number 2
[  154.209907] sd 0:0:0:0: Device offlined - not ready after error recovery
[  154.209915] sd 0:0:0:0: Device offlined - not ready after error recovery
[  154.209919] sd 0:0:0:0: Device offlined - not ready after error recovery
[  154.209922] sd 0:0:0:0: Device offlined - not ready after error recovery
[  154.209925] sd 0:0:0:0: Device offlined - not ready after error recovery
[  154.209928] sd 0:0:0:0: Device offlined - not ready after error recovery
[  154.209931] sd 0:0:0:0: Device offlined - not ready after error recovery
[  154.209934] sd 0:0:0:0: Device offlined - not ready after error recovery
[  154.209937] sd 0:0:0:0: Device offlined - not ready after error recovery
[  154.209940] sd 0:0:0:0: Device offlined - not ready after error recovery
[  154.209943] sd 0:0:0:0: Device offlined - not ready after error recovery
[  154.225919] device offline error, dev sda, sector 9445376 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  154.225934] Buffer I/O error on dev sda2, logical block 1048576, lost async page write
[  154.225954] device offline error, dev sda, sector 9445504 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  154.225959] Buffer I/O error on dev sda2, logical block 1048592, lost async page write
[  154.225966] device offline error, dev sda, sector 9446096 op 0x1:(WRITE) flags 0x3800 phys_seg 2 prio class 2
[  154.225971] Buffer I/O error on dev sda2, logical block 1048666, lost async page write
[  154.225975] Buffer I/O error on dev sda2, logical block 1048667, lost async page write
[  154.225982] device offline error, dev sda, sector 9446160 op 0x1:(WRITE) flags 0x3800 phys_seg 2 prio class 2
[  154.225986] Buffer I/O error on dev sda2, logical block 1048674, lost async page write
[  154.225991] Buffer I/O error on dev sda2, logical block 1048675, lost async page write
[  154.225997] device offline error, dev sda, sector 9509584 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  154.226001] Buffer I/O error on dev sda2, logical block 1056602, lost async page write
[  154.226008] device offline error, dev sda, sector 9510088 op 0x1:(WRITE) flags 0x3800 phys_seg 6 prio class 2
[  154.226012] Buffer I/O error on dev sda2, logical block 1056665, lost async page write
[  154.226017] Buffer I/O error on dev sda2, logical block 1056666, lost async page write
[  154.226021] Buffer I/O error on dev sda2, logical block 1056667, lost async page write
[  154.226031] device offline error, dev sda, sector 9510192 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  154.226038] device offline error, dev sda, sector 9509512 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  154.226045] device offline error, dev sda, sector 9510320 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  154.226053] device offline error, dev sda, sector 5251080 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  154.226088] EXT4-fs error (device sda2): ext4_check_bdev_write_error:217: comm systemd-journal: Error while async write back metadata
[  154.238461] Aborting journal on device sda2-8.
[  154.238473] EXT4-fs error (device sda2): ext4_journal_check_start:83: comm dockerd: Detected aborted journal
[  154.238489] EXT4-fs (sda2): previous I/O error to superblock detected
[  154.241966] JBD2: I/O error when updating journal superblock for sda2-8.
[  154.241984] EXT4-fs error (device sda2): ext4_journal_check_start:83: comm systemd-journal: Detected aborted journal
[  154.259051] EXT4-fs (sda2): I/O error while writing superblock
[  154.259081] EXT4-fs (sda2): I/O error while writing superblock
[  154.259086] EXT4-fs (sda2): previous I/O error to superblock detected
[  154.259088] EXT4-fs (sda2): Remounting filesystem read-only
[  154.259110] EXT4-fs (sda2): I/O error while writing superblock
[  154.264698] EXT4-fs (sda2): Remounting filesystem read-only

@pjft
Copy link

pjft commented Dec 8, 2023

@zhuoyang Can you move this to #5753 where the Pi5 specific issues are being discussed? Also, looking at the logs, can you share the entire dmesg log? I'm seeing references to the UAS driver being used - if so, have you tried adding quirks to your HDDs first per this post?

@zhuoyang
Copy link

zhuoyang commented Dec 8, 2023

I am not sure if I want to move to #5753 as that issue seems to be related to USB hub whereas I am not using any USB hub
Here's the full dmesg log

show logs
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x414fd0b1]
[    0.000000] Linux version 6.1.0-rpi7-rpi-2712 ([email protected]) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24)
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 5 Model B Rev 1.0
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001a000000, size 320 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000007ffff]
[    0.000000]   node   0: [mem 0x0000000000080000-0x000000003fbfffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000ffffffff]
[    0.000000] On node 0, zone DMA: 256 pages in unavailable ranges
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 14 pages/cpu s177448 r8192 d43736 u229376
[    0.000000] pcpu-alloc: s177448 r8192 d43736 u229376 alloc=14*16384
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: Hardware dirty bit management
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260864
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=D8:3A:DD:AB:F7:03 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000  console=ttyAMA10,115200 console=tty1 root=PARTUUID=b80b6a62-02 rootfstype=ext4 fsck.repair=yes rootwait ip=192.168.0.123::192.168.0.1:255.255.255.0:rpi:eth0:off
[    0.000000] Dentry cache hash table entries: 524288 (order: 8, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 7, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] Memory: 3800608K/4190208K available (12352K kernel code, 2186K rwdata, 4112K rodata, 4480K init, 1216K bss, 61920K reserved, 327680K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 40061 entries in 40 pages
[    0.000000] ftrace: allocated 40 pages with 2 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000000] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000155] Console: colour dummy device 80x25
[    0.000302] printk: console [tty1] enabled
[    0.000320] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000330] pid_max: default: 32768 minimum: 301
[    0.000356] LSM: Security Framework initializing
[    0.000413] Mount-cache hash table entries: 8192 (order: 2, 65536 bytes, linear)
[    0.000429] Mountpoint-cache hash table entries: 8192 (order: 2, 65536 bytes, linear)
[    0.000845] cgroup: Disabling memory control group subsystem
[    0.001325] cblist_init_generic: Setting adjustable number of callback queues.
[    0.001333] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.001375] cblist_init_generic: Setting adjustable number of callback queues.
[    0.001381] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.001414] cblist_init_generic: Setting adjustable number of callback queues.
[    0.001420] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.001501] rcu: Hierarchical SRCU implementation.
[    0.001506] rcu:     Max phase no-delay instances is 1000.
[    0.002120] EFI services will not be available.
[    0.002220] smp: Bringing up secondary CPUs ...
[    0.002433] Detected PIPT I-cache on CPU1
[    0.002476] CPU1: Booted secondary processor 0x0000000100 [0x414fd0b1]
[    0.002704] Detected PIPT I-cache on CPU2
[    0.002739] CPU2: Booted secondary processor 0x0000000200 [0x414fd0b1]
[    0.002968] Detected PIPT I-cache on CPU3
[    0.003000] CPU3: Booted secondary processor 0x0000000300 [0x414fd0b1]
[    0.003037] smp: Brought up 1 node, 4 CPUs
[    0.003056] SMP: Total of 4 processors activated.
[    0.003061] CPU features: detected: 32-bit EL0 Support
[    0.003066] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.003072] CPU features: detected: Common not Private translations
[    0.003077] CPU features: detected: CRC32 instructions
[    0.003082] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.003086] CPU features: detected: LSE atomic instructions
[    0.003091] CPU features: detected: Privileged Access Never
[    0.003095] CPU features: detected: RAS Extension Support
[    0.003101] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.003143] CPU: All CPU(s) started at EL2
[    0.003148] alternatives: applying system-wide alternatives
[    0.005122] devtmpfs: initialized
[    0.007663] Enabled cp15_barrier support
[    0.007675] Enabled setend support
[    0.007738] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.007750] futex hash table entries: 1024 (order: 2, 65536 bytes, linear)
[    0.008529] pinctrl core: initialized pinctrl subsystem
[    0.008725] DMI not present or invalid.
[    0.008921] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.010115] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.010173] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.010253] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.010279] audit: initializing netlink subsys (disabled)
[    0.010340] audit: type=2000 audit(0.008:1): state=initialized audit_enabled=0 res=1
[    0.010476] thermal_sys: Registered thermal governor 'step_wise'
[    0.010495] cpuidle: using governor menu
[    0.010562] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.010605] ASID allocator initialised with 32768 entries
[    0.010896] Serial: AMBA PL011 UART driver
[    0.012643] bcm2835-mbox 107c013880.mailbox: mailbox enabled
[    0.013350] 107d001000.serial: ttyAMA10 at MMIO 0x107d001000 (irq = 15, base_baud = 0) is a PL011 rev2
[    0.719689] printk: console [ttyAMA10] enabled
[    0.732163] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-11-20T19:40:17, variant start_cd
[    0.746223] raspberrypi-firmware soc:firmware: Firmware hash is 361205c600000000000000000000000000000000
[    0.764099] KASLR enabled
[    0.775941] bcm2835-dma 1000010000.dma: DMA legacy API manager, dmachans=0x1
[    0.784090] iommu: Default domain type: Translated
[    0.788993] iommu: DMA domain TLB invalidation policy: strict mode
[    0.795384] SCSI subsystem initialized
[    0.799192] usbcore: registered new interface driver usbfs
[    0.804708] usbcore: registered new interface driver hub
[    0.810049] usbcore: registered new device driver usb
[    0.815220] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.822382] pps_core: LinuxPPS API ver. 1 registered
[    0.827366] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.836545] PTP clock support registered
[    0.840723] vgaarb: loaded
[    0.843553] clocksource: Switched to clocksource arch_sys_counter
[    0.849804] VFS: Disk quotas dquot_6.6.0
[    0.853758] VFS: Dquot-cache hash table entries: 2048 (order 0, 16384 bytes)
[    0.860870] FS-Cache: Loaded
[    0.863787] CacheFiles: Loaded
[    0.868553] NET: Registered PF_INET protocol family
[    0.873554] IP idents hash table entries: 65536 (order: 5, 524288 bytes, linear)
[    0.882276] tcp_listen_portaddr_hash hash table entries: 2048 (order: 1, 32768 bytes, linear)
[    0.890863] Table-perturb hash table entries: 65536 (order: 4, 262144 bytes, linear)
[    0.898644] TCP established hash table entries: 32768 (order: 4, 262144 bytes, linear)
[    0.906733] TCP bind hash table entries: 32768 (order: 6, 1048576 bytes, linear)
[    0.914966] TCP: Hash tables configured (established 32768 bind 32768)
[    0.921648] MPTCP token hash table entries: 4096 (order: 2, 98304 bytes, linear)
[    0.929125] UDP hash table entries: 2048 (order: 2, 65536 bytes, linear)
[    0.935905] UDP-Lite hash table entries: 2048 (order: 2, 65536 bytes, linear)
[    0.943175] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.948996] RPC: Registered named UNIX socket transport module.
[    0.954943] RPC: Registered udp transport module.
[    0.959664] RPC: Registered tcp transport module.
[    0.964387] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.970856] PCI: CLS 0 bytes, default 64
[    0.974902] Trying to unpack rootfs image as initramfs...
[    0.984091] hw perfevents: enabled with armv8_cortex_a76 PMU driver, 7 counters available
[    0.992536] kvm [1]: IPA Size Limit: 40 bits
[    0.996842] kvm [1]: GICV region size/alignment is unsafe, using trapping (reduced performance)
[    1.005662] kvm [1]: vgic interrupt IRQ9
[    1.009667] kvm [1]: VHE mode initialized successfully
[    1.073816] Initialise system trusted keyrings
[    1.078374] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    1.086739] zbud: loaded
[    1.089953] NFS: Registering the id_resolver key type
[    1.095058] Key type id_resolver registered
[    1.099266] Key type id_legacy registered
[    1.103323] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.110061] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.117616] F2FS not supported on PAGE_SIZE(16384) != 4096
[    1.123232] Key type asymmetric registered
[    1.127354] Asymmetric key parser 'x509' registered
[    1.132279] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.139792] io scheduler mq-deadline registered
[    1.144349] io scheduler kyber registered
[    1.150285] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7c502000, parent irq: 31)
[    1.155123] Freeing initrd memory: 10832K
[    1.159640] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d503000, parent irq: 32)
[    1.171291] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d508380, parent irq: 33)
[    1.179089] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d508400, parent irq: 34)
[    1.186889] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7d510600, parent irq: 35)
[    1.196086] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d517b00, parent irq: 36)
[    1.205498] gpio-461 (RP1 RUN pin): hogged as output/high
[    1.244287] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    1.251169] 107d50c000.serial: ttyS0 at MMIO 0x107d50c000 (irq = 38, base_baud = 6000000) is a 16550A
[    1.260485] serial serial0: tty port ttyS0 registered
[    1.266138] iproc-rng200 107d208000.rng: hwrng registered
[    1.271690] vc-mem: phys_addr:0x00000000 mem_base=0x3fc00000 mem_size:0x40000000(1024 MiB)
[    1.280680] bcm2712-iommu-cache 1000005b00.iommuc: bcm2712_iommu_cache_probe
[    1.289846] brd: module loaded
[    1.294514] loop: module loaded
[    1.297882] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.305325] Loading iSCSI transport class v2.0-870.
[    1.311272] usbcore: registered new interface driver r8152
[    1.316801] usbcore: registered new interface driver lan78xx
[    1.322493] usbcore: registered new interface driver smsc95xx
[    1.328406] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.334248] dwc_otg: FIQ enabled
[    1.334251] dwc_otg: NAK holdoff enabled
[    1.334253] dwc_otg: FIQ split-transaction FSM enabled
[    1.334257] Module dwc_common_port init
[    1.334508] usbcore: registered new interface driver uas
[    1.339853] usbcore: registered new interface driver usb-storage
[    1.346077] mousedev: PS/2 mouse device common for all mice
[    1.359412] rpi-rtc soc:rpi_rtc: registered as rtc0
[    1.365750] rpi-rtc soc:rpi_rtc: setting system clock to 2023-12-08T16:52:29 UTC (1702054349)
[    1.374978] bcm2835-wdt bcm2835-wdt: Poweroff handler already present!
[    1.381539] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.390600] sdhci: Secure Digital Host Controller Interface driver
[    1.396811] sdhci: Copyright(c) Pierre Ossman
[    1.401328] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.407423] ledtrig-cpu: registered to indicate activity on CPUs
[    1.413506] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.419985] hid: raw HID events driver (C) Jiri Kosina
[    1.425170] usbcore: registered new interface driver usbhid
[    1.430765] usbhid: USB HID core driver
[    1.434804] NET: Registered PF_PACKET protocol family
[    1.439904] Key type dns_resolver registered
[    1.444427] registered taskstats version 1
[    1.448562] Loading compiled-in X.509 certificates
[    1.460043] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1'
[    1.468813] Loaded X.509 cert 'Debian Secure Boot Signer 2022 - linux: 14011249c2675ea8e5148542202005810584b25f'
[    1.479206] Key type .fscrypt registered
[    1.483147] Key type fscrypt-provisioning registered
[    1.489942] brcm-pcie 1000120000.pcie: host bridge /axi/pcie@120000 ranges:
[    1.496954] brcm-pcie 1000120000.pcie:   No bus range found for /axi/pcie@120000, using [bus 00-ff]
[    1.506067] brcm-pcie 1000120000.pcie:      MEM 0x1f00000000..0x1ffffffffb -> 0x0000000000
[    1.514379] brcm-pcie 1000120000.pcie:      MEM 0x1c00000000..0x1effffffff -> 0x0400000000
[    1.522701] brcm-pcie 1000120000.pcie:   IB MEM 0x1f00000000..0x1f003fffff -> 0x0000000000
[    1.531016] brcm-pcie 1000120000.pcie:   IB MEM 0x0000000000..0x0fffffffff -> 0x1000000000
[    1.540507] brcm-pcie 1000120000.pcie: setting SCB_ACCESS_EN, READ_UR_MODE, MAX_BURST_SIZE
[    1.548819] brcm-pcie 1000120000.pcie: Forcing gen 2
[    1.553848] brcm-pcie 1000120000.pcie: PCI host bridge to bus 0000:00
[    1.560317] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.565826] pci_bus 0000:00: root bus resource [mem 0x1f00000000-0x1ffffffffb] (bus address [0x00000000-0xfffffffb])
[    1.576399] pci_bus 0000:00: root bus resource [mem 0x1c00000000-0x1effffffff pref] (bus address [0x400000000-0x6ffffffff])
[    1.587596] pci 0000:00:00.0: [14e4:2712] type 01 class 0x060400
[    1.593684] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.600162] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.715560] brcm-pcie 1000120000.pcie: link up, 5.0 GT/s PCIe x4 (!SSC)
[    1.722227] pci 0000:01:00.0: [1de4:0001] type 00 class 0x020000
[    1.728275] pci 0000:01:00.0: reg 0x10: [mem 0xffffc000-0xffffffff]
[    1.734575] pci 0000:01:00.0: reg 0x14: [mem 0xffc00000-0xffffffff]
[    1.740875] pci 0000:01:00.0: reg 0x18: [mem 0xffff0000-0xffffffff]
[    1.747256] pci 0000:01:00.0: supports D1
[    1.751280] pci 0000:01:00.0: PME# supported from D0 D1 D3hot D3cold
[    1.767569] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.774221] pci 0000:00:00.0: BAR 8: assigned [mem 0x1f00000000-0x1f005fffff]
[    1.781390] pci 0000:01:00.0: BAR 1: assigned [mem 0x1f00000000-0x1f003fffff]
[    1.788560] pci 0000:01:00.0: BAR 2: assigned [mem 0x1f00400000-0x1f0040ffff]
[    1.795729] pci 0000:01:00.0: BAR 0: assigned [mem 0x1f00410000-0x1f00413fff]
[    1.802898] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.807884] pci 0000:00:00.0:   bridge window [mem 0x1f00000000-0x1f005fffff]
[    1.815056] pci 0000:00:00.0: Max Payload Size set to  256/ 512 (was  128), Max Read Rq  512
[    1.823540] pci 0000:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  512
[    1.832138] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    1.838305] pcieport 0000:00:00.0: PME: Signaling with IRQ 39
[    1.844159] pcieport 0000:00:00.0: AER: enabled with IRQ 39
[    1.849907] rp1 0000:01:00.0: bar0 len 0x4000, start 0x1f00410000, end 0x1f00413fff, flags, 0x40200
[    1.858998] rp1 0000:01:00.0: bar1 len 0x400000, start 0x1f00000000, end 0x1f003fffff, flags, 0x40200
[    1.868268] rp1 0000:01:00.0: enabling device (0000 -> 0002)
[    1.875099] rp1 0000:01:00.0: chip_id 0x20001927
[    1.903658] macb 1f00100000.ethernet eth0: Cadence GEM rev 0x00070109 at 0x1f00100000 irq 107 (d8:3a:dd:ab:f7:03)
[    1.914729] dw_axi_dmac_platform 1f00188000.dma: DesignWare AXI DMA Controller, 8 channels
[    1.983667] xhci-hcd xhci-hcd.0: xHCI Host Controller
[    1.988747] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 1
[    1.996460] xhci-hcd xhci-hcd.0: hcc params 0x0240fe6d hci version 0x110 quirks 0x0000000000010810
[    2.005472] xhci-hcd xhci-hcd.0: irq 132, io mem 0x1f00200000
[    2.011317] xhci-hcd xhci-hcd.0: xHCI Host Controller
[    2.016390] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 2
[    2.023646] xhci-hcd xhci-hcd.0: Host supports USB 3.0 SuperSpeed
[    2.029839] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    2.038162] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.045417] usb usb1: Product: xHCI Host Controller
[    2.050314] usb usb1: Manufacturer: Linux 6.1.0-rpi7-rpi-2712 xhci-hcd
[    2.056869] usb usb1: SerialNumber: xhci-hcd.0
[    2.061474] hub 1-0:1.0: USB hub found
[    2.065256] hub 1-0:1.0: 2 ports detected
[    2.069482] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    2.077787] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.085042] usb usb2: Product: xHCI Host Controller
[    2.089938] usb usb2: Manufacturer: Linux 6.1.0-rpi7-rpi-2712 xhci-hcd
[    2.096595] usb usb2: SerialNumber: xhci-hcd.0
[    2.101165] hub 2-0:1.0: USB hub found
[    2.104943] hub 2-0:1.0: 1 port detected
[    2.167654] xhci-hcd xhci-hcd.1: xHCI Host Controller
[    2.172731] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 3
[    2.180572] xhci-hcd xhci-hcd.1: hcc params 0x0240fe6d hci version 0x110 quirks 0x0000000000010810
[    2.189586] xhci-hcd xhci-hcd.1: irq 137, io mem 0x1f00300000
[    2.195428] xhci-hcd xhci-hcd.1: xHCI Host Controller
[    2.200639] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 4
[    2.207895] xhci-hcd xhci-hcd.1: Host supports USB 3.0 SuperSpeed
[    2.214123] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    2.222562] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.229833] usb usb3: Product: xHCI Host Controller
[    2.234729] usb usb3: Manufacturer: Linux 6.1.0-rpi7-rpi-2712 xhci-hcd
[    2.241419] usb usb3: SerialNumber: xhci-hcd.1
[    2.245995] hub 3-0:1.0: USB hub found
[    2.249776] hub 3-0:1.0: 2 ports detected
[    2.254001] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    2.262485] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.269741] usb usb4: Product: xHCI Host Controller
[    2.274637] usb usb4: Manufacturer: Linux 6.1.0-rpi7-rpi-2712 xhci-hcd
[    2.281413] usb usb4: SerialNumber: xhci-hcd.1
[    2.285992] hub 4-0:1.0: USB hub found
[    2.289783] hub 4-0:1.0: 1 port detected
[    2.294690] bcm2712-iommu 1000005100.iommu: bcm2712_iommu_init: DEBUG_INFO = 0x20804774
[    2.303398] platform 1000800000.codec: bcm2712_iommu_probe_device: MMU 1000005100.iommu
[    2.311500] platform 1000800000.codec: bcm2712_iommu_device_group: MMU 1000005100.iommu
[    2.319809] platform 1000800000.codec: Adding to iommu group 0
[    2.325716] platform 1000880000.pisp_be: bcm2712_iommu_probe_device: MMU 1000005100.iommu
[    2.333931] platform 1000880000.pisp_be: bcm2712_iommu_device_group: MMU 1000005100.iommu
[    2.342404] platform 1000880000.pisp_be: Adding to iommu group 0
[    2.348480] platform 1000800000.codec: bcm2712_iommu_attach_dev: MMU 1000005100.iommu
[    2.356646] platform 1000880000.pisp_be: bcm2712_iommu_attach_dev: MMU 1000005100.iommu
[    2.364691] bcm2712-iommu 1000005100.iommu: bcm2712_iommu_probe: Success
[    2.372284] bcm2712-iommu 1000005200.iommu: bcm2712_iommu_init: DEBUG_INFO = 0x20804774
[    2.380666] platform axi:gpu: bcm2712_iommu_probe_device: MMU 1000005200.iommu
[    2.388182] platform axi:gpu: bcm2712_iommu_device_group: MMU 1000005200.iommu
[    2.395440] platform axi:gpu: Adding to iommu group 1
[    2.400662] platform axi:gpu: bcm2712_iommu_attach_dev: MMU 1000005200.iommu
[    2.408005] bcm2712-iommu 1000005200.iommu: bcm2712_iommu_probe: Success
[    2.415211] bcm2712-iommu 1000005280.iommu: bcm2712_iommu_init: DEBUG_INFO = 0x20804774
[    2.423897] bcm2712-iommu 1000005280.iommu: bcm2712_iommu_probe: Success
[    2.430837] sdhci-brcmstb 1000fff000.mmc: there is not valid maps for state default
[    2.431287] mmc1: CQHCI version 5.10
[    2.432610] of_cfs_init
[    2.432646] of_cfs_init: OK
[    2.438849] mmc0: CQHCI version 5.10
[    2.486793] mmc0: SDHCI controller on 1000fff000.mmc [1000fff000.mmc] using ADMA 64-bit
[    2.630111] mmc1: SDHCI controller on 1001100000.mmc [1001100000.mmc] using ADMA 64-bit
[    2.638174] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.643563] macb 1f00100000.ethernet eth0: PHY [1f00100000.ethernet-ffffffff:01] driver [Broadcom BCM54213PE] (irq=POLL)
[    2.655656] macb 1f00100000.ethernet eth0: configuring for phy/rgmii-id link mode
[    2.665581] pps pps0: new PPS source ptp0
[    2.668757] mmc1: new ultra high speed DDR50 SDIO card at address 0001
[    2.669656] macb 1f00100000.ethernet: gem-ptp-timer ptp clock registered.
[    2.681888] usb 4-1: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=20.01
[    2.691285] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.698464] usb 4-1: Product: Ugreen Storage Device
[    2.703361] usb 4-1: Manufacturer: Ugreen
[    2.707384] usb 4-1: SerialNumber: 0129380514DF
[    2.744532] usb 4-1: Enable of device-initiated U1 failed.
[    2.752379] usb 4-1: Enable of device-initiated U2 failed.
[    2.784699] usb 4-1: Enable of device-initiated U1 failed.
[    2.790740] usb 4-1: Enable of device-initiated U2 failed.
[    2.797372] scsi host0: uas
[    3.202365] scsi 0:0:0:0: Direct-Access     KINGSTON  SKC2000M8250G   1.00 PQ: 0 ANSI: 6
[    3.231987] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    3.240626] sd 0:0:0:0: [sda] Write Protect is off
[    3.245439] sd 0:0:0:0: [sda] Mode Sense: 37 00 00 08
[    3.247792] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.257822] sd 0:0:0:0: [sda] Preferred minimum I/O size 512 bytes
[    3.264031] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes
[    3.278871]  sda: sda1 sda2
[    3.281779] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.744685] macb 1f00100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    5.771555] IP-Config: Complete:
[    5.774793]      device=eth0, hwaddr=d8:3a:dd:ab:f7:03, ipaddr=192.168.0.123, mask=255.255.255.0, gw=192.168.0.1
[    5.785020]      host=rpi, domain=, nis-domain=(none)
[    5.790092]      bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
[    5.802337] Freeing unused kernel memory: 4480K
[    5.814578] Run /init as init process
[    5.818253]   with arguments:
[    5.818256]     /init
[    5.818258]   with environment:
[    5.818260]     HOME=/
[    5.818262]     TERM=linux
[    5.988077] input: pwr_button as /devices/platform/pwr_button/input/input0
[    6.026230] brcmstb-i2c 107d508200.i2c:  @200000hz registered in interrupt mode
[    6.039500] brcmstb-i2c 107d508280.i2c:  @200000hz registered in interrupt mode
[    6.242684] EXT4-fs (sda2): mounted filesystem with ordered data mode. Quota mode: none.
[    6.398404] NET: Registered PF_INET6 protocol family
[    6.403957] Segment Routing with IPv6
[    6.407646] In-situ OAM (IOAM) with IPv6
[    6.424770] systemd[1]: systemd 252.17-1~deb12u1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    6.457674] systemd[1]: Detected architecture arm64.
[    6.464274] systemd[1]: Hostname set to <raspberrypi>.
[    6.504447] uart-pl011 107d001000.serial: no DMA platform data
[    6.667253] systemd[1]: Queued start job for default target multi-user.target.
[    6.692851] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
[    6.700821] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
[    6.709213] systemd[1]: Created slice system-serial\x2dgetty.slice - Slice /system/serial-getty.
[    6.718581] systemd[1]: Created slice system-systemd\x2dfsck.slice - Slice /system/systemd-fsck.
[    6.727820] systemd[1]: Created slice user.slice - User and Session Slice.
[    6.734913] systemd[1]: Started systemd-ask-password-console.path - Dispatch Password Requests to Console Directory Watch.
[    6.746183] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[    6.756968] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
[    6.769722] systemd[1]: Reached target cryptsetup.target - Local Encrypted Volumes.
[    6.777517] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
[    6.786520] systemd[1]: Reached target network-pre.target - Preparation for Network.
[    6.794381] systemd[1]: Reached target paths.target - Path Units.
[    6.800589] systemd[1]: Reached target slices.target - Slice Units.
[    6.806963] systemd[1]: Reached target swap.target - Swaps.
[    6.812640] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
[    6.821273] systemd[1]: Listening on systemd-fsckd.socket - fsck to fsckd communication Socket.
[    6.830156] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[    6.839331] systemd[1]: Listening on systemd-journald-audit.socket - Journal Audit Socket.
[    6.847882] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[    6.857064] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
[    6.865343] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
[    6.873723] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[    6.881951] systemd[1]: dev-hugepages.mount - Huge Pages File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
[    6.911675] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
[    6.920926] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System...
[    6.930107] systemd[1]: Mounting sys-kernel-tracing.mount - Kernel Trace File System...
[    6.938360] systemd[1]: auth-rpcgss-module.service - Kernel Module supporting RPCSEC_GSS was skipped because of an unmet condition check (ConditionPathExists=/etc/krb5.keytab).
[    6.955798] systemd[1]: Starting fake-hwclock.service - Restore / save the current clock...
[    6.965933] systemd[1]: Starting keyboard-setup.service - Set the console keyboard layout...
[    6.976067] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
[    6.986694] systemd[1]: Starting [email protected] - Load Kernel Module configfs...
[    6.996667] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
[    7.006354] systemd[1]: Starting [email protected] - Load Kernel Module drm...
[    7.014672] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: [email protected]
[    7.015607] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
[    7.033285] systemd[1]: Starting [email protected] - Load Kernel Module fuse...
[    7.042464] systemd[1]: Starting [email protected] - Load Kernel Module loop...
[    7.050499] systemd[1]: systemd-fsck-root.service - File System Check on Root Device was skipped because of an unmet condition check (ConditionPathExists=!/run/initramfs/fsck-root).
[    7.050697] fuse: init (API version 7.37)
[    7.072221] systemd[1]: Starting systemd-journald.service - Journal Service...
[    7.081966] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
[    7.091519] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
[    7.103344] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
[    7.111918] EXT4-fs (sda2): re-mounted. Quota mode: none.
[    7.120241] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
[    7.128231] systemd[1]: Mounted sys-kernel-debug.mount - Kernel Debug File System.
[    7.136080] systemd[1]: Mounted sys-kernel-tracing.mount - Kernel Trace File System.
[    7.144111] systemd[1]: Started systemd-journald.service - Journal Service.
[    7.195825] systemd-journald[290]: Received client request to flush runtime journal.
[    7.518367] rpi-gpiomem 107d508500.gpiomem: window base 0x107d508500 size 0x00000040
[    7.526237] rpi-gpiomem 107d508500.gpiomem: initialised 1 regions as /dev/gpiomem1
[    7.526365] rpi-gpiomem 107d517c00.gpiomem: window base 0x107d517c00 size 0x00000040
[    7.529573] rpi-gpiomem 107d517c00.gpiomem: initialised 1 regions as /dev/gpiomem2
[    7.530535] rpi-gpiomem 107d504100.gpiomem: window base 0x107d504100 size 0x00000020
[    7.536636] rpi-gpiomem 107d504100.gpiomem: initialised 1 regions as /dev/gpiomem3
[    7.539899] rpi-gpiomem 107d510700.gpiomem: window base 0x107d510700 size 0x00000020
[    7.552082] rpi-gpiomem 107d510700.gpiomem: initialised 1 regions as /dev/gpiomem4
[    7.556270] rpi-gpiomem 1f000d0000.gpiomem: window base 0x1f000d0000 size 0x00030000
[    7.562817] mc: Linux media interface: v0.10
[    7.581816] videodev: Linux video capture interface: v2.00
[    7.582797] rpi-gpiomem 1f000d0000.gpiomem: initialised 1 regions as /dev/gpiomem0
[    7.604842] [drm] Initialized v3d 1.0.0 20180419 for 1002000000.v3d on minor 0
[    7.670779] pispbe 1000880000.pisp_be: bcm2712_iommu_of_xlate: MMU 1000005100.iommu
[    7.670962] pispbe 1000880000.pisp_be: pispbe_probe: HW version:  0x02252700
[    7.670968] pispbe 1000880000.pisp_be: pispbe_probe: BatchStatus: 0x00000000
[    7.670971] pispbe 1000880000.pisp_be: pispbe_probe: Status:      0x00000000
[    7.670975] pispbe 1000880000.pisp_be: Register nodes for group 0
[    7.691834] pispbe 1000880000.pisp_be: input device node registered as /dev/video20
[    7.691949] pispbe 1000880000.pisp_be: tdn_input device node registered as /dev/video21
[    7.692015] pispbe 1000880000.pisp_be: stitch_input device node registered as /dev/video22
[    7.692076] pispbe 1000880000.pisp_be: hog_output device node registered as /dev/video23
[    7.692146] pispbe 1000880000.pisp_be: output0 device node registered as /dev/video24
[    7.692219] pispbe 1000880000.pisp_be: output1 device node registered as /dev/video25
[    7.692278] pispbe 1000880000.pisp_be: tdn_output device node registered as /dev/video26
[    7.692341] pispbe 1000880000.pisp_be: stitch_output device node registered as /dev/video27
[    7.692422] pispbe 1000880000.pisp_be: config device node registered as /dev/video28
[    7.699429] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.
[    7.704131] pispbe 1000880000.pisp_be: Register nodes for group 1
[    7.704647] pispbe 1000880000.pisp_be: input device node registered as /dev/video29
[    7.704726] pispbe 1000880000.pisp_be: tdn_input device node registered as /dev/video30
[    7.704791] pispbe 1000880000.pisp_be: stitch_input device node registered as /dev/video31
[    7.704860] pispbe 1000880000.pisp_be: hog_output device node registered as /dev/video32
[    7.704931] pispbe 1000880000.pisp_be: output0 device node registered as /dev/video33
[    7.704992] pispbe 1000880000.pisp_be: output1 device node registered as /dev/video34
[    7.705050] pispbe 1000880000.pisp_be: tdn_output device node registered as /dev/video35
[    7.705114] pispbe 1000880000.pisp_be: stitch_output device node registered as /dev/video36
[    7.705170] pispbe 1000880000.pisp_be: config device node registered as /dev/video37
[    7.734798] rpivid 1000800000.codec: bcm2712_iommu_of_xlate: MMU 1000005100.iommu
[    7.735992] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    7.736558] cfg80211: Loaded X.509 cert '[email protected]: 577e021cb980e0e820821ba7b54b4961b8b4fadf'
[    7.738116] cfg80211: Loaded X.509 cert '[email protected]: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
[    7.738690] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    7.738710] rpivid 1000800000.codec: Device registered as /dev/video19
[    7.792570] brcmfmac: F1 signature read @0x18000000=0x15264345
[    7.794368] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.796619] usbcore: registered new interface driver brcmfmac
[    7.833260] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    7.880569] Bluetooth: Core ver 2.22
[    7.880625] NET: Registered PF_BLUETOOTH protocol family
[    7.880629] Bluetooth: HCI device and connection manager initialized
[    7.880638] Bluetooth: HCI socket layer initialized
[    7.880643] Bluetooth: L2CAP socket layer initialized
[    7.880651] Bluetooth: SCO socket layer initialized
[    7.918401] Bluetooth: HCI UART driver ver 2.3
[    7.918411] Bluetooth: HCI UART protocol H4 registered
[    7.918444] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    7.918561] Bluetooth: HCI UART protocol Broadcom registered
[    7.918655] hci_uart_bcm serial0-0: supply vbat not found, using dummy regulator
[    7.918715] hci_uart_bcm serial0-0: supply vddio not found, using dummy regulator
[    7.950595] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[    7.968466] vc4-drm axi:gpu: bcm2712_iommu_of_xlate: MMU 1000005200.iommu
[    7.975225] vc4-drm axi:gpu: bound 107c580000.hvs (ops vc4_hvs_ops [vc4])
[    7.986141] Registered IR keymap rc-cec
[    7.986193] rc rc0: vc4-hdmi-0 as /devices/platform/soc/107c701400.hdmi/rc/rc0
[    7.986249] input: vc4-hdmi-0 as /devices/platform/soc/107c701400.hdmi/rc/rc0/input1
[    8.062473] vc4-drm axi:gpu: bound 107c701400.hdmi (ops vc4_hdmi_ops [vc4])
[    8.072510] Registered IR keymap rc-cec
[    8.072581] rc rc1: vc4-hdmi-1 as /devices/platform/soc/107c706400.hdmi/rc/rc1
[    8.072633] input: vc4-hdmi-1 as /devices/platform/soc/107c706400.hdmi/rc/rc1/input2
[    8.073492] vc4-drm axi:gpu: bound 107c706400.hdmi (ops vc4_hdmi_ops [vc4])
[    8.073663] vc4-drm axi:gpu: bound 107c500000.mop (ops vc4_txp_ops [vc4])
[    8.073762] vc4-drm axi:gpu: bound 107c501000.moplet (ops vc4_txp_ops [vc4])
[    8.075343] vc4-drm axi:gpu: bound 107c410000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.076688] vc4-drm axi:gpu: bound 107c411000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.079329] [drm] Initialized vc4 0.0.0 20140616 for axi:gpu on minor 1
[    8.083319] vc4-drm axi:gpu: [drm] Cannot find any crtc or sizes
[    8.089258] vc4-drm axi:gpu: [drm] Cannot find any crtc or sizes
[    8.093371] vc4-drm axi:gpu: [drm] Cannot find any crtc or sizes
[    8.272041] Bluetooth: hci0: BCM: chip id 107
[    8.272297] Bluetooth: hci0: BCM: features 0x2f
[    8.273442] Bluetooth: hci0: BCM4345C0
[    8.273447] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000
[    8.273973] Bluetooth: hci0: BCM4345C0 'brcm/BCM4345C0.raspberrypi,5-model-b.hcd' Patch
[    8.385497] Adding 102384k swap on /var/swap.  Priority:-2 extents:1 across:102384k SSFS
[    8.758725] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    8.988502] Bluetooth: hci0: BCM: features 0x2f
[    8.989866] Bluetooth: hci0: BCM43455 37.4MHz Raspberry Pi 3+-0190
[    8.989870] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0382
[    8.990223] Bluetooth: hci0: BCM: Using default device address (43:45:c0:00:1f:ac)
[    9.091527] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    9.091536] Bluetooth: BNEP filters: protocol multicast
[    9.091544] Bluetooth: BNEP socket layer initialized
[    9.093866] Bluetooth: MGMT ver 1.22
[    9.098870] NET: Registered PF_ALG protocol family
[    9.565013] tun: Universal TUN/TAP device driver, 1.6
[   12.119719] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[   12.121233] Bridge firewalling registered
[   12.169299] Initializing XFRM netlink socket
[   12.592039] br-3cac3bb52bc3: port 1(veth179c1ab) entered blocking state
[   12.592047] br-3cac3bb52bc3: port 1(veth179c1ab) entered disabled state
[   12.592116] device veth179c1ab entered promiscuous mode
[   12.592257] br-3cac3bb52bc3: port 1(veth179c1ab) entered blocking state
[   12.592260] br-3cac3bb52bc3: port 1(veth179c1ab) entered forwarding state
[   12.592348] br-3cac3bb52bc3: port 1(veth179c1ab) entered disabled state
[   12.920380] eth0: renamed from veth922e4c7
[   12.946184] IPv6: ADDRCONF(NETDEV_CHANGE): veth179c1ab: link becomes ready
[   12.946259] br-3cac3bb52bc3: port 1(veth179c1ab) entered blocking state
[   12.946267] br-3cac3bb52bc3: port 1(veth179c1ab) entered forwarding state
[   12.946342] IPv6: ADDRCONF(NETDEV_CHANGE): br-3cac3bb52bc3: link becomes ready
[   67.405139] br-0923d8353d3f: port 1(veth48b9427) entered blocking state
[   67.405148] br-0923d8353d3f: port 1(veth48b9427) entered disabled state
[   67.405262] device veth48b9427 entered promiscuous mode
[   67.642465] eth0: renamed from veth12e931f
[   67.678488] IPv6: ADDRCONF(NETDEV_CHANGE): veth48b9427: link becomes ready
[   67.678530] br-0923d8353d3f: port 1(veth48b9427) entered blocking state
[   67.678534] br-0923d8353d3f: port 1(veth48b9427) entered forwarding state
[   67.678585] IPv6: ADDRCONF(NETDEV_CHANGE): br-0923d8353d3f: link becomes ready
[  119.835723] sd 0:0:0:0: [sda] tag#29 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT
[  119.835732] sd 0:0:0:0: [sda] tag#29 CDB: opcode=0x2a 2a 00 00 90 22 d0 00 00 08 00
[  119.835846] sd 0:0:0:0: [sda] tag#28 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
[  119.835849] sd 0:0:0:0: [sda] tag#28 CDB: opcode=0x2a 2a 00 00 10 20 00 00 00 10 00
[  119.835946] sd 0:0:0:0: [sda] tag#9 uas_eh_abort_handler 0 uas-tag 12 inflight: CMD OUT
[  119.835949] sd 0:0:0:0: [sda] tag#9 CDB: opcode=0x2a 2a 00 01 d1 71 98 00 00 28 00
[  119.836046] sd 0:0:0:0: [sda] tag#8 uas_eh_abort_handler 0 uas-tag 11 inflight: CMD OUT
[  119.836049] sd 0:0:0:0: [sda] tag#8 CDB: opcode=0x2a 2a 00 01 d1 71 88 00 00 08 00
[  124.927569] xhci-hcd xhci-hcd.1: xHCI host not responding to stop endpoint command
[  124.947748] xhci-hcd xhci-hcd.1: xHCI host controller not responding, assume dead
[  124.947773] xhci-hcd xhci-hcd.1: HC died; cleaning up
[  124.947830] usb 4-1: cmd cmplt err -108
[  124.947836] usb 4-1: cmd cmplt err -108
[  124.947857] sd 0:0:0:0: [sda] tag#7 uas_eh_abort_handler 0 uas-tag 10 inflight: CMD
[  124.947862] sd 0:0:0:0: [sda] tag#7 CDB: opcode=0x2a 2a 00 01 d1 71 08 00 00 08 00
[  124.947874] sd 0:0:0:0: [sda] tag#6 uas_eh_abort_handler 0 uas-tag 9 inflight: CMD
[  124.947876] sd 0:0:0:0: [sda] tag#6 CDB: opcode=0x2a 2a 00 01 d0 47 60 00 00 18 00
[  124.947882] sd 0:0:0:0: [sda] tag#5 uas_eh_abort_handler 0 uas-tag 8 inflight: CMD
[  124.947884] sd 0:0:0:0: [sda] tag#5 CDB: opcode=0x2a 2a 00 01 d0 20 90 00 00 08 00
[  124.947890] sd 0:0:0:0: [sda] tag#4 uas_eh_abort_handler 0 uas-tag 7 inflight: CMD
[  124.947893] sd 0:0:0:0: [sda] tag#4 CDB: opcode=0x2a 2a 00 01 d0 20 00 00 00 08 00
[  124.947898] sd 0:0:0:0: [sda] tag#3 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD
[  124.947900] sd 0:0:0:0: [sda] tag#3 CDB: opcode=0x2a 2a 00 01 90 20 20 00 00 08 00
[  124.947908] sd 0:0:0:0: [sda] tag#2 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD
[  124.947910] sd 0:0:0:0: [sda] tag#2 CDB: opcode=0x2a 2a 00 00 91 1d 30 00 00 08 00
[  124.947917] sd 0:0:0:0: [sda] tag#1 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD
[  124.947920] sd 0:0:0:0: [sda] tag#1 CDB: opcode=0x2a 2a 00 00 91 1a 88 00 00 08 00
[  124.947926] sd 0:0:0:0: [sda] tag#0 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD
[  124.947928] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 00 90 23 18 00 00 08 00
[  124.947948] usb 4-1: USB disconnect, device number 2
[  124.963580] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.963588] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.963591] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.963595] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.963598] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.963600] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.963603] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.963606] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.963609] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.963612] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.963615] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.963618] sd 0:0:0:0: Device offlined - not ready after error recovery
[  124.987590] device offline error, dev sda, sector 9446168 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  124.987606] Buffer I/O error on dev sda2, logical block 1048675, lost async page write
[  124.987626] device offline error, dev sda, sector 9509512 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  124.987632] Buffer I/O error on dev sda2, logical block 1056593, lost async page write
[  124.987639] device offline error, dev sda, sector 9510192 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  124.987644] Buffer I/O error on dev sda2, logical block 1056678, lost async page write
[  124.987651] device offline error, dev sda, sector 26222624 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  124.987656] Buffer I/O error on dev sda2, logical block 3145732, lost async page write
[  124.987663] device offline error, dev sda, sector 30416896 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  124.987667] Buffer I/O error on dev sda2, logical block 3670016, lost async page write
[  124.987674] device offline error, dev sda, sector 30417040 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  124.987678] Buffer I/O error on dev sda2, logical block 3670034, lost async page write
[  124.987684] device offline error, dev sda, sector 30426976 op 0x1:(WRITE) flags 0x3800 phys_seg 3 prio class 2
[  124.987688] Buffer I/O error on dev sda2, logical block 3671276, lost async page write
[  124.987692] Buffer I/O error on dev sda2, logical block 3671277, lost async page write
[  124.987696] Buffer I/O error on dev sda2, logical block 3671278, lost async page write
[  124.987702] device offline error, dev sda, sector 30503176 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  124.987706] Buffer I/O error on dev sda2, logical block 3680801, lost async page write
[  124.987713] device offline error, dev sda, sector 30503304 op 0x1:(WRITE) flags 0x3800 phys_seg 1 prio class 2
[  124.987720] device offline error, dev sda, sector 30503320 op 0x1:(WRITE) flags 0x3800 phys_seg 5 prio class 2
[  124.987761] EXT4-fs error (device sda2): ext4_check_bdev_write_error:217: comm systemd-journal: Error while async write back metadata
[  124.999927] EXT4-fs (sda2): previous I/O error to superblock detected
[  124.999978] Aborting journal on device sda2-8.
[  124.999989] EXT4-fs error (device sda2) in ext4_mb_clear_bb:6133: Journal has aborted
[  125.000007] JBD2: I/O error when updating journal superblock for sda2-8.
[  125.000157] EXT4-fs error (device sda2): ext4_journal_check_start:83: comm systemd-journal: Detected aborted journal
[  125.008133] EXT4-fs (sda2): I/O error while writing superblock
[  125.013356] EXT4-fs error (device sda2): ext4_journal_check_start:83: comm systemd-timesyn: Detected aborted journal
[  125.015544] EXT4-fs error (device sda2): ext4_check_bdev_write_error:217: comm dockerd: Error while async write back metadata
[  125.015552] EXT4-fs error (device sda2) in ext4_reserve_inode_write:5856: Journal has aborted
[  125.015557] EXT4-fs error (device sda2): __ext4_ext_dirty:202: inode #904927: comm dockerd: mark_inode_dirty error
[  125.015566] EXT4-fs error (device sda2): ext4_check_bdev_write_error:217: comm dockerd: Error while async write back metadata
[  125.015570] EXT4-fs error (device sda2) in ext4_reserve_inode_write:5856: Journal has aborted
[  125.015573] EXT4-fs error (device sda2): __ext4_ext_dirty:202: inode #904927: comm dockerd: mark_inode_dirty error
[  125.018544] EXT4-fs (sda2): previous I/O error to superblock detected
[  125.089901] EXT4-fs (sda2): previous I/O error to superblock detected
[  125.089923] EXT4-fs (sda2): previous I/O error to superblock detected
[  125.089943] EXT4-fs (sda2): I/O error while writing superblock
[  125.089944] EXT4-fs (sda2): previous I/O error to superblock detected
[  125.089959] EXT4-fs (sda2): I/O error while writing superblock
[  125.089961] EXT4-fs (sda2): I/O error while writing superblock
[  125.089962] EXT4-fs (sda2): Remounting filesystem read-only
[  125.094004] EXT4-fs warning (device sda2): htree_dirblock_to_tree:1082: inode #126465: lblock 0: comm systemd-journal: error -5 reading directory block
[  125.095627] EXT4-fs warning (device sda2): ext4_dx_find_entry:1795: inode #253870: lblock 2: comm dockerd: error -5 reading directory block
[  125.095658] EXT4-fs warning (device sda2): ext4_dx_find_entry:1795: inode #253870: lblock 2: comm dockerd: error -5 reading directory block
[  125.135557] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  125.375526] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=DRIVER_OK
[  125.375649] xhci-hcd xhci-hcd.1: WARN Can't disable streams for endpoint 0x81, streams are being disabled already
[  133.034872] EXT4-fs error: 8 callbacks suppressed
[  133.034878] EXT4-fs error (device sda2): __ext4_find_entry:1682: inode #22: comm gmain: reading directory lblock 0
[  137.035012] EXT4-fs error (device sda2): __ext4_find_entry:1682: inode #22: comm gmain: reading directory lblock 0
[  141.034169] EXT4-fs error (device sda2): __ext4_find_entry:1682: inode #22: comm gmain: reading directory lblock 0
[  145.031300] EXT4-fs error (device sda2): __ext4_find_entry:1682: inode #22: comm gmain: reading directory lblock 0
[  149.034499] EXT4-fs error (device sda2): __ext4_find_entry:1682: inode #22: comm gmain: reading directory lblock 0

EDIT: adding quirk seems to work, but will continue to monitor and see if it happens again, I am actually seeing it happens even when using USB 2, but didn't managed to capture the dmesg

@pjft
Copy link

pjft commented Dec 8, 2023

Got it - apologies for the suggestion to move it to the other issue, it seemed that they wanted to keep this Pi4 related.

That being said, USB3.0 issues are fairly known with the Pi4 bus, and adding quirks is normally the recommendation. See if it works.

The way to see if it's properly enabled is to check in lsusb -tv if the driver is uas (non quirks) or usb-storage (quirks, more compatible).

Best of luck.

@spegelius
Copy link

I have this very same problem after swapping Rpi3 to Rpi4 2G. I have 3 custom boxes with I-Tec 16-port USB hubs, all ports filled with 4-5T USB disks (Seagate, WD, Intenso, Toshiba...). With Rpi3s, all 3 boxes have been working fine for ~2 years 24/7. After swapping to Rpi4 on one of them, errors like 'xhci_hcd 0000:01:00.0: HC died; cleaning up' show up either during boot or some time after.
Tried so far:

  • USB2 port seems to be reliable for some time, IF I can get past boot... only tested for couple of hours. USB3 fails very fast...
  • did a fresh OS install with latest image. No change to previous buster-based image...
  • rpi-eeprom-update, no change
  • tried adding quirks for uas drives, but didn't help (dmesg shows 'UAS is ignored for this device, using usb-storage instead' for uas disks)
  • overvoltage=2 didn't help

@pjft
Copy link

pjft commented Feb 14, 2024

Please check #5753 and see if it's the same.

@Shourai
Copy link

Shourai commented Mar 8, 2024

Same issue seems to happen here, I couldn't figure out why a SSD drive connected via a SATA to USB adapter was constantly disconnecting.
I googled xHCI host not responding and came upon this issue.
The SSD kept disconnecting when I spun up multiple docker containers that write to the SSD.
With the information here I have since swapped to using an USB 2.0 port and haven't had any issues since.

One thing that might be of note is that it only happened when I upgraded to debian 12.
I ran the setup with debian 11 for over a year while using the usb 3.0 port without issues.

lsusb -tv
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 2109:3431 VIA Labs, Inc. Hub
        |__ Port 3: Dev 3, If 0, Class=Mass Storage, Driver=uas, 480M
            ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS578 SATA 6Gb/s
        |__ Port 4: Dev 4, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
            ID 10c4:ea60 Silicon Labs CP210x UART Bridge
sudo rpi-eeprom-update
*** UPDATE AVAILABLE ***
BOOTLOADER: update available
   CURRENT: Thu Apr 29 16:11:25 UTC 2021 (1619712685)
    LATEST: Wed Jan 11 17:40:52 UTC 2023 (1673458852)
   RELEASE: default (/lib/firmware/raspberrypi/bootloader-2711/default)
            Use raspi-config to change the release.

  VL805_FW: Dedicated VL805 EEPROM
     VL805: up to date
   CURRENT: 000138c0
    LATEST: 000138c0
uname -a
Linux raspberrypi 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux

@pjft
Copy link

pjft commented Mar 8, 2024

@Shourai if you're on a Pi5, please check #5753 and try this:

#5753 (comment)

If not, maybe try it as well and see if it helps?

@Shourai
Copy link

Shourai commented Mar 8, 2024

@Shourai if you're on a Pi5, please check #5753 and try this:

#5753 (comment)

If not, maybe try it as well and see if it helps?

Thanks for the the quick reply!
I am running an Pi4 hence commenting on this issue and haven't looked into the Pi5 one at all.
I'll try it out tomorrow as I'll have to back up some stuff beforehand.
I will report back with the results!


An update:
I can reliably reproduce this issue, all I do is plug my ssd from an usb2 to an usb 3 port.
When I reboot the pi and having my docker containers automatically startup again, the whole things comes crashing down.
The drive is being auto-mounted by my fstab file, since my compose files live on the mounted drive.

I get the following error show in dmesg

dmesg
[   82.939314] xhci_hcd 0000:01:00.0: WARNING: Host System Error
[   88.030178] xhci_hcd 0000:01:00.0: xHCI host not responding to stop endpoint command
[   88.030196] xhci_hcd 0000:01:00.0: xHCI host controller not responding, assume dead
[   88.030277] xhci_hcd 0000:01:00.0: HC died; cleaning up
[   88.030382] usb 1-1: USB disconnect, device number 2
[   88.030389] usb 1-1.4: USB disconnect, device number 3
[   88.030561] sd 0:0:0:0: [sda] tag#24 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD
[   88.030570] sd 0:0:0:0: [sda] tag#24 CDB: opcode=0x28 28 00 1b 00 ff ff 00 00 08 00
[   88.030577] sd 0:0:0:0: [sda] tag#23 uas_eh_abort_handler 0 uas-tag 16 inflight: CMD
[   88.030581] sd 0:0:0:0: [sda] tag#23 CDB: opcode=0x28 28 00 1c 80 ff ff 00 00 08 00
[   88.030588] sd 0:0:0:0: [sda] tag#22 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD
[   88.030592] sd 0:0:0:0: [sda] tag#22 CDB: opcode=0x28 28 00 10 02 09 67 00 00 08 00
[   88.030598] sd 0:0:0:0: [sda] tag#21 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD
[   88.030602] sd 0:0:0:0: [sda] tag#21 CDB: opcode=0x28 28 00 10 02 05 67 00 00 08 00
[   88.030607] sd 0:0:0:0: [sda] tag#20 uas_eh_abort_handler 0 uas-tag 15 inflight: CMD
[   88.030612] sd 0:0:0:0: [sda] tag#20 CDB: opcode=0x28 28 00 1c 40 ff ff 00 00 08 00
[   88.030617] sd 0:0:0:0: [sda] tag#19 uas_eh_abort_handler 0 uas-tag 24 inflight: CMD
[   88.030621] sd 0:0:0:0: [sda] tag#19 CDB: opcode=0x28 28 00 19 80 ff ff 00 00 08 00
[   88.030627] sd 0:0:0:0: [sda] tag#18 uas_eh_abort_handler 0 uas-tag 23 inflight: CMD
[   88.030631] sd 0:0:0:0: [sda] tag#18 CDB: opcode=0x28 28 00 19 40 ff ff 00 00 08 00
[   88.030637] sd 0:0:0:0: [sda] tag#17 uas_eh_abort_handler 0 uas-tag 22 inflight: CMD
[   88.030641] sd 0:0:0:0: [sda] tag#17 CDB: opcode=0x28 28 00 19 00 ff ff 00 00 08 00
[   88.030646] sd 0:0:0:0: [sda] tag#16 uas_eh_abort_handler 0 uas-tag 21 inflight: CMD
[   88.030650] sd 0:0:0:0: [sda] tag#16 CDB: opcode=0x28 28 00 18 c0 ff ff 00 00 08 00
[   88.030656] sd 0:0:0:0: [sda] tag#15 uas_eh_abort_handler 0 uas-tag 7 inflight: CMD
[   88.030660] sd 0:0:0:0: [sda] tag#15 CDB: opcode=0x28 28 00 1a 40 ff ff 00 00 08 00
[   88.030665] sd 0:0:0:0: [sda] tag#14 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD
[   88.030669] sd 0:0:0:0: [sda] tag#14 CDB: opcode=0x28 28 00 10 02 09 3f 00 00 08 00
[   88.030675] sd 0:0:0:0: [sda] tag#13 uas_eh_abort_handler 0 uas-tag 13 inflight: CMD
[   88.030679] sd 0:0:0:0: [sda] tag#13 CDB: opcode=0x28 28 00 1c 00 ff ff 00 00 08 00
[   88.030685] sd 0:0:0:0: [sda] tag#12 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD
[   88.030688] sd 0:0:0:0: [sda] tag#12 CDB: opcode=0x28 28 00 1a 80 ff ff 00 00 08 00
[   88.030694] sd 0:0:0:0: [sda] tag#11 uas_eh_abort_handler 0 uas-tag 29 inflight: CMD
[   88.030698] sd 0:0:0:0: [sda] tag#11 CDB: opcode=0x28 28 00 1e 00 ff ff 00 00 08 00
[   88.030703] sd 0:0:0:0: [sda] tag#10 uas_eh_abort_handler 0 uas-tag 28 inflight: CMD
[   88.030707] sd 0:0:0:0: [sda] tag#10 CDB: opcode=0x28 28 00 1d c0 ff ff 00 00 08 00
[   88.030713] sd 0:0:0:0: [sda] tag#9 uas_eh_abort_handler 0 uas-tag 27 inflight: CMD
[   88.030717] sd 0:0:0:0: [sda] tag#9 CDB: opcode=0x28 28 00 1d 80 ff ff 00 00 08 00
[   88.030723] sd 0:0:0:0: [sda] tag#8 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD
[   88.030726] sd 0:0:0:0: [sda] tag#8 CDB: opcode=0x28 28 00 1a 00 ff ff 00 00 08 00
[   88.030732] sd 0:0:0:0: [sda] tag#7 uas_eh_abort_handler 0 uas-tag 26 inflight: CMD
[   88.030736] sd 0:0:0:0: [sda] tag#7 CDB: opcode=0x28 28 00 1d 40 ff ff 00 00 08 00
[   88.030742] sd 0:0:0:0: [sda] tag#6 uas_eh_abort_handler 0 uas-tag 20 inflight: CMD
[   88.030745] sd 0:0:0:0: [sda] tag#6 CDB: opcode=0x28 28 00 18 80 ff ff 00 00 08 00
[   88.030751] sd 0:0:0:0: [sda] tag#5 uas_eh_abort_handler 0 uas-tag 18 inflight: CMD
[   88.030755] sd 0:0:0:0: [sda] tag#5 CDB: opcode=0x28 28 00 18 40 ff ff 00 00 08 00
[   88.030760] sd 0:0:0:0: [sda] tag#4 uas_eh_abort_handler 0 uas-tag 11 inflight: CMD
[   88.030764] sd 0:0:0:0: [sda] tag#4 CDB: opcode=0x28 28 00 18 00 ff ff 00 00 08 00
[   88.030770] sd 0:0:0:0: [sda] tag#3 uas_eh_abort_handler 0 uas-tag 14 inflight: CMD
[   88.030773] sd 0:0:0:0: [sda] tag#3 CDB: opcode=0x28 28 00 10 02 04 87 00 00 08 00
[   88.030779] sd 0:0:0:0: [sda] tag#2 uas_eh_abort_handler 0 uas-tag 12 inflight: CMD
[   88.030783] sd 0:0:0:0: [sda] tag#2 CDB: opcode=0x28 28 00 1b c0 ff ff 00 00 08 00
[   88.030788] sd 0:0:0:0: [sda] tag#1 uas_eh_abort_handler 0 uas-tag 8 inflight: CMD
[   88.030792] sd 0:0:0:0: [sda] tag#1 CDB: opcode=0x28 28 00 1b 80 ff ff 00 00 08 00
[   88.030797] sd 0:0:0:0: [sda] tag#0 uas_eh_abort_handler 0 uas-tag 19 inflight: CMD
[   88.030801] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 1d 00 ff ff 00 00 08 00
[   88.030853] usb 2-2: USB disconnect, device number 2
[   88.031382] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[   88.031551] cp210x 1-1.4:1.0: device disconnected
[   88.050349] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050368] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050372] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050376] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050380] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050383] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050387] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050390] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050393] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050396] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050400] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050403] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050406] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050410] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050413] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050416] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050419] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050422] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050426] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050429] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050432] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050435] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050438] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050442] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050445] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050448] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050452] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050455] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.050458] sd 0:0:0:0: Device offlined - not ready after error recovery
[   88.066343] device offline error, dev sda, sector 486604799 op 0x0:(READ) flags 0x83700 phys_seg 1 prio class 2
[   88.066454] device offline error, dev sda, sector 461438975 op 0x0:(READ) flags 0x83700 phys_seg 1 prio class 2
[   88.066468] device offline error, dev sda, sector 465633279 op 0x0:(READ) flags 0x83700 phys_seg 1 prio class 2
[   88.066480] device offline error, dev sda, sector 268567687 op 0x0:(READ) flags 0x3000 phys_seg 1 prio class 2
[   88.066511] device offline error, dev sda, sector 402718719 op 0x0:(READ) flags 0x83700 phys_seg 1 prio class 2
[   88.066527] device offline error, dev sda, sector 406913023 op 0x0:(READ) flags 0x83700 phys_seg 1 prio class 2
[   88.066534] device offline error, dev sda, sector 411107327 op 0x0:(READ) flags 0x83700 phys_seg 1 prio class 2
[   88.066543] device offline error, dev sda, sector 490799103 op 0x0:(READ) flags 0x83700 phys_seg 1 prio class 2
[   88.066550] device offline error, dev sda, sector 436273151 op 0x0:(READ) flags 0x83700 phys_seg 1 prio class 2
[   88.066546] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390208: comm dockerd: reading directory lblock 0
[   88.066553] device offline error, dev sda, sector 507576319 op 0x0:(READ) flags 0x83700 phys_seg 1 prio class 2
[   88.066660] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390565: comm dockerd: reading directory lblock 0
[   88.066694] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8389909: comm dockerd: reading directory lblock 0
[   88.066694] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390322: comm dockerd: reading directory lblock 0
[   88.066712] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8388696: comm mkdir: reading directory lblock 0
[   88.066755] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8389008: comm python: reading directory lblock 0
[   88.066858] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390573: comm dockerd: reading directory lblock 0
[   88.066901] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390226: comm dockerd: reading directory lblock 0
[   88.066925] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390322: comm dockerd: reading directory lblock 0
[   88.066932] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1082: inode #8389001: lblock 0: comm chown: error -5 reading directory block
[   88.067053] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390565: comm dockerd: reading directory lblock 0
[   88.068426] Buffer I/O error on dev sda1, logical block 58228736, lost sync page write
[   88.068466] JBD2: I/O error when updating journal superblock for sda1-8.
[   88.068471] Aborting journal on device sda1-8.
[   88.068502] Buffer I/O error on dev sda1, logical block 58228736, lost sync page write
[   88.068516] JBD2: I/O error when updating journal superblock for sda1-8.
[   88.068753] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[   88.068783] EXT4-fs (sda1): I/O error while writing superblock
[   88.068854] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[   88.068869] EXT4-fs (sda1): I/O error while writing superblock
[   88.069003] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[   88.069019] EXT4-fs (sda1): I/O error while writing superblock
[   88.069078] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[   88.069090] EXT4-fs (sda1): I/O error while writing superblock
[   88.069186] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[   88.069199] EXT4-fs (sda1): I/O error while writing superblock
[   88.069251] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[   88.069262] EXT4-fs (sda1): I/O error while writing superblock
[   88.069362] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[   88.069374] EXT4-fs (sda1): I/O error while writing superblock
[   88.069471] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[   88.069485] EXT4-fs (sda1): I/O error while writing superblock
[   88.069642] EXT4-fs (sda1): I/O error while writing superblock
[   88.069724] EXT4-fs (sda1): I/O error while writing superblock
[   88.072166] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1082: inode #8389005: lblock 0: comm find: error -5 reading directory block

I will now be installing the following firmware sudo rpi-update pulls/5788.


So far after a reboot all the containers come up while connected to an usb 3 port.
I will let it run for a few days and see how it goes.

uname -a

Linux raspberrypi 6.1.66-v8+ #1 SMP PREEMPT Wed Dec 13 15:17:55 UTC 2023 aarch64 GNU/Linux

Unfortunately it didn't help and it crashed also only about half an hour later.

dmesg
[  676.356070] xhci_hcd 0000:01:00.0: WARNING: Host System Error
[  680.684548] cp210x ttyUSB0: usb_serial_generic_write_start - error submitting urb: -19
[  680.695191] cp210x ttyUSB0: failed to get comm status: -19
[  680.701049] cp210x ttyUSB0: failed to get comm status: -19
[  680.701075] cp210x ttyUSB0: failed set request 0x7 status: -19
[  680.701146] cp210x ttyUSB0: failed set request 0x12 status: -19
[  680.701155] cp210x ttyUSB0: failed set request 0x0 status: -19
[  681.445693] xhci_hcd 0000:01:00.0: xHCI host not responding to stop endpoint command
[  681.445712] xhci_hcd 0000:01:00.0: xHCI host controller not responding, assume dead
[  681.445790] xhci_hcd 0000:01:00.0: HC died; cleaning up
[  681.446199] usb 1-1: USB disconnect, device number 2
[  681.446211] usb 1-1.4: USB disconnect, device number 3
[  681.446472] sd 0:0:0:0: [sda] tag#5 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD
[  681.446483] sd 0:0:0:0: [sda] tag#5 CDB: opcode=0x28 28 00 10 06 74 2f 00 00 80 00
[  681.446505] usb 2-2: USB disconnect, device number 2
[  681.446626] sd 0:0:0:0: [sda] tag#27 uas_zap_pending 0 uas-tag 10 inflight: CMD
[  681.446632] sd 0:0:0:0: [sda] tag#27 CDB: opcode=0x2a 2a 00 1b c5 12 4f 00 00 20 00
[  681.446643] sd 0:0:0:0: [sda] tag#24 uas_zap_pending 0 uas-tag 11 inflight: CMD
[  681.446647] sd 0:0:0:0: [sda] tag#24 CDB: opcode=0x2a 2a 00 01 fd 30 e7 00 00 08 00
[  681.446654] sd 0:0:0:0: [sda] tag#25 uas_zap_pending 0 uas-tag 12 inflight: CMD
[  681.446659] sd 0:0:0:0: [sda] tag#25 CDB: opcode=0x2a 2a 00 01 fd 40 1f 00 00 08 00
[  681.446665] sd 0:0:0:0: [sda] tag#28 uas_zap_pending 0 uas-tag 13 inflight: CMD
[  681.446669] sd 0:0:0:0: [sda] tag#28 CDB: opcode=0x2a 2a 00 01 fd 40 3f 00 00 10 00
[  681.446675] sd 0:0:0:0: [sda] tag#0 uas_zap_pending 0 uas-tag 14 inflight: CMD
[  681.446679] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 07 fe 6e 2f 00 00 20 00
[  681.446684] sd 0:0:0:0: [sda] tag#1 uas_zap_pending 0 uas-tag 15 inflight: CMD
[  681.446688] sd 0:0:0:0: [sda] tag#1 CDB: opcode=0x2a 2a 00 10 01 00 1f 00 00 08 00
[  681.446687] sd 0:0:0:0: [sda] tag#24 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=24s
[  681.446693] sd 0:0:0:0: [sda] tag#2 uas_zap_pending 0 uas-tag 16 inflight: CMD
[  681.446697] sd 0:0:0:0: [sda] tag#2 CDB: opcode=0x2a 2a 00 10 01 01 77 00 00 08 00
[  681.446698] sd 0:0:0:0: [sda] tag#24 CDB: opcode=0x2a 2a 00 01 fd 30 e7 00 00 08 00
[  681.446702] sd 0:0:0:0: [sda] tag#3 uas_zap_pending 0 uas-tag 17 inflight: CMD
[  681.446707] sd 0:0:0:0: [sda] tag#3 CDB: opcode=0x2a 2a 00 10 01 04 2f 00 00 08 00
[  681.446705] I/O error, dev sda, sector 33370343 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 2
[  681.446712] sd 0:0:0:0: [sda] tag#4 uas_zap_pending 0 uas-tag 18 inflight: CMD
[  681.446716] sd 0:0:0:0: [sda] tag#4 CDB: opcode=0x2a 2a 00 10 01 04 57 00 00 08 00
[  681.446716] EXT4-fs warning (device sda1): ext4_end_bio:343: I/O error 10 writing to inode 8390943 starting block 4171292)
[  681.446721] sd 0:0:0:0: [sda] tag#8 uas_zap_pending 0 uas-tag 19 inflight: CMD
[  681.446725] sd 0:0:0:0: [sda] tag#8 CDB: opcode=0x2a 2a 00 10 01 04 cf 00 00 08 00
[  681.446730] sd 0:0:0:0: [sda] tag#9 uas_zap_pending 0 uas-tag 20 inflight: CMD
[  681.446734] sd 0:0:0:0: [sda] tag#9 CDB: opcode=0x2a 2a 00 10 01 05 77 00 00 08 00
[  681.446739] sd 0:0:0:0: [sda] tag#10 uas_zap_pending 0 uas-tag 21 inflight: CMD
[  681.446743] sd 0:0:0:0: [sda] tag#10 CDB: opcode=0x2a 2a 00 10 01 05 8f 00 00 08 00
[  681.446748] sd 0:0:0:0: [sda] tag#11 uas_zap_pending 0 uas-tag 22 inflight: CMD
[  681.446752] sd 0:0:0:0: [sda] tag#11 CDB: opcode=0x2a 2a 00 01 fd 30 cf 00 00 08 00
[  681.446757] sd 0:0:0:0: [sda] tag#14 uas_zap_pending 0 uas-tag 23 inflight: CMD
[  681.446761] sd 0:0:0:0: [sda] tag#14 CDB: opcode=0x2a 2a 00 00 01 00 87 00 00 08 00
[  681.446766] sd 0:0:0:0: [sda] tag#15 uas_zap_pending 0 uas-tag 24 inflight: CMD
[  681.446770] sd 0:0:0:0: [sda] tag#15 CDB: opcode=0x28 28 00 10 06 2f 87 00 00 08 00
[  681.446775] sd 0:0:0:0: [sda] tag#12 uas_zap_pending 0 uas-tag 25 inflight: CMD
[  681.446779] sd 0:0:0:0: [sda] tag#12 CDB: opcode=0x2a 2a 00 10 0b 90 57 00 00 08 00
[  681.446785] sd 0:0:0:0: [sda] tag#16 uas_zap_pending 0 uas-tag 26 inflight: CMD
[  681.446789] sd 0:0:0:0: [sda] tag#16 CDB: opcode=0x2a 2a 00 10 0b 90 77 00 00 20 00
[  681.446794] sd 0:0:0:0: [sda] tag#17 uas_zap_pending 0 uas-tag 27 inflight: CMD
[  681.446798] sd 0:0:0:0: [sda] tag#17 CDB: opcode=0x2a 2a 00 10 11 5a 3f 00 00 08 00
[  681.446803] sd 0:0:0:0: [sda] tag#18 uas_zap_pending 0 uas-tag 28 inflight: CMD
[  681.446804] sd 0:0:0:0: [sda] tag#12 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=19s
[  681.446807] sd 0:0:0:0: [sda] tag#18 CDB: opcode=0x28 28 00 10 06 53 9f 00 00 80 00
[  681.446809] sd 0:0:0:0: [sda] tag#25 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=24s
[  681.446812] sd 0:0:0:0: [sda] tag#19 uas_zap_pending 0 uas-tag 29 inflight: CMD
[  681.446816] sd 0:0:0:0: [sda] tag#19 CDB: opcode=0x28 28 00 10 08 81 ef 00 00 10 00
[  681.446822] sd 0:0:0:0: [sda] tag#12 CDB: opcode=0x2a 2a 00 10 0b 90 57 00 00 08 00
[  681.446824] sd 0:0:0:0: [sda] tag#25 CDB: opcode=0x2a 2a 00 01 fd 40 1f 00 00 08 00
[  681.446831] I/O error, dev sda, sector 33374239 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 2
[  681.446831] I/O error, dev sda, sector 269193303 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 2
[  681.446839] sd 0:0:0:0: [sda] tag#19 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=16s
[  681.446839] EXT4-fs warning (device sda1): ext4_end_bio:343: I/O error 10 writing to inode 8390899 starting block 4171779)
[  681.446842] EXT4-fs warning (device sda1): ext4_end_bio:343: I/O error 10 writing to inode 8390248 starting block 33649162)
[  681.446849] sd 0:0:0:0: [sda] tag#19 CDB: opcode=0x28 28 00 10 08 81 ef 00 00 10 00
[  681.446850] Buffer I/O error on device sda1, logical block 4163588
[  681.446853] Buffer I/O error on device sda1, logical block 33640971
[  681.446859] I/O error, dev sda, sector 268993007 op 0x0:(READ) flags 0x80700 phys_seg 2 prio class 2
[  681.446891] sd 0:0:0:0: [sda] tag#28 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=24s
[  681.446895] device offline error, dev sda, sector 268994671 op 0x0:(READ) flags 0x80700 phys_seg 13 prio class 2
[  681.446897] sd 0:0:0:0: [sda] tag#27 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=29s
[  681.446899] sd 0:0:0:0: [sda] tag#28 CDB: opcode=0x2a 2a 00 01 fd 40 3f 00 00 10 00
[  681.446904] I/O error, dev sda, sector 33374271 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 2
[  681.446905] sd 0:0:0:0: [sda] tag#27 CDB: opcode=0x2a 2a 00 1b c5 12 4f 00 00 20 00
[  681.446911] I/O error, dev sda, sector 465900111 op 0x1:(WRITE) flags 0x800 phys_seg 4 prio class 2
[  681.446915] EXT4-fs warning (device sda1): ext4_end_bio:343: I/O error 10 writing to inode 8390899 starting block 4171783)
[  681.446917] device offline error, dev sda, sector 268996391 op 0x0:(READ) flags 0x80700 phys_seg 14 prio class 2
[  681.446922] Buffer I/O error on device sda1, logical block 4163592
[  681.446930] Buffer I/O error on device sda1, logical block 4163593
[  681.446940] device offline error, dev sda, sector 268852063 op 0x0:(READ) flags 0x80700 phys_seg 16 prio class 2
[  681.446949] sd 0:0:0:0: [sda] tag#15 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=23s
[  681.446956] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=24s
[  681.446959] device offline error, dev sda, sector 268993743 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 2
[  681.446962] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 07 fe 6e 2f 00 00 20 00
[  681.446963] sd 0:0:0:0: [sda] tag#15 CDB: opcode=0x28 28 00 10 06 2f 87 00 00 08 00
[  681.446974] EXT4-fs warning (device sda1): ext4_end_bio:343: I/O error 10 writing to inode 8390842 starting block 16764357)
[  681.446985] Buffer I/O error on device sda1, logical block 16756166
[  681.446988] sd 0:0:0:0: [sda] tag#18 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=16s
[  681.446993] EXT4-fs warning (device sda1): ext4_end_bio:343: I/O error 10 writing to inode 8390842 starting block 16764358)
[  681.446996] sd 0:0:0:0: [sda] tag#18 CDB: opcode=0x28 28 00 10 06 53 9f 00 00 80 00
[  681.447003] Aborting journal on device sda1-8.
[  681.447012] sd 0:0:0:0: [sda] tag#16 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=DRIVER_OK cmd_age=19s
[  681.447017] Buffer I/O error on dev sda1, logical block 33554436, lost async page write
[  681.447020] sd 0:0:0:0: [sda] tag#16 CDB: opcode=0x2a 2a 00 10 0b 90 77 00 00 20 00
[  681.447022] EXT4-fs error (device sda1): ext4_journal_check_start:83: comm kworker/u8:1: Detected aborted journal
[  681.447031] EXT4-fs warning (device sda1): ext4_end_bio:343: I/O error 10 writing to inode 8390248 starting block 33649166)
[  681.447037] Buffer I/O error on dev sda1, logical block 58228736, lost sync page write
[  681.447043] Buffer I/O error on dev sda1, logical block 33554479, lost async page write
[  681.447046] Buffer I/O error on device sda1, logical block 33640975
[  681.447052] JBD2: I/O error when updating journal superblock for sda1-8.
[  681.447053] Buffer I/O error on device sda1, logical block 33640976
[  681.447059] Buffer I/O error on device sda1, logical block 33640977
[  681.447065] Buffer I/O error on device sda1, logical block 33640978
[  681.447064] Buffer I/O error on dev sda1, logical block 33554566, lost async page write
[  681.447085] EXT4-fs error (device sda1): ext4_journal_check_start:83: comm caddy: Detected aborted journal
[  681.447085] EXT4-fs warning (device sda1): ext4_end_bio:343: I/O error 10 writing to inode 8388855 starting block 33696583)
[  681.447089] Buffer I/O error on dev sda1, logical block 33554571, lost async page write
[  681.447094] Buffer I/O error on device sda1, logical block 33688392
[  681.447114] Buffer I/O error on dev sda1, logical block 33554586, lost async page write
[  681.447124] EXT4-fs error (device sda1) in ext4_writepages:2856: Journal has aborted
[  681.447131] Buffer I/O error on dev sda1, logical block 33554607, lost async page write
[  681.447134] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[  681.447153] Buffer I/O error on dev sda1, logical block 33554610, lost async page write
[  681.447171] EXT4-fs warning (device sda1): ext4_end_bio:343: I/O error 10 writing to inode 8390943 starting block 4171289)
[  681.447191] Buffer I/O error on dev sda1, logical block 17, lost async page write
[  681.447203] EXT4-fs (sda1): previous I/O error to superblock detected
[  681.447244] EXT4-fs (sda1): I/O error while writing superblock
[  681.447251] EXT4-fs (sda1): Remounting filesystem read-only
[  681.447265] EXT4-fs (sda1): failed to convert unwritten extents to written extents -- potential data loss!  (inode 8390943, error -30)
[  681.447289] EXT4-fs (sda1): I/O error while writing superblock
[  681.447292] EXT4-fs (sda1): failed to convert unwritten extents to written extents -- potential data loss!  (inode 8390842, error -30)
[  681.450998] EXT4-fs error (device sda1) in ext4_reserve_inode_write:5868: Journal has aborted
[  681.451146] EXT4-fs (sda1): I/O error while writing superblock
[  681.451196] EXT4-fs error (device sda1): ext4_dirty_inode:6072: inode #8390899: comm python3: mark_inode_dirty error
[  681.451264] EXT4-fs (sda1): I/O error while writing superblock
[  681.452995] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[  681.453482] cp210x 1-1.4:1.0: device disconnected
[  681.461743] sd 0:0:0:0: Device offlined - not ready after error recovery
[  681.461761] sd 0:0:0:0: Device offlined - not ready after error recovery
[  681.461766] sd 0:0:0:0: Device offlined - not ready after error recovery
[  681.461772] sd 0:0:0:0: Device offlined - not ready after error recovery
[  681.461777] sd 0:0:0:0: Device offlined - not ready after error recovery
[  681.461782] sd 0:0:0:0: Device offlined - not ready after error recovery
[  681.461787] sd 0:0:0:0: Device offlined - not ready after error recovery
[  681.461792] sd 0:0:0:0: Device offlined - not ready after error recovery
[  681.461797] sd 0:0:0:0: Device offlined - not ready after error recovery
[  681.493752] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  681.733715] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=DRIVER_OK
[  681.734123] xhci_hcd 0000:01:00.0: WARN Can't disable streams for endpoint 0x82, streams are being disabled already
[  682.091910] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390228: comm python3: reading directory lblock 0
[  683.215389] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390228: comm python3: reading directory lblock 0
[  688.669910] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390228: comm python3: reading directory lblock 0
[  689.579897] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  689.580019] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  689.582478] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  689.582572] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  689.585054] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  689.585188] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  689.587497] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  689.587631] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  689.589803] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  698.921483] EXT4-fs error: 8 callbacks suppressed
[  698.921504] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  698.921699] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  698.926194] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  698.926366] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  698.929727] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  698.931179] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  698.935492] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  698.935707] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  698.940602] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  698.940816] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390324: comm uvicorn: reading directory lblock 0
[  711.393673] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1082: inode #8390561: lblock 0: comm ls: error -5 reading directory block
[  712.705067] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1082: inode #8390561: lblock 0: comm ls: error -5 reading directory block
[  713.870412] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1082: inode #8390324: lblock 0: comm ls: error -5 reading directory block
[  715.578906] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1082: inode #8390322: lblock 0: comm ls: error -5 reading directory block
[  720.809906] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1082: inode #8388609: lblock 0: comm ls: error -5 reading directory block
[  721.793986] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1082: inode #8388609: lblock 0: comm ls: error -5 reading directory block
[  722.125509] EXT4-fs error: 32 callbacks suppressed
[  722.125523] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390228: comm python3: reading directory lblock 0
[  723.241227] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8390228: comm python3: reading directory lblock 0
[  735.568657] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8388609: comm bash: reading directory lblock 0
[  735.583702] EXT4-fs error (device sda1): __ext4_find_entry:1682: inode #8388609: comm bash: reading directory lblock 0

@DonDonatello
Copy link

DonDonatello commented Mar 15, 2024

Facing same issue and having tried a lot of setups by now, including:

  • Various firmwares/kernels for the RPI4 (5.x, 6.1.x, 6.6.x)
  • Raspberry Pi OS and DietPi OS, both tested with and without apps and any config
  • Three different chargers (Official 3A RPI charger, official 5A RPI charger, even more powerful laptop charger)
  • Two different SATA adapters cases, one of which is confirmed to work with both the SDD and RPI4 (Startech SATA to USB 3.1, usb312sat3cb) and Seagate enclosure

SSD is a Kingston A400 240Gb

USB 2.0 and quirks for USB 3 are working just fine, no disconnects experienced

My errors and logs are basically the same as above - happy to post any further info as needed

@Nullvoid3771
Copy link

Nullvoid3771 commented Apr 24, 2024

I'm not a Pi user, but I've dealt with similar xHCI issue in linux anyone try usbcore.autosuspend=-1 in grub and systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target also could try to use in grub IRQPolling or irqbalance --oneshot --debug or remove the # on IRQBALANCE_ONESHOT to make oneshot default upon boot. located in /etc/default/irqbalance.
Screenshot 2024-04-23 210306

@snooops
Copy link

snooops commented Jun 20, 2024

One thing that might be of note is that it only happened when I upgraded to debian 12. I ran the setup with debian 11 for over a year while using the usb 3.0 port without issues.

I can approve this. On Debian 11 i don't get this error and everything seems working. This statement saved my life :) I was digging into this issue for hours.

@gdm85
Copy link

gdm85 commented Aug 30, 2024

@tomikaa87
Copy link
Author

Have anybody tried the workaround @Nullvoid3771 mentioned? I don't want to touch my setup since it's stable for a while now. 😅

@Nullvoid3771
Copy link

@tomikaa87

Polling and interrupts are distinct mechanisms in computer systems for managing communication and synchronization between devices. Polling requires continuously monitoring a device's status, whereas interrupts enable devices to signal the system when immediate attention is required. IRQpolling well it is more demanding will keep your devices status always checked so there is no accidental disconnection should it timeout due to sleep states or bugs that forced a disconnection.

The others in grub usbcore.autosuspend=-1 systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

are power management setting to prevent your usb devices from sleeping. This is again more power demanding, but should keep them from timing out due to sleep states.

I can’t guarantee these will fix your issue, but as troubleshooting you could try them and just as easily undo them. Unfortunately if the issue is within the bios, drivers or the device itself it might be hard to fix, if you’ve tried different cables, and making sure the device is getting the right power.

@RoswellCityUK
Copy link

I was experiencing the same issue with some generic usb 3.0 to sata enclosure and Raspberry Pi 4 8GB.
What helped was adding at the end of the line in /boot/cmdline.txt:
usb-storage.quirks=152d:1561:u dwc_otg.lpm_enable=0 usbcore.autosuspend=-1 irqpoll

Now it works like a dream.

@Nullvoid3771
Copy link

Nullvoid3771 commented Sep 23, 2024

Just note that using usb-storage.quirks= binds a usb driver which may have slower speeds.

:u = IGNORE_UAS (don’t bind to the uas driver) The uas driver is the high speed driver for storage. Ignoring uas I believe drops speeds to usb 2.0 speeds.

Different usb id’s here http://www.linux-usb.org/usb.ids

dwc_otg.lpm_enable=0. turns off Link Power Management (LPM)

dwc_otg.speed=1 Will lock usb speeds to usb 1.0 speeds.

@RoswellCityUK
Copy link

Just note that using usb-storage.quirks= binds a usb driver which may have slower speeds.

:u = IGNORE_UAS (don’t bind to the uas driver) The uas driver is the high speed driver for storage. Ignoring uas I believe drops speeds to usb 2.0 speeds.

Different usb id’s here http://www.linux-usb.org/usb.ids

dwc_otg.lpm_enable=0. turns off Link Power Management (LPM)

dwc_otg.speed=1 Will lock usb speeds to usb 1.0 speeds.

Thank you for the feedback and I agree, it was late and I was lazy, so I just put there all there was without testing what is exactly making it work. I just run couple of tests and it seems that if I will just leave:

usb-storage.quirks=152d:1561:u

I can still boot the devices - before it just stuck during the boot, but as you mentioned speeds seems to be downgraded (write: ~130MB/s, read: ~186MB/s). I am guessing that it is still better than being not able to boot from ssd at all.

Is there a way to use uas driver after the raspberry pi is already booted? when running hwinfo --scsi, it looks like both drivers are loaded and active:

09: SCSI 00.0: 10600 Disk
  [Created at block.255]
  Unique ID: FKGF.frfaQWlQtSF
  Parent ID: VCu0.m2lGPNk7Xc4
  SysFS ID: /class/block/sda
  SysFS BusID: 0:0:0:0
  SysFS Device Link: /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-1/2-1:1.0/host0/target0:0:0/0:0:0:0
  Hardware Class: disk
  Model: "SABRENT Disk"
  Vendor: usb 0x152d "SABRENT"
  Device: usb 0x1561
  Revision: "0204"
  Serial ID: "DB9876543214E"
  Driver: "usb-storage", "sd"
  Driver Modules: "usb_storage"
  Device File: /dev/sda (/dev/sg0)
  Device Files: /dev/sda, /dev/disk/by-id/usb-SABRENT_SABRENT_DB9876543214E-0:0, /dev/disk/by-id/wwn-0x50025385a01dec87, /dev/disk/by-id/ata-Samsung_SSD_840_PRO_Series_S1ATNSAF267780J, /dev/disk/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1:1.0-scsi-0:0:0:0, /dev/disk/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usbv3-0:1:1.0-scsi-0:0:0:0, /dev/disk/by-diskseq/9
  Device Number: block 8:0-8:15 (char 21:0)
  Module Alias: "usb:v152Dp1561d0204dc00dsc00dp00ic08isc06ip50in00"
  Driver Info #0:
    Driver Status: uas is active
    Driver Activation Cmd: "modprobe uas"
  Driver Info #1:
    Driver Status: usb_storage is active
    Driver Activation Cmd: "modprobe usb_storage"
  Drive status: no medium
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #1 (USB Controller)

@Nullvoid3771
Copy link

Nullvoid3771 commented Sep 24, 2024

@RoswellCityUK So from what I can see you’re using a sabrent external dock to attach your ssd/hdd to your PI. Sabrent uses its own chipset which could be the problem.

usb-SABRENT_SABRENT_DB9876543214E-0:0

With multiple 4 bay drives they would usually appear like this:

usb-SABRENT_SABRENT_DB9876543214E-0:0
usb-SABRENT_SABRENT_DB9876543214E-0:1
usb-SABRENT_SABRENT_DB9876543214E-0:2
usb-SABRENT_SABRENT_DB9876543214E-0:3

I’m a bit surprised it’s telling us the disk model because usually that’s obscured. I believe the Sabrent external docks uses scsi lun to identify the drives.

If you only have one drive perhaps try a different external dock that is self powered (not by the PI’s usb) I have a sabrent dock and well I can’t say that it’s the issue per say; it’s stability with UAS on the systems pcie chipset is fickle. I think the usb chipsets just suck in the pi tbh (and in my server). A quick google for raspberry pi uas driver shows a bunch of topics with the same issue.

So in that respect it working at all with lower speeds is a plus. But I’m not sure how to fully fix your issue. At most for me I’ve managed to make it happen less often by the steps I used and by limiting the two 3.0 usb ports to only using one port with the dock. For me the usb3.0 pcie card would completely disconnect requiring a reboot so my issue probably isn’t quite the same.

@Nullvoid3771
Copy link

@RoswellCityUK

udev handles hot plug events so setting uas driver then retriggering udev might work idk I can’t test it atm.

However, if you're looking to manually trigger udev processing or reapply rules for already connected devices after boot, you can:

  1. Trigger udev to rescan all devices:
    Use the command:

    sudo udevadm trigger

    This tells udev to process all devices as if they were just plugged in, effectively "reloading" the hardware state.

  2. Reload udev rules:
    If you modify any udev rules and want to reload them without rebooting, you can run:

    sudo udevadm control --reload
  3. Monitor udev events:
    You can also monitor udev events in real time to see how it handles devices being hot-plugged:

    sudo udevadm monitor

This should give you the same behavior as udev during the boot process but on demand after the system is already running.

@RoswellCityUK
Copy link

@RoswellCityUK

udev handles hot plug events so setting uas driver then retriggering udev might work idk I can’t test it atm.

However, if you're looking to manually trigger udev processing or reapply rules for already connected devices after boot, you can:

1. **Trigger udev to rescan all devices:**
   Use the command:
   ```shell
   sudo udevadm trigger
   ```
   
   
       
         
       
   
         
       
   
       
     
   This tells udev to process all devices as if they were just plugged in, effectively "reloading" the hardware state.

2. **Reload udev rules:**
   If you modify any udev rules and want to reload them without rebooting, you can run:
   ```shell
   sudo udevadm control --reload
   ```

3. **Monitor udev events:**
   You can also monitor udev events in real time to see how it handles devices being hot-plugged:
   ```shell
   sudo udevadm monitor
   ```

This should give you the same behavior as udev during the boot process but on demand after the system is already running.

Thank you for your response. Will test it later as I am bit busy with work atm, but I have managed to test a bit different usb to sata adapter, and the same issue on clean installation, but also setting quirks is making it bootable again.

09: SCSI 00.0: 10600 Disk
  [Created at block.255]
  Unique ID: FKGF.xKr+Vnx2hc0
  Parent ID: VCu0.m2lGPNk7Xc4
  SysFS ID: /class/block/sda
  SysFS BusID: 0:0:0:0
  SysFS Device Link: /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0                  /0000:01:00.0/usb2/2-1/2-1:1.0/host0/target0:0:0/0:0:0:0
  Hardware Class: disk
  Model: "Samsung SSD 840 PRO Seri"
  Vendor: usb 0x152d "Samsung"
  Device: usb 0xa580 "SSD 840 PRO Seri"
  Revision: "0209"
  Serial ID: "000000000069"
  Driver: "usb-storage", "sd"
  Driver Modules: "usb_storage"
  Device File: /dev/sda (/dev/sg0)
  Device Files: /dev/sda, /dev/disk/by-path/platform-fd500000.pcie-pci-0000:01:0                  0.0-usbv3-0:1:1.0-scsi-0:0:0:0, /dev/disk/by-path/platform-fd500000.pcie-pci-000                  0:01:00.0-usb-0:1:1.0-scsi-0:0:0:0, /dev/disk/by-id/ata-Samsung_SSD_840_PRO_Seri                  es_S1ATNSAF267780J, /dev/disk/by-diskseq/9, /dev/disk/by-id/wwn-0x50025385a01dec                  87, /dev/disk/by-id/usb-Samsung_SSD_840_PRO_Seri_000000000069-0:0
  Device Number: block 8:0-8:15 (char 21:0)
  Module Alias: "usb:v152DpA580d0209dc00dsc00dp00ic08isc06ip50in00"
  Driver Info #0:
    Driver Status: uas is active
    Driver Activation Cmd: "modprobe uas"
  Driver Info #1:
    Driver Status: usb_storage is active
    Driver Activation Cmd: "modprobe usb_storage"
  Drive status: no medium
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #1 (USB Controller)

With the difference that this time I was able to boot once, but the whole RasPi was bahaving like it was throttling a lot. Normally boot was taking less than a minute when using any SD Cards or USB Flash drive, but with that it took something around 15min. It work for a bit, i managed to connect over ssh and then just suddenly crashed to never boot again fully.

sudo lsusb -vd 152d:a580:


Bus 002 Device 002: ID 152d:a580 JMicron Technology Corp. / JMicron USA Technology Corp. USB Mass Storage
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 [unknown]
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         0
  bMaxPacketSize0         9
  idVendor           0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
  idProduct          0xa580 USB Mass Storage
  bcdDevice            2.09
  iManufacturer           1 JMicron
  iProduct                2 USB Mass Storage
  iSerial                 3 000000000069
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0079
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              896mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           4
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     98
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        Command pipe (0x01)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        MaxStreams             32
        Status pipe (0x02)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              14
        MaxStreams             32
        Data-in pipe (0x03)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               7
        MaxStreams             32
        Data-out pipe (0x04)
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0016
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000f0e
      BESL Link Power Management (LPM) Supported
    BESL value     3840 us
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat          32 micro seconds
Device Status:     0x000c
  (Bus Powered)
  U1 Enabled
  U2 Enabled

I am keen to think that this is mainly caused by the power requirements as specified in the above logs MaxPower: 896mA.

Will test further and let you updated what was the result.

@Nullvoid3771
Copy link

Also If you notice it stop working check your dmesg logs to see if it spits out an error as it might provide some information as to what caused the issue.

@Ciantic
Copy link

Ciantic commented Nov 10, 2024

I also get errors in UAS and USB-Storage mode, using the USB 2.0 port and the USB 3.0 port in the Raspberry Pi 4B.

It keeps resetting and then disappears, also one time my NVMe drive got really hot, I have now read this error behavior can even toast some drives when it fails real bad.

I have AXAGON USB-C 3.2 Gen 2 adapter, and Samsung 950 PRO 500G in it, that AXAGON appeared as some "JMicron":

$ lsusb
 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge

Most likely this adapter is not good for Raspberry Pi 4.

@Semmu
Copy link

Semmu commented Nov 12, 2024

just sharing my experience, maybe someone finds it useful: i also had these issues and the solution was to use a different USB->SATA adapter/enclosure for my HDDs.

originally i bought some 4TB Seagate ("Maxtor M3 Portable") external HDDs and they came with their own USB to SATA adapters within the case, but these seemed very unreliable. USB device ID: 0bc2:61b7. i tried blacklisting the uas driver for these, but it did not help.

so i bought different USB->SATA adapters and found 2 that seem to be working.

  • one is an AXAGON external 2,5" HDD case, USB device ID: 174c:1153, lightgrey metallic finish, rounded corners, big white F on it (image link),
  • and the other is (also) an AXAGON product, a 2,5"/3,5" HDD dock, USB device ID: 152d:0578, basically a big black box with rounded side corners and a long vertical blue LED on the front (image link)

^ these are also uas blacklisted, so the usb-storage driver is used.

i also tried a third type of USB enclosure, again from AXAGON, USB device ID: 154b:8001, black box, rounded side edges, and the whole case slides off when inserting the disk (image link), but that one was also very unreliable.

so yeah, this is my experience, unfortunately these things seem to be very picky...

edit: also one more thing to add: raspberry pis may not be able to supply enough power to the external HDDs via its USB ports, so im also using a USB Y cable (image link), which has 2 USB A ends, one plugged into the rpi, the other one into a dedicated power source (travel power adapter with 3A current), so that the HDD can actually get enough power for its operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests