linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Cyril Roelandt <tipecaml@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: USB list <linux-usb@vger.kernel.org>,
	sellis@redhat.com, pachoramos@gmail.com,
	labbott@fedoraproject.org, gregkh@linuxfoundation.org,
	javhera@gmx.com
Subject: Re: [BUG] Regression in Linux 5.4.17 for JMicron JMS566 enclosure
Date: Sat, 18 Apr 2020 00:09:57 +0200	[thread overview]
Message-ID: <20200417220957.GA4707@Susan> (raw)
In-Reply-To: <Pine.LNX.4.44L0.2004171539350.25043-100000@netrider.rowland.org>

On 2020-04-17 16:06, Alan Stern wrote:
> On Fri, 17 Apr 2020, Cyril Roelandt wrote:
> 
> > On 2020-04-15 21:21, Alan Stern wrote:
> 
> > > > I do not really mind not being able to use uas, however I would like to
> > > > be able to mount my partitions using usb-storage.
> > > 
> > > It's entirely possible that the blacklisting is not necessary any more.  
> > > After all, it was added four and a half years ago; the kernel has
> > > improved since then.  I guess you're not in a position to test this,
> > > but maybe Steve Ellis or Takeo Nakayama is...?
> > > 
> > > Does 5.3 work if you add a similar blacklist entry?
> > 
> > I cloned Linus' tree, and cherry-picked
> > bc3bdb12bbb3492067c8719011576370e959a2e6 on top of v5.3, rebuilt the
> > kernel and rebooted: I had the exact same issue.
> > 
> > > 
> > > Can you collect usbmon traces showing what happens with both uas and
> > > usb-storage?  Perhaps different sequences of commands get sent to the
> > > drive with the two drivers.
> > 
> > Here it is:
> 
> Two things.  First, you started the usbmon traces _after_ plugging in
> the drive.  As a result the traces do not contain a complete record of
> all the transfers between the computer and the drive; it's possible
> that something in the missing portions is responsible for your problem.
> For example, why does your uas log include a line ("[sdb] 4096-byte 
> physical blocks") that is missing in the usb-storage log?

Oh, sorry, I'm new to this. The logs became really long, so I've taken
the liberty of pasting them to paste.debian.net. I captured what
happened when plugging the WD drive and running "mount".

- With a 5.3 kernel, using uas: http://paste.debian.net/1141035/
- With a 5.4 kernel, using usb-storage: http://paste.debian.net/1141036/
- With a 5.4 kernel, using usb-storage, using a similar enclosure that
  works as expected (the Icy Box IB-268U3-B, which has the same product
  ID and vendor ID but a different bcdDevice: 2.03 instead of
  1.14): http://paste.debian.net/1141037/


> [...]
> Of course, this makes no sense because the drive had no problem
> understanding the exact same command when it was sent by uas.
> 
> At this point, all I can say is that something about the combination of
> the enclosure and the drive works with the UAS transport but not with
> the USB Mass-Storage transport.  As far as we can see from the usbmon 
> traces, the kernel isn't doing anything wrong.

I wrote in my original message that the enclosure worked fine with a
Fujitsu drive, but upon further testing this proved inexact: it worked
with an NTFS partition on said drive. Once I formatted it to ext4, it
started failing as well. To recap, when using usb-storage this is what
happens:

IB273 + WD Blue 1TB   (ext4)   -> Broken
IB273 + Fujitsu 250GB (ext4)   -> Broken
IB273 + Fujitsu 250GB (NTFS)   -> OK
IB268 + WD1TB         (ext4)   -> OK

Where:
- IB273 has idVendor=357d, idProduct=7788 and bcdDevice= 1.14
- IB268 has idVendor=357d, idProduct=7788 and bcdDevice= 2.03


Thanks for your help,
Cyril Roelandt.

  reply	other threads:[~2020-04-17 22:10 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-15 20:56 [BUG] Regression in Linux 5.4.17 for JMicron JMS566 enclosure Cyril Roelandt
2020-04-16  1:21 ` Alan Stern
     [not found]   ` <CABLbxQ2Hoq8zt--w2FwuMa6FRCC72E5a-tvGRQOm=C0YF7bfqA@mail.gmail.com>
2020-04-16 14:43     ` Pacho Ramos
2020-04-17 18:32   ` Cyril Roelandt
2020-04-17 20:06     ` Alan Stern
2020-04-17 22:09       ` Cyril Roelandt [this message]
2020-04-19 16:03         ` Alan Stern
2020-04-21  3:01           ` Cyril Roelandt
2020-04-21 13:58             ` Alan Stern
2020-08-15  0:18             ` Cyril Roelandt
2020-08-15  2:19               ` Alan Stern
2020-08-15 23:23                 ` Cyril Roelandt
2020-08-16 16:26                   ` Alan Stern
2020-08-18  4:13                     ` Cyril Roelandt
2020-08-18 14:57                       ` Alan Stern
2020-08-23  1:30                         ` Cyril Roelandt
2020-08-23 14:47                           ` Alan Stern
2020-08-23 18:08                             ` Cyril Roelandt
2020-08-23 22:14                               ` Brice Goglin
2020-08-24  7:40                               ` Greg KH
2020-08-24 17:31                                 ` [PATCH] Ignore UAS for JMicron JMS567 ATA/ATAPI Bridge Cyril Roelandt
2020-08-24 20:18                                   ` Alan Stern
2020-08-25 21:22                                     ` [PATCH v2] " Cyril Roelandt

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=20200417220957.GA4707@Susan \
    --to=tipecaml@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=javhera@gmx.com \
    --cc=labbott@fedoraproject.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=pachoramos@gmail.com \
    --cc=sellis@redhat.com \
    --cc=stern@rowland.harvard.edu \
    /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;
as well as URLs for NNTP newsgroup(s).