Re: [PATCH] usb: storage: add quirks for VIA VL817 USB3-SATA bridge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 01, 2021 at 10:36:59PM +0200, Tobias Jakobi wrote:
> On 9/27/21 5:04 PM, Alan Stern wrote:
> 
> > Good, thank you.  Unfortunately the log doesn't include any smoking
> > guns pointing to an underlying cause.
> 
> I'm open to suggestions regarding identifying the cause. As you might
> guess, I'm also not happy that I had to disable UAS for the enclosure -- in
> particular since I selected this particular product because it was
> advertised with having support.

One thing you might try is to capture a usbmon trace showing what 
happens, starting from when the USB cable is attached up to the point 
when the failure occurs.  However, I'm doubtful that the trace will 
show anything useful, since the kernel log indicated that the first 
failed command was an ordinary write.

> > I still have to wonder if the enclosure works okay with other types of
> > disk drive.  And if it doesn't, why don't these errors show up on
> > Windows systems?  Or on other VIA enclosures?
> 
> I only experienced this after installing the two 4Kn drives, never with the
> two 512e drives that were installed first. My guess is that 4Kn drives are
> still rare and if they're used, then natively attached to a SATA port. I
> don't have any Windows system here to test this, and even if, I wouldn't
> know how to assemble the RAID1 there anyway.

It's entirely possible that this failure has nothing to do with the 
use of RAID.

> > That's why I'm cautious about accepting this patch.  I don't want to
> > slow down unnecessarily a bunch of USB disks that could work just fine
> > at the higher UAS transfer rates.
> 
> I understand. If that's the case, I'm just going to continue to keep the
> patch in my local kernel tree.

You don't even need a patch; you can accomplish the same effect 
simply by specifying a module parameter for usb-storage:

	quirks=2109:0715:u

(You might have to rebuild your initramfs image, if you need the 
quirk to take effect during the early stages of boot-up.)

> > By the way, does the enclosure have its own power source, or does it
> > rely entirely on power provided over the USB cable?  Note that UAS can
> > use more power than the older mass-storage protocols, because it queues
> > more operations in rapid succession (which is also why it runs faster).
> 
> This is the enclosure:
> https://icybox.de/product.php?id=155
> 
> It has a external power supply (quite a bulky one) and it does not work
> without it. So it doesn't draw anything (significant) from the USB cable. I
> first also suspected this to be a power supply related problem, but I
> discarded that idea since the whole thing works as MSC. I can't imagine the
> power draw to be so much different for UAS, but maybe I'm just naive there.

Yeah, you might be surprised.  There have been other instances of 
people submitting patches to disable UAS for their drives, when it 
seemed quite likely that lack of power was the underlying cause.  
Although to be fair, these occurred in very power-constrained 
situations, such as running a bus-powered drive attached to a 
Raspberry Pi.  Not like your case.  Still, you see why I had to ask.

Alan Stern



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux