From owner-freebsd-scsi Mon Feb 11 7:46:47 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by hub.freebsd.org (Postfix) with ESMTP id B639637B402; Mon, 11 Feb 2002 07:46:28 -0800 (PST) Received: from i8k.babbleon.org ([66.57.85.154]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Mon, 11 Feb 2002 09:41:55 -0500 Received: by i8k.babbleon.org (Postfix, from userid 111) id 22A834074; Mon, 11 Feb 2002 09:37:07 -0500 (EST) From: Brian T.Schellenberger To: Subject: Re: USB drive -- problems Date: Mon, 11 Feb 2002 09:37:06 -0500 X-Mailer: KMail [version 1.3] References: <000901c1b2d9$89cac820$fe02010a@twoflower.liebende.de> In-Reply-To: <000901c1b2d9$89cac820$fe02010a@twoflower.liebende.de> Cc: freebsd-questions@freebsd.org, freebsd-scsi@freebsd.org MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_UXHD66TKBLBXGT3KDOZ6" Message-Id: <20020211143707.22A834074@i8k.babbleon.org> Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --------------Boundary-00=_UXHD66TKBLBXGT3KDOZ6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Bingo! That was it! It's working beautifully now. ThankyouThankyouThankyouThankyou. I'll submit the patches to a committer so I don't have to re-patch every time I upgrade the source. PS: Did you submit your patch so it can be integrated into the offiical source? PPS: Anyway know of any particular reason why DA_Q_NO_6_BYTE isn't just the default? Looking at the scsi file it sure seems like a large number of devices need this . . . at any rate it seems like it might be cool if i/o errors of this nature could be recognized and the feature dynamically turned off . . . PS: Just in case there's somebody on the scsi list who'd like to commit my change, my patch is attached. On Monday 11 February 2002 03:53 am, Jan Stocker wrote: > Excuse me for the late reply... > > src/sys/cam/scsi/scsi_da.c contains quirks for each da device... > > ive added one for my digicam: > > { > /* MINOLTA DIMAGE 2330 */ > {T_DIRECT, SIP_MEDIA_REMOVABLE, "MINOLTA", "DIMAGE 2330*","*"}, > /*quirks*/ DA_Q_NO_6_BYTE > }, > > so no 6-byte commands will be send to the device... search for a device > entry similar to your disc controller, add an entry and recompile... > > Jan > > P.S: Your surname looks quite german.... > > > -----Original Message----- > > From: Brian T.Schellenberger [mailto:bts@babbleon.org] > > Sent: Saturday, February 09, 2002 12:31 AM > > To: jstocker@tzi.de > > Subject: Re: USB drive -- problems > > > > On Monday 04 February 2002 08:00 am, you wrote: > > > A maybe better discussion group will be freebsd-scsi. > > > > > > Maybe you need to turn off 6-byte commands with a quirk... > > > > Hmm . . . perhaps. But I'm afraid I don't even know what that means. > > Can you clarify, or tell me what I should be reading that I'm not? > > > > > Jan > > > > > > > PPS: Why, oh why is there a /dev/ad0 and a /dev/da0? What do > > > > they stand for? > > > > > > Okay... da is for the DirectAccess drives on USB/SCSI > > > ad represent the ATA-Drives. So ad0 is the primary-master ATA-IDE > > > drive. > > > > > > > -----Original Message----- > > > > From: owner-freebsd-hardware@FreeBSD.ORG > > > > [mailto:owner-freebsd-hardware@FreeBSD.ORG]On Behalf Of Brian > > > > T.Schellenberger > > > > Sent: Sunday, February 03, 2002 3:20 PM > > > > To: freebsd-question@FreeBSD.ORG; freebsd-hardware@FreeBSD.ORG > > > > Subject: USB drive -- problems > > > > > > > > > > > > > > > > Ok, with little confidence it would work, since I could find > > > > no very good > > > > > > info on USB & FreeBSD, and there was no response to my query on > > > > the subject, > > > > I decided in a "what the hell" moment to get a USB drive and see what > > > > happened. > > > > > > > > I have a LaCie 80G drive. It was $250 for 80, USB 2, and if > > > > it works it > > > > > > should be pretty darn cool. > > > > > > > > It is recognized by the kernel, so I thought I was doing > > > > pretty well, but > > > > > > when I try to actually do anything with it, I run into > > > > trouble. Here are > > > > > > some messages from /var/log messages, first hte successful > > > > boot stuff and > > > > > > then the failure messages: > > > > > > > > Feb 3 04:31:21 i8k /kernel: uhci0: > > > controller > > > > USB-A> port 0xbce0-0xbcff irq 11 at device 31.2 on pci0 > > > > Feb 3 04:31:21 i8k /kernel: usb0: > > > controller > > > > USB-A> on uhci0 > > > > Feb 3 04:31:21 i8k /kernel: usb0: USB revision 1.0 > > > > Feb 3 04:31:21 i8k /kernel: uhub0: Intel UHCI root hub, > > > > class 9/0, rev > > > > > > 1.00/1.00, addr 1 > > > > Feb 3 04:31:21 i8k /kernel: uhub0: 2 ports with 2 removable, self > > > > powered Feb 3 04:31:21 i8k /kernel: umass0: LaCie LaCie > > > > StudioDrive USB2 > > > > > > , > > > > rev 2.00/10.06, addr 2 > > > > > > > > > > > > Feb 3 04:31:21 i8k /kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > > > > Feb 3 04:31:22 i8k /kernel: da0: Fixed > > > > Direct Access > > > > SCSI-0 device > > > > Feb 3 04:31:22 i8k /kernel: da0: 650KB/s transfers > > > > Feb 3 04:31:22 i8k /kernel: da0: 78167MB (160086528 512 byte > > > > sectors: 64H > > > > 32S/T 12631C) > > > > > > > > > > > > Feb 3 05:08:48 i8k /kernel: (da0:umass-sim0:0:0:0): READ(06). > > > > CDB: 8 0 0 0 1 > > > > 0 > > > > Feb 3 05:08:48 i8k /kernel: (da0:umass-sim0:0:0:0): ILLEGAL > > > > REQUEST asc:21,0 > > > > Feb 3 05:08:48 i8k /kernel: (da0:umass-sim0:0:0:0): Logical > > > > block address > > > > out of range > > > > Feb 3 05:08:57 i8k /kernel: (da0:umass-sim0:0:0:0): READ(06). > > > > CDB: 8 0 0 0 1 > > > > 0 > > > > Feb 3 05:08:57 i8k /kernel: (da0:umass-sim0:0:0:0): ILLEGAL > > > > REQUEST asc:21,0 > > > > Feb 3 05:08:57 i8k /kernel: (da0:umass-sim0:0:0:0): Logical > > > > block address > > > > out of range > > > > > > > > The set of error messages above were returned when I did a simple > > > > > > > > dd if=/dev/da0 > > > > > > > > > > > > PS: I might not recieve mail for a couple days so don't be > > > > surprised if > > > > > > responses are a little slow. Based on previous response to USB > > > > queries on > > > > the questions list I doubt that excessive responses will be a big > > > > problem. > > > > I'm including the questions list here more as an "FYI" sort of thing. > > > > > > > > It's darn confusing and it makes me nervous as heck doing > > > > "dangerous" operations where I am one swapped letter pair away from > > > > wiping out my primary > > > > drive! > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) > > > > Brian, the man from Babble-On . . . . bts@babbleon.org (personal) > > > > ME --> http://www.babbleon.org > > > > http://www.eff.org <-- GOOD GUYS --> > > > > http://www.programming-freedom.org > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-hardware" in the body of the message > > > > -- > > Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) > > Brian, the man from Babble-On . . . . bts@babbleon.org (personal) > > ME --> http://www.babbleon.org > > http://www.eff.org <-- GOOD GUYS --> > > http://www.programming-freedom.org -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) ME --> http://www.babbleon.org http://www.eff.org <-- GOOD GUYS --> http://www.programming-freedom.org --------------Boundary-00=_UXHD66TKBLBXGT3KDOZ6 Content-Type: text/x-diff; charset="iso-8859-1"; name="sys_cam_scsi_scsi_da.c.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="sys_cam_scsi_scsi_da.c.patch" *** scsi_da.c.org Mon Feb 11 07:18:39 2002 --- scsi_da.c Mon Feb 11 07:23:18 2002 *************** *** 255,265 **** {T_DIRECT, SIP_MEDIA_REMOVABLE, "Sony", "Sony DSC", "*"}, /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE }, ! { /* * Maxtor 3000LE USB Drive */ {T_DIRECT, SIP_MEDIA_FIXED, "MAXTOR*", "K040H2*", "*"}, /*quirks*/ DA_Q_NO_6_BYTE }, { --- 255,272 ---- {T_DIRECT, SIP_MEDIA_REMOVABLE, "Sony", "Sony DSC", "*"}, /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE }, ! { /* * Maxtor 3000LE USB Drive */ {T_DIRECT, SIP_MEDIA_FIXED, "MAXTOR*", "K040H2*", "*"}, + /*quirks*/ DA_Q_NO_6_BYTE + }, + { + /* + * LaCie USB drive, among others + */ + {T_DIRECT, SIP_MEDIA_FIXED, "Maxtor*", "D080H4*", "*"}, /*quirks*/ DA_Q_NO_6_BYTE }, { --------------Boundary-00=_UXHD66TKBLBXGT3KDOZ6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message