public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Sarah Sharp <sarah.a.sharp@linux.intel.com>
To: Jonas Schwertfeger <jschwertfeger@gmail.com>
Cc: linux-usb@vger.kernel.org,
	USB Storage List <usb-storage@lists.one-eyed-alien.net>,
	Matthew Dharm <mdharm-usb@one-eyed-alien.net>,
	linux-scsi@vger.kernel.org
Subject: Re: System hangs when using USB 3.0 HD with on Ubuntu
Date: Fri, 26 Mar 2010 11:40:21 -0700	[thread overview]
Message-ID: <20100326184021.GA4350@xanatos> (raw)
In-Reply-To: <59ca64281003241107x40c5d83co29d1ee03d8d3a0d1@mail.gmail.com>

On Wed, Mar 24, 2010 at 07:07:58PM +0100, Jonas Schwertfeger wrote:
> On Wed, Mar 24, 2010 at 4:59 PM, Sarah Sharp
> <sarah.a.sharp@linux.intel.com> wrote:
> > Despite the fact that this device probably won't work for 2.6.31 or
> > 2.6.32, the xHCI driver shouldn't be hanging the system.  The reset
> > device API probably shouldn't be back ported to those kernels, but I can
> > allow the USB core to disable the device's port instead.
> 
> In 2.6.31 the drive would show up as /dev/sdb and be mountable. The
> system froze when I mounted it and then tried to partition it. In
> 2.6.32 however the drive does not even show up in /dev/. Thus, I
> cannot reproduce a system hang here.

Hmm, ok, I would rather figure out why 2.6.31 is hanging, since 2.6.32
does not.  Can you compile the latest 2.6.31 stable tree and use
netconsole to capture the crash with CONFIG_USB_XHCI_HCD_DEBUGGING and
CONFIG_USB_STORAGE_DEBUG turned on?  (I assume you know how to use
netconsole, but if you don't, I've posted how I setup netconsole at
http://sarah.thesharps.us/2010-03-26-09-41)

> I configured USB storage debugging and attached another log file. If
> there is not enough information in it let me know I will proceed with
> Alan's suggestion of using usbmon.

I think the amount of information is fine, but I'm not sure why the
device would respond with a stall to this particular command, so I'm
CC'ing the USB storage list and SCSI list.  Does anyone know what the
third command is?  The USB storage driver reports it as an "unknown
command".  I can see from scsi.h that 0x85 is the code for ATA_16, but
I'm not sure what that command actually does.

Mar 24 18:53:36 js-workstation kernel: [  253.403792] usb-storage: Command BLANK (12 bytes)
Mar 24 18:53:36 js-workstation kernel: [  253.403794] usb-storage:  a1 08 2e 00 01 00 00 00 00 ec 00 00
Mar 24 18:53:36 js-workstation kernel: [  253.403800] usb-storage: Bulk Command S 0x43425355 T 0x2d L 512 F 128 Trg 0 LUN 0 CL 12
Mar 24 18:53:36 js-workstation kernel: [  253.403802] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
Mar 24 18:53:36 js-workstation kernel: [  253.403969] usb-storage: Status code 0; transferred 31/31
Mar 24 18:53:36 js-workstation kernel: [  253.403972] usb-storage: -- transfer complete
Mar 24 18:53:36 js-workstation kernel: [  253.403973] usb-storage: Bulk command transfer result=0
Mar 24 18:53:36 js-workstation kernel: [  253.403975] usb-storage: usb_stor_bulk_transfer_sglist: xfer 512 bytes, 1 entries
Mar 24 18:53:36 js-workstation kernel: [  253.409708] usb-storage: Status code 0; transferred 512/512
Mar 24 18:53:36 js-workstation kernel: [  253.409709] usb-storage: -- transfer complete
Mar 24 18:53:36 js-workstation kernel: [  253.409710] usb-storage: Bulk data transfer result 0x0
Mar 24 18:53:36 js-workstation kernel: [  253.409711] usb-storage: Attempting to get CSW...
Mar 24 18:53:36 js-workstation kernel: [  253.409712] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
Mar 24 18:53:36 js-workstation kernel: [  253.409854] usb-storage: Status code 0; transferred 13/13
Mar 24 18:53:36 js-workstation kernel: [  253.409855] usb-storage: -- transfer complete
Mar 24 18:53:36 js-workstation kernel: [  253.409856] usb-storage: Bulk status result = 0
Mar 24 18:53:36 js-workstation kernel: [  253.409858] usb-storage: Bulk Status S 0x53425355 T 0x2d R 0 Stat 0x0
Mar 24 18:53:36 js-workstation kernel: [  253.409859] usb-storage: scsi cmd done, result=0x0
Mar 24 18:53:36 js-workstation kernel: [  253.409861] usb-storage: *** thread sleeping.
Mar 24 18:53:36 js-workstation kernel: [  253.413870] usb-storage: queuecommand called
Mar 24 18:53:36 js-workstation kernel: [  253.413874] usb-storage: *** thread awakened.

Mar 24 18:53:36 js-workstation kernel: [  253.413876] usb-storage: Command (unknown command) (16 bytes)
Mar 24 18:53:36 js-workstation kernel: [  253.413877] usb-storage:  85 06 20 00 05 00 fe 00 00 00 00 00 00 40 ef 00
Mar 24 18:53:36 js-workstation kernel: [  253.413882] usb-storage: Bulk Command S 0x43425355 T 0x2e L 0 F 0 Trg 0 LUN 0 CL 16
Mar 24 18:53:36 js-workstation kernel: [  253.414229] usb-storage: Bulk Command S 0x43425355 T 0x2f L 512 F 128 Trg 0 LUN 0 CL 16
Mar 24 18:53:36 js-workstation kernel: [  253.413883] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
Mar 24 18:53:36 js-workstation kernel: [  253.414031] usb-storage: Status code 0; transferred 31/31
Mar 24 18:53:36 js-workstation kernel: [  253.414032] usb-storage: -- transfer complete
Mar 24 18:53:36 js-workstation kernel: [  253.414033] usb-storage: Bulk command transfer result=0
Mar 24 18:53:36 js-workstation kernel: [  253.414034] usb-storage: Attempting to get CSW...
Mar 24 18:53:36 js-workstation kernel: [  253.414035] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
Mar 24 18:53:36 js-workstation kernel: [  253.414179] usb-storage: Status code 0; transferred 13/13
Mar 24 18:53:36 js-workstation kernel: [  253.414180] usb-storage: -- transfer complete
Mar 24 18:53:36 js-workstation kernel: [  253.414181] usb-storage: Bulk status result = 0
Mar 24 18:53:36 js-workstation kernel: [  253.414182] usb-storage: Bulk Status S 0x53425355 T 0x2e R 0 Stat 0x0
Mar 24 18:53:36 js-workstation kernel: [  253.414183] usb-storage: scsi cmd done, result=0x0
Mar 24 18:53:36 js-workstation kernel: [  253.414186] usb-storage: *** thread sleeping.
Mar 24 18:53:36 js-workstation kernel: [  253.414217] usb-storage: queuecommand called
Mar 24 18:53:36 js-workstation kernel: [  253.414222] usb-storage: *** thread awakened.

Mar 24 18:53:36 js-workstation kernel: [  253.414223] usb-storage: Command (unknown command) (16 bytes)
Mar 24 18:53:36 js-workstation kernel: [  253.414224] usb-storage:  85 08 2e 00 00 00 00 00 00 00 00 00 00 40 ec 00
Mar 24 18:53:36 js-workstation kernel: [  253.414229] usb-storage: Bulk Command S 0x43425355 T 0x2f L 512 F 128 Trg 0 LUN 0 CL 16
Mar 24 18:53:36 js-workstation kernel: [  253.414230] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
Mar 24 18:53:36 js-workstation kernel: [  253.414378] usb-storage: Status code 0; transferred 31/31
Mar 24 18:53:36 js-workstation kernel: [  253.414379] usb-storage: -- transfer complete
Mar 24 18:53:36 js-workstation kernel: [  253.414380] usb-storage: Bulk command transfer result=0
Mar 24 18:53:36 js-workstation kernel: [  253.414381] usb-storage: usb_stor_bulk_transfer_sglist: xfer 512 bytes, 1 entries
Mar 24 18:53:36 js-workstation kernel: [  253.414458] xhci_hcd 0000:03:00.0: WARN: Stalled endpoint
Mar 24 18:53:36 js-workstation kernel: [  253.414529] usb-storage: Status code -32; transferred 0/512
Mar 24 18:53:36 js-workstation kernel: [  253.414530] usb-storage: clearing endpoint halt for pipe 0xc0008280
Mar 24 18:53:36 js-workstation kernel: [  253.414532] usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=81 len=0
Mar 24 18:53:36 js-workstation kernel: [  253.414894] usb-storage: usb_stor_clear_halt: result = 0
Mar 24 18:53:36 js-workstation kernel: [  253.414895] usb-storage: Bulk data transfer result 0x2
Mar 24 18:53:36 js-workstation kernel: [  253.414896] usb-storage: Attempting to get CSW...
Mar 24 18:53:36 js-workstation kernel: [  253.414897] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
Mar 24 18:53:36 js-workstation kernel: [  253.414902] xhci_hcd 0000:03:00.0: WARN halted endpoint, queueing URB anyway.
Mar 24 18:53:36 js-workstation kernel: [  253.415168] usb-storage: Status code 0; transferred 13/13
Mar 24 18:53:36 js-workstation kernel: [  253.415169] usb-storage: -- transfer complete
Mar 24 18:53:36 js-workstation kernel: [  253.415170] usb-storage: Bulk status result = 0
Mar 24 18:53:36 js-workstation kernel: [  253.415171] usb-storage: Bulk Status S 0x53425355 T 0x2f R 512 Stat 0x2
Mar 24 18:53:36 js-workstation kernel: [  253.415172] usb-storage: -- transport indicates error, resetting
Mar 24 18:53:36 js-workstation kernel: [  253.415174] usb-storage: usb_stor_pre_reset
Mar 24 18:53:36 js-workstation kernel: [  253.415204] usb-storage: usb_stor_post_reset

I'm trying to figure out if this device would benefit from any USB
storage quirks being set.

Sarah Sharp
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

       reply	other threads:[~2010-03-26 18:40 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4BA9D74F.9040507@gmail.com>
     [not found] ` <4BA7797F.8060605@gmail.com>
     [not found]   ` <20100324155917.GA4382@xanatos>
     [not found]     ` <59ca64281003241107x40c5d83co29d1ee03d8d3a0d1@mail.gmail.com>
2010-03-26 18:40       ` Sarah Sharp [this message]
2010-03-26 19:10         ` System hangs when using USB 3.0 HD with on Ubuntu Douglas Gilbert
2010-03-26 19:27         ` [usb-storage] " Matthew Dharm
2010-03-26 20:23           ` Sarah Sharp
2010-03-26 20:55             ` Jonas Schwertfeger
2010-03-26 21:10         ` Alan Stern
     [not found]           ` <Pine.LNX.4.44L0.1003261705340.23253-100000-pYrvlCTfrz9XsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-03-26 21:30             ` Douglas Gilbert
2010-03-30  7:44               ` Jonas Schwertfeger
2010-03-31 11:39                 ` Jonas Schwertfeger
2010-03-31 14:56                   ` Alan Stern
2010-03-31 15:20                     ` David Zeuthen
2010-03-31 16:12                       ` Douglas Gilbert
2010-03-31 16:36                         ` Alan Stern
2010-04-01 13:32                           ` Jonas Schwertfeger
2010-04-01 13:42                             ` Kay Sievers
2010-04-01 13:55                               ` Jonas Schwertfeger
     [not found]                                 ` <r2k59ca64281004010655z93fedfa8rdeb447d82a848d9f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-01 14:05                                   ` Kay Sievers
2010-04-02 12:40                                     ` Jonas Schwertfeger
     [not found]                                       ` <m2l59ca64281004020540z7e502130g22dfc035f1ceda6a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-02 13:09                                         ` Jonas Schwertfeger
     [not found]                                           ` <t2t59ca64281004020609sa0f67f0dj5c127e3f0b2e4db2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-02 14:12                                             ` Alan Stern
     [not found]                                               ` <Pine.LNX.4.44L0.1004021010130.1615-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-04-02 14:41                                                 ` James Bottomley
     [not found]                                                   ` <1270219267.2899.73.camel-0iu6Cu4xQGLYCGPCin2YbQ@public.gmane.org>
2010-04-02 14:57                                                     ` Alan Stern
     [not found]                                                       ` <Pine.LNX.4.44L0.1004021052040.1615-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-04-02 15:19                                                         ` Alan Stern
     [not found]                                                           ` <Pine.LNX.4.44L0.1004021114160.1615-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-04-02 15:50                                                             ` Sergei Shtylyov
2010-04-02 15:59                                                               ` James Bottomley
2010-04-07 18:08                                                                 ` Mark Lord
2010-04-07 18:29                                                                   ` James Bottomley
2010-04-07 19:18                                                                   ` Alan Stern
     [not found]                                                                     ` <Pine.LNX.4.44L0.1004071516260.5760-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-04-07 22:49                                                                       ` Mark Lord
2010-04-08  5:06                                                                         ` Jonas Schwertfeger
2010-04-02 16:21                                                               ` Douglas Gilbert
2010-04-02 16:39                                                                 ` Douglas Gilbert
     [not found]                                                                   ` <4BB61DAF.7090709-qazKcTl6WRFWk0Htik3J/w@public.gmane.org>
2010-04-02 21:24                                                                     ` Mark Lord
2010-04-03  6:21                                                                       ` Jonas Schwertfeger
2010-04-03 13:12                                                                         ` Mark Lord
2010-04-03 15:40                                                                           ` Jonas Schwertfeger
2010-04-03 16:42                                                                             ` Alan Stern
2010-04-03 17:06                                                                               ` Jonas Schwertfeger
2010-04-03 20:58                                                                                 ` Alan Stern
2010-04-04  1:29                                                                                   ` Mark Lord
     [not found]                                                                                   ` <Pine.LNX.4.44L0.1004031648230.21507-100000-pYrvlCTfrz9XsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-04-06  6:43                                                                                     ` Jonas Schwertfeger
     [not found]                                                                                       ` <4BBAD7FF.5000605-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-04-06 14:49                                                                                         ` Alan Stern
2010-04-06 14:56                                                                                           ` Jonas Schwertfeger
     [not found]                                                                                           ` <Pine.LNX.4.44L0.1004061048590.1722-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-04-07  6:27                                                                                             ` Jonas Schwertfeger
     [not found]                                                                                               ` <4BBC25C9.5030201-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-04-07 14:36                                                                                                 ` Alan Stern
2010-04-07 14:42                                                                                                   ` Jonas Schwertfeger
2010-04-07 14:51                                                                                                     ` Jerone Young
2010-04-07 15:03                                                                                                     ` Alan Stern
2010-04-07 15:10                                                                                                       ` Jonas Schwertfeger
2010-04-09 15:38                                                                                                         ` Alan Stern
2010-04-09 16:39                                                                                                           ` Douglas Gilbert
     [not found]                                                                                                             ` <4BBF582F.4040707-qazKcTl6WRFWk0Htik3J/w@public.gmane.org>
2010-04-09 17:14                                                                                                               ` Sarah Sharp
2010-04-09 18:00                                                                                                                 ` Jonas Schwertfeger
2010-04-09 19:25                                                                                                                   ` Alan Stern
2010-04-09 21:54                                                                                                                     ` Sarah Sharp
2010-04-12  7:48                                                                                                                       ` Jonas Schwertfeger
2010-04-16 18:20                                                                                                                         ` Sarah Sharp
2010-04-16 19:25                                                                                                                           ` Alan Stern
2010-04-19 21:15                                                                                                                             ` Sarah Sharp
2010-04-20  0:25                                                                                                                               ` Mark Lord
2010-04-20  4:31                                                                                                                                 ` Mark Lord
2010-04-20 15:39                                                                                                                               ` Alan Stern
     [not found]                                                                                                                                 ` <Pine.LNX.4.44L0.1004201045180.1837-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-04-20 17:37                                                                                                                                   ` Sarah Sharp
2010-04-20 19:48                                                                                                                                     ` Alan Stern
2010-04-21 14:04                                                                                                                                       ` Mark Lord
     [not found]                                                                                                                                         ` <4BCF0605.7080508-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
2010-04-21 18:17                                                                                                                                           ` Mark Lord
2010-04-21 18:27                                                                                                                                             ` Jonas Schwertfeger
2010-04-21 19:07                                                                                                                                               ` Alan Stern
     [not found]                                                                                                                                                 ` <Pine.LNX.4.44L0.1004211506040.1422-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-04-21 19:24                                                                                                                                                   ` Mark Lord
2010-04-26 16:27                                                                                                                                               ` Sarah Sharp
2010-04-29  8:44                                                                                                                                                 ` Jonas Schwertfeger
2010-04-29 12:56                                                                                                                                                   ` Mark Lord
2010-04-29 15:45                                                                                                                                                   ` Alan Stern
2010-05-07 10:42                                                                                                                                                     ` Jonas Schwertfeger
     [not found]                                                                                                                                                       ` <4BE3EE87.6020505-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-05-07 15:03                                                                                                                                                         ` Alan Stern
2010-05-11  6:54                                                                                                                                                           ` Jonas Schwertfeger
2010-05-11 14:44                                                                                                                                                             ` Alan Stern
2010-05-12 12:56                                                                                                                                                               ` Mark Lord
2010-05-12 14:23                                                                                                                                                                 ` Douglas Gilbert
2010-05-12 14:37                                                                                                                                                                   ` Mark Lord
2010-05-12 14:45                                                                                                                                                                     ` Mark Lord
2010-05-12 15:09                                                                                                                                                                 ` Alan Stern
2010-05-12 15:39                                                                                                                                                                   ` James Bottomley
2010-05-12 18:48                                                                                                                                                                     ` Alan Stern
     [not found]                                                                                                                                                                       ` <Pine.LNX.4.44L0.1005121444450.1353-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-05-13  3:12                                                                                                                                                                         ` Mark Lord
2010-05-13 18:42                                                                                                                                                                           ` Alan Stern
2010-04-21 12:31                                                                                                                                     ` Luben Tuikov
2010-04-21 14:31                                                                                                                                       ` Alan Stern
2010-04-21 12:47                                                                                                                                     ` Luben Tuikov
2010-04-21 13:52                                                                                                                                       ` Mark Lord
2010-04-21 14:04                                                                                                                                         ` James Bottomley
2010-04-21 14:08                                                                                                                                           ` Mark Lord
2010-04-21 14:15                                                                                                                                             ` James Bottomley
2010-04-21 14:13                                                                                                                                           ` Mark Lord
2010-04-21 14:22                                                                                                                                             ` James Bottomley
     [not found]                                                                                                                                               ` <1271859728.2893.72.camel-0iu6Cu4xQGLYCGPCin2YbQ@public.gmane.org>
2010-04-21 14:53                                                                                                                                                 ` Alan Stern
     [not found]                                                                                                                                                   ` <Pine.LNX.4.44L0.1004211032460.1728-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-04-21 23:29                                                                                                                                                     ` Stefan Richter
2010-04-20 17:48                                                                                                                                 ` Douglas Gilbert
2010-04-16 21:31                                                                                                                           ` James Bottomley
2010-04-16 23:56                                                                                                                             ` Douglas Gilbert
2010-04-19 15:04                                                                                                                           ` Jonas Schwertfeger
2010-04-19 16:02                                                                                                                             ` Alan Stern
2010-04-19 20:45                                                                                                                             ` Sarah Sharp
2010-04-02 17:36                                               ` Sarah Sharp
2010-03-31 16:37                         ` David Zeuthen
     [not found]                           ` <1270053444.16657.17.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-03-31 16:58                             ` Lennart Poettering
2010-03-31 17:03                               ` Lennart Poettering
     [not found]                               ` <20100331165807.GA20547-kS5D54t9nk0aINubkmmoJbNAH6kLmebB@public.gmane.org>
2010-03-31 17:17                                 ` David Zeuthen
2010-03-31 17:06                             ` David Zeuthen
     [not found]                   ` <1270049200.2302.320.camel@laptop>
2010-03-31 15:37                     ` Jonas Schwertfeger
2010-03-29 21:28         ` Sarah Sharp
2010-03-30  7:24           ` Jonas Schwertfeger
2010-04-21 14:58 Luben Tuikov
  -- strict thread matches above, loose matches on Subject: below --
2010-04-21 15:09 Luben Tuikov
2010-04-21 16:09 ` Alan Stern
2010-04-21 16:18   ` Martin K. Petersen
2010-04-21 17:41     ` Sarah Sharp
2010-04-21 18:08       ` Alan Stern
2010-04-22  0:08 Luben Tuikov
2010-04-22 14:52 ` Alan Stern

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=20100326184021.GA4350@xanatos \
    --to=sarah.a.sharp@linux.intel.com \
    --cc=jschwertfeger@gmail.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mdharm-usb@one-eyed-alien.net \
    --cc=usb-storage@lists.one-eyed-alien.net \
    /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