Linux USB
 help / color / mirror / Atom feed
From: Alan Stern <stern@rowland.harvard.edu>
To: Vladimir Nikishkin <lockywolf@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [xhci] usb 4-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
Date: Wed, 30 Mar 2022 16:01:12 -0400	[thread overview]
Message-ID: <YkS3CE7smJA2DnbO@rowland.harvard.edu> (raw)
In-Reply-To: <87y20r3bny.fsf@laptop.lockywolf.net>

On Wed, Mar 30, 2022 at 07:46:57PM +0800, Vladimir Nikishkin wrote:
> 
> Vladimir Nikishkin <lockywolf@gmail.com> writes:
> 
> > Vladimir Nikishkin <lockywolf@gmail.com> writes:
> >
> > I seem to be having a problem similar to the one Sedat Dilek had.
> > My usb 3.0 'ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E
> > SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s
> > bridge' is getting reset under load.
> > I tried adding the 't' flag, but the drives is still getting reset with
> > the following message in dmesg:
> > ```
> > [  +0.004767] scsi host6: uas_eh_device_reset_handler start
> > [  +0.066198] usb 2-2.4.2: reset SuperSpeed USB device number 91 using xhci_hcd
> > [  +0.014680] scsi host6: uas_eh_device_reset_handler success
> > [Mar29 23:01] sd 6:0:0:0: [sde] tag#18 uas_eh_abort_handler 0 uas-tag 11 inflight: CMD OUT 
> > [  +0.000007] sd 6:0:0:0: [sde] tag#18 CDB: opcode=0x8a 8a 00 00 00 00 01 97 1d e4 08 00 00 04 00 00 00
> > [  +0.000042] sd 6:0:0:0: [sde] tag#17 uas_eh_abort_handler 0 uas-tag 10 inflight: CMD OUT 
> > [  +0.000004] sd 6:0:0:0: [sde] tag#17 CDB: opcode=0x8a 8a 00 00 00 00 01 97 1d e0 08 00 00 04 00 00 00
> > [  +0.000071] sd 6:0:0:0: [sde] tag#16 uas_eh_abort_handler 0 uas-tag 9 inflight: CMD OUT 
> > [  +0.000004] sd 6:0:0:0: [sde] tag#16 CDB: opcode=0x8a 8a 00 00 00 00 01 97 1d e0 00 00 00 00 08 00 00
> > [  +0.000027] sd 6:0:0:0: [sde] tag#15 uas_eh_abort_handler 0 uas-tag 8 inflight: CMD OUT 
> > [  +0.000004] sd 6:0:0:0: [sde] tag#15 CDB: opcode=0x8a 8a 00 00 00 00 01 97 1d dc 00 00 00 04 00 00 00
> > [  +0.005166] scsi host6: uas_eh_device_reset_handler start
> > [  +0.065988] usb 2-2.4.2: reset SuperSpeed USB device number 91 using xhci_hcd
> > [  +0.014673] scsi host6: uas_eh_device_reset_handler success
> > ```
> >
> > I have also attached the usbmon log:
> >
> > I have seen reports that firmware needs to be updated in those chips in
> > order to support large drives
> > (https://www.computerbase.de/forum/threads/asmedia-aktuelle-externe-gehaeuse-chip-firmware-fuer-8tb.1473501/page-2)
> > Googling for ASM1153+Raspberryp Pi returns quite a lot of difficulties
> > with using those chips. (Although I am not using it with Raspberry Pi)
> > Maybe it is not on only the ATA command that is leading to a reset?
> > In my case the device is getting reset after ~30 Gb transferred via
> > rsync.
> > Any debugging suggestions welcome. (I will try to rebuild the kernel
> > with the sysctl debug patch.)
> 
> So I have rebuilt the kernel with the "SCSI ioctl error" reports, and I
> do not see any reports when the disk gets reset.
> 
> Just in case it might be more useful, here is the usbmon dump:
> 
> http://public.lockywolf.net/pub/usbmon-dump.bus2-without-smart-udisks-with-tquirk.txt.gz

The usbmon trace merely shows that at one point the bridge stopped 
responding.  After 30 seconds with no data transferred, the kernel reset 
the bridge and then it started working again.

There was nothing special going on when the bridge stopped responding; 
it was in the midst of carrying out a bunch of write commands, just like 
thousands of others that were successful.

I suppose in theory it's possible that the bridge was working normally 
and the fault was in the computer (it didn't receive the data that the 
bridge was sending).  But that seems highly unlikely.  Most likely the 
ASM1153 USB-SATA bridge has an intermittent failure mode that triggers 
under load.  For instance, there could be a momentary voltage drop 
messing it up.

Alan Stern

  reply	other threads:[~2022-03-30 20:01 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87sfr0okqm.fsf@laptop.lockywolf.net>
2022-03-30  3:02 ` [xhci] usb 4-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd Vladimir Nikishkin
2022-03-30 11:46   ` Vladimir Nikishkin
2022-03-30 20:01     ` Alan Stern [this message]
     [not found] <CA+icZUWJyPTefHkGEgQtDO9TOM4CN_b2qPJGQVF7NE=Q=fGAEQ@mail.gmail.com>
2021-02-24 17:25 ` Sedat Dilek
2021-03-01  8:54   ` Sedat Dilek
2021-03-01 15:53     ` Alan Stern
2021-03-05 12:09       ` Sedat Dilek
2021-03-05 16:07         ` Alan Stern
2021-03-05 19:05           ` Sedat Dilek
2021-03-05 19:22             ` Sedat Dilek
2021-03-05 19:30               ` Alan Stern
2021-03-05 19:41                 ` Sedat Dilek
2021-03-05 19:47                   ` Alan Stern
2021-03-05 19:54                     ` Sedat Dilek
2021-03-06  6:42                       ` Sedat Dilek
2021-03-06 16:58                         ` Alan Stern
2021-03-06 19:30                           ` Sedat Dilek
     [not found]                           ` <CA+icZUWXBtOo+7TBGHFA=aKBs5o9hy3Po6NM0EPssu6y4SOZsQ@mail.gmail.com>
2021-03-06 20:38                             ` Sedat Dilek
2021-03-06 20:49                               ` Sedat Dilek
2021-03-06 20:56                                 ` Sedat Dilek
2021-03-06 21:02                                   ` Sedat Dilek
2021-03-07 15:46                                 ` Alan Stern
2021-03-07 16:57                                   ` Sedat Dilek
2021-03-07 17:07                                     ` Alan Stern
     [not found]                                       ` <CA+icZUWaGt2k4kdV0JHqKUkB8DySqdeUgVNnVT1BUo8aveGZOw@mail.gmail.com>
2021-03-12 17:01                                         ` Sedat Dilek
2021-03-12 17:41                                           ` Sedat Dilek
2021-03-12 18:05                                             ` Alan Stern
2021-03-12 18:26                                               ` Sedat Dilek
2021-03-12 21:56                                                 ` Alan Stern
2021-03-05 19:25             ` Alan Stern
2021-03-05 19:37               ` Sedat Dilek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YkS3CE7smJA2DnbO@rowland.harvard.edu \
    --to=stern@rowland.harvard.edu \
    --cc=linux-usb@vger.kernel.org \
    --cc=lockywolf@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox