From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 26 21:40:19 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DDFB16A400 for ; Wed, 26 Apr 2006 21:40:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B21C943D46 for ; Wed, 26 Apr 2006 21:40:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3QLeHlU085058 for ; Wed, 26 Apr 2006 21:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3QLeHrw085057; Wed, 26 Apr 2006 21:40:17 GMT (envelope-from gnats) Date: Wed, 26 Apr 2006 21:40:17 GMT Message-Id: <200604262140.k3QLeHrw085057@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Julian Stacey" Cc: Subject: Re: kern/96381: add a quirk table entry for a flash ram usb stick X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Julian Stacey List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2006 21:40:19 -0000 The following reply was made to PR kern/96381; it has been noted by GNATS. From: "Julian Stacey" To: bug-followup@FreeBSD.org Cc: jhs@berklix.com Subject: Re: kern/96381: add a quirk table entry for a flash ram usb stick Date: Wed, 26 Apr 2006 23:35:16 +0200 (CEST) I forgot the patch ! I just gave a URL to it. Here it is. I forgot to mention that in current src/ at time of submission Wed Apr 26 22:41:11 CEST 2006 no one else had added this quirk table entry yet, so its worth adding (even though the diff was created on a 6.0-RELEASE, not 6.1-PRERELEASE (which I'm about to do) *** 6.0-RELEASE/src/sys/cam/scsi/scsi_da.c Thu Jun 9 19:35:04 2005 --- new-generic/src/sys/cam/scsi/scsi_da.c Wed Apr 26 18:24:56 2006 *************** *** 354,359 **** --- 354,402 ---- {T_DIRECT, SIP_MEDIA_REMOVABLE, "Kingston" , "DataTraveler II+", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, + { + /* Label on outside: "integral 1GB USB 2.0 Flash Drive" + * cam/scsi/scsi_all.c scsi_inquiry_match() inq->vendor + * Shows 8 spurious spaces for just this flash stick. + * " USB DISK Pro PMAP" + * Detected by stick owner "Julian H. Stacey" + * PS a "*" works as well as a " " in next line of code. + */ + /* This stick works without this patch, but then in /var/log/messages: + * (This stick is lockable, when unlocked it appears with /dev/da0 /dev/da0s1 /dev/da1 ). + * umass0: vendor 0x0d7d USB DISK Pro, rev 2.00/1.00, addr 3 + * umass0: SCSI over Bulk-Only; quirks = 0x0000 + * umass0:3:0:-1: Attached to scbus3 + * da0 at umass-sim0 bus 0 target 0 lun 0 + * da0: < USB DISK Pro PMAP> Removable Direct Access SCSI-0 device + * da0: 1.000MB/s transfers + * da0: 978MB (2003968 512 byte sectors: 64H 32S/T 978C) + * da1 at umass-sim0 bus 0 target 0 lun 1 + * da1: < USB DISK Pro PMAP> Removable Direct Access SCSI-0 device + * da1: 1.000MB/s transfers + * da1: 1MB (2880 512 byte sectors: 64H 32S/T 1C) + * umass0: Phase Error, residue = 0 + * (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 + * umass0: Phase Error, residue = 0 + * (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 + * umass0: Phase Error, residue = 0 + * (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 + * umass0: Phase Error, residue = 0 + * (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 + * umass0: Phase Error, residue = 0 + * (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 + * umass0: Phase Error, residue = 0 + * (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 + * umass0: Phase Error, residue = 0 + * (da1:umass-sim0:0:0:1): Synchronize cache failed, status == 0x4, scsi status == 0x0 + * umass0: Phase Error, residue = 0 + * (da1:umass-sim0:0:0:1): Synchronize cache failed, status == 0x4, scsi status == 0x0 + * umass0: Phase Error, residue = 0 + * (da1:umass-sim0:0:0:1): Synchronize cache failed, status == 0x4, scsi status == 0x0 + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, " ", "USB DISK Pro", "PMAP" }, + /*quirks*/ DA_Q_NO_SYNC_CACHE + }, }; static disk_strategy_t dastrategy; ----------- Julian -- Julian Stacey. Consultant Unix Net & Sys. Eng., Munich. http://berklix.com Mail in Ascii, HTML=spam. Ihr Rauch = mein allergischer Kopfschmerz.