raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.2k stars 5.02k forks source link

USB SSD disconnect after a while #3814

Closed SimoB closed 2 years ago

SimoB commented 4 years ago

My external SSD attached to one of the USB3 ports of my rpi4 is not accessible after some time, from the dmsg log seems to me it get disconnected, but I'm not sure.

The sata/usb thing I am using is one of the jmicron crappy one that needs UAS disabled to work well.

This setup has been ultra stable for months (with 0 problems and no reboots) until I think 2/3 weeks ago I did a sudo apt update && sudo apt full-upgrade, maybe some update messed up my system?

System RPI 4 4gb with raspbian lite on sd card


simone@rpi-s1:~ $ uname -a
Linux rpi-s1 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux

simone@rpi-s1:~ $ sudo rpi-eeprom-update
BCM2711 detected
Dedicated VL805 EEPROM detected
BOOTLOADER: up-to-date
CURRENT: Thu 16 Apr 17:11:26 UTC 2020 (1587057086)
 LATEST: Thu 16 Apr 17:11:26 UTC 2020 (1587057086)
 FW DIR: /lib/firmware/raspberrypi/bootloader/critical
VL805: up-to-date
CURRENT: 000137ad
 LATEST: 000137ad

simone@rpi-s1:~ $ lsusb
Bus 002 Device 003: ID 152d:0561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS551 - Sharkoon SATA QuickPort Duo
Bus 002 Device 002: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

simone@rpi-s1:~ $ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 465.8G  0 disk
└─sda1        8:1    0 465.8G  0 part /mnt/ssd
sdb           8:16   0   2.7T  0 disk
└─sdb1        8:17   0   2.7T  0 part /mnt/blu
sdc           8:32   0   2.7T  0 disk
└─sdc1        8:33   0   2.7T  0 part /mnt/red
mmcblk0     179:0    0  29.7G  0 disk
├─mmcblk0p1 179:1    0   256M  0 part /boot
└─mmcblk0p2 179:2    0  29.5G  0 part /

Logs

