Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member M-H's Avatar
    Join Date
    Oct 2016
    Location
    Western Europe
    Posts
    212

    USB disks not remounted on a software reboot

    I am preparing my new LMS server using a :
    Pi4 ( 4 GB) , PCP6.0 fresh install, new powered USB3 hub, 2 or possibly more usb3 disks
    And after some powercable and powersupplyunit problems I have a stable HW platform, Copied a few hundred gig with no visible issue.
    And although the disks are always auto-mounted on a power-up boot, I do not get the disks to mount on a software reboot.

    Before the powered hub, I could not get 2 disks to work reliably though the pi. But with only one disk a reboot was not an issue.

    Is this issue something that has to do with PCP ? Or is this common with powered hubs ?
    It seems the disks are not reset, but i am not sure this is true and how I can determine it.
    Suggestions and solutions are welcome.

    ( Perhaps I should boot and reboot another linux distro to see if this is HW or PCP related. )

    M-H
    Pi based multi-room audio system powered by PiCorePlayer(s):
    Pi3B with Phat-dac in a Rasptouch, 2 pi B+ with Cirrus Logic Audio Card, Pi Zero with Phat-beat , and a few other tests...

  2. #2
    Senior Member M-H's Avatar
    Join Date
    Oct 2016
    Location
    Western Europe
    Posts
    212
    apparently I was too eager to exclude HW ussues.

    from dmesg:
    Code:
    [   57.835410] Finished piCorePlayer v6.0.0 startup.
    [   70.502758] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  115.882697] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  115.911043] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  115.911060] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 04 c1 08 00 00 00 20 00
    [  115.911071] print_req_error: I/O error, dev sdb, sector 79759360
    [  165.694796] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  199.146758] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  199.174867] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  199.174891] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 0a e4 48 00 00 00 20 00
    [  199.174906] print_req_error: I/O error, dev sdb, sector 182732800
    [  230.466706] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  231.102742] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  263.186529] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  279.106674] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  279.135015] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  279.135031] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 0f 46 dd e0 00 01 00 00
    [  279.135043] print_req_error: I/O error, dev sdb, sector 256302560
    [  279.226679] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  279.255656] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  279.255669] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 0f 46 de e0 00 01 00 00
    [  279.255678] print_req_error: I/O error, dev sdb, sector 256302816
    [  287.818749] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  341.466749] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  367.758732] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  381.774793] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  381.803096] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  381.803114] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 17 1f d8 e0 00 01 00 00
    [  381.803128] print_req_error: I/O error, dev sdb, sector 387963104
    [  381.894745] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  381.923247] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  381.923263] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 17 1f d9 e0 00 01 00 00
    [  381.923274] print_req_error: I/O error, dev sdb, sector 387963360
    [  382.342668] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  382.370748] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  382.370767] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 17 27 0e e0 00 01 00 00
    [  382.370782] print_req_error: I/O error, dev sdb, sector 388435680
    [  382.458849] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  382.487560] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  382.487576] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 17 27 0f e0 00 01 00 00
    [  382.487589] print_req_error: I/O error, dev sdb, sector 388435936
    [  382.898719] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  382.926684] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  382.926699] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 17 1f 83 e0 00 01 00 00
    [  382.926711] print_req_error: I/O error, dev sdb, sector 387941344
    [  383.018676] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  383.047531] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  383.047543] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 17 1f 84 e0 00 01 00 00
    [  383.047552] print_req_error: I/O error, dev sdb, sector 387941600
    [  383.778715] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  383.807000] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  383.807019] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 17 24 fa e0 00 01 00 00
    [  383.807033] print_req_error: I/O error, dev sdb, sector 388299488
    [  383.898753] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  383.927463] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  383.927479] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 17 24 fb e0 00 01 00 00
    [  383.927490] print_req_error: I/O error, dev sdb, sector 388299744
    [  384.070704] usb 2-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
    [  384.098797] sd 0:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
    [  384.098816] sd 0:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 17 25 ae e0 00 01 00 00
    [  384.098830] print_req_error: I/O error, dev sdb, sector 388345568
     .....................
    [ 1029.665255] EXT4-fs error (device sdb1): ext4_wait_block_bitmap:511: comm slimserver.pl: Cannot read block bitmap - block_group = 8, block_bitmap = 262144
    [ 1029.666191] EXT4-fs error (device sdb1): ext4_discard_preallocations:4073: comm slimserver.pl: Error -5 reading block bitmap for 8
    [ 1029.668237] ------------[ cut here ]------------
    [ 1029.668242] bdi-block not registered
    [ 1029.668258] WARNING: CPU: 3 PID: 8890 at fs/fs-writeback.c:2241 __mark_inode_dirty+0x188/0x4a8
    [ 1029.668260] Modules linked in: spidev brcmfmac brcmutil sha256_generic raspberrypi_hwmon hwmon cfg80211 snd_bcm2835(C) i2c_bcm2835 snd_soc_bcm2835_i2s regmap_mmio snd_soc_core rfkill snd_compress snd_pcm_dmaengine snd_pcm snd_timer snd spi_bcm2835 squashfs sch_fq_codel lz4 lz4_compress zram zsmalloc evdev
    [ 1029.668286] CPU: 3 PID: 8890 Comm: slimserver.pl Tainted: G        WC        4.19.105-pcpCore_v8 #1
    [ 1029.668289] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
    [ 1029.668292] pstate: 80000005 (Nzcv daif -PAN -UAO)
    [ 1029.668295] pc : __mark_inode_dirty+0x188/0x4a8
    [ 1029.668298] lr : __mark_inode_dirty+0x188/0x4a8
    [ 1029.668301] sp : ffffff800bf1ba80
    [ 1029.668303] x29: ffffff800bf1ba80 x28: 0000000000000002 
    [ 1029.668307] x27: ffffffc0eb4b2a60 x26: 0000000000000055 
    [ 1029.668311] x25: ffffffc0eb4b2a00 x24: ffffffc0df60d488 
    [ 1029.668314] x23: 0000000000000000 x22: 0000000000000000 
    [ 1029.668318] x21: 0000000000000004 x20: ffffffc0df60d408 
    [ 1029.668321] x19: ffffffc0f63c4858 x18: 0000000000000000 
    [ 1029.668324] x17: 0000000000000000 x16: 0000000000000000 
    [ 1029.668328] x15: 0000000000000000 x14: 0000000000000000 
    [ 1029.668331] x13: 0000000000000000 x12: ffffff8008c2c000 
    [ 1029.668335] x11: 0000000000000000 x10: ffffff8008d14000 
    [ 1029.668338] x9 : 0000000000000000 x8 : 0000000000000003 
    [ 1029.668341] x7 : 0000000000000000 x6 : 0000000000000258 
    [ 1029.668345] x5 : ffffff8008c18000 x4 : ffffff80081049e4 
    [ 1029.668348] x3 : ffffff8008c18de0 x2 : 0000000000000000 
    [ 1029.668351] x1 : b29c3af4ad7a9400 x0 : 0000000000000000 
    [ 1029.668355] Call trace:
    [ 1029.668358]  __mark_inode_dirty+0x188/0x4a8
    [ 1029.668363]  __set_page_dirty_buffers+0x12c/0x188
    [ 1029.668366]  ext4_set_page_dirty+0x60/0x98
    [ 1029.668370]  set_page_dirty+0x84/0x118
    [ 1029.668375]  fault_dirty_shared_page.isra.11+0x38/0xc0
    [ 1029.668378]  do_wp_page+0x384/0x598
    [ 1029.668381]  __handle_mm_fault+0x670/0xbb8
    [ 1029.668383]  handle_mm_fault+0x13c/0x230
    [ 1029.668389]  do_page_fault+0x238/0x4f8
    [ 1029.668392]  do_mem_abort+0x68/0x118
    [ 1029.668395]  el0_da+0x20/0x24
    [ 1029.668398] ---[ end trace b820fab87ea4885f ]---
    [ 1033.182055] xhci_hcd 0000:01:00.0: Timeout while waiting for setup device command
    [ 1033.389728] usb 2-1.2: device not accepting address 5, error -62
    [ 1038.813883] xhci_hcd 0000:01:00.0: Timeout while waiting for setup device command
    [ 1044.189945] xhci_hcd 0000:01:00.0: Timeout while waiting for setup device command
    [ 1044.397719] usb 2-1.2: device not accepting address 6, error -62
    [ 1044.398959] usb 2-1-port2: attempt power cycle
    [ 1049.821854] xhci_hcd 0000:01:00.0: Timeout while waiting for setup device command
    [ 1055.197888] xhci_hcd 0000:01:00.0: Timeout while waiting for setup device command
    [ 1055.405719] usb 2-1.2: device not accepting address 7, error -62
    [ 1060.829878] xhci_hcd 0000:01:00.0: Timeout while waiting for setup device command
    [ 1066.205929] xhci_hcd 0000:01:00.0: Timeout while waiting for setup device command
    [ 1066.413714] usb 2-1.2: device not accepting address 8, error -62
    [ 1066.414920] usb 2-1-port2: unable to enumerate USB device
    It might be like pointed out here
    Last edited by M-H; 2020-03-22 at 15:42.
    Pi based multi-room audio system powered by PiCorePlayer(s):
    Pi3B with Phat-dac in a Rasptouch, 2 pi B+ with Cirrus Logic Audio Card, Pi Zero with Phat-beat , and a few other tests...

  3. #3
    Senior Member M-H's Avatar
    Join Date
    Oct 2016
    Location
    Western Europe
    Posts
    212

    disabeling UAS in the xHCI driver

    Quote Originally Posted by M-H View Post
    It might be like pointed out here
    I had a FEW disks not working OKE with UAS ,
    and by disabeling UAS in the new xHCI driver ( default with Pi 4 and USB3 disks ) I got my disks to perform more reliably.

    In fact it were not my disks that acted up , but the USB3 to SATA controllers in the casings I bought to re-use the old laptop disks.

    So if you think your USB storage is faulty using a pi4 , please check https://www.raspberrypi.org/forums/v...c.php?t=245931
    and use them again without UAS

    In PCP use this recipe,

    CLI:
    m1
    vi /mnt/mmcblk0p1/cmdline.txt
    add the correct string to the existing ONE line.
    save file ( Shift +zz )
    pcp br , to backup and reboot
    reconnect CLI
    dmesg | grep Quirk , to verify the workaround is enabled for your disks.

    Good luck and share relevant info
    M-H
    Pi based multi-room audio system powered by PiCorePlayer(s):
    Pi3B with Phat-dac in a Rasptouch, 2 pi B+ with Cirrus Logic Audio Card, Pi Zero with Phat-beat , and a few other tests...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •