Re: Kernel 3.16.0 USB crash
From: Sarah Sharp
Date: Thu Aug 14 2014 - 18:07:44 EST
Adding Mathias Nyman. He is now the USB 3.0 maintainer.
Sarah Sharp
On Thu, Aug 14, 2014 at 11:46:33AM +0200, Hans de Goede wrote:
> Hi,
>
> On 08/14/2014 10:39 AM, Claudio Bizzarri wrote:
> > Ciao,
> >
> > thank you very much for replay, you are right: it's UAS module. Now I'm
> > using Ubuntu 14.04 with kernel 3.16.1 from
> > http://kernel.ubuntu.com/~kernel-ppa/mainline/, there is no /proc/config.gz,
> > but but there is a config file in /boot:
> >
> > b0@hp850ssd:~â grep USB_UAS /boot/config-3.16.1-031601-generic
> > CONFIG_USB_UAS=m
> >
> > When I attach my external USB disk I've 30 seconds before my laptop freeze,
> > here is my dmesg output, disk is not mounted:
>
> Hmm, this sounds like a similar problem we've been having with JMicron UAS
> bridges over USB-2.
>
> Can you collect "lsusb -v" output for the drive in question when connected
> through an usb-3 port (the uas module does not need to be loaded).
>
> Also can you try the following patch, and see if that makes uas work ? :
>
> diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c
> index 511b229..6cdc1b9 100644
> --- a/drivers/usb/storage/uas.c
> +++ b/drivers/usb/storage/uas.c
> @@ -1033,6 +1033,7 @@ static int uas_configure_endpoints(struct uas_dev_info *devinfo)
> 3, 256, GFP_NOIO);
> if (devinfo->qdepth < 0)
> return devinfo->qdepth;
> + devinfo->qdepth = 32;
> devinfo->use_streams = 1;
> }
>
>
> This is in essence the fix we've done for using these devices with uas over usb-2,
> I would have expected this to not be be necessary at superspeed since there the number
> of streams the device supports is part of the usb descriptors, but maybe the device
> claims to support more streams then it can actually handle.
>
> Note I'm on vacation next week, so don't expect another reply from me in this thread
> for at least a week.
>
> Regards,
>
> Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/