From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 22:06:32 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 AB4E11065689 for ; Sat, 3 Jan 2009 22:06:32 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swipnet.se [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id D6A6D8FC16 for ; Sat, 3 Jan 2009 22:06:31 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=Hx6-E_cA8v0A:10 a=7GqkK0gDHGQA:10 a=rREUrScshOl7G2h6aTFPgw==:17 a=i8g9UzFjCP8caUx5fMAA:9 a=DG_OyAMCobUTWw0jMYwA:7 a=hceSNXLmaj3sBEg9UIdxpRjoTPgA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 432410254; Sat, 03 Jan 2009 23:06:29 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Sat, 3 Jan 2009 23:08:50 +0100 User-Agent: KMail/1.9.7 References: <200901022123.57193.hselasky@c2i.net> <200901030028.38064.hselasky@c2i.net> <20090103.122938.-532678760.imp@bsdimp.com> In-Reply-To: <20090103.122938.-532678760.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901032308.51604.hselasky@c2i.net> Cc: FreeBSD-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device 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: Sat, 03 Jan 2009 22:06:35 -0000 On Saturday 03 January 2009, M. Warner Losh wrote: > In message: <200901030028.38064.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Friday 02 January 2009, M. Warner Losh wrote: > : > In message: <200901022123.57193.hselasky@c2i.net> > : > > : > Hans Petter Selasky writes: > : > : On Friday 02 January 2009, M. Warner Losh wrote: > : > : > >Number: 130122 > : > : > >Category: usb > : > : > >Synopsis: [hpsusb] DVD drive detects as 'da' device > : > : > >Confidential: no > : > : > >Severity: serious > : > : > >Priority: medium > : > : > >Responsible: freebsd-usb > : > : > >State: open > : > : > >Quarter: > : > : > >Keywords: > : > : > >Date-Required: > : > : > >Class: sw-bug > : > : > >Submitter-Id: current-users > : > : > >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 > : > : > >Closed-Date: > : > : > >Last-Modified: > : > : > >Originator: M. Warner Losh > : > : > >Release: FreeBSD 8.0-CURRENT amd64 > : > : > >Organization: > : > : > > : > : > FreeBSD > : > : > > : > : > >Environment: > : > : > > : > : > System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 > : > : > r185338:186501M: Fri Dec 26 17:56:39 MST 2008 > : > : > imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 > : > : > > : > : > >Description: > : > : > > : > : > My externeal usb DVD drive is showing up as 'da' rather than as > : > : > 'cd' when using usb2_storage_mass. When I load usb2_storage_ata it > : > : > shows up as a 'cd' device that's usable. mass should behave as > : > : > well as ata in this case, or it should detect that it can't get it > : > : > right and refuse to attach things. > : > : > > : > : > >How-To-Repeat: > : > : > > : > : > I loaded all the usb2 drivers at runtime: > : > : > > : > : > kldload usb2_controller_{e,o}hci > : > : > kldload usb2_sotrage_mass > : > : > > : > : > I then plugged in the drive. This is an external DVD drive. > : > : > > : > : > ehci0: mem 0xc0002000-0xc0002fff irq > : > : > 19 at device 19.2 on pci0 ehci0: memory enable already set. > : > : > Activate PA 0xc0002000 at VA 0xffffff00c0002000 > : > : > ehci0: [ITHREAD] > : > : > usbus0: EHCI version 1.0 > : > : > usbus0: on ehci0 > : > : > usbus0: 480Mbps High Speed USB v2.0 > : > : > ugen0.1: at usbus0 > : > : > ushub0: on > : > : > usbus0 ushub0: 8 ports with 8 removable, self powered > : > : > ohci0: mem 0xc0000000-0xc0000fff irq 19 > : > : > at device 19.0 on pci0 ohci0: memory enable already set. > : > : > Activate PA 0xc0000000 at VA 0xffffff00c0000000 > : > : > ohci0: [ITHREAD] > : > : > usbus1: on ohci0 > : > : > usbus1: 12Mbps Full Speed USB v1.0 > : > : > ugen1.1: at usbus1 > : > : > ushub1: on > : > : > usbus1 ushub1: 4 ports with 4 removable, self powered > : > : > ohci1: mem 0xc0001000-0xc0001fff irq 19 > : > : > at device 19.1 on pci0 ohci1: memory enable already set. > : > : > Activate PA 0xc0001000 at VA 0xffffff00c0001000 > : > : > ohci1: [ITHREAD] > : > : > usbus2: on ohci1 > : > : > usbus2: 12Mbps Full Speed USB v1.0 > : > : > ugen2.1: at usbus2 > : > : > ushub2: on > : > : > usbus2 ushub2: 4 ports with 4 removable, self powered > : > : > ugen0.2: at usbus0 > : > : > umass0: on usbus0 > : > : > umass0: SCSI over Bulk-Only; quirks = 0x0480 > : > : > umass0:2:0:-1: Attached to scbus2 > : > : > da0 at umass-sim0 bus 0 target 0 lun 0 > : > : > da0: < > Removable Direct Access SCSI-2 device > : > : > da0: 40.000MB/s transfers > : > : > da0: Attempt to query device size failed: NOT READY, Medium not > : > : > present > : > : > > : > : > It should be 'cd1'. > : > : > > : > : > >Fix: > : > : > > : > : > Unknown. > : > : > > : > : > >Release-Note: > : > : > >Audit-Trail: > : > : > >Unformatted: > : > : > : > : Hi, > : > : > : > : Maybe the AutoInstall CD detecter is interfering with your device. > : > > : > Hmmm... > : > > : > : Can you use "usbconfig" to dump the device and config descriptors of > : > : your CD device? > : > > : > How? > : > : Run "usbconfig -h". > > That doesn't tell me enough to know what you need to diagnose this > problem. > > : usbconfig -u xxx -a yyy dump_curr_config_desc > : usbconfig -u xxx -a yyy dump_device_desc > > How do I now the address? Is it the .Y in ugenX.Y? Yes. > > If so, here's what you requested: > Hi, I see that your CD-rom device is quirked to the wrong subclass (SCSI) in usb2/storage/umass2.c: #define UISUBCLASS_SFF8070I 5 #define UISUBCLASS_SCSI 6 bInterfaceSubClass = 0x0005 #define UIPROTO_MASS_BBB_OLD 2 /* Not in the spec anymore */ #define UIPROTO_MASS_BBB 80 /* 'P' for the Iomega Zip drive */ bInterfaceProtocol = 0x0050 Solution: Try removing or limiting the following quirk: {USB_VENDOR_MYSON, USB_PRODUCT_MYSON_HEDEN, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_INQUIRY | IGNORE_RESIDUE }, --HPS