RE: PATCH: Disable 6 byte commands for USB, firewire, ATAPICAM

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 30 Jul 2003 15:34:54 -0400 (EDT)
On 25-Jul-2003 Nate Lawson wrote:
> Attached is a patch that disables ever sending 6 byte commands to buses
> that do not support them.  Numerous USB devices hang when receiving a 6
> byte command.  For testing, this patch comments out the scsi_da quirks for
> devices that I believe are addressed by this patch and no longer need the
> quirk.
> 
> Please test devices such as USB keys, USB cameras, Firewire hard disks,
> and ATAPICAM cd drives to be sure they still work with this patch.
> Especially if you've needed a quirk before, it is important to see if this
> patch does not break your device.  I hope to get this into the tree early
> so there is plenty of testing before 5.2.

You should remove the 6 to 10 translation that is already in umass(4)
for UFI and ATAPI devices.  I didn't do it for SCSI devices because
the SCSI transport was supposed to work ok with 6 byte commands.  Not
all devices properly report their transport though.

-- 

John Baldwin <jhb_at_FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
Received on Wed Jul 30 2003 - 10:34:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:17 UTC