Date: Sat, 1 May 2004 00:20:13 +0300 (EEST) From: Dmitry Dyomin <old@old.com.ua> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/66124: Device/vendor quirks for iRiver iFP MP3 player series Message-ID: <200404302120.i3ULKDaf023988@home.old.com.ua> Resent-Message-ID: <200404302120.i3ULKCQ1058735@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 66124
>Category: kern
>Synopsis: Device/vendor quirks for iRiver iFP MP3 player series
>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: Fri Apr 30 14:20:12 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Dmitry Dyomin
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD home.old.com.ua 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Mon Apr 19 13:44:50 EEST 2004 root@home.old.com.ua:/usr/obj/usr/src/sys/HOME i386
>Description:
This PR attempts to raise kern/54881 and i386/63941 which are still opened.
iRiver iFP MP3 player series need DA_Q_NO_SYNC_CACHE to function properly.
>How-To-Repeat:
da1 at umass-sim1 bus 1 target 0 lun 0
da1: <iRiver iFP Mass Driver 1.00> Removable Direct Access SCSI-0 device
da1: 1.000MB/s transfers
da1: 250MB (512000 512 byte sectors: 64H 32S/T 250C)
(da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da1:umass-sim1:1:0:0): UNIT ATTENTION asc:29,0
(da1:umass-sim1:1:0:0): Power on, reset, or bus device reset occurred
(da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da1:umass-sim1:1:0:0): UNIT ATTENTION asc:29,0
(da1:umass-sim1:1:0:0): Power on, reset, or bus device reset occurred
Relevant information:
# camcontrol inquiry da0
pass0: <iRiver iFP Mass Driver 1.00> Removable Direct Access SCSI-0 device
pass0: Serial Number u
pass0: 1.000MB/s transfers
# usbdevs -v
<snip>
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000),
rev 1.00
port 1 addr 2: full speed, self powered, config 1, iFP Mass Driver(0x1103), iRi
ver(0x4102), rev 1.00
port 2 powered
After the following patch applied, during boot you'll see:
umass0: iRiver iFP Mass Driver, rev 1.10/1.00, addr 2
umass0: Get Max Lun not supported (STALLED)
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <iRiver iFP Mass Driver 1.00> Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: 250MB (512000 512 byte sectors: 64H 32S/T 250C)
and device appears to work correctly.
>Fix:
--- src/sys/dev/usb/usbdevs.orig Sat May 1 00:18:14 2004
+++ src/sys/dev/usb/usbdevs Sat May 1 00:18:20 2004
@@ -374,6 +374,7 @@
vendor DLINK 0x2001 D-Link
vendor VIDZMEDIA 0x3275 VidzMedia Pte Ltd
vendor DAISY 0x3579 Daisy Technology
+vendor IRIVER 0x4102 iRiver
vendor DELL 0x413c Dell
vendor INTEL 0x8086 Intel
vendor HP2 0xf003 Hewlett Packard
@@ -802,6 +803,9 @@
/* Iomega products */
product IOMEGA ZIP100 0x0001 Zip 100
product IOMEGA ZIP250 0x0030 Zip 250
+
+/* iRiver products */
+product IRIVER IFP 0x1103 iFP Mass Driver
/* JVC products */
product JVC GR_DX95 0x000a GR-DX95
--- src/sys/cam/scsi/scsi_da.c.orig Sat May 1 00:18:17 2004
+++ src/sys/cam/scsi/scsi_da.c Sat May 1 00:18:25 2004
@@ -248,6 +248,13 @@
},
{
/*
+ * iRiver iFP MP3 player (with UMS Firmware)
+ */
+ {T_DIRECT, SIP_MEDIA_REMOVABLE, "iRiver", "iFP*", "*"},
+ /*quirks*/ DA_Q_NO_SYNC_CACHE
+ },
+ {
+ /*
* Power Quotient Int. (PQI) USB flash key
* PR: kern/53067
*/
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404302120.i3ULKDaf023988>
