All of lore.kernel.org
 help / color / mirror / Atom feed
* Strange issues with USB device
@ 2024-08-23 19:18 Marc SCHAEFER
  2024-08-24  6:44 ` Michał Pecio
  0 siblings, 1 reply; 25+ messages in thread
From: Marc SCHAEFER @ 2024-08-23 19:18 UTC (permalink / raw)
  To: linux-usb

Hello,
   
Doing a lot of reads on USB devices, I get sometimes these errors (~ every 20 to 30 minutes):
(each time on a different drive)
   
   Aug 23 19:13:02 video kernel: [ 9007.574197] xhci_hcd 0000:01:00.0: WARN Set TR Deq Ptr cmd invalid because of stream ID configuration
   Aug 23 19:13:02 video udisksd[967]: Error performing housekeeping for drive /org/freedesktop/UDisks2/drives/WDC_WD40EURX_63BMCY0_WD_WCC7K2RV8LZ4: Error updating SMART data: sk_disk_smart_read_data: Operation not supported (udisks-error-quark, 0)
   Aug 23 19:13:02 video kernel: [ 9007.601188] sd 16:0:0:0: [sdc] tag#0 data cmplt err -75 uas-tag 5 inflight: CMD
   Aug 23 19:13:02 video kernel: [ 9007.601190] DMAR: DRHD: handling fault status reg 3
   Aug 23 19:13:02 video kernel: [ 9007.601194] DMAR: [DMA Write] Request device [01:00.0] PASID ffffffff fault addr f2e69000 [fault reason 05] PTE Write access is not set
   Aug 23 19:13:02 video kernel: [ 9007.601199] sd 16:0:0:0: [sdc] tag#0 CDB: Read(16) 88 00 00 00 00 00 ac d4 30 80 00 00 04 00 00 00
   Aug 23 19:13:02 video kernel: [ 9007.693901] xhci_hcd 0000:01:00.0: WARN Event TRB for slot 10 ep 10 with no TDs queued?
   
   [ many ]
   
   Aug 23 19:13:21 video kernel: [ 9026.706893] xhci_hcd 0000:01:00.0: WARN Set TR deq ptr command for freed stream ID 37025
   Aug 23 19:13:21 video kernel: [ 9026.711876] sd 16:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=19s
   Aug 23 19:13:21 video kernel: [ 9026.711880] sd 16:0:0:0: [sdc] tag#0 Sense Key : Illegal Request [current]
   Aug 23 19:13:21 video kernel: [ 9026.711883] sd 16:0:0:0: [sdc] tag#0 Add. Sense: Invalid command operation code
   Aug 23 19:13:21 video kernel: [ 9026.711887] sd 16:0:0:0: [sdc] tag#0 CDB: Read(16) 88 00 00 00 00 00 ac d4 30 80 00 00 04 00 00 00
   Aug 23 19:13:21 video kernel: [ 9026.711891] blk_update_request: critical target error, dev sdc, sector 2899587200 op 0x0:(READ) flags 0x4000 phys_seg 128 prio class 0
   Aug 23 19:13:21 video kernel: [ 9026.737762] xhci_hcd 0000:01:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 10 comp_code 4
   Aug 23 19:13:21 video kernel: [ 9026.737770] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000ffdce4e0 trb-start 00000000ffdcece0 trb-end 0000000000000000 seg-start 00000000ffdce000 seg-end 00000000ffdceff0
   Aug 23 19:13:21 video kernel: [ 9026.737773] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000ffdce4e0 trb-start 00000000ffdcd000 trb-end 00000000ffdcd4e0 seg-start 00000000ffdcd000 seg-end 00000000ffdcdff0
   Aug 23 19:13:32 video kernel: [ 9037.762813] sd 16:0:0:0: [sdc] tag#5 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD IN
   Aug 23 19:13:32 video kernel: [ 9037.762819] sd 16:0:0:0: [sdc] tag#5 CDB: Read(16) 88 00 00 00 00 00 ac d4 3c 80 00 00 04 00 00 00
   Aug 23 19:13:32 video kernel: [ 9037.763066] sd 16:0:0:0: [sdc] tag#4 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD IN
   Aug 23 19:13:32 video kernel: [ 9037.763072] sd 16:0:0:0: [sdc] tag#4 CDB: Read(16) 88 00 00 00 00 00 ac d4 38 80 00 00 04 00 00 00
   Aug 23 19:13:32 video kernel: [ 9037.763094] xhci_hcd 0000:01:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
   Aug 23 19:13:32 video kernel: [ 9037.763269] sd 16:0:0:0: [sdc] tag#2 uas_eh_abort_handler 0 uas-tag 6 inflight: IN
   Aug 23 19:13:32 video kernel: [ 9037.763272] sd 16:0:0:0: [sdc] tag#2 CDB: Read(16) 88 00 00 00 00 00 ac d4 20 80 00 00 04 00 00 00
   Aug 23 19:13:32 video kernel: [ 9037.763318] xhci_hcd 0000:01:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
   Aug 23 19:13:32 video kernel: [ 9037.763484] xhci_hcd 0000:01:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
   Aug 23 19:13:40 video kernel: [ 9045.792699] usb 4-1.1.2: stat urb: no pending cmd for uas-tag 2
   Aug 23 19:13:40 video smartd[963]: Device: /dev/sdc [SAT], Read SMART Self Test Log Failed
   Aug 23 19:13:40 video smartd[963]: Sending warning via /usr/share/smartmontools/smartd-runner to root ...
   Aug 23 19:13:40 video kernel: [ 9045.792965] xhci_hcd 0000:01:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
   Aug 23 19:13:40 video smartd[963]: Warning via /usr/share/smartmontools/smartd-runner to root: successful
   Aug 23 19:13:52 video kernel: [ 9057.475000] sd 16:0:0:0: [sdc] tag#0 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD IN
   Aug 23 19:13:52 video kernel: [ 9057.475006] sd 16:0:0:0: [sdc] tag#0 CDB: Read(16) 88 00 00 00 00 00 ac d4 40 80 00 00 04 00 00 00
   Aug 23 19:13:52 video kernel: [ 9057.475248] xhci_hcd 0000:01:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
   Aug 23 19:13:52 video kernel: [ 9057.498985] scsi host16: uas_eh_device_reset_handler start
   Aug 23 19:13:52 video kernel: [ 9057.591061] usb 4-1.1.2: reset SuperSpeedPlus Gen 2 USB device number 7 using xhci_hcd
   Aug 23 19:13:52 video kernel: [ 9057.638613] scsi host16: uas_eh_device_reset_handler success

It looks like there is a SMART query which maybe leads to a timeout, but does
it look more like a USB host or target issue?

I found some references to udisksd flooding logs when a disk is idle, but I am
sure it is not idle, there were a lot of reads on that device running according
to saidar.

Should I disable SMART udisksd polling on those drives?  It does not really
look it's easy to disable this with udisksd.

Hardware:
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 10000M       
        |__ Port 1: Dev 4, If 0, Class=Hub, Driver=hub/4p, 10000M  
            |__ Port 2: Dev 7, If 0, Class=Mass Storage, Driver=uas, 10000M  
            |__ Port 3: Dev 8, If 0, Class=Mass Storage, Driver=uas, 10000M 
            |__ Port 1: Dev 6, If 0, Class=Mass Storage, Driver=uas, 10000M
            |__ Port 4: Dev 9, If 0, Class=Mass Storage, Driver=uas, 10000M

An USB enclosure:
   Bus 004 Device 009: ID 2109:0715 VIA Labs, Inc. VL817 SATA Adaptor
   Bus 004 Device 008: ID 2109:0715 VIA Labs, Inc. VL817 SATA Adaptor
   Bus 004 Device 007: ID 2109:0715 VIA Labs, Inc. VL817 SATA Adaptor
   Bus 004 Device 006: ID 2109:0715 VIA Labs, Inc. VL817 SATA Adaptor

   Bus 004 Device 004: ID 2109:8822 VIA Labs, Inc. USB3.1 Hub
   Bus 004 Device 002: ID 2109:0822 VIA Labs, Inc. USB3.1 Hub

the host, I think it's this one:
   01:00.0 USB controller: ASMedia Technology Inc. ASM2142 USB 3.1 Host Controller [1b21:2142]

Smart info on those 4 drives:
   root@video:~# for i in b c d e; do smartctl -a /dev/sd$i|grep Device; done
   Device Model:     WDC WD40EURX-63BMCY0
   LU WWN Device Id: 5 0014ee 2bca07681
   Device is:        Not in smartctl database [for details use: -P showall]
   Device Model:     WDC WD40EURX-63BMCY0
   LU WWN Device Id: 5 0014ee 26720014d
   Device is:        Not in smartctl database [for details use: -P showall]
   Device Model:     WDC WD40EURX-63BMCY0
   LU WWN Device Id: 5 0014ee 267201249
   Device is:        Not in smartctl database [for details use: -P showall]
   Device Model:     WDC WD40EURX-63BMCY0
   LU WWN Device Id: 5 0014ee 2674ab7b3
   Device is:        Not in smartctl database [for details use: -P showall]

Do you have any suggestion?

Thank you.

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2024-09-12 15:20 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-23 19:18 Strange issues with USB device Marc SCHAEFER
2024-08-24  6:44 ` Michał Pecio
2024-08-24  6:51   ` Marc SCHAEFER
2024-08-24  8:44     ` Michał Pecio
2024-08-26  5:17       ` Marc SCHAEFER
2024-09-03  7:48         ` Strange issues with UAS URB cancellation Michał Pecio
2024-09-03 12:55           ` Marc SCHAEFER
2024-09-03 13:22             ` Michał Pecio
2024-09-03 13:50               ` Marc SCHAEFER
2024-09-03 13:52                 ` Marc SCHAEFER
2024-09-03 13:55                   ` Marc SCHAEFER
2024-09-03 15:45                     ` Michał Pecio
2024-09-03 19:40                       ` Marc SCHAEFER
2024-09-04 14:26                         ` Mathias Nyman
2024-09-04 16:36                           ` Marc SCHAEFER
2024-09-05 13:52                             ` Mathias Nyman
2024-09-05 15:01                               ` Marc SCHAEFER
2024-09-05 15:06                                 ` Marc SCHAEFER
2024-09-05 17:24                                   ` Marc SCHAEFER
2024-09-05 18:20                                     ` Marc SCHAEFER
2024-09-09 15:24                                     ` Mathias Nyman
2024-09-09 16:21                                       ` Marc SCHAEFER
2024-09-11 14:25                                         ` Mathias Nyman
2024-09-12 15:22                                           ` Mathias Nyman
2024-08-25 16:32   ` Strange issues with USB device Marc SCHAEFER

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.