From owner-freebsd-bugs Tue Mar 25 12:20:31 2003 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 5476E37B401 for ; Tue, 25 Mar 2003 12:20:26 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C42D43F3F for ; Tue, 25 Mar 2003 12:20:25 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2PKKLNS054012 for ; Tue, 25 Mar 2003 12:20:25 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2PKKLKo054005; Tue, 25 Mar 2003 12:20:21 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 372C237B401 for ; Tue, 25 Mar 2003 12:17:16 -0800 (PST) Received: from reserve.phaze-III.sec.nl (reserve.phaze-III.sec.nl [194.171.107.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33B4543F3F for ; Tue, 25 Mar 2003 12:17:13 -0800 (PST) (envelope-from x+freebsd@surfnet.nl) Received: from triplex.phaze-III.sec.nl (localhost [127.0.0.1]) by triplex.phaze-III.sec.nl (8.12.8/8.12.8) with ESMTP id h2PK3njY008921; Tue, 25 Mar 2003 21:03:50 +0100 (CET) (envelope-from xander@tripleX.phaze-III.sec.nl) Received: (from xander@localhost) by triplex.phaze-III.sec.nl (8.12.8/8.12.8/Submit) id h2PK3TIj008910; Tue, 25 Mar 2003 21:03:29 +0100 (CET) Message-Id: <200303252003.h2PK3TIj008910@triplex.phaze-III.sec.nl> Date: Tue, 25 Mar 2003 21:03:29 +0100 (CET) From: Xander Reply-To: Xander To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/50297: QUIRK: Apacer Handydrive 256M USB Disk X-Spam-Status: No, hits=-0.5 required=5.0 tests=MSG_ID_ADDED_BY_MTA_3,RESENT_TO version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 50297 >Category: kern >Synopsis: QUIRK: Apacer Handydrive 256M USB Disk >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 25 12:20:15 PST 2003 >Closed-Date: >Last-Modified: >Originator: Xander >Release: FreeBSD 4.8-RC i386 >Organization: SURFnet >Environment: System: FreeBSD triplex.phaze-III.sec.nl 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Sat Mar 22 22:27:12 CET 2003 root@triplex.phaze-III.sec.nl:/extra/usr/obj/usr/test/src/sys/X i386 >Description: NOTE: the above environment is my current OS, the Quirk for this particular version of the Apacer Handydrive was needed when this box was running 4-STABLE a few months ago. On 5-CURRENT no quirk seems to be needed, on 4.x I used the included quirk. Note that this USB disk has a different identifying string (as compared with the other Apacer Quirk in pr/43627). I copied that quirk and changed the vendor/product strings. Both quirks were needed december 2002 on 4-stable. Note that the vendor string actually is empty which might be a problem. The output below is from my laptop running -current, I currently don't have access to a box with both USB and 4.8-RC so additional testing on 4.x will be a bit hard. Sorry about that. info from 5-current: # dmesg umass0: vendor 0x0d7d USB Disk, rev 1.10/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB DISK 2.08> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 248MB (507904 512 byte sectors: 64H 32S/T 248C) (da0:umass-sim0:0:0:0): READ(6)/WRITE(6) not supported, increasing minimum_cmd_size to 10. # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, USB Disk(0x0100), vendor 0x0d7d(0x0d7d), rev 1.00 port 2 powered # camcontrol inquiry da0 pass0: < USB DISK 2.08> Removable Direct Access SCSI-0 device pass0: Serial Number pass0: 1.000MB/s transfers >How-To-Repeat: >Fix: Add something like below to scsi_da.c: { /* * Apacer HandyDrive 256M */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "", "USB DISK", "*"}, /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE }, >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message