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.05k stars 4.97k forks source link

external USB drive: blk_update_request: I/O error and the USB drive gets another /dev/sd node #777

Closed f18m closed 6 years ago

f18m commented 9 years ago

Hi, I found a quite-reproducible problem (happens quite often!) with the following setup:

(did "rpi-update" on Jan 31 2015)

HOW TO REPRODUCE: just producing traffic on the USB external drives at some point produces:

[ 1116.317108] sd 1:0:0:0: [sdb]  
[ 1116.317199] Result: hostbyte=0x07 driverbyte=0x00
[ 1116.317220] sd 1:0:0:0: [sdb] CDB: 
[ 1116.317233] cdb[0]=0x28: 28 00 13 7b 13 08 00 00 f0 00
[ 1116.317297] blk_update_request: I/O error, dev sdb, sector 326832904

(several times, for different sectors)

and the USB device (e.g., /dev/sdb1) is destroyed and a new dev node is created (e.g., /dev/sdc1).

The dwc_otg driver seems latest one:

root@rasptorrent:~# dmesg | grep dwc_otg
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708.boardrev=0x10 bcm2708.serial=0xee394e21 smsc95xx.macaddr=B8:27:EB:39:4E:21 bcm2708_fb.fbswap=1 bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    1.583112] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    2.027416] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdbc14000 dma = 0x5bc14000 len=9024
[    2.054741] dwc_otg: Microframe scheduler enabled
[    2.087234] dwc_otg bcm2708_usb: DWC OTG Controller
[    2.097477] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    2.110137] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    2.173907] usb usb1: Manufacturer: Linux 3.18.5+ dwc_otg_hcd
[    2.215058] dwc_otg: FIQ enabled
[    2.215085] dwc_otg: NAK holdoff enabled
[    2.215098] dwc_otg: FIQ split-transaction FSM enabled
[    2.696903] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    3.257234] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.617035] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    4.117189] usb 1-1.3: new low-speed USB device number 5 using dwc_otg
[    4.647235] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
[    5.287832] usb 1-1.5.2: new high-speed USB device number 7 using dwc_otg
[    5.757505] usb 1-1.5.4: new high-speed USB device number 8 using dwc_otg
[ 1116.837726] usb 1-1.5.4: new high-speed USB device number 9 using dwc_otg

and it seems that "FIQ enabled", "NAK holdoff enabled" " FIQ split-transaction FSM enabled" features are there.

I'm going to attach the dmsg and lsusb outputs. Please let me know if I can try some fix.

JamesH65 commented 6 years ago

This issue will be closed within 30 days unless further interactions are posted. If you wish this issue to remain open, please add a comment. A closed issue may be reopened if requested.

adde88 commented 6 years ago

I would like this issue to remain open, as i've yet to find a fix for it anywhere. And that would be really awesome to get. :) But if it needs to be closed, i also respect that.

JamesH65 commented 6 years ago

@adde88 I presume that you are using an up to date Raspbian, and that everything is sufficiently well powered?

adde88 commented 6 years ago

No, i'm not. That's why i'm ok with you closing it. The reason i wanted this open is because i'm having the exact same issue on another emedded device, running OpenWRT. (Me and alot of other people) My device is running the exact same version of the kernel. Based on that my gut is telling me that there's "something" with this kernel version. I also haven't found another place where this issue has been discussed. So therefore i was hoping that someone found what's the cause of this. If it's power-related, or a kernel-bug, anything would be interesting to find out. As it could lead to the bug being fixed on our devices as well.

But again, i respect your decision to close this, considering my issue is not directly related to the Raspberry Pi.

JamesH65 commented 6 years ago

OK, since this is no longer an RPi issue (as far as I can tell), I'll close it.

pelwell commented 6 years ago

Note that closed issues can still be searched and commented on.

risa2000 commented 6 years ago

FWIW I have just "discovered" the same problem. I am running latest Raspbian Stretch Linux version 4.14.62-v7+, on Raspberry Pi 3 Model B Rev 1.2. When connecting my brand new USB<>SATA adapter cable called "Qicent" (https://www.amazon.de/gp/product/B01MAWO4V2) which is identified by kernel log as:

[    4.541428] usb 1-1.4: new high-speed USB device number 8 using dwc_otg
[    4.672042] usb 1-1.4: New USB device found, idVendor=2537, idProduct=1068
[    4.672055] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.672063] usb 1-1.4: Product: NS106X
[    4.672072] usb 1-1.4: Manufacturer: Norelsys
[    4.672080] usb 1-1.4: SerialNumber: 0123456789ABCDE
[    4.672813] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    4.675619] scsi host1: usb-storage 1-1.4:1.0
...
[    9.258261] scsi 1:0:0:0: Direct-Access     Generic  HDD              0    PQ: 0 ANSI: 0
[    9.259226] sd 1:0:0:0: Attached scsi generic sg1 type 0
[    9.261147] sd 1:0:0:0: [sdb] Attached SCSI removable disk