Linux rpi-s1 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Aug 23 11:01:25 2020 from 192.168.1.100
simone@rpi-s1:~ $ sudo dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.51-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1333 SMP Mon Aug 10 16:51:40 BST 2020
[    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001ec00000, size 256 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 1012736
[    0.000000]   DMA zone: 2304 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 816128 pages, LIFO batch:63
[    0.000000] percpu: Embedded 20 pages/cpu s49856 r8192 d23872 u81920
[    0.000000] pcpu-alloc: s49856 r8192 d23872 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1010432
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1  smsc95xx.macaddr=DC:A6:32:3D:14:C9 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  usb-storage.quirks=152d:0578:u console=ttyS0,115200 console=tty1 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x17cc0000-0x1bcc0000] (64MB)
[    0.000000] Memory: 3655620K/4050944K available (10240K kernel code, 725K rwdata, 2740K rodata, 2048K init, 853K bss, 133180K reserved, 262144K cma-reserved, 3264512K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 30051 entries in 59 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x340/0x518 with crng_init=0
[    0.000007] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000030] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000110] bcm2835: system timer (irq = 17)
[    0.000779] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000799] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000820] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000836] Switching to timer-based delay loop, resolution 18ns
[    0.001077] Console: colour dummy device 80x30
[    0.001571] printk: console [tty1] enabled
[    0.001632] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[    0.001674] pid_max: default: 32768 minimum: 301
[    0.001997] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002038] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.003214] Disabling memory control group subsystem
[    0.003330] CPU: Testing write buffer coherency: ok
[    0.003812] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004658] Setting up static identity map for 0x200000 - 0x20003c
[    0.004859] rcu: Hierarchical SRCU implementation.
[    0.005496] smp: Bringing up secondary CPUs ...
[    0.006645] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.007909] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.009118] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.009260] smp: Brought up 1 node, 4 CPUs
[    0.009329] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[    0.009354] CPU: All CPU(s) started in HYP mode.
[    0.009377] CPU: Virtualization extensions available.
[    0.010153] devtmpfs: initialized
[    0.023126] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[    0.023395] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.023442] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.031180] pinctrl core: initialized pinctrl subsystem
[    0.032219] NET: Registered protocol family 16
[    0.035807] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.037462] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.037495] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.037831] Serial: AMBA PL011 UART driver
[    0.041251] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.060889] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-08-06 16:22, variant start
[    0.070872] raspberrypi-firmware soc:firmware: Firmware hash is af3edc2de473197cdfe1ff5a8ff2d34095d5b336
[    0.123675] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.128129] vgaarb: loaded
[    0.128603] SCSI subsystem initialized
[    0.128836] usbcore: registered new interface driver usbfs
[    0.128933] usbcore: registered new interface driver hub
[    0.129063] usbcore: registered new device driver usb
[    0.130557] clocksource: Switched to clocksource arch_sys_counter
[    0.881727] VFS: Disk quotas dquot_6.6.0
[    0.881848] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.882031] FS-Cache: Loaded
[    0.882232] CacheFiles: Loaded
[    0.883014] simple-framebuffer: probe of 0.framebuffer failed with error -12
[    0.892932] thermal_sys: Registered thermal governor 'step_wise'
[    0.893284] NET: Registered protocol family 2
[    0.894048] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.894099] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.894192] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.894280] TCP: Hash tables configured (established 8192 bind 8192)
[    0.894434] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.894483] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.894742] NET: Registered protocol family 1
[    0.895444] RPC: Registered named UNIX socket transport module.
[    0.895473] RPC: Registered udp transport module.
[    0.895497] RPC: Registered tcp transport module.
[    0.895521] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.895553] PCI: CLS 0 bytes, default 64
[    0.897333] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    0.899442] Initialise system trusted keyrings
[    0.899674] workingset: timestamp_bits=14 max_order=20 bucket_order=6
[    0.910277] FS-Cache: Netfs 'nfs' registered for caching
[    0.911021] NFS: Registering the id_resolver key type
[    0.911066] Key type id_resolver registered
[    0.911091] Key type id_legacy registered
[    0.911125] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.912192] Key type asymmetric registered
[    0.912219] Asymmetric key parser 'x509' registered
[    0.912401] bounce: pool size: 64 pages
[    0.912454] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.912680] io scheduler mq-deadline registered
[    0.912707] io scheduler kyber registered
[    0.916413] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.916455] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.916539] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x0603ffffff -> 0x00f8000000
[    0.916634] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0000000000
[    0.972699] brcm-pcie fd500000.pcie: link up, 5 GT/s x1 (SSC)
[    0.973014] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.973047] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.973080] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
[    0.973155] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.973405] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.976753] PCI: bus0: Fast back to back transfers disabled
[    0.976789] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.977058] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    0.977215] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.977647] pci 0000:01:00.0: PME# supported from D0 D3cold
[    0.981063] PCI: bus1: Fast back to back transfers disabled
[    0.981096] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.981149] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.981186] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    0.981283] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.981318] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.981626] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    0.981867] pcieport 0000:00:00.0: PME: Signaling with IRQ 55
[    0.982248] pcieport 0000:00:00.0: AER: enabled with IRQ 55
[    0.982579] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    0.989174] iproc-rng200 fe104000.rng: hwrng registered
[    0.989503] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.990145] vc-sm: Videocore shared memory driver
[    0.990750] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.002364] brd: module loaded
[    1.014233] loop: module loaded
[    1.015561] Loading iSCSI transport class v2.0-870.
[    1.017507] libphy: Fixed MDIO Bus: probed
[    1.018083] bcmgenet fd580000.ethernet: failed to get enet clock
[    1.018116] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.018151] bcmgenet fd580000.ethernet: failed to get enet-wol clock
[    1.018185] bcmgenet fd580000.ethernet: failed to get enet-eee clock
[    1.018225] bcmgenet: Skipping UMAC reset
[    1.030633] libphy: bcmgenet MII bus: probed
[    1.120658] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.121664] usbcore: registered new interface driver r8152
[    1.121754] usbcore: registered new interface driver lan78xx
[    1.121827] usbcore: registered new interface driver smsc95xx
[    1.122258] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.122305] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.124552] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890
[    1.125825] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    1.125862] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.125895] usb usb1: Product: xHCI Host Controller
[    1.125923] usb usb1: Manufacturer: Linux 5.4.51-v7l+ xhci-hcd
[    1.125951] usb usb1: SerialNumber: 0000:01:00.0
[    1.126552] hub 1-0:1.0: USB hub found
[    1.126657] hub 1-0:1.0: 1 port detected
[    1.127202] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.127242] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.127283] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.127822] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    1.127858] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.127890] usb usb2: Product: xHCI Host Controller
[    1.127917] usb usb2: Manufacturer: Linux 5.4.51-v7l+ xhci-hcd
[    1.127944] usb usb2: SerialNumber: 0000:01:00.0
[    1.128510] hub 2-0:1.0: USB hub found
[    1.128598] hub 2-0:1.0: 4 ports detected
[    1.129992] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.130274] dwc_otg: FIQ enabled
[    1.130286] dwc_otg: NAK holdoff enabled
[    1.130297] dwc_otg: FIQ split-transaction FSM enabled
[    1.130312] Module dwc_common_port init
[    1.130840] usbcore: registered new interface driver uas
[    1.130959] usbcore: registered new interface driver usb-storage
[    1.131170] mousedev: PS/2 mouse device common for all mice
[    1.133191] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.135663] sdhci: Secure Digital Host Controller Interface driver
[    1.135692] sdhci: Copyright(c) Pierre Ossman
[    1.136268] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    1.136795] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.140449] ledtrig-cpu: registered to indicate activity on CPUs
[    1.140804] hidraw: raw HID events driver (C) Jiri Kosina
[    1.140994] usbcore: registered new interface driver usbhid
[    1.141020] usbhid: USB HID core driver
[    1.142027] vchiq: vchiq_init_state: slot_zero = (ptrval)
[    1.143917] [vc_sm_connected_init]: start
[    1.152807] [vc_sm_connected_init]: end - returning 0
[    1.154837] Initializing XFRM netlink socket
[    1.154888] NET: Registered protocol family 17
[    1.154997] Key type dns_resolver registered
[    1.155401] Registering SWP/SWPB emulation handler
[    1.155737] registered taskstats version 1
[    1.155769] Loading compiled-in X.509 certificates
[    1.156264] Key type ._fscrypt registered
[    1.156290] Key type .fscrypt registered
[    1.166189] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.166277] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 29, base_baud = 0) is a PL011 rev2
[    1.172163] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.173094] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.173125] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.223508] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.225166] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.226814] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.229758] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.231421] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.239005] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[    1.241840] of_cfs_init
[    1.242098] of_cfs_init: OK
[    1.243169] Waiting for root device PARTUUID=6c586e13-02...
[    1.277095] random: fast init done
[    1.298605] mmc1: new high speed SDIO card at address 0001
[    1.347251] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.348146] mmcblk0: mmc0:aaaa SC32G 29.7 GiB
[    1.351159]  mmcblk0: p1 p2
[    1.376610] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.376698] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.382701] devtmpfs: mounted
[    1.390624] Freeing unused kernel memory: 2048K
[    1.410863] Run /sbin/init as init process
[    1.490951] usb 2-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[    1.522418] usb 2-2: New USB device found, idVendor=152d, idProduct=0561, bcdDevice= 0.07
[    1.522460] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[    1.522490] usb 2-2: Product: External USB 3.0
[    1.522517] usb 2-2: SerialNumber: DD564198838B4
[    1.546928] scsi host0: uas
[    1.548588] scsi 0:0:0:0: Direct-Access     External USB3.0           0007 PQ: 0 ANSI: 6
[    1.670621] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.853319] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.853363] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.853393] usb 1-1: Product: USB2.0 Hub
[    1.855233] hub 1-1:1.0: USB hub found
[    1.855476] hub 1-1:1.0: 4 ports detected
[    1.900829] systemd[1]: System time before build time, advancing clock.
[    2.009639] NET: Registered protocol family 10
[    2.011028] Segment Routing with IPv6
[    2.040129] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    2.040982] systemd[1]: Detected architecture arm.
[    2.100968] usb 2-1: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[    2.102939] systemd[1]: Set hostname to <rpi-s1>.
[    2.132385] usb 2-1: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 2.04
[    2.132429] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.132459] usb 2-1: Product: External USB 3.0
[    2.132485] usb 2-1: Manufacturer: JMicron
[    2.132511] usb 2-1: SerialNumber: 201703310007F
[    2.135859] usb 2-1: UAS is blacklisted for this device, using usb-storage instead
[    2.136010] usb 2-1: UAS is blacklisted for this device, using usb-storage instead
[    2.136047] usb-storage 2-1:1.0: USB Mass Storage device detected
[    2.136662] usb-storage 2-1:1.0: Quirks match for vid 152d pid 0578: 1800000
[    2.136818] scsi host1: usb-storage 2-1:1.0
[    2.698268] systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid → /run/samba/smbd.pid; please update the unit file accordingly.
[    2.724217] systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid → /run/samba/nmbd.pid; please update the unit file accordingly.
[    2.752479] systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
[    2.825023] random: systemd: uninitialized urandom read (16 bytes read)
[    2.837487] random: systemd: uninitialized urandom read (16 bytes read)
[    2.838023] systemd[1]: Listening on udev Kernel Socket.
[    2.838928] random: systemd: uninitialized urandom read (16 bytes read)
[    2.839475] systemd[1]: Listening on udev Control Socket.
[    2.843041] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    2.844078] systemd[1]: Listening on fsck to fsckd communication Socket.
[    3.211421] scsi 1:0:0:0: Direct-Access     External USB3.0           0204 PQ: 0 ANSI: 6
[    3.213225] sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    3.214173] sd 1:0:0:0: [sdb] Write Protect is off
[    3.214192] sd 1:0:0:0: [sdb] Mode Sense: 47 00 00 08
[    3.214987] sd 1:0:0:0: [sdb] Disabling FUA
[    3.215020] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.280451]  sdb: sdb1
[    3.283992] sd 1:0:0:0: [sdb] Attached SCSI disk
[    3.548965] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.662426] systemd-journald[114]: Received request to flush runtime journal from PID 1
[    4.130323] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    4.130671] sd 1:0:0:0: Attached scsi generic sg1 type 0
[    4.179014] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.192313] mc: Linux media interface: v0.10
[    4.193410] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    4.193433] [vc_sm_connected_init]: start
[    4.197447] [vc_sm_connected_init]: installed successfully
[    4.220031] videodev: Linux video capture interface: v2.00
[    4.256405] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.256410] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.274283] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    4.275943] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    4.279662] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    4.289040] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    4.293800] bcm2835_audio bcm2835_audio: card created with 8 channels
[    4.293895] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    4.294883] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    4.295471] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    4.296143] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    4.296167] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    4.296218] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    4.296237] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    4.296529] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    4.296827] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    4.357625] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    4.357673] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    4.374893] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    4.374934] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    4.383326] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    4.383368] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    4.481287] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.519697] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    4.523028] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    4.527203] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    4.541418] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    4.593709] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.648592] brcmfmac: F1 signature read @0x18000000=0x15264345
[    4.660623] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.661049] usbcore: registered new interface driver brcmfmac
[    4.688063] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
[    4.719777] [drm] No displays found. Consider forcing hotplug if HDMI is attached
[    4.719903] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[    4.719926] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    4.719938] [drm] No driver support for vblank timestamp query.
[    4.719949] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL
[    4.720986] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    4.747841] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    4.946657] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.964527] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar  2 2020 23:30:41 version 7.45.202 (r724630 CY) FWID 01-72f6ece2
[    5.750775] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[    6.832216] uart-pl011 fe201000.serial: no DMA platform data
[    6.840436] 8021q: 802.1Q VLAN Support v1.8
[    6.946343] random: crng init done
[    6.946361] random: 7 urandom warning(s) missed due to ratelimiting
[    7.170587] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    7.191710] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    7.439068] bcmgenet: Skipping UMAC reset
[    7.440534] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[    7.440750] bcmgenet fd580000.ethernet eth0: Link is Down
[    7.826879] scsi 0:0:0:1: Direct-Access     External USB3.0           0007 PQ: 0 ANSI: 6
[    7.826972] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    7.827296] sd 0:0:0:0: [sda] Write Protect is off
[    7.827314] sd 0:0:0:0: [sda] Mode Sense: 67 00 10 08
[    7.827989] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
[    7.828731] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes
[    7.838459] sd 0:0:0:1: [sdc] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    7.838706] sd 0:0:0:1: Attached scsi generic sg2 type 0
[    7.838708] sd 0:0:0:1: [sdc] Write Protect is off
[    7.838722] sd 0:0:0:1: [sdc] Mode Sense: 67 00 10 08
[    7.839190] sd 0:0:0:1: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA
[    7.839943] sd 0:0:0:1: [sdc] Optimal transfer size 33553920 bytes
[    7.927801]  sda: sda1
[    7.969336] sd 0:0:0:0: [sda] Attached SCSI disk
[    7.969608]  sdc: sdc1
[    7.977756] sd 0:0:0:1: [sdc] Attached SCSI disk
[    8.671002] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    8.672784] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
[   11.610764] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   11.610809] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   13.718761] Bluetooth: Core ver 2.22
[   13.718829] NET: Registered protocol family 31
[   13.718839] Bluetooth: HCI device and connection manager initialized
[   13.718860] Bluetooth: HCI socket layer initialized
[   13.718874] Bluetooth: L2CAP socket layer initialized
[   13.718900] Bluetooth: SCO socket layer initialized
[   13.731680] Bluetooth: HCI UART driver ver 2.3
[   13.731695] Bluetooth: HCI UART protocol H4 registered
[   13.731759] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   13.732027] Bluetooth: HCI UART protocol Broadcom registered
[   13.948356] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.948364] Bluetooth: BNEP filters: protocol multicast
[   13.948379] Bluetooth: BNEP socket layer initialized
[   14.020790] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.retrans_time - use net.ipv6.neigh.eth0.retrans_time_ms instead
[58722.677080] EXT4-fs (loop0): 1 orphan inode deleted
[58722.677087] EXT4-fs (loop0): recovery complete
[58722.845468] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[94700.756201] usb 2-1: USB disconnect, device number 3
[94700.758740] blk_update_request: I/O error, dev sdb, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 0 prio class 0
[94701.225318] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[94701.225412] sd 1:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[94701.230873] EXT4-fs error (device sdb1): __ext4_get_inode_loc:4699: inode #20447260: block 81788961: comm gitea: unable to read itable block
[94701.230901] EXT4-fs error (device sdb1) in ext4_reserve_inode_write:5941: IO failure
[94701.230918] ------------[ cut here ]------------
[94701.230931] WARNING: CPU: 1 PID: 693 at fs/fs-writeback.c:2323 __mark_inode_dirty+0x310/0x424
[94701.230936] bdi-block not registered
[94701.230941] Modules linked in: cmac bnep hci_uart btbcm bluetooth ecdh_generic ecc 8021q garp stp llc vc4 brcmfmac brcmutil cec v3d gpu_sched drm_kms_helper rpivid_mem sha256_generic libsha256 drm drm_panel_orientation_quirks cfg80211 raspberrypi_hwmon snd_soc_core rfkill bcm2835_codec(C) bcm2835_isp(C) bcm2835_v4l2(C) snd_bcm2835(C) v4l2_mem2mem snd_compress bcm2835_mmal_vchiq(C) videobuf2_dma_contig videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common snd_pcm_dmaengine videodev snd_pcm mc snd_timer vc_sm_cma(C) snd syscopyarea sysfillrect sysimgblt fb_sys_fops sg uio_pdrv_genirq uio ip_tables x_tables ipv6 nf_defrag_ipv6
[94701.231042] CPU: 1 PID: 693 Comm: gitea Tainted: G         C        5.4.51-v7l+ #1333
[94701.231045] Hardware name: BCM2711
[94701.231049] Backtrace:
[94701.231059] [<c020d46c>] (dump_backtrace) from [<c020d768>] (show_stack+0x20/0x24)
[94701.231064]  r6:d5a72000 r5:00000000 r4:c129c8f8 r3:5ebcc50e
[94701.231073] [<c020d748>] (show_stack) from [<c0a39a44>] (dump_stack+0xe0/0x124)
[94701.231080] [<c0a39964>] (dump_stack) from [<c0221c70>] (__warn+0xec/0x104)
[94701.231085]  r8:00000913 r7:00000009 r6:c0dd6e2c r5:00000000 r4:d5a73d0c r3:5ebcc50e
[94701.231092] [<c0221b84>] (__warn) from [<c0221d0c>] (warn_slowpath_fmt+0x84/0xc0)
[94701.231097]  r9:c0dd6e2c r8:00000913 r7:c0430a14 r6:00000009 r5:c0dd6e40 r4:c1204f88
[94701.231103] [<c0221c8c>] (warn_slowpath_fmt) from [<c0430a14>] (__mark_inode_dirty+0x310/0x424)
[94701.231107]  r9:d5a73da8 r8:d57d2678 r7:d6cf5048 r6:d57d2678 r5:00000000 r4:00000001
[94701.231114] [<c0430704>] (__mark_inode_dirty) from [<c0419cf0>] (generic_update_time+0x8c/0x100)
[94701.231118]  r7:00000000 r6:00000006 r5:00000000 r4:d57d26d0
[94701.231123] [<c0419c64>] (generic_update_time) from [<c041979c>] (file_update_time+0x108/0x160)
[94701.231128]  r8:d4c59300 r7:00000000 r6:00000006 r5:d57d2678 r4:c1204f88 r3:c0419c64
[94701.231135] [<c0419694>] (file_update_time) from [<c037c1e8>] (__generic_file_write_iter+0xa0/0x1f8)
[94701.231140]  r9:d4c59300 r8:00000070 r7:00000002 r6:d57d2780 r5:d5a73ed8 r4:00000000
[94701.231148] [<c037c148>] (__generic_file_write_iter) from [<c04bc58c>] (ext4_file_write_iter+0x208/0x48c)
[94701.231153]  r10:d5a73ec0 r9:d57d2678 r8:00000070 r7:00000002 r6:c1204f88 r5:d57d2678
[94701.231156]  r4:d5a73ed8
[94701.231164] [<c04bc384>] (ext4_file_write_iter) from [<c03f87c8>] (__vfs_write+0x144/0x1e0)
[94701.231169]  r10:00000004 r9:00000070 r8:d5a73f60 r7:00000000 r6:00007821 r5:d4c59300
[94701.231172]  r4:c1204f88
[94701.231179] [<c03f8684>] (__vfs_write) from [<c03fb590>] (vfs_write+0xb4/0x1c8)
[94701.231184]  r9:d5a72000 r8:05f4a000 r7:d5a73f60 r6:05f4a000 r5:d4c59300 r4:00000070
[94701.231191] [<c03fb4dc>] (vfs_write) from [<c03fb870>] (ksys_write+0x70/0xec)
[94701.231195]  r8:05f4a000 r7:00000070 r6:d4c59303 r5:c1204f88 r4:d4c59300
[94701.231202] [<c03fb800>] (ksys_write) from [<c03fb904>] (sys_write+0x18/0x1c)
[94701.231206]  r8:c02011c4 r7:00000004 r6:05f4a000 r5:00000000 r4:00000000
[94701.231214] [<c03fb8ec>] (sys_write) from [<c0201000>] (ret_fast_syscall+0x0/0x28)
[94701.231217] Exception stack(0xd5a73fa8 to 0xd5a73ff0)
[94701.231222] 3fa0:                   00000000 00000000 00000003 05f4a000 00000070 00000000
[94701.231227] 3fc0: 00000000 00000000 05f4a000 00000004 00000006 00000001 04401180 039de1f8
[94701.231231] 3fe0: 00000000 0441de2c 000119b0 000be894
[94701.231235] ---[ end trace ee37c577d195af89 ]---
[94701.231272] EXT4-fs error (device sdb1): __ext4_get_inode_loc:4699: inode #20447260: block 81788961: comm gitea: unable to read itable block
[94701.231292] EXT4-fs error (device sdb1) in ext4_reserve_inode_write:5941: IO failure
[94701.231322] EXT4-fs error (device sdb1): __ext4_get_inode_loc:4699: inode #20447260: block 81788961: comm gitea: unable to read itable block
[94701.231337] EXT4-fs error (device sdb1) in ext4_reserve_inode_write:5941: IO failure
[94701.231819] EXT4-fs error (device sdb1): __ext4_get_inode_loc:4699: inode #20447260: block 81788961: comm gitea: unable to read itable block
[94701.231842] EXT4-fs error (device sdb1) in ext4_reserve_inode_write:5941: IO failure
[94701.231868] EXT4-fs error (device sdb1): __ext4_get_inode_loc:4699: inode #20447260: block 81788961: comm gitea: unable to read itable block
[94701.231883] EXT4-fs error (device sdb1) in ext4_reserve_inode_write:5941: IO failure
[94701.646560] usb 2-1: new SuperSpeed Gen 1 USB device number 4 using xhci_hcd
[94701.678078] usb 2-1: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 2.04
[94701.678092] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[94701.678105] usb 2-1: Product: External USB 3.0
[94701.678117] usb 2-1: Manufacturer: JMicron
[94701.678128] usb 2-1: SerialNumber: 201703310007F
[94701.682861] usb 2-1: UAS is blacklisted for this device, using usb-storage instead
[94701.682975] usb 2-1: UAS is blacklisted for this device, using usb-storage instead
[94701.682993] usb-storage 2-1:1.0: USB Mass Storage device detected
[94701.683370] usb-storage 2-1:1.0: Quirks match for vid 152d pid 0578: 1800000
[94701.683516] scsi host2: usb-storage 2-1:1.0
[94702.274287] ------------[ cut here ]------------
[94702.274321] WARNING: CPU: 2 PID: 655 at fs/fs-writeback.c:2323 __mark_inode_dirty+0x310/0x424
[94702.274333] bdi-block not registered
[94702.274345] Modules linked in: cmac bnep hci_uart btbcm bluetooth ecdh_generic ecc 8021q garp stp llc vc4 brcmfmac brcmutil cec v3d gpu_sched drm_kms_helper rpivid_mem sha256_generic libsha256 drm drm_panel_orientation_quirks cfg80211 raspberrypi_hwmon snd_soc_core rfkill bcm2835_codec(C) bcm2835_isp(C) bcm2835_v4l2(C) snd_bcm2835(C) v4l2_mem2mem snd_compress bcm2835_mmal_vchiq(C) videobuf2_dma_contig videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common snd_pcm_dmaengine videodev snd_pcm mc snd_timer vc_sm_cma(C) snd syscopyarea sysfillrect sysimgblt fb_sys_fops sg uio_pdrv_genirq uio ip_tables x_tables ipv6 nf_defrag_ipv6
[94702.274573] CPU: 2 PID: 655 Comm: gitea Tainted: G        WC        5.4.51-v7l+ #1333
[94702.274581] Hardware name: BCM2711
[94702.274589] Backtrace:
[94702.274612] [<c020d46c>] (dump_backtrace) from [<c020d768>] (show_stack+0x20/0x24)
[94702.274625]  r6:d68fa000 r5:00000000 r4:c129c8f8 r3:5ebcc50e
[94702.274644] [<c020d748>] (show_stack) from [<c0a39a44>] (dump_stack+0xe0/0x124)
[94702.274661] [<c0a39964>] (dump_stack) from [<c0221c70>] (__warn+0xec/0x104)
[94702.274674]  r8:00000913 r7:00000009 r6:c0dd6e2c r5:00000000 r4:d68fbd0c r3:5ebcc50e
[94702.274689] [<c0221b84>] (__warn) from [<c0221d0c>] (warn_slowpath_fmt+0x84/0xc0)
[94702.274701]  r9:c0dd6e2c r8:00000913 r7:c0430a14 r6:00000009 r5:c0dd6e40 r4:c1204f88
[94702.274716] [<c0221c8c>] (warn_slowpath_fmt) from [<c0430a14>] (__mark_inode_dirty+0x310/0x424)
[94702.274728]  r9:d68fbda8 r8:d50b1220 r7:d6cf5048 r6:d50b1220 r5:00000000 r4:00000001
[94702.274742] [<c0430704>] (__mark_inode_dirty) from [<c0419cf0>] (generic_update_time+0x8c/0x100)
[94702.274753]  r7:00000000 r6:00000006 r5:00000000 r4:d50b1278
[94702.274765] [<c0419c64>] (generic_update_time) from [<c041979c>] (file_update_time+0x108/0x160)
[94702.274777]  r8:d6a2bb40 r7:00000000 r6:00000006 r5:d50b1220 r4:c1204f88 r3:c0419c64
[94702.274794] [<c0419694>] (file_update_time) from [<c037c1e8>] (__generic_file_write_iter+0xa0/0x1f8)
[94702.274806]  r9:d6a2bb40 r8:00000034 r7:00000000 r6:d50b1328 r5:d68fbed8 r4:00000000
[94702.274823] [<c037c148>] (__generic_file_write_iter) from [<c04bc58c>] (ext4_file_write_iter+0x208/0x48c)
[94702.274836]  r10:d68fbec0 r9:d50b1220 r8:00000034 r7:00000000 r6:c1204f88 r5:d50b1220
[94702.274844]  r4:d68fbed8
[94702.274862] [<c04bc384>] (ext4_file_write_iter) from [<c03f87c8>] (__vfs_write+0x144/0x1e0)
[94702.274874]  r10:00000004 r9:00000034 r8:d68fbf60 r7:00000000 r6:00001579 r5:d6a2bb40
[94702.274882]  r4:c1204f88
[94702.274899] [<c03f8684>] (__vfs_write) from [<c03fb590>] (vfs_write+0xb4/0x1c8)
[94702.274911]  r9:d68fa000 r8:08836100 r7:d68fbf60 r6:08836100 r5:d6a2bb40 r4:00000034
[94702.274927] [<c03fb4dc>] (vfs_write) from [<c03fb870>] (ksys_write+0x70/0xec)
[94702.274939]  r8:08836100 r7:00000034 r6:d6a2bb43 r5:c1204f88 r4:d6a2bb40
[94702.274955] [<c03fb800>] (ksys_write) from [<c03fb904>] (sys_write+0x18/0x1c)
[94702.274966]  r8:c02011c4 r7:00000004 r6:08836100 r5:00000000 r4:00000000
[94702.274982] [<c03fb8ec>] (sys_write) from [<c0201000>] (ret_fast_syscall+0x0/0x28)
[94702.274991] Exception stack(0xd68fbfa8 to 0xd68fbff0)
[94702.275003] bfa0:                   00000000 00000000 0000000e 08836100 00000034 00000000
[94702.275015] bfc0: 00000000 00000000 08836100 00000004 00000006 00000004 05abeb60 039de1f8
[94702.275025] bfe0: 08836103 0592b460 000119b0 000be894
[94702.275036] ---[ end trace ee37c577d195af8a ]---
[94702.275051] ------------[ cut here ]------------
[94702.275074] WARNING: CPU: 3 PID: 892 at fs/fs-writeback.c:2323 __mark_inode_dirty+0x310/0x424
[94702.275087] bdi-block not registered
[94702.275098] Modules linked in: cmac bnep hci_uart btbcm bluetooth ecdh_generic ecc 8021q garp stp llc vc4 brcmfmac brcmutil cec v3d gpu_sched drm_kms_helper rpivid_mem sha256_generic libsha256 drm drm_panel_orientation_quirks cfg80211 raspberrypi_hwmon snd_soc_core rfkill bcm2835_codec(C) bcm2835_isp(C) bcm2835_v4l2(C) snd_bcm2835(C) v4l2_mem2mem snd_compress bcm2835_mmal_vchiq(C) videobuf2_dma_contig videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common snd_pcm_dmaengine videodev snd_pcm mc snd_timer vc_sm_cma(C) snd syscopyarea sysfillrect sysimgblt fb_sys_fops sg uio_pdrv_genirq uio ip_tables x_tables ipv6 nf_defrag_ipv6
[94702.275310] CPU: 3 PID: 892 Comm: gitea Tainted: G        WC        5.4.51-v7l+ #1333
[94702.275318] Hardware name: BCM2711
[94702.275325] Backtrace:
[94702.275343] [<c020d46c>] (dump_backtrace) from [<c020d768>] (show_stack+0x20/0x24)
[94702.275356]  r6:d6940000 r5:00000000 r4:c129c8f8 r3:5ebcc50e
[94702.275373] [<c020d748>] (show_stack) from [<c0a39a44>] (dump_stack+0xe0/0x124)
[94702.275390] [<c0a39964>] (dump_stack) from [<c0221c70>] (__warn+0xec/0x104)
[94702.275402]  r8:00000913 r7:00000009 r6:c0dd6e2c r5:00000000 r4:d6941d0c r3:5ebcc50e
[94702.275417] [<c0221b84>] (__warn) from [<c0221d0c>] (warn_slowpath_fmt+0x84/0xc0)
[94702.275429]  r9:c0dd6e2c r8:00000913 r7:c0430a14 r6:00000009 r5:c0dd6e40 r4:c1204f88
[94702.275444] [<c0221c8c>] (warn_slowpath_fmt) from [<c0430a14>] (__mark_inode_dirty+0x310/0x424)
[94702.275456]  r9:d6941da8 r8:d5085ad8 r7:d6cf5048 r6:d5085ad8 r5:00000000 r4:00000001
[94702.275469] [<c0430704>] (__mark_inode_dirty) from [<c0419cf0>] (generic_update_time+0x8c/0x100)
[94702.275480]  r7:00000000 r6:00000006 r5:00000000 r4:d5085b30
[94702.275493] [<c0419c64>] (generic_update_time) from [<c041979c>] (file_update_time+0x108/0x160)
[94702.275504]  r8:d5ccbe40 r7:00000000 r6:00000006 r5:d5085ad8 r4:c1204f88 r3:c0419c64
[94702.275521] [<c0419694>] (file_update_time) from [<c037c1e8>] (__generic_file_write_iter+0xa0/0x1f8)
[94702.275532]  r9:d5ccbe40 r8:00000034 r7:00000000 r6:d5085be0 r5:d6941ed8 r4:00000000
[94702.275550] [<c037c148>] (__generic_file_write_iter) from [<c04bc58c>] (ext4_file_write_iter+0x208/0x48c)
[94702.275562]  r10:d6941ec0 r9:d5085ad8 r8:00000034 r7:00000000 r6:c1204f88 r5:d5085ad8
[94702.275570]  r4:d6941ed8
[94702.275588] [<c04bc384>] (ext4_file_write_iter) from [<c03f87c8>] (__vfs_write+0x144/0x1e0)
[94702.275600]  r10:00000004 r9:00000034 r8:d6941f60 r7:00000000 r6:0000157b r5:d5ccbe40
[94702.275608]  r4:c1204f88
[94702.275623] [<c03f8684>] (__vfs_write) from [<c03fb590>] (vfs_write+0xb4/0x1c8)
[94702.275636]  r9:d6940000 r8:0943eb40 r7:d6941f60 r6:0943eb40 r5:d5ccbe40 r4:00000034
[94702.275652] [<c03fb4dc>] (vfs_write) from [<c03fb870>] (ksys_write+0x70/0xec)
[94702.275663]  r8:0943eb40 r7:00000034 r6:d5ccbe43 r5:c1204f88 r4:d5ccbe40
[94702.275679] [<c03fb800>] (ksys_write) from [<c03fb904>] (sys_write+0x18/0x1c)
[94702.275690]  r8:c02011c4 r7:00000004 r6:0943eb40 r5:00000000 r4:00000000
[94702.275705] [<c03fb8ec>] (sys_write) from [<c0201000>] (ret_fast_syscall+0x0/0x28)
[94702.275714] Exception stack(0xd6941fa8 to 0xd6941ff0)
[94702.275726] 1fa0:                   00000000 00000000 00000007 0943eb40 00000034 00000000
[94702.275738] 1fc0: 00000000 00000000 0943eb40 00000004 00000006 0000002d 04492c40 039de1f8
[94702.275747] 1fe0: 0943eb43 0592cca8 000119b0 000be894
[94702.275758] ---[ end trace ee37c577d195af8b ]---
[94702.280055] EXT4-fs warning (device sdb1): ext4_end_bio:315: I/O error 10 writing to inode 20447260 (offset 0 size 0 starting block 81824281)
[94702.280075] Buffer I/O error on device sdb1, logical block 81824281
[94702.339773] Aborting journal on device sdb1-8.
[94702.339792] Buffer I/O error on dev sdb1, logical block 60850176, lost sync page write
[94702.339802] JBD2: Error -5 detected when updating journal superblock for sdb1-8.
[94702.716981] scsi 2:0:0:0: Direct-Access     External USB3.0           0204 PQ: 0 ANSI: 6
[94702.718346] sd 2:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[94702.718563] sd 2:0:0:0: Attached scsi generic sg1 type 0
[94702.719096] sd 2:0:0:0: [sdb] Write Protect is off
[94702.719126] sd 2:0:0:0: [sdb] Mode Sense: 47 00 00 08
[94702.719961] sd 2:0:0:0: [sdb] Disabling FUA
[94702.719981] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[94702.764575]  sdb: sdb1
[94702.767931] sd 2:0:0:0: [sdb] Attached SCSI disk
[114295.349167] usb 2-1: USB disconnect, device number 4
[114295.351702] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[114295.351918] sd 2:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[114295.829566] usb 2-1: new SuperSpeed Gen 1 USB device number 5 using xhci_hcd
[114295.860982] usb 2-1: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 2.04
[114295.860999] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[114295.861014] usb 2-1: Product: External USB 3.0
[114295.861029] usb 2-1: Manufacturer: JMicron
[114295.861043] usb 2-1: SerialNumber: 201703310007F
[114295.863723] usb 2-1: UAS is blacklisted for this device, using usb-storage instead
[114295.863834] usb 2-1: UAS is blacklisted for this device, using usb-storage instead
[114295.863851] usb-storage 2-1:1.0: USB Mass Storage device detected
[114295.864331] usb-storage 2-1:1.0: Quirks match for vid 152d pid 0578: 1800000
[114295.864481] scsi host1: usb-storage 2-1:1.0
[114296.939945] scsi 1:0:0:0: Direct-Access     External USB3.0           0204 PQ: 0 ANSI: 6
[114296.940862] sd 1:0:0:0: Attached scsi generic sg1 type 0
[114296.941421] sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[114296.942362] sd 1:0:0:0: [sdb] Write Protect is off
[114296.942381] sd 1:0:0:0: [sdb] Mode Sense: 47 00 00 08
[114296.943270] sd 1:0:0:0: [sdb] Disabling FUA
[114296.943289] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[114297.483006]  sdb: sdb1
[114297.486113] sd 1:0:0:0: [sdb] Attached SCSI disk
RyanHir commented 4 years ago

Have you tried using a powered USB hub?

I have had this issue before and a powered USB 3.0 hub was able to fix the problem. I know this does not explain the issues showing up after a update but it could be a power delivery issue.

SimoB commented 4 years ago

Have you tried using a powered USB hub?

I have had this issue before and a powered USB 3.0 hub was able to fix the problem. I know this does not explain the issues showing up after a update but it could be a power delivery issue.

No, but because I do weekly auto backups of my system I was able to roll back to a backup before the update and from what I see I was on kernel 4.19.

I'll report back if the problem is present with kernel 4.19 or not.

SimoB commented 4 years ago

I can confirm that rolling back to kernel 4.19 resolved my problem with usb ssd disconnections.

Titaniumtown commented 4 years ago

I can not reproduce this issue. I have a raspberry pi 4 8gb running 24/7 w/ usb drives w/o any issues. hmmmm

RyanHir commented 4 years ago

That's quite interesting, I am not a kernel developer so I am not the most aware but 4.19 is a LTS so you could just keep backporting the kernel by recompiling any patches that are added in this repo.

This may be bad advice so please take it with a grain of salt.

On Wed, Aug 26, 2020 at 9:08 AM Simon Gardling notifications@github.com wrote:

I can not reproduce this issue. I have a raspberry pi 4 8gb running 24/7 w/ usb drives w/o any issues. hmmmm

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/raspberrypi/linux/issues/3814#issuecomment-680902678, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDZGLHKMCDVU2BUMLBFNVTSCUJNZANCNFSM4QJY3EKQ .

-- Ryan Hirasaki

RyanHir commented 4 years ago

From experience, I think the issue is power related

Titaniumtown commented 4 years ago

I've had issues w/ usb HDDs (as in the spinning kind) pulling to much power and the pi just shuts off, tries to turn back on, the hdd pulls to much power, and it's stuck like that. That's why I use an enclosure so the power is provided by the wall outlet.

wyuenho commented 2 years ago

For what it's worth, I don't think this issue is related to the HDD not having enough power as I run mine on a powered USB hub. Even when I don't the drive is only reported to use a maximum of 896mA of current from lsusb, since I only have 1 device attached to any USB ports, and the Pi can supply 1.2A total, I don't think power is an issue.

I'm running a Samsung 980 Pro NVMe drive inside a RTL9210 enclosure, so the NVMe drive is treated as a USB Mass Storage device with UAS enabled. I too see that fs/fs-writeback.c:2323 __mark_inode_dirty+0x310/0x424 line in the log, especially after getting hit a couple of times by #3404.

slash-spb commented 1 year ago

[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...