From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 27 08:20:42 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1799616A4CE for ; Sun, 27 Feb 2005 08:20:42 +0000 (GMT) Received: from cowbert.2y.net (d46h180.public.uconn.edu [137.99.46.180]) by mx1.FreeBSD.org (Postfix) with SMTP id 704D143D2D for ; Sun, 27 Feb 2005 08:20:41 +0000 (GMT) (envelope-from sirmoo@cowbert.2y.net) Received: (qmail 6895 invoked by uid 1001); 27 Feb 2005 08:20:40 -0000 Date: Sun, 27 Feb 2005 03:20:40 -0500 From: "Peter C. Lai" To: ALeine Message-ID: <20050227082040.GB265@cowbert.2y.net> References: <200502251803.j1PI3tsN074534@marlena.vvi.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200502251803.j1PI3tsN074534@marlena.vvi.at> User-Agent: Mutt/1.5.6i X-Mailman-Approved-At: Sun, 27 Feb 2005 13:09:05 +0000 cc: freebsd-hackers@freebsd.org Subject: Re: sandisk cruzer mini quirks [failure] on RELENG_4 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 08:20:42 -0000 On Fri, Feb 25, 2005 at 10:03:55AM -0800, ALeine wrote: > sirmoo@cowbert.2y.net wrote: > > > I have a 512mb version of the SanDisk Cruzer Mini keychain drive. > > ProductId = 0x5150 (VendorID=0x0781). I am unable to correctly > > get it to stop crashing the system when using cp(1) to copy large > > files to it. > > I patched /usr/src/sys/dev/usb/umass.c as: > > > > if (UGETW(dd->idVendor) == USB_VENDOR_SANDISK && > > (UGETW(dd->idProduct) == 0x5150) { > > sc->proto = UMASS_PROTO_SCSI | UMASS_PROTO_BBB; > > sc->quirks |= IGNORE_RESIDUE; > > } > > Try extending da_quirk_table in sys/cam/scsi/scsi_da.c with an > entry like this: > > { > /* > * SanDisk Cruzer Mini 512MB > */ > {T_DIRECT, SIP_MEDIA_REMOVABLE, "SanDisk" , "Cruzer Mini", "*"}, > /*quirks*/ DA_Q_NO_SYNC_CACHE > } > I did this as the first hack. It made the problem worse. I'll try patching both umass.c and scsi_da.c maybe they will have some sort of synergistic effect. maybe i should just bite the bullet and upgrade the box to 5.3. pete -- Peter C. Lai University of Connecticut Dept. of Molecular and Cell Biology Yale University School of Medicine SenseLab | Research Assistant http://cowbert.2y.net/