From owner-freebsd-usb@FreeBSD.ORG Thu Aug 27 17:24:58 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66FBF1065691; Thu, 27 Aug 2009 17:24:58 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from mailrelay012.isp.belgacom.be (mailrelay012.isp.belgacom.be [195.238.6.179]) by mx1.freebsd.org (Postfix) with ESMTP id CF1008FC45; Thu, 27 Aug 2009 17:24:57 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuUEAJBWlkrZiD4e/2dsb2JhbACBU9g7hBkFgVM Received: from 30.62-136-217.adsl-dyn.isp.belgacom.be (HELO kalimero.kotnet.org) ([217.136.62.30]) by relay.skynet.be with ESMTP; 27 Aug 2009 18:55:41 +0200 Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.14.3/8.14.3) with ESMTP id n7RGrA7M001334; Thu, 27 Aug 2009 18:53:10 +0200 (CEST) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: gavin@freebsd.org Date: Thu, 27 Aug 2009 18:53:08 +0200 User-Agent: KMail/1.9.10 References: <200908251253.n7PCrwHQ065055@freefall.freebsd.org> In-Reply-To: <200908251253.n7PCrwHQ065055@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_1nrlK+4G+36XeDX" Message-Id: <200908271853.09981.tijl@ulyssis.org> Cc: freebsd-usb@freebsd.org Subject: Re: usb/107243: [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 17:24:58 -0000 --Boundary-00=_1nrlK+4G+36XeDX Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tuesday 25 August 2009 14:53:58 gavin@freebsd.org wrote: > Old Synopsis: [cam] [patch] Apacer USB Flash Drive quirk > New Synopsis: [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive quirk > > State-Changed-From-To: open->feedback > State-Changed-By: gavin > State-Changed-When: Tue Aug 25 12:52:05 UTC 2009 > State-Changed-Why: > To submitter: Do you know if this issue has ever been resolved? Also, do > you know if this is still an issue with the new USB stack found in FreeBSD 8? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=107243 It's still an issue on today's 7-stable. I currently don't have time to upgrade to 8 so I don't know about that. I've attached an updated patch for 7-stable, because the old one doesn't apply anymore. And here's dmesg output (btw, vendor id isn't recognised either): umass0: on uhub3 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data) da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB FLASH DRIVE 1.01> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 124MB (253952 512 byte sectors: 64H 32S/T 124C) Without the patch I then get these messages repeatedly: umass0: Phase Error, residue = 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 --Boundary-00=_1nrlK+4G+36XeDX Content-Type: text/plain; charset="iso-8859-15"; name="patch-apacer-usb" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-apacer-usb" --- sys/cam/scsi/scsi_da.c.orig 2008-09-30 17:24:40.000000000 +0200 +++ sys/cam/scsi/scsi_da.c 2008-09-30 17:26:42.000000000 +0200 @@ -546,6 +546,13 @@ { {T_DIRECT, SIP_MEDIA_REMOVABLE, "Netac", "OnlyDisk*", "2000"}, /*quirks*/ DA_Q_NO_SYNC_CACHE + }, + { + /* + * Apacer Handy Steno + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "", "USB FLASH DRIVE", + "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE } }; --Boundary-00=_1nrlK+4G+36XeDX--