From owner-freebsd-current Mon Jan 20 12: 9: 4 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 504ED37B407 for ; Mon, 20 Jan 2003 12:09:03 -0800 (PST) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E427143EB2 for ; Mon, 20 Jan 2003 12:09:02 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.6/8.12.6) with ESMTP id h0KK910i088440; Mon, 20 Jan 2003 12:09:01 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.6/8.12.6/Submit) id h0KK9120088439; Mon, 20 Jan 2003 12:09:01 -0800 (PST) Date: Mon, 20 Jan 2003 12:09:01 -0800 (PST) From: Matthew Dillon Message-Id: <200301202009.h0KK9120088439@apollo.backplane.com> To: Kenneth Culver Cc: Nate Lawson , Trish Lynch , Subject: Re: FreeBSD panic with umass References: <20030120145222.E14910-100000@alpha.yumyumyum.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :Hmm, good stuff, but shouldn't something be committed anyway? I mean if it :causes a panic just by plugging in the device that's totally unacceptable. :I'll provide a backtrace of the crash on my computer tomorrow I suppose (I :won't be home until then) and let people know if that's what's causing my :crash. : :Ken Yes, but it isn't quite that easy. I did fix the incorrect sense code issue with UMASS, but that's only one of the potentially many problems that could occur. It would probably also help (give us more deterministic panics / errors) if the read_capacity structure were at least bzero'd by CAM/SCSI. But half the problem is with the USB devices themselves. The device firmware for many of these devices, especially the Sony, was written by idiots. The entire USB specification was written by idiots IMHO. For example, the Sony will respond with garbage, and no error whatsoever, to just about any page inquiry command you send it. The Sony doesn't even return reasonable data for the code pages that the USB spec requires! Ultimately this means that the best we can do is to try to ensure that garbage data doesn't result in a system panic. That's a fairly tall order for such a low level subsystem. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message