Date: Sun, 17 Aug 2003 11:09:41 +0200 (CEST) From: roland Mathieu <roland.mathieu@free.fr> To: FreeBSD-gnats-submit@FreeBSD.org Cc: njl@FreeBSD.org Subject: kern/55657: PMI usb drive SCSI DA quirk Message-ID: <200308170909.h7H99fGZ005660@lycurgue.localnet> Resent-Message-ID: <200308170920.h7H9KHuD006172@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 55657 >Category: kern >Synopsis: PMI usb drive SCSI DA quirk >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 17 02:20:17 PDT 2003 >Closed-Date: >Last-Modified: >Originator: roland Mathieu >Release: FreeBSD 4.7-RELEASE i386 >Organization: >Environment: System: FreeBSD lycurgue.localnet 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Sat Jun 14 16:28:42 CEST 2003 root@lycurgue.localnet:/usr/src/sys/compile/KERNEL-20030224 i386 >Description: The usb memory stick marketed by Power Memory International Co. as «Pmi usb drive» needs a quirks entry in /usr/src/sys/cam/scsi/scsi_da.c. Manufacturer name : Pmi USB drive Part No. : MFPA0128PMI-A.1 Interface:USB1.1 128MB Board >How-To-Repeat: Insert memory stick, Type fdisk /dev/da3. Observe console. Output from dmesg for failed attach attempts: umass0: Generic USB Flash Disk, rev 1.10/1.00, addr 5 da3 at umass-sim0 bus 0 target 0 lun 0 da3: <Generic USB Flash Disk 1.00> Removable Direct Access SCSI-0 device da3: 650KB/s transfers da3: 127MB (260448 512 byte sectors: 64H 32S/T 127C) umass0: Unsupported ATAPI command 0x08, 6 byte command should have been converted da3: reading primary partition table: error reading fsbn 0 umass0: Unsupported ATAPI command 0x35 (da3:umass-sim0:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0 >Fix: Patch follows, hope it is okay. I diffed against 4.7. --- scsi_da.c.orig Sat Aug 24 21:03:58 2002 +++ scsi_da.c Sun Aug 17 10:44:18 2003 @@ -367,6 +367,13 @@ {T_DIRECT, SIP_MEDIA_REMOVABLE, "DIVA USB", "Media Reader","*"}, /*quirks*/ DA_Q_NO_6_BYTE }, + /* + * Pmi usb drive. + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, + "Generic*", "USB Flash Disk*", "*"}, + /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE + }, { /* * Daisy Technology PhotoClip USB Camera Output from dmesg for successful attach attempts (after quirk added): umass0: Generic USB Flash Disk, rev 1.10/1.00, addr 5 da3 at umass-sim0 bus 0 target 0 lun 0 da3: <Generic USB Flash Disk 1.00> Removable Direct Access SCSI-0 device da3: 650KB/s transfers da3: 127MB (260448 512 byte sectors: 64H 32S/T 127C) Output of "camcontrol inquiry da3" with device attached: pass3: <Generic USB Flash Disk 1.00> Removable Direct Access SCSI-0 device pass3: Serial Number ^_ pass3: 650KB/s transfers Output of "usbdevs -v" with device attached: Controller /dev/usb0: addr 1: self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 addr 2: self powered, config 1, USB HUB (0x5518), vendor 0x0416(0x0416), rev 0.08 port 1 addr 3: low speed, power 100 mA, config 1, USB Multimedia Keyboard (0x7 13a), (0x099a), rev 1.01 port 2 addr 4: low speed, power 50 mA, config 1, USB Mouse(0xc001), Logitech(0 x046d), rev 4.00 port 3 addr 5: power 100 mA, config 1, USB Flash Disk(0x8001), Generic(0x09a6) , rev 1.00 port 4 powered port 2 powered >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308170909.h7H99fGZ005660>