It seems the Manufacturer and Product is similar to the already reported bridge chips above. The sudo lsusb -v -d 2537:1068 shows:

Bus 001 Device 008: ID 2537:1068
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x2537
  idProduct          0x1068
  bcdDevice            1.00
  iManufacturer           1 Norelsys
  iProduct                2 NS106X
  iSerial                 3 0123456789ABCDE
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    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     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           22
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      Link Power Management (LPM) Supported
  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
Device Status:     0x0001
  Self Powered

What I find interesting is MaxPower 2mA.

In my case I am running two additional USB devices on my RPi 3B: ZWave USB stick 64GB flash stick so the RPi is pretty loaded (uses 2.5A PS - at least it is written there), but what I find interesting is that I observe the complete USB reset in kernel, when I connect the Qicent cable even without any disk attached, just the adapter is enough to break it down. On the other hand, disconnecting the cable does not do anything to the system. Rebooting with the cable already connected and with the disk attached is also fine.

Below is the dmesg from the crashing system, which shows that once the new USB device is attached, current devices become unavailable and then they are re-enumerated, which moves my USB flash stick from /dev/sda to /dev/sdb and completely confuses the system.

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.62-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1134 SMP Tue Aug 14 17:10:10 BST 2018
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x3ac00000
[    0.000000] On node 0 totalpages: 242688
[    0.000000] free_area_init_node: node 0, pgdat 80c85000, node_mem_map ba39f000
[    0.000000]   Normal zone: 2133 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 242688 pages, LIFO batch:31
[    0.000000] percpu: Embedded 17 pages/cpu @ba348000 s38720 r8192 d22720 u69632
[    0.000000] pcpu-alloc: s38720 r8192 d22720 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 240555
[    0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=e784d122-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 940228K/970752K available (7168K kernel code, 575K rwdata, 2076K rodata, 1024K init, 706K bss, 22332K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
                   lowmem  : 0x80000000 - 0xbb400000   ( 948 MB)
                   modules : 0x7f000000 - 0x80000000   (  16 MB)
                     .text : 0x80008000 - 0x80800000   (8160 kB)
                     .init : 0x80b00000 - 0x80c00000   (1024 kB)
                     .data : 0x80c00000 - 0x80c8fef4   ( 576 kB)
                      .bss : 0x80c96f34 - 0x80d478b4   ( 707 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 25267 entries in 75 pages
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000023] Switching to timer-based delay loop, resolution 52ns
[    0.000274] Console: colour dummy device 80x30
[    0.000807] console [tty1] enabled
[    0.000845] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000884] pid_max: default: 32768 minimum: 301
[    0.001212] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001244] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002197] Disabling memory control group subsystem
[    0.002291] CPU: Testing write buffer coherency: ok
[    0.002713] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003131] Setting up static identity map for 0x100000 - 0x10003c
[    0.003271] Hierarchical SRCU implementation.
[    0.003965] smp: Bringing up secondary CPUs ...
[    0.004761] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.005598] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.006417] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.006522] smp: Brought up 1 node, 4 CPUs
[    0.006595] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.006615] CPU: All CPU(s) started in HYP mode.
[    0.006633] CPU: Virtualization extensions available.
[    0.007528] devtmpfs: initialized
[    0.017708] random: get_random_u32 called from bucket_table_alloc+0xfc/0x24c with crng_init=0
[    0.018380] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.018623] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018667] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.019236] pinctrl core: initialized pinctrl subsystem
[    0.020033] NET: Registered protocol family 16
[    0.022632] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.027464] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.027496] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.027715] Serial: AMBA PL011 UART driver
[    0.029382] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.029862] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.061637] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb813000, dmachans=0x1
[    0.063079] SCSI subsystem initialized
[    0.063329] usbcore: registered new interface driver usbfs
[    0.063398] usbcore: registered new interface driver hub
[    0.063499] usbcore: registered new device driver usb
[    0.070079] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-08-16 17:30
[    0.071413] clocksource: Switched to clocksource arch_sys_counter
[    0.147891] VFS: Disk quotas dquot_6.6.0
[    0.148003] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.148205] FS-Cache: Loaded
[    0.148420] CacheFiles: Loaded
[    0.157326] NET: Registered protocol family 2
[    0.158062] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.158191] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.158392] TCP: Hash tables configured (established 8192 bind 8192)
[    0.158537] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.158597] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.158840] NET: Registered protocol family 1
[    0.159314] RPC: Registered named UNIX socket transport module.
[    0.159338] RPC: Registered udp transport module.
[    0.159357] RPC: Registered tcp transport module.
[    0.159376] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.160866] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.163663] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.171816] FS-Cache: Netfs 'nfs' registered for caching
[    0.172439] NFS: Registering the id_resolver key type
[    0.172482] Key type id_resolver registered
[    0.172501] Key type id_legacy registered
[    0.172530] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.174477] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.174634] io scheduler noop registered
[    0.174656] io scheduler deadline registered (default)
[    0.174951] io scheduler cfq registered
[    0.174972] io scheduler mq-deadline registered
[    0.174993] io scheduler kyber registered
[    0.177706] BCM2708FB: allocated DMA memory fad10000
[    0.177750] BCM2708FB: allocated DMA channel 0 @ bb813000
[    0.186287] Console: switching to colour frame buffer device 82x26
[    0.194555] bcm2835-rng 3f104000.rng: hwrng registered
[    0.196977] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.202140] vc-sm: Videocore shared memory driver
[    0.204722] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    0.218987] brd: module loaded
[    0.229904] loop: module loaded
[    0.232229] Loading iSCSI transport class v2.0-870.
[    0.235193] libphy: Fixed MDIO Bus: probed
[    0.237566] usbcore: registered new interface driver lan78xx
[    0.239893] usbcore: registered new interface driver smsc95xx
[    0.242073] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.272132] dwc_otg 3f980000.usb: base=0xf0980000
[    0.474503] Core Release: 2.80a
[    0.476681] Setting default values for core params
[    0.478943] Finished setting default values for core params
[    0.681521] Using Buffer DMA mode
[    0.683797] Periodic Transfer Interrupt Enhancement - disabled
[    0.686191] Multiprocessor Interrupt Enhancement - disabled
[    0.688567] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.690902] Dedicated Tx FIFOs mode
[    0.693547] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0xbad04000 dma = 0xfad04000 len=9024
[    0.698124] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.709027] dwc_otg: Microframe scheduler enabled
[    0.709075] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805e8e80
[    0.711332] WARN::hcd_init_fiq:460: FIQ ASM at 0x805e91e8 length 36
[    0.713562] WARN::hcd_init_fiq:486: MPHI regs_base at 0xf0006000
[    0.715895] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.718175] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.720510] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.722848] Init: Port Power? op_state=1
[    0.725105] Init: Power Port (0)
[    0.727482] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.729793] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.732109] usb usb1: Product: DWC OTG Controller
[    0.734360] usb usb1: Manufacturer: Linux 4.14.62-v7+ dwc_otg_hcd
[    0.736634] usb usb1: SerialNumber: 3f980000.usb
[    0.739467] hub 1-0:1.0: USB hub found
[    0.741703] hub 1-0:1.0: 1 port detected
[    0.744259] dwc_otg: FIQ enabled
[    0.744265] dwc_otg: NAK holdoff enabled
[    0.744270] dwc_otg: FIQ split-transaction FSM enabled
[    0.744279] Module dwc_common_port init
[    0.744500] usbcore: registered new interface driver usb-storage
[    0.746786] mousedev: PS/2 mouse device common for all mice
[    0.749007] IR NEC protocol handler initialized
[    0.751174] IR RC5(x/sz) protocol handler initialized
[    0.753403] IR RC6 protocol handler initialized
[    0.755582] IR JVC protocol handler initialized
[    0.757660] IR Sony protocol handler initialized
[    0.759745] IR SANYO protocol handler initialized
[    0.761849] IR Sharp protocol handler initialized
[    0.763843] IR MCE Keyboard/mouse protocol handler initialized
[    0.765871] IR XMP protocol handler initialized
[    0.768538] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.770879] bcm2835-cpufreq: min=600000 max=1200000
[    0.773359] sdhci: Secure Digital Host Controller Interface driver
[    0.775486] sdhci: Copyright(c) Pierre Ossman
[    0.777916] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.780386] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    0.782703] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.786295] ledtrig-cpu: registered to indicate activity on CPUs
[    0.788709] hidraw: raw HID events driver (C) Jiri Kosina
[    0.791181] usbcore: registered new interface driver usbhid
[    0.793508] usbhid: USB HID core driver
[    0.796323] vchiq: vchiq_init_state: slot_zero = bad80000, is_master = 0
[    0.800059] [vc_sm_connected_init]: start
[    0.808792] [vc_sm_connected_init]: end - returning 0
[    0.811724] Initializing XFRM netlink socket
[    0.814100] NET: Registered protocol family 17
[    0.816556] Key type dns_resolver registered
[    0.819319] Registering SWP/SWPB emulation handler
[    0.822325] registered taskstats version 1
[    0.830565] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    0.833157] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    0.839766] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    0.842325] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    0.902032] sdhost: log_buf @ bad07000 (fad07000)
[    0.940670] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    0.944660] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.948504] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.953480] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    0.961541] Indeed it is in host mode hprt0 = 00021501
[    1.023669] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.026805] of_cfs_init
[    1.028945] of_cfs_init: OK
[    1.031341] Waiting for root device PARTUUID=e784d122-02...
[    1.041907] random: fast init done
[    1.136121] mmc1: new high speed SDIO card at address 0001
[    1.162690] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.170524] mmc0: new high speed SDHC card at address aaaa
[    1.172822] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.175211] Indeed it is in host mode hprt0 = 00001101
[    1.237845] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.245539]  mmcblk0: p1 p2
[    1.282911] NOHZ: local_softirq_pending 40
[    1.285010] NOHZ: local_softirq_pending 40
[    1.286994] NOHZ: local_softirq_pending 40
[    1.288886] NOHZ: local_softirq_pending 40
[    1.290771] NOHZ: local_softirq_pending 40
[    1.292658] NOHZ: local_softirq_pending 40
[    1.294539] NOHZ: local_softirq_pending 40
[    1.296326] NOHZ: local_softirq_pending 40
[    1.298012] NOHZ: local_softirq_pending 40
[    1.299605] NOHZ: local_softirq_pending 40
[    1.306622] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.309961] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.322504] devtmpfs: mounted
[    1.327165] Freeing unused kernel memory: 1024K
[    1.421737] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.423517] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.425845] hub 1-1:1.0: USB hub found
[    1.427575] hub 1-1:1.0: 5 ports detected
[    1.741447] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.790741] systemd[1]: System time before build time, advancing clock.
[    1.881715] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    1.883635] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.888239] smsc95xx v1.0.6
[    1.911538] NET: Registered protocol family 10
[    1.914806] Segment Routing with IPv6
[    1.929501] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.949449] random: systemd: uninitialized urandom read (16 bytes read)
[    1.957102] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    1.965647] systemd[1]: Detected architecture arm.
[    1.975197] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:0b:02:74
[    1.992750] systemd[1]: Set hostname to <raspberrypi>.
[    2.022314] random: systemd: uninitialized urandom read (16 bytes read)
[    2.038409] random: systemd-cryptse: uninitialized urandom read (16 bytes read)
[    2.071481] usb 1-1.5: new full-speed USB device number 4 using dwc_otg
[    2.171471] usb 1-1.5: device descriptor read/64, error -32
[    2.391466] usb 1-1.5: device descriptor read/64, error -32
[    2.555319] systemd[1]: Listening on udev Kernel Socket.
[    2.562026] systemd[1]: Created slice System Slice.
[    2.568274] systemd[1]: Created slice system-getty.slice.
[    2.574163] systemd[1]: Listening on fsck to fsckd communication Socket.
[    2.582776] systemd[1]: Mounting Debug File System...
[    2.589819] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    2.599183] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    2.611483] usb 1-1.5: new full-speed USB device number 5 using dwc_otg
[    2.711558] usb 1-1.5: device descriptor read/64, error -32
[    2.931475] usb 1-1.5: device descriptor read/64, error -32
[    3.051667] usb 1-1-port5: attempt power cycle
[    3.135819] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.711494] usb 1-1.5: new full-speed USB device number 6 using dwc_otg
[    3.745238] usb 1-1.5: New USB device found, idVendor=0658, idProduct=0200
[    3.745256] usb 1-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.806610] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    3.809561] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[    3.950697] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[    3.956499] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001
[    3.956733] usbcore: registered new interface driver brcmfmac
[    4.041526] usb 1-1.3: new high-speed USB device number 7 using dwc_otg
[    4.172266] usb 1-1.3: New USB device found, idVendor=0781, idProduct=5571
[    4.172280] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.172298] usb 1-1.3: Product: Cruzer Fit
[    4.172312] usb 1-1.3: Manufacturer: SanDisk
[    4.172324] usb 1-1.3: SerialNumber: 4C530001140213103403
[    4.174677] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    4.200875] scsi host0: usb-storage 1-1.3:1.0
[    4.217435] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[    4.218206] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.39 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-10-23 03:47:14 
[    4.273494] cdc_acm 1-1.5:1.0: ttyACM0: USB ACM device
[    4.274616] usbcore: registered new interface driver cdc_acm
[    4.274627] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    5.272561] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    5.274101] sd 0:0:0:0: [sda] 123174912 512-byte logical blocks: (63.1 GB/58.7 GiB)
[    5.275380] sd 0:0:0:0: [sda] Write Protect is off
[    5.275395] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[    5.275732] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    5.291943] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.301203]  sda: sda1
[    5.304416] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    5.527104] random: crng init done
[    5.527119] random: 7 urandom warning(s) missed due to ratelimiting
[    5.692289] F2FS-fs (sda1): Mounted with checkpoint version = 4bbc4
[    5.858488] systemd-journald[116]: Received request to flush runtime journal from PID 1
[    6.578811] uart-pl011 3f201000.serial: no DMA platform data
[    7.115333] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    7.115346] brcmfmac: power management disabled
[    7.171062] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    7.933569] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    9.472460] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[   11.026294] Bluetooth: Core ver 2.22
[   11.026372] NET: Registered protocol family 31
[   11.026380] Bluetooth: HCI device and connection manager initialized
[   11.026400] Bluetooth: HCI socket layer initialized
[   11.026414] Bluetooth: L2CAP socket layer initialized
[   11.026444] Bluetooth: SCO socket layer initialized
[   11.040637] Bluetooth: HCI UART driver ver 2.3
[   11.040652] Bluetooth: HCI UART protocol H4 registered
[   11.040658] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   11.040858] Bluetooth: HCI UART protocol Broadcom registered
[   11.212986] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   11.212993] Bluetooth: BNEP filters: protocol multicast
[   11.213007] Bluetooth: BNEP socket layer initialized
[   30.184963] NET: Registered protocol family 38
[  140.139184] usb 1-1.3: USB disconnect, device number 7
[  140.166996] ------------[ cut here ]------------
[  140.167039] WARNING: CPU: 0 PID: 499 at fs/fs-writeback.c:2162 __mark_inode_dirty+0x2f4/0x408
[  140.167045] bdi-block not registered
[  140.167050] Modules linked in: aes_arm_bs crypto_simd cryptd algif_skcipher af_alg bnep hci_uart btbcm serdev bluetooth ecdh_generic sg cdc_acm brcmfmac brcmutil cfg80211 rfkill snd_bcm2835(C) snd_pcm snd_timer snd fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[  140.167204] CPU: 0 PID: 499 Comm: rs:main Q:Reg Tainted: G         C      4.14.62-v7+ #1134
[  140.167209] Hardware name: BCM2835
[  140.167240] [<8010ffd8>] (unwind_backtrace) from [<8010c240>] (show_stack+0x20/0x24)
[  140.167258] [<8010c240>] (show_stack) from [<80787284>] (dump_stack+0xd4/0x118)
[  140.167277] [<80787284>] (dump_stack) from [<8011da6c>] (__warn+0xf8/0x110)
[  140.167291] [<8011da6c>] (__warn) from [<8011dacc>] (warn_slowpath_fmt+0x48/0x50)
[  140.167307] [<8011dacc>] (warn_slowpath_fmt) from [<802bb818>] (__mark_inode_dirty+0x2f4/0x408)
[  140.167330] [<802bb818>] (__mark_inode_dirty) from [<80429628>] (f2fs_set_page_dirty_nobuffers+0x114/0x144)
[  140.167349] [<80429628>] (f2fs_set_page_dirty_nobuffers) from [<8042978c>] (f2fs_set_data_page_dirty+0x134/0x148)
[  140.167369] [<8042978c>] (f2fs_set_data_page_dirty) from [<8022c284>] (set_page_dirty+0x84/0xcc)
[  140.167387] [<8022c284>] (set_page_dirty) from [<804222e0>] (f2fs_write_end+0x11c/0x2a4)
[  140.167403] [<804222e0>] (f2fs_write_end) from [<8021e830>] (generic_perform_write+0x118/0x1b0)
[  140.167420] [<8021e830>] (generic_perform_write) from [<802210c8>] (__generic_file_write_iter+0x19c/0x1f8)
[  140.167437] [<802210c8>] (__generic_file_write_iter) from [<8040621c>] (f2fs_file_write_iter+0xe4/0x218)
[  140.167458] [<8040621c>] (f2fs_file_write_iter) from [<8028b05c>] (__vfs_write+0xe0/0x138)
[  140.167475] [<8028b05c>] (__vfs_write) from [<8028b27c>] (vfs_write+0xb4/0x1bc)
[  140.167491] [<8028b27c>] (vfs_write) from [<8028b4cc>] (SyS_write+0x54/0xb0)
[  140.167509] [<8028b4cc>] (SyS_write) from [<80108060>] (ret_fast_syscall+0x0/0x28)
[  140.167545] ---[ end trace 406cdc4a71053c21 ]---
[  140.196584] blk_partition_remap: fail for partition 1
[  140.941828] usb 1-1.4: new high-speed USB device number 8 using dwc_otg
[  141.072573] usb 1-1.4: New USB device found, idVendor=2537, idProduct=1068
[  141.072580] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  141.072585] usb 1-1.4: Product: NS106X
[  141.072589] usb 1-1.4: Manufacturer: Norelsys
[  141.072593] usb 1-1.4: SerialNumber: 0123456789ABCDE
[  141.073042] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[  141.073255] scsi host1: usb-storage 1-1.4:1.0
[  141.091343] ------------[ cut here ]------------
[  141.091362] WARNING: CPU: 1 PID: 499 at fs/fs-writeback.c:2162 __mark_inode_dirty+0x2f4/0x408
[  141.091366] bdi-block not registered
[  141.091368] Modules linked in: aes_arm_bs crypto_simd cryptd algif_skcipher af_alg bnep hci_uart btbcm serdev bluetooth ecdh_generic sg cdc_acm brcmfmac brcmutil cfg80211 rfkill snd_bcm2835(C) snd_pcm snd_timer snd fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[  141.091444] CPU: 1 PID: 499 Comm: rs:main Q:Reg Tainted: G        WC      4.14.62-v7+ #1134
[  141.091447] Hardware name: BCM2835
[  141.091466] [<8010ffd8>] (unwind_backtrace) from [<8010c240>] (show_stack+0x20/0x24)
[  141.091476] [<8010c240>] (show_stack) from [<80787284>] (dump_stack+0xd4/0x118)
[  141.091485] [<80787284>] (dump_stack) from [<8011da6c>] (__warn+0xf8/0x110)
[  141.091493] [<8011da6c>] (__warn) from [<8011dacc>] (warn_slowpath_fmt+0x48/0x50)
[  141.091500] [<8011dacc>] (warn_slowpath_fmt) from [<802bb818>] (__mark_inode_dirty+0x2f4/0x408)
[  141.091513] [<802bb818>] (__mark_inode_dirty) from [<80424148>] (reserve_new_blocks+0x36c/0x40c)
[  141.091522] [<80424148>] (reserve_new_blocks) from [<8042434c>] (f2fs_reserve_block+0x134/0x190)
[  141.091530] [<8042434c>] (f2fs_reserve_block) from [<80418a1c>] (f2fs_convert_inline_page+0x1a8/0x370)
[  141.091537] [<80418a1c>] (f2fs_convert_inline_page) from [<80418df8>] (f2fs_convert_inline_inode+0x214/0x294)
[  141.091545] [<80418df8>] (f2fs_convert_inline_inode) from [<80426ad8>] (f2fs_preallocate_blocks+0x144/0x164)
[  141.091553] [<80426ad8>] (f2fs_preallocate_blocks) from [<804061b0>] (f2fs_file_write_iter+0x78/0x218)
[  141.091564] [<804061b0>] (f2fs_file_write_iter) from [<8028b05c>] (__vfs_write+0xe0/0x138)
[  141.091572] [<8028b05c>] (__vfs_write) from [<8028b27c>] (vfs_write+0xb4/0x1bc)
[  141.091581] [<8028b27c>] (vfs_write) from [<8028b4cc>] (SyS_write+0x54/0xb0)
[  141.091590] [<8028b4cc>] (SyS_write) from [<80108060>] (ret_fast_syscall+0x0/0x28)
[  141.091594] ---[ end trace 406cdc4a71053c22 ]---
[  141.091643] blk_partition_remap: fail for partition 1
[  141.711864] usb 1-1.3: new high-speed USB device number 9 using dwc_otg
[  141.842724] usb 1-1.3: New USB device found, idVendor=0781, idProduct=5571
[  141.842736] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  141.842745] usb 1-1.3: Product: Cruzer Fit
[  141.842754] usb 1-1.3: Manufacturer: SanDisk
[  141.842762] usb 1-1.3: SerialNumber: 4C530001140213103403
[  141.843505] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[  141.843886] scsi host2: usb-storage 1-1.3:1.0
[  142.873046] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[  142.874077] sd 2:0:0:0: Attached scsi generic sg0 type 0
[  142.875605] sd 2:0:0:0: [sdb] 123174912 512-byte logical blocks: (63.1 GB/58.7 GiB)
[  142.876866] sd 2:0:0:0: [sdb] Write Protect is off
[  142.876879] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  142.877276] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  142.882339] ------------[ cut here ]------------
[  142.882369] WARNING: CPU: 1 PID: 499 at fs/fs-writeback.c:2162 __mark_inode_dirty+0x2f4/0x408
[  142.882375] bdi-block not registered
[  142.882381] Modules linked in: aes_arm_bs crypto_simd cryptd algif_skcipher af_alg bnep hci_uart btbcm serdev bluetooth ecdh_generic sg cdc_acm brcmfmac brcmutil cfg80211 rfkill snd_bcm2835(C) snd_pcm snd_timer snd fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[  142.882513] CPU: 1 PID: 499 Comm: rs:main Q:Reg Tainted: G        WC      4.14.62-v7+ #1134
[  142.882518] Hardware name: BCM2835
[  142.882548] [<8010ffd8>] (unwind_backtrace) from [<8010c240>] (show_stack+0x20/0x24)
[  142.882565] [<8010c240>] (show_stack) from [<80787284>] (dump_stack+0xd4/0x118)
[  142.882582] [<80787284>] (dump_stack) from [<8011da6c>] (__warn+0xf8/0x110)
[  142.882596] [<8011da6c>] (__warn) from [<8011dacc>] (warn_slowpath_fmt+0x48/0x50)
[  142.882611] [<8011dacc>] (warn_slowpath_fmt) from [<802bb818>] (__mark_inode_dirty+0x2f4/0x408)
[  142.882632] [<802bb818>] (__mark_inode_dirty) from [<80429628>] (f2fs_set_page_dirty_nobuffers+0x114/0x144)
[  142.882654] [<80429628>] (f2fs_set_page_dirty_nobuffers) from [<8042978c>] (f2fs_set_data_page_dirty+0x134/0x148)
[  142.882673] [<8042978c>] (f2fs_set_data_page_dirty) from [<8022c284>] (set_page_dirty+0x84/0xcc)
[  142.882692] [<8022c284>] (set_page_dirty) from [<804222e0>] (f2fs_write_end+0x11c/0x2a4)
[  142.882707] [<804222e0>] (f2fs_write_end) from [<8021e830>] (generic_perform_write+0x118/0x1b0)
[  142.882723] [<8021e830>] (generic_perform_write) from [<802210c8>] (__generic_file_write_iter+0x19c/0x1f8)
[  142.882740] [<802210c8>] (__generic_file_write_iter) from [<8040621c>] (f2fs_file_write_iter+0xe4/0x218)
[  142.882759] [<8040621c>] (f2fs_file_write_iter) from [<8028b05c>] (__vfs_write+0xe0/0x138)
[  142.882776] [<8028b05c>] (__vfs_write) from [<8028b27c>] (vfs_write+0xb4/0x1bc)
[  142.882791] [<8028b27c>] (vfs_write) from [<8028b4cc>] (SyS_write+0x54/0xb0)
[  142.882809] [<8028b4cc>] (SyS_write) from [<80108060>] (ret_fast_syscall+0x0/0x28)
[  142.882817] ---[ end trace 406cdc4a71053c23 ]---
[  142.903226]  sdb: sdb1
[  142.905375] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[  145.658687] scsi 1:0:0:0: Direct-Access     Generic  HDD              0    PQ: 0 ANSI: 0
[  145.659579] sd 1:0:0:0: Attached scsi generic sg1 type 0
[  145.664857] sd 1:0:0:0: [sdc] Attached SCSI removable disk
[  149.206338] ------------[ cut here ]------------
[  149.206372] WARNING: CPU: 2 PID: 919 at fs/fs-writeback.c:2162 __mark_inode_dirty+0x2f4/0x408
[  149.206378] bdi-block not registered
[  149.206382] Modules linked in: aes_arm_bs crypto_simd cryptd algif_skcipher af_alg bnep hci_uart btbcm serdev bluetooth ecdh_generic sg cdc_acm brcmfmac brcmutil cfg80211 rfkill snd_bcm2835(C) snd_pcm snd_timer snd fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[  149.206513] CPU: 2 PID: 919 Comm: pihole-FTL Tainted: G        WC      4.14.62-v7+ #1134
[  149.206518] Hardware name: BCM2835
[  149.206545] [<8010ffd8>] (unwind_backtrace) from [<8010c240>] (show_stack+0x20/0x24)
[  149.206562] [<8010c240>] (show_stack) from [<80787284>] (dump_stack+0xd4/0x118)
[  149.206578] [<80787284>] (dump_stack) from [<8011da6c>] (__warn+0xf8/0x110)
[  149.206592] [<8011da6c>] (__warn) from [<8011dacc>] (warn_slowpath_fmt+0x48/0x50)
[  149.206607] [<8011dacc>] (warn_slowpath_fmt) from [<802bb818>] (__mark_inode_dirty+0x2f4/0x408)
[  149.206627] [<802bb818>] (__mark_inode_dirty) from [<80429628>] (f2fs_set_page_dirty_nobuffers+0x114/0x144)
[  149.206646] [<80429628>] (f2fs_set_page_dirty_nobuffers) from [<8042978c>] (f2fs_set_data_page_dirty+0x134/0x148)
[  149.206665] [<8042978c>] (f2fs_set_data_page_dirty) from [<8022c284>] (set_page_dirty+0x84/0xcc)
[  149.206683] [<8022c284>] (set_page_dirty) from [<804222e0>] (f2fs_write_end+0x11c/0x2a4)
[  149.206698] [<804222e0>] (f2fs_write_end) from [<8021e830>] (generic_perform_write+0x118/0x1b0)
[  149.206714] [<8021e830>] (generic_perform_write) from [<802210c8>] (__generic_file_write_iter+0x19c/0x1f8)
[  149.206730] [<802210c8>] (__generic_file_write_iter) from [<8040621c>] (f2fs_file_write_iter+0xe4/0x218)
[  149.206750] [<8040621c>] (f2fs_file_write_iter) from [<8028b05c>] (__vfs_write+0xe0/0x138)
[  149.206766] [<8028b05c>] (__vfs_write) from [<8028b27c>] (vfs_write+0xb4/0x1bc)
[  149.206782] [<8028b27c>] (vfs_write) from [<8028b4cc>] (SyS_write+0x54/0xb0)
[  149.206798] [<8028b4cc>] (SyS_write) from [<80108060>] (ret_fast_syscall+0x0/0x28)
[  149.206806] ---[ end trace 406cdc4a71053c24 ]---
[  183.088969] ------------[ cut here ]------------
[  183.088998] WARNING: CPU: 0 PID: 499 at fs/fs-writeback.c:2162 __mark_inode_dirty+0x2f4/0x408
[  183.089004] bdi-block not registered
[  183.089009] Modules linked in: aes_arm_bs crypto_simd cryptd algif_skcipher af_alg bnep hci_uart btbcm serdev bluetooth ecdh_generic sg cdc_acm brcmfmac brcmutil cfg80211 rfkill snd_bcm2835(C) snd_pcm snd_timer snd fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[  183.089140] CPU: 0 PID: 499 Comm: rs:main Q:Reg Tainted: G        WC      4.14.62-v7+ #1134
[  183.089145] Hardware name: BCM2835
[  183.089175] [<8010ffd8>] (unwind_backtrace) from [<8010c240>] (show_stack+0x20/0x24)
[  183.089191] [<8010c240>] (show_stack) from [<80787284>] (dump_stack+0xd4/0x118)
[  183.089208] [<80787284>] (dump_stack) from [<8011da6c>] (__warn+0xf8/0x110)
[  183.089221] [<8011da6c>] (__warn) from [<8011dacc>] (warn_slowpath_fmt+0x48/0x50)
[  183.089236] [<8011dacc>] (warn_slowpath_fmt) from [<802bb818>] (__mark_inode_dirty+0x2f4/0x408)
[  183.089256] [<802bb818>] (__mark_inode_dirty) from [<80429628>] (f2fs_set_page_dirty_nobuffers+0x114/0x144)
[  183.089275] [<80429628>] (f2fs_set_page_dirty_nobuffers) from [<8042978c>] (f2fs_set_data_page_dirty+0x134/0x148)
[  183.089294] [<8042978c>] (f2fs_set_data_page_dirty) from [<8022c284>] (set_page_dirty+0x84/0xcc)
[  183.089312] [<8022c284>] (set_page_dirty) from [<804222e0>] (f2fs_write_end+0x11c/0x2a4)
[  183.089328] [<804222e0>] (f2fs_write_end) from [<8021e830>] (generic_perform_write+0x118/0x1b0)
[  183.089343] [<8021e830>] (generic_perform_write) from [<802210c8>] (__generic_file_write_iter+0x19c/0x1f8)
[  183.089361] [<802210c8>] (__generic_file_write_iter) from [<8040621c>] (f2fs_file_write_iter+0xe4/0x218)
[  183.089380] [<8040621c>] (f2fs_file_write_iter) from [<8028b05c>] (__vfs_write+0xe0/0x138)
[  183.089396] [<8028b05c>] (__vfs_write) from [<8028b27c>] (vfs_write+0xb4/0x1bc)
[  183.089412] [<8028b27c>] (vfs_write) from [<8028b4cc>] (SyS_write+0x54/0xb0)
[  183.089429] [<8028b4cc>] (SyS_write) from [<80108060>] (ret_fast_syscall+0x0/0x28)
[  183.089437] ---[ end trace 406cdc4a71053c25 ]---
oskar-skog commented 6 years ago

