From owner-freebsd-current@FreeBSD.ORG Sat Feb 5 15:49:52 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8898106566B for ; Sat, 5 Feb 2011 15:49:52 +0000 (UTC) (envelope-from donaldcallen@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8CB978FC08 for ; Sat, 5 Feb 2011 15:49:52 +0000 (UTC) Received: by iwn39 with SMTP id 39so3184304iwn.13 for ; Sat, 05 Feb 2011 07:49:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=QadGOoYUaO8OjJNOeRZACAlaRend1y4/hIComzisV78=; b=ifQxlTIbjzLlsQEnxL2f0CFw3Gct5rxEN7ja2L+JLMB2YUvfDmP+XeOacg52E15qPc 4zRm4dK8LCXdIXxq807OIRrnolE7VTbLiR81K4fADWQwvRC+xdSFl0k/JrJ0iQERqz5K 2XTnJ6VYDOfbIP8aWcsGw5clE1gcfc93i89Zs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=BRFVdXMhp6rqJpgC8f3E9kWYZAvOL3Xz+3H0GdnnOM4VhCmEeqGJDjaQNRhdodXZkk BAJTBXwSJuQ3+Qvq4bpoBneTRDCunIsPxAqFeoanql350TYioH0XPGuj324dYbUbQX0Y pKZbWVJSBNEQFSNXH+04zyPYyidjIxFBFipxw= MIME-Version: 1.0 Received: by 10.42.228.74 with SMTP id jd10mr16006522icb.280.1296919136336; Sat, 05 Feb 2011 07:18:56 -0800 (PST) Received: by 10.42.224.132 with HTTP; Sat, 5 Feb 2011 07:18:56 -0800 (PST) In-Reply-To: <201102051534.54590.hselasky@c2i.net> References: <201102051534.54590.hselasky@c2i.net> Date: Sat, 5 Feb 2011 10:18:56 -0500 Message-ID: From: Donald Allen To: Hans Petter Selasky X-Mailman-Approved-At: Sat, 05 Feb 2011 16:17:01 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Intermittent pauses copying from one usb drive to another X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 15:49:53 -0000 On Sat, Feb 5, 2011 at 9:34 AM, Hans Petter Selasky wrote: > On Saturday 05 February 2011 14:27:56 Donald Allen wrote: > > I've discussed problems with FreeBSD and usb sata drives on this list > > in the past (as recently as last September), and have given up on > > FreeBSD as a result of the usb disk problems (I do my backups with usb > > drives) and other usb-related issues. But I've now replaced the usb > > enclosures I was using at that time and have acquired some Toshiba usb > > drives, so with this new equipment, I thought I'd give FreeBSD another > > try, since generally I prefer it to Linux. But I'm having problems > > again. > > > > Plugging in the Toshiba drives produces entries like this in > > /var/log/message: > > Hi, > > Errors happen because the USB firmware of your USB hardware does not > support > all the SCSI commands issued by the CAM/SCSI layer. This is a well known > problem. Probably Linux is better at filtering the SCSI commands passed to > the > various devices. > > Proof: I have a custom USB test software suite actually running under > FreeBSD > which can stress test mass storage devices. So far very few USB mass > storage > devices I've seen pass all the tests and recover properly. Most > disks/memory > sticks simply die at the first non-supported SCSI command and/or error > scenario even though the SCSI and USB mass storage wrapper for SCSI > commands > define error codes to be returned in case of failure. Contact me off-list > if > you are interested in this. > > Solution: USB mass storage devices needs to be crippled down to a few SCSI > commands like READ_12 and WRITE_12. This is not a USB problem. It needs to > be > done in the CAM/SCSI layer. > I understand what you are saying. Does whoever is responsible for CAM/SCSI know about this and do you know if there are plans to fix it? What is the point of "supporting" USB devices (and we aren't talking about an odd-ball device here; these are USB disks), when the "support" is partially broken? You don't see problems like this with Windows or Linux, and this whole area of USB devices has been a problem since the 7.x series and, I suspect, before, regardless of whether it's the fault of the USB layer or some other part of the system. The user doesn't care which layer is at fault; they care about whether their devices are supported or not by the system. > > What you can do: Ask the vendor to test their USB devices with FreeBSD 8.2 > before shipping. > That's going to be like talking to a wall. I have a Toshiba netbook that does not run Linux properly, at least not Linux out of the box. Why? The BIOS is broken and doesn't support MSI correctly (interrupts are lost). Windows (at least the one delivered with the machine -- XP) doesn't use MSI, but Linux does by default. So you try installing Linux on this thing and the installation periodically grinds to a halt until you generate some interrupts by touching the touchpad or pressing a key on the keyboard, etc. You have to turn off MSI in the Linux kernel at boot time to get things to work. I explained all this to Toshiba Customer Service (an oxymoron) last year and they couldn't have cared less and it is still not fixed. They don't give a damn about Linux, so I'm sure they'll get right on it when I ask them to test their USB drives with FreeBSD :-) /Don > --HPS >