Could it be the USB-SATA adapter that's buggy? I've had severe issues with a Revoltec enclosure, several dead sectors when using it. Can't read the bloody chip, but I think it's a Revoltec RS076 enclosure.

risa2000 commented 6 years ago

Could it be the USB-SATA adapter that's buggy?

It could, but when I tried it in normal PC (Windows 7), there was no problem (but I probably did not have other devices on the same USB hub either). The fact that it completely resets the USB interface points to the hardware bug, rather than software, but whether it is the bridge chip, or the USB hub in RPi, I do not know, nor if it is really HW bug, or some linux kernel mechanism.

adde88 commented 5 years ago

I've done ALOT of debugging on my OpenWRT device. (Pineapple NANO) I managed to cross-compile the latest kernel (4.14.81) in the hope that this would squash the bug. But the same error keeps dropping. Though i'm noticing a pattern.

In ALL of the error messages it failed while using the SCSI OPCODE: 0x28 (READ) So, i'm currently trying to locate exactly which driver is failing, as the kernel have loaded both OHCI and EHCI. I also tried to uninstall the "scsci-generic" module. It's not using any MMC driver to manage the SD-card.

Here's some info about the device from lsusb:

root@Pineapple:~# lsusb
Bus 001 Device 008: ID 05e3:0745 Genesys Logic, Inc. Logilink CR0012
Bus 001 Device 003: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n
Bus 001 Device 002: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@Pineapple:~# lsusb -v -d 05e3:0745

Bus 001 Device 008: ID 05e3:0745 Genesys Logic, Inc. Logilink CR0012
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.01
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x05e3 Genesys Logic, Inc.
  idProduct          0x0745 Logilink CR0012
  bcdDevice            9.33
  iManufacturer           0
  iProduct                1 USB Storage
  iSerial                 2 000000000933
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    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     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           12
  bNumDeviceCaps          1
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      Link Power Management (LPM) Supported
Device Status:     0x0000
  (Bus Powered)

I'll provide more feedback if i find anything of interest.

awwit commented 2 years ago

This error may be related to this problem (I don't know how to solve it yet): https://en.opensuse.org/SDB:USB_3.0_Hard_Drive_troubleshooting

RENANZG commented 1 year ago

qbitorrent would get cascading I/O errors (Input/Output Error), almost always with 50+ GB downloads. In addition, qbittorrent kept eating all my ram. Changing "File Pool Size" in the advanced options to something like 500 (instead of 5000), might be worth a try (or lower) if you're still having issues.