From owner-freebsd-usb@FreeBSD.ORG Thu Jan 1 16:56:12 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 65CF91065674 for ; Thu, 1 Jan 2009 16:56:12 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id 848738FC16 for ; Thu, 1 Jan 2009 16:56:11 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ewy14 with SMTP id 14so7306251ewy.19 for ; Thu, 01 Jan 2009 08:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=ehnLBpaWoC3XiqP1cegTao6Q0lO0IGIR18/JxJAuU7Q=; b=ZUmj492M9HxpHJyYK8lPk/fOsLtrYR31D3M+6I5OdETz4QkSQ0htHJY+kxAxYCWcbK Ia+Ln4bGpBJGy+vJzsjKEtdABZgAtyIUsn99f2FOdbrZag9AynoaWHwsNLp+ZVE58zZS yg/IATnn0Wyh3GT6yJHLsiGrqloU371eOAThk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=YTEwNWpBUnpd27pKxT43PcPipzwJrqjnd7ucz6TIhLOLm5pFZfv7RNinob5uZcXsZr mMMd+Wo6NvmJyhSlevlTBlPQAdYJB5cewgfjgCy2zkmkA6M0jwn5FPJcOSj7OZkIOXAh LEFfoKeUV4PQZgiTaEaT5xTdl2IoVLxbZM+pg= Received: by 10.210.59.14 with SMTP id h14mr5647068eba.177.1230827544591; Thu, 01 Jan 2009 08:32:24 -0800 (PST) Received: from epsilon.lan (bl6-146-62.dsl.telepac.pt [82.155.146.62]) by mx.google.com with ESMTPS id t12sm12267712gvd.13.2009.01.01.08.32.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Jan 2009 08:32:23 -0800 (PST) Sender: Rui Paulo Message-Id: From: Rui Paulo To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Thu, 1 Jan 2009 16:32:21 +0000 X-Mailer: Apple Mail (2.930.3) Subject: New USB stack very noisy 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, 01 Jan 2009 16:56:12 -0000 So, I was playing with suspend/resume on my laptop to see how well did the new USB stack cope and I was happy that it survived. However... it's really noisy. n 1 16:22:19 phi kernel: uhci_interrupt: host controller halted Jan 1 16:22:19 phi kernel: uhci_dumpregs:696: usbus2 regs: cmd=0000, sts=0020, intr=0000, frnum=061f, flbase=1edae87c, sof=0040, portsc1=0080, portsc2=0080 Jan 1 16:22:19 phi kernel: uhci_dump_qh:769: QH(0xc2d7b680) at 0x0157b682: h_next=0x0157b602 e_next=0x00000001 Jan 1 16:22:19 phi kernel: uhci_dump_qh:769: QH(0xc2d7b600) at 0x0157b602: h_next=0x0157b582 e_next=0x00000001 Jan 1 16:22:19 phi kernel: uhci_dump_qh:769: QH(0xc2d7b580) at 0x0157b582: h_next=0x0157b502 e_next=0x00000001 Jan 1 16:22:19 phi kernel: uhci_dump_qh:769: QH(0xc2d7b500) at 0x0157b502: h_next=0x00000001 e_next=0x0157b480 Jan 1 16:22:19 phi kernel: umass0: at ushub4, port 5, addr 2 (disconnected) This is repeated almost a hundred times before a real suspend. We are probably missing some bits in the uhci_interrupt to cope with suspend. -- Rui Paulo From owner-freebsd-usb@FreeBSD.ORG Thu Jan 1 20:01:30 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 502D5106564A for ; Thu, 1 Jan 2009 20:01:30 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id AD1EC8FC0C for ; Thu, 1 Jan 2009 20:01:29 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=kPMooVZvsDLySq9gbsIA:9 a=Uz85m5k5N4Ro431HbdkA:7 a=cWBRI79b7lOkxNev6EWnMiift-oA:4 a=RuUFyYNDO3yO77lT0//NGWoIu/k=:19 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1178433567; Thu, 01 Jan 2009 21:01:27 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 1 Jan 2009 21:03:27 +0100 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901012103.28488.hselasky@c2i.net> Cc: Rui Paulo Subject: Re: New USB stack very noisy 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, 01 Jan 2009 20:01:30 -0000 On Thursday 01 January 2009, Rui Paulo wrote: > So, I was playing with suspend/resume on my laptop to see how well did > the new USB stack cope and I was happy that it survived. However... > it's really noisy. This was fixed before Christmas, but has not been committed to -current yet. Please checkout the USB2 code from my private SVN or P4. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jan 1 21:40:24 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 0AFAA106566B for ; Thu, 1 Jan 2009 21:40:24 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB3D8FC0C for ; Thu, 1 Jan 2009 21:40:23 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ewy14 with SMTP id 14so7384138ewy.19 for ; Thu, 01 Jan 2009 13:40:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=kNWHYzr+BSoUs2auzzoZ4IsvKaHqbbJkTAXHOXDLC7E=; b=k014QDfo2t5zz+QV80tD2jgtakxHwqCzOdXJsHeJGA9rw2HAPEKFq5LmyythUWRgDY A+j3OQGxB1YzH1+txMJSW1ohmMbRUIaoe26qZ4KRdJg8LTCJ6UA1REQsDAS07WoaeNbA 64o1uqjKo8Az2Qx6SMvtsWPY75hVIxSZxLIjE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=Va8oXf01XM7UV19Tp1Cey0OmDKdGuLYr79sOx0vfUNx1FcED2PY/IlQhk644TzNEFk 9UP4LNBhh9raBzokDhbyOR2Petew17oRrHg05SYPVzb4KmfTLFX46DtU/ykKv0lS86n2 q01zY/54Jd/HEvWoGZJIIdNYnf+/uyOxXTd54= Received: by 10.210.59.3 with SMTP id h3mr20234951eba.87.1230846022599; Thu, 01 Jan 2009 13:40:22 -0800 (PST) Received: from epsilon.lan (bl7-116-112.dsl.telepac.pt [85.240.116.112]) by mx.google.com with ESMTPS id i6sm22869026gve.2.2009.01.01.13.40.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Jan 2009 13:40:21 -0800 (PST) Sender: Rui Paulo Message-Id: From: Rui Paulo To: Hans Petter Selasky In-Reply-To: <200901012103.28488.hselasky@c2i.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Thu, 1 Jan 2009 21:40:19 +0000 References: <200901012103.28488.hselasky@c2i.net> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-usb@freebsd.org Subject: Re: New USB stack very noisy 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, 01 Jan 2009 21:40:24 -0000 On 1 Jan 2009, at 20:03, Hans Petter Selasky wrote: > On Thursday 01 January 2009, Rui Paulo wrote: >> So, I was playing with suspend/resume on my laptop to see how well >> did >> the new USB stack cope and I was happy that it survived. However... >> it's really noisy. > > This was fixed before Christmas, but has not been committed to - > current yet. > > Please checkout the USB2 code from my private SVN or P4. Since we are reaching a turning phase, we should be getting your code more often. Can your point of contact commit a newer version to the FreeBSD svn repo? -- Rui Paulo From owner-freebsd-usb@FreeBSD.ORG Thu Jan 1 22:27:35 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 A11B6106566B; Thu, 1 Jan 2009 22:27:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 0ADF08FC12; Thu, 1 Jan 2009 22:27:34 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=9sTGSQ2R_pzGwBvm9LgA:9 a=yLgrkg5pLvI-GH7wOToA:7 a=L8FYJs2_Y2WKCkEGzcAr-7FomyoA:4 a=RuUFyYNDO3yO77lT0//NGWoIu/k=:19 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1172160588; Thu, 01 Jan 2009 23:27:32 +0100 From: Hans Petter Selasky To: Rui Paulo Date: Thu, 1 Jan 2009 23:29:54 +0100 User-Agent: KMail/1.9.7 References: <200901012103.28488.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901012329.55389.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: New USB stack very noisy 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, 01 Jan 2009 22:27:35 -0000 On Thursday 01 January 2009, Rui Paulo wrote: > On 1 Jan 2009, at 20:03, Hans Petter Selasky wrote: > > On Thursday 01 January 2009, Rui Paulo wrote: > >> So, I was playing with suspend/resume on my laptop to see how well > >> did > >> the new USB stack cope and I was happy that it survived. However... > >> it's really noisy. > > > > This was fixed before Christmas, but has not been committed to - > > current yet. > > > > Please checkout the USB2 code from my private SVN or P4. > > Since we are reaching a turning phase, we should be getting your code > more often. > > Can your point of contact commit a newer version to the FreeBSD svn > repo? Yes, soon. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jan 2 19:30:05 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 347F11065678 for ; Fri, 2 Jan 2009 19:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0DD528FC14 for ; Fri, 2 Jan 2009 19:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n02JU4NI017671 for ; Fri, 2 Jan 2009 19:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n02JU4xf017668; Fri, 2 Jan 2009 19:30:04 GMT (envelope-from gnats) Resent-Date: Fri, 2 Jan 2009 19:30:04 GMT Resent-Message-Id: <200901021930.n02JU4xf017668@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "M. Warner Losh" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5618F106566C for ; Fri, 2 Jan 2009 19:23:34 +0000 (UTC) (envelope-from imp@lighthouse.bsdimp.com) Received: from lighthouse.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id ECD498FC08 for ; Fri, 2 Jan 2009 19:23:33 +0000 (UTC) (envelope-from imp@lighthouse.bsdimp.com) Received: from lighthouse.bsdimp.com (localhost [127.0.0.1]) by lighthouse.bsdimp.com (8.14.3/8.14.2) with ESMTP id n02JNiBh001423 for ; Fri, 2 Jan 2009 12:23:44 -0700 (MST) (envelope-from imp@lighthouse.bsdimp.com) Received: (from imp@localhost) by lighthouse.bsdimp.com (8.14.3/8.14.2/Submit) id n02JNhZC001422; Fri, 2 Jan 2009 12:23:43 -0700 (MST) (envelope-from imp) Message-Id: <200901021923.n02JNhZC001422@lighthouse.bsdimp.com> Date: Fri, 2 Jan 2009 12:23:43 -0700 (MST) From: "M. Warner Losh" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "M. Warner Losh" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2009 19:30:05 -0000 >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: From owner-freebsd-usb@FreeBSD.ORG Fri Jan 2 20:21:47 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 262AD106564A for ; Fri, 2 Jan 2009 20:21:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swip.net [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 5A1058FC12 for ; Fri, 2 Jan 2009 20:21:45 +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=j1Ww2fO4yRUlWlLxYb0A:9 a=TXXgmL_CWURA0NxOSZ8A:7 a=riLyVHN9YeNmgwidXxBA1Es1Ur8A:4 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1001968476; Fri, 02 Jan 2009 21:21:44 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, "M. Warner Losh" Date: Fri, 2 Jan 2009 21:23:55 +0100 User-Agent: KMail/1.9.7 References: <200901021923.n02JNhZC001422@lighthouse.bsdimp.com> In-Reply-To: <200901021923.n02JNhZC001422@lighthouse.bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901022123.57193.hselasky@c2i.net> Cc: FreeBSD-gnats-submit@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: Fri, 02 Jan 2009 20:21:47 -0000 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. Can you use "usbconfig" to dump the device and config descriptors of your CD device? You can also try: kldload usb2_quirk usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jan 2 21:30:10 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9E8A106567B for ; Fri, 2 Jan 2009 21:30:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 948E98FC0C for ; Fri, 2 Jan 2009 21:30:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n02LU9sk010021 for ; Fri, 2 Jan 2009 21:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n02LU9vA010018; Fri, 2 Jan 2009 21:30:09 GMT (envelope-from gnats) Date: Fri, 2 Jan 2009 21:30:09 GMT Message-Id: <200901022130.n02LU9vA010018@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: 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 Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2009 21:30:11 -0000 The following reply was made to PR usb/130122; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org, "M. Warner Losh" Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device Date: Fri, 2 Jan 2009 21:23:55 +0100 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. Can you use "usbconfig" to dump the device and config descriptors of your CD device? You can also try: kldload usb2_quirk usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jan 2 22:18:30 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 6509D106566B; Fri, 2 Jan 2009 22:18:30 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 126058FC1B; Fri, 2 Jan 2009 22:18:29 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n02MEnmr061372; Fri, 2 Jan 2009 15:14:49 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 02 Jan 2009 15:15:01 -0700 (MST) Message-Id: <20090102.151501.1649768486.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901022123.57193.hselasky@c2i.net> References: <200901021923.n02JNhZC001422@lighthouse.bsdimp.com> <200901022123.57193.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: Fri, 02 Jan 2009 22:18:30 -0000 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? : You can also try: : : kldload usb2_quirk : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 What the heck are these different fields? vid, pid, etc? Warner From owner-freebsd-usb@FreeBSD.ORG Fri Jan 2 22:20:03 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5A88106566C for ; Fri, 2 Jan 2009 22:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D16528FC08 for ; Fri, 2 Jan 2009 22:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n02MK3g0047296 for ; Fri, 2 Jan 2009 22:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n02MK3Po047295; Fri, 2 Jan 2009 22:20:03 GMT (envelope-from gnats) Date: Fri, 2 Jan 2009 22:20:03 GMT Message-Id: <200901022220.n02MK3Po047295@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "M. Warner Losh" Cc: 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 Reply-To: "M. Warner Losh" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2009 22:20:04 -0000 The following reply was made to PR usb/130122; it has been noted by GNATS. From: "M. Warner Losh" To: hselasky@c2i.net Cc: freebsd-usb@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device Date: Fri, 02 Jan 2009 15:15:01 -0700 (MST) 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? : You can also try: : : kldload usb2_quirk : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 What the heck are these different fields? vid, pid, etc? Warner From owner-freebsd-usb@FreeBSD.ORG Fri Jan 2 23:26:20 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 9BDF6106564A for ; Fri, 2 Jan 2009 23:26:20 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id 216B48FC34 for ; Fri, 2 Jan 2009 23:26:17 +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=5ART007dSIbhq16w3vAA:9 a=ANSDFySVBEpsGfVD070A:7 a=wEpaeYwqNUSurCAxVMr30opQVEQA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 123603483; Sat, 03 Jan 2009 00:26:16 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Sat, 3 Jan 2009 00:28:36 +0100 User-Agent: KMail/1.9.7 References: <200901021923.n02JNhZC001422@lighthouse.bsdimp.com> <200901022123.57193.hselasky@c2i.net> <20090102.151501.1649768486.imp@bsdimp.com> In-Reply-To: <20090102.151501.1649768486.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901030028.38064.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: Fri, 02 Jan 2009 23:26:21 -0000 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". usbconfig -u xxx -a yyy dump_curr_config_desc usbconfig -u xxx -a yyy dump_device_desc > > : You can also try: > : > : kldload usb2_quirk > : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 > > What the heck are these different fields? vid, pid, etc? Vendor ID, product ID, lower inclusive revision number, higher inclusive revision numer that is used when matching the quirk. --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 00:29:45 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 63B141065678; Sat, 3 Jan 2009 00:29:45 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 57F238FC18; Sat, 3 Jan 2009 00:29:44 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=4L9BnMgj3KUA:10 a=cBFiQvIGvVUA:10 a=rREUrScshOl7G2h6aTFPgw==:17 a=SjBeN4_YC_pDS71_kfAA:9 a=8XEbNagF1I1nWQk8RggA:7 a=Ou7brfGGFjLIAcoAIPUCOT_duPUA:4 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1174076918; Sat, 03 Jan 2009 01:29:42 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, "Simon L. Nielsen" Date: Sat, 3 Jan 2009 01:32:01 +0100 User-Agent: KMail/1.9.7 References: <20081230223057.BA8075C86@arthur.nitro.dk> In-Reply-To: <20081230223057.BA8075C86@arthur.nitro.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901030132.03840.hselasky@c2i.net> Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' 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 00:29:46 -0000 On Tuesday 30 December 2008, Simon L. Nielsen wrote: > >Number: 130066 > >Category: usb > >Synopsis: [newusb] Serial adaptor use fail with 'unsupported speed > > XXX' Confidential: no > >Severity: serious > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Dec 30 22:40:00 UTC 2008 > >Closed-Date: > >Last-Modified: > >Originator: Simon L. Nielsen > >Release: FreeBSD 8.0-CURRENT i386 > >Organization: > >Environment: > > System: FreeBSD eddie.nitro.dk 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Tue Dec > 30 22:28:33 CET 2008 > simon@eddie.nitro.dk:/FreeBSD/obj/FreeBSD/system-CURRENT/sys/EDDIE i386 > > >Description: > > When I try to use my USB to serial adaptors they fail when I try to > use the ports. cu and tip complain about problems setting the speed > to 9600 (or other speeds). > > Using the old USB stack the adaptors work fine. > > # cu -l /dev/cuaU0 > cu: unsupported speed 9600 > # cu -l /dev/cuaU1 > cu: unsupported speed 9600 > # cu -s 115200 -l /dev/cuaU1 > cu: unsupported speed 115200 > # tip ucom2 > tip: bad baud rate 9600 > > Debug info: > >From dmesg/boot: > > ugen0.2: at usbus0 > uplcom0: 1.10/3.00, addr 2> on usbus0 ugen6.2: at usbus6 > uplcom1: 0/0, rev 1.10/2.02, addr 2> on usbus6 ugen6.3: > at usbus6 > > > # usbconfig list > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.1: at usbus4, > cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen5.1: at > usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen6.1: Intel> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen7.1: root HUB Intel> at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: > at usbus0, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON ugen6.2: Prolific Technology> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > ugen6.3: > at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > > # usbconfig dump_device_desc > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen3.1: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0001 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.1: at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen7.1: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0001 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen0.2: at usbus0, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x067b > idProduct = 0x2303 > bcdDevice = 0x0300 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.2: at > usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0008 > idVendor = 0x067b > idProduct = 0x2303 > bcdDevice = 0x0202 > iManufacturer = 0x0000 > iProduct = 0x0000 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.3: > at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0008 > idVendor = 0x051d > idProduct = 0x0002 > bcdDevice = 0x0006 > iManufacturer = 0x0003 > iProduct = 0x0001 > iSerialNumber = 0x0002 > bNumConfigurations = 0x0001 > > >From my kernel config: > > # USB Support > device usb2_core # USB Core (required) > # USB Controllers > device usb2_controller # USB Controller (required) > device usb2_controller_uhci # UHCI PCI->USB interface > device usb2_controller_ohci # OHCI PCI->USB interface > device usb2_controller_ehci # EHCI PCI->USB interface (USB 2.0) > #device usb2_misc # USB Misc. (required) > #device usb2_misc_dbp # USB Double Bulk Pipe devices > # USB Input > device usb2_input # USB Input (required) > device usb2_input_hid # "Human Interface Devices" > device usb2_input_kbd # Keyboard > device usb2_input_ms # Mouse > # USB Storage > device usb2_storage > device usb2_storage_mass # Disks/Mass storage - Requires > scbus and da #device usb2_storage_rio # Diamond Rio 500 MP3 > player # USB WLAN > device usb2_wlan # USB Wlan (required) > device usb2_wlan_rum # Ralink Technology RT2501USB > wireless NICs device usb2_wlan_ral # Ralink Technology > RT2500USB wireless NICs device usb2_wlan_zyd # ZyDAS > zb1211/zb1211b wireless NICs # USB Scanners > device usb2_image # USB image (required by scanners) > device usb2_scanner # Scanners > # USB Serial devices > device usb2_serial # USB Serial (Required) > device usb2_serial_lpt # Printer > #device usb2_serial_3g # USB-based 3G modems (Option, > Huawei, Sierra) device usb2_serial_ark # Technologies > ARK3116 based serial adapters device usb2_serial_bsa # > Belkin F5U103 and compatible serial adapters device > usb2_serial_bser > device usb2_serial_chcom > device usb2_serial_cycom > device usb2_serial_foma > device usb2_serial_ftdi # For FTDI USB serial adapters > device usb2_serial_gensa # Generic Serial Adapters > device usb2_serial_ipaq # Some WinCE based devices > device usb2_serial_mct > device usb2_serial_modem # Generic USB modems > device usb2_serial_moscom > device usb2_serial_plcom # Prolific PL-2303 serial adapters > #device usb2_serial_slcom # SI Labs CP2101/CP2102 serial > adapters device usb2_serial_visor # Visor and Palm devices > device usb2_serial_vscom # USB serial support for DDI > pocket's PHS # USB Ethernet, requires miibus > device usb2_ethernet # USB Ethernet (required) > device usb2_ethernet_aue # ADMtek USB Ethernet > device usb2_ethernet_axe # ASIX Electronics USB Ethernet > device usb2_ethernet_cdce # Generic USB over Ethernet > device usb2_ethernet_cue # CATC USB Ethernet > device usb2_ethernet_kue # Kawasaki LSI USB Ethernet > device usb2_ethernet_rue # RealTek RTL8150 USB Ethernet > #device usb2_ethernet_dav # Davicom DM9601E USB > > >How-To-Repeat: > >Fix: > >Release-Note: > >Audit-Trail: > >Unformatted: > Hi, This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. I will be fixed shortly. --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 00:30:05 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B1E4106568A for ; Sat, 3 Jan 2009 00:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 48F318FC12 for ; Sat, 3 Jan 2009 00:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n030U4F0043418 for ; Sat, 3 Jan 2009 00:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n030U46r043411; Sat, 3 Jan 2009 00:30:04 GMT (envelope-from gnats) Date: Sat, 3 Jan 2009 00:30:04 GMT Message-Id: <200901030030.n030U46r043411@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 00:30:06 -0000 The following reply was made to PR usb/130066; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org, "Simon L. Nielsen" Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' Date: Sat, 3 Jan 2009 01:32:01 +0100 On Tuesday 30 December 2008, Simon L. Nielsen wrote: > >Number: 130066 > >Category: usb > >Synopsis: [newusb] Serial adaptor use fail with 'unsupported speed > > XXX' Confidential: no > >Severity: serious > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Dec 30 22:40:00 UTC 2008 > >Closed-Date: > >Last-Modified: > >Originator: Simon L. Nielsen > >Release: FreeBSD 8.0-CURRENT i386 > >Organization: > >Environment: > > System: FreeBSD eddie.nitro.dk 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Tue Dec > 30 22:28:33 CET 2008 > simon@eddie.nitro.dk:/FreeBSD/obj/FreeBSD/system-CURRENT/sys/EDDIE i386 > > >Description: > > When I try to use my USB to serial adaptors they fail when I try to > use the ports. cu and tip complain about problems setting the speed > to 9600 (or other speeds). > > Using the old USB stack the adaptors work fine. > > # cu -l /dev/cuaU0 > cu: unsupported speed 9600 > # cu -l /dev/cuaU1 > cu: unsupported speed 9600 > # cu -s 115200 -l /dev/cuaU1 > cu: unsupported speed 115200 > # tip ucom2 > tip: bad baud rate 9600 > > Debug info: > >From dmesg/boot: > > ugen0.2: at usbus0 > uplcom0: 1.10/3.00, addr 2> on usbus0 ugen6.2: at usbus6 > uplcom1: 0/0, rev 1.10/2.02, addr 2> on usbus6 ugen6.3: > at usbus6 > > > # usbconfig list > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.1: at usbus4, > cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen5.1: at > usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen6.1: Intel> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen7.1: root HUB Intel> at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: > at usbus0, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON ugen6.2: Prolific Technology> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > ugen6.3: > at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > > # usbconfig dump_device_desc > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen3.1: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0001 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.1: at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen7.1: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0001 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen0.2: at usbus0, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x067b > idProduct = 0x2303 > bcdDevice = 0x0300 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.2: at > usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0008 > idVendor = 0x067b > idProduct = 0x2303 > bcdDevice = 0x0202 > iManufacturer = 0x0000 > iProduct = 0x0000 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.3: > at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0008 > idVendor = 0x051d > idProduct = 0x0002 > bcdDevice = 0x0006 > iManufacturer = 0x0003 > iProduct = 0x0001 > iSerialNumber = 0x0002 > bNumConfigurations = 0x0001 > > >From my kernel config: > > # USB Support > device usb2_core # USB Core (required) > # USB Controllers > device usb2_controller # USB Controller (required) > device usb2_controller_uhci # UHCI PCI->USB interface > device usb2_controller_ohci # OHCI PCI->USB interface > device usb2_controller_ehci # EHCI PCI->USB interface (USB 2.0) > #device usb2_misc # USB Misc. (required) > #device usb2_misc_dbp # USB Double Bulk Pipe devices > # USB Input > device usb2_input # USB Input (required) > device usb2_input_hid # "Human Interface Devices" > device usb2_input_kbd # Keyboard > device usb2_input_ms # Mouse > # USB Storage > device usb2_storage > device usb2_storage_mass # Disks/Mass storage - Requires > scbus and da #device usb2_storage_rio # Diamond Rio 500 MP3 > player # USB WLAN > device usb2_wlan # USB Wlan (required) > device usb2_wlan_rum # Ralink Technology RT2501USB > wireless NICs device usb2_wlan_ral # Ralink Technology > RT2500USB wireless NICs device usb2_wlan_zyd # ZyDAS > zb1211/zb1211b wireless NICs # USB Scanners > device usb2_image # USB image (required by scanners) > device usb2_scanner # Scanners > # USB Serial devices > device usb2_serial # USB Serial (Required) > device usb2_serial_lpt # Printer > #device usb2_serial_3g # USB-based 3G modems (Option, > Huawei, Sierra) device usb2_serial_ark # Technologies > ARK3116 based serial adapters device usb2_serial_bsa # > Belkin F5U103 and compatible serial adapters device > usb2_serial_bser > device usb2_serial_chcom > device usb2_serial_cycom > device usb2_serial_foma > device usb2_serial_ftdi # For FTDI USB serial adapters > device usb2_serial_gensa # Generic Serial Adapters > device usb2_serial_ipaq # Some WinCE based devices > device usb2_serial_mct > device usb2_serial_modem # Generic USB modems > device usb2_serial_moscom > device usb2_serial_plcom # Prolific PL-2303 serial adapters > #device usb2_serial_slcom # SI Labs CP2101/CP2102 serial > adapters device usb2_serial_visor # Visor and Palm devices > device usb2_serial_vscom # USB serial support for DDI > pocket's PHS # USB Ethernet, requires miibus > device usb2_ethernet # USB Ethernet (required) > device usb2_ethernet_aue # ADMtek USB Ethernet > device usb2_ethernet_axe # ASIX Electronics USB Ethernet > device usb2_ethernet_cdce # Generic USB over Ethernet > device usb2_ethernet_cue # CATC USB Ethernet > device usb2_ethernet_kue # Kawasaki LSI USB Ethernet > device usb2_ethernet_rue # RealTek RTL8150 USB Ethernet > #device usb2_ethernet_dav # Davicom DM9601E USB > > >How-To-Repeat: > >Fix: > >Release-Note: > >Audit-Trail: > >Unformatted: > Hi, This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. I will be fixed shortly. --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 00:32:52 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 4BB5B106564A; Sat, 3 Jan 2009 00:32:52 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.swip.net [212.247.155.225]) by mx1.freebsd.org (Postfix) with ESMTP id 7CED78FC12; Sat, 3 Jan 2009 00:32:51 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6nre6YQGT9EA:10 a=4zEhLDbpA8gA:10 a=rREUrScshOl7G2h6aTFPgw==:17 a=6I5d2MoRAAAA:8 a=omLK7-E-YItEGoSfvgIA:9 a=QYyOR-T_iDu75XvMxOAA:7 a=khTrjdV9pUCKzrE73g90a2oZexMA:4 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe16.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 431540239; Sat, 03 Jan 2009 01:32:49 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 3 Jan 2009 01:35:09 +0100 User-Agent: KMail/1.9.7 References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> In-Reply-To: <200812311256.mBVCuLT9096976@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901030135.11461.hselasky@c2i.net> Cc: freebsd-bugs@freebsd.org, vwe@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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 00:32:52 -0000 On Wednesday 31 December 2008, vwe@freebsd.org wrote: > Synopsis: [newusb] usbconfig(8) fails with misleading error when run as a > normal user > > Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > Responsible-Changed-By: vwe > Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > Responsible-Changed-Why: > reassign > > http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 Hi, "usbconfig" will only show USB devices which the user has access to. What should be the correct display message when no devices are accessible due to innsufficient permissions? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 01:30:03 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8F1D1065670 for ; Sat, 3 Jan 2009 01:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CB55D8FC16 for ; Sat, 3 Jan 2009 01:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n031U3UF089862 for ; Sat, 3 Jan 2009 01:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n031U3wg089859; Sat, 3 Jan 2009 01:30:03 GMT (envelope-from gnats) Date: Sat, 3 Jan 2009 01:30:03 GMT Message-Id: <200901030130.n031U3wg089859@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 01:30:04 -0000 The following reply was made to PR usb/130024; it has been noted by GNATS. From: Hans Petter Selasky To: bug-followup@freebsd.org, garga@freebsd.org Cc: Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Date: Sat, 3 Jan 2009 00:54:21 +0100 Hi, Have you tried on different computers? Is the problem the same everwhere? Are you willing to sponsor one of those keyboards for debugging purpose? Could you attach to this PR dumps of the keyboard descriptors using the usbconfig dump commands? See "usbconfig -h" if you need help. For example: usbconfig -u xxx -a yyy dump_curr_config_desc dump_device_desc And: "dmesg | grep -i usb" --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 02:30:04 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB9EC106564A for ; Sat, 3 Jan 2009 02:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9AF858FC14 for ; Sat, 3 Jan 2009 02:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n032U3gR034415 for ; Sat, 3 Jan 2009 02:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n032U3BI034410; Sat, 3 Jan 2009 02:30:03 GMT (envelope-from gnats) Date: Sat, 3 Jan 2009 02:30:03 GMT Message-Id: <200901030230.n032U3BI034410@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: 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 Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 02:30:04 -0000 The following reply was made to PR usb/130122; it has been noted by GNATS. From: Hans Petter Selasky To: "M. Warner Losh" Cc: freebsd-usb@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device Date: Sat, 3 Jan 2009 00:28:36 +0100 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". usbconfig -u xxx -a yyy dump_curr_config_desc usbconfig -u xxx -a yyy dump_device_desc > > : You can also try: > : > : kldload usb2_quirk > : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 > > What the heck are these different fields? vid, pid, etc? Vendor ID, product ID, lower inclusive revision number, higher inclusive revision numer that is used when matching the quirk. --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 05:04:53 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 A122B106564A for ; Sat, 3 Jan 2009 05:04:53 +0000 (UTC) (envelope-from upakul@gmail.com) Received: from mail-bw0-f19.google.com (mail-bw0-f19.google.com [209.85.218.19]) by mx1.freebsd.org (Postfix) with ESMTP id E6F7E8FC13 for ; Sat, 3 Jan 2009 05:04:52 +0000 (UTC) (envelope-from upakul@gmail.com) Received: by bwz12 with SMTP id 12so17846401bwz.19 for ; Fri, 02 Jan 2009 21:04:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=z0G095rRu9FBH4Z8pPMmuvQitCABNggMIaxeYqBnzs4=; b=ODSg7J3USBx2yPr4TnxIEX64QHAM+Y1tkk5CmnRtxz4u7hciSZ8RZo21m4kAOX3hI7 SImciURCkMwglU3J+L7NNNHEfHyMCVtkqB6QdIA03G2is0MsOx/xiU3zSERxW8vOS0zi Ab1KEIf5kBZY6r54SkNkZSK7TcfOeJiiwol/w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=rudDAvoIB7BkE50xLSu3I8Aa9K6/KWmA9ZzDtfnBD6Gv8lLktfZDeAc3450UK+m1WL FCTBdwfxii65i+U9/kD7SS/VZT9UvQOJHPSNFdFJ/oSIuJompL4xEjKwp7smfKss6mmJ HLw/yyrk91OMCzSxag44Fym1YYKsH8GyTzTH4= Received: by 10.103.138.16 with SMTP id q16mr6609466mun.7.1230957445192; Fri, 02 Jan 2009 20:37:25 -0800 (PST) Received: by 10.103.226.12 with HTTP; Fri, 2 Jan 2009 20:37:25 -0800 (PST) Message-ID: Date: Sat, 3 Jan 2009 10:07:25 +0530 From: "Upakul Barkakaty" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: USB device set address failure 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 05:04:53 -0000 Hi all, I have been facing a Set address failure when I connect a USB to the host which is connected on the PCI-Express bus(connected through a Pci-to-Pcie bridge). When I try out the same thing on a USB host connected to a PCI bus, then it works fine. Heres a snapshot of the log: usbd_new_device bus=0x60a1ccc8 port=1 depth=1 speed=1 [malloc] size = 92 [malloc] sysbrk returned p = 0x60b1ede0 ]malloc[ usbd_setup_pipe: dev=0x60b1ede8 iface=0x00000000 ep=0x60b1ee0c pipe=0x60b1edec [malloc] size = 84 [malloc] sysbrk returned p = 0x60b1ee48 ]malloc[ usb_allocmem: large alloc 6144 usb_block_allocmem: size=8192 align=16 usb_block_allocmem: no free [malloc] size = 48 [malloc] sysbrk returned p = 0x60b1eea8 ]malloc[ [malloc] size = 48 [malloc] sysbrk returned p = 0x60b1eee0 ]malloc[ usb_allocmem: use frag=0xa0695f00 size=8 usbd_alloc_xfer() = 0x60a32548 usbd_transfer: xfer=0x60a32548, flags=2, pipe=0x60b1ee50, running=0 usb_insert_transfer: pipe=0x60b1ee50 running=0 timeout=80000 usb_event_thread: woke up usb_discover usb_event_thread: woke up usb_discover usb_add_task: task=0x60a325a0 usb_task_thread: woke up task=0x60a325a0 usb_schedsoftintr: polling=0 usb_transfer_complete: pipe=0x60b1ee50 xfer=0x60a32548 status=15 actlen=0 usb_transfer_complete: repeat=0 new head=0x00000000 usbd_start_next: pipe=0x60b1ee50, xfer=0x00000000 usbd_free_xfer: 0x60a32548 ****Here**** usbd_new_device: setting device address=2 usb_new_device: set address 2 failed usbd_remove_device: 0x60b1ede8 usbd_ar_pipe: pipe=0x60b1ee50 [free] p = 0x60b1ee48 *p = 0x60b1ee48 size = 84 ]free[ [free] p = 0x60b1ede0 *p = 0x60b1ede0 size = 92 ]free[ uhub_explore: usb_new_device failed, error=SET_ADDR_FAILED uhub0: device problem, disabling port 1 ******** usbd_alloc_xfer() = 0x60a32548 usbd_transfer: xfer=0x60a32548, flags=2, pipe=0x60a31848, running=0 usb_insert_transfer: pipe=0x60a31848 running=0 timeout=80000 usb_transfer_complete: pipe=0x60a31848 xfer=0x60a32548 status=0 actlen=0 usb_transfer_complete: repeat=0 new head=0x00000000 usbd_start_next: pipe=0x60a31848, xfer=0x00000000 usbd_free_xfer: 0x60a32548 uhub_explore dev=0x60a317e0 addr=1 usbd_alloc_xfer() = 0x60a32548 usbd_transfer: xfer=0x60a32548, flags=2, pipe=0x60a31848, running=0 usb_allocmem: use frag=0xa0695ec0 size=4 usb_insert_transfer: pipe=0x60a31848 running=0 timeout=80000 usb_transfer_complete: pipe=0x60a31848 xfer=0x60a32548 status=0 actlen=4 usb_freemem: frag=0xa0695ec0 usb_transfer_complete: repeat=0 new head=0x00000000 usbd_start_next: pipe=0x60a31848, xfer=0x00000000 usbd_free_xfer: 0x60a32548 uhub_explore: uhub0 port 1 status 0x0301 0x0000 uhub_explore: port=1 !C_CONNECT_STATUS usb_event_thread: woke up usb_discover Any help in this regard will be appreciated. -- Regards, Upakul Barkakaty From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 06:08:41 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 A32AA1065672; Sat, 3 Jan 2009 06:08:41 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 489DF8FC17; Sat, 3 Jan 2009 06:08:41 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n0365s5J064780; Fri, 2 Jan 2009 23:05:54 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 02 Jan 2009 23:06:05 -0700 (MST) Message-Id: <20090102.230605.-4053934.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901030132.03840.hselasky@c2i.net> References: <20081230223057.BA8075C86@arthur.nitro.dk> <200901030132.03840.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: FreeBSD-gnats-submit@FreeBSD.org, simon@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' 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 06:08:41 -0000 In message: <200901030132.03840.hselasky@c2i.net> Hans Petter Selasky writes: : This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. I think I fixed this in usb1 not too long ago. It was introduced in the mpsafetty conversion... Well, exposed might be a better word... : I will be fixed shortly. I'm sorry to hear that... Warner From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 06:10:02 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8CC9106566B for ; Sat, 3 Jan 2009 06:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D89EC8FC18 for ; Sat, 3 Jan 2009 06:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n036A2vK005455 for ; Sat, 3 Jan 2009 06:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n036A2bR005454; Sat, 3 Jan 2009 06:10:02 GMT (envelope-from gnats) Date: Sat, 3 Jan 2009 06:10:02 GMT Message-Id: <200901030610.n036A2bR005454@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "M. Warner Losh" Cc: Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "M. Warner Losh" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 06:10:03 -0000 The following reply was made to PR usb/130066; it has been noted by GNATS. From: "M. Warner Losh" To: hselasky@c2i.net Cc: freebsd-usb@FreeBSD.org, simon@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' Date: Fri, 02 Jan 2009 23:06:05 -0700 (MST) In message: <200901030132.03840.hselasky@c2i.net> Hans Petter Selasky writes: : This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. I think I fixed this in usb1 not too long ago. It was introduced in the mpsafetty conversion... Well, exposed might be a better word... : I will be fixed shortly. I'm sorry to hear that... Warner From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 11:00:44 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 C45B7106566B; Sat, 3 Jan 2009 11:00:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.tele2.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 033818FC25; Sat, 3 Jan 2009 11:00:43 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=4L9BnMgj3KUA:10 a=cBFiQvIGvVUA:10 a=rREUrScshOl7G2h6aTFPgw==:17 a=dsybzxEG-tov6wUqd7gA:9 a=A8EdcjhiGzfVKSpE86GIUihx6hsA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1002136522; Sat, 03 Jan 2009 12:00:41 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Sat, 3 Jan 2009 12:03:00 +0100 User-Agent: KMail/1.9.7 References: <20081230223057.BA8075C86@arthur.nitro.dk> <200901030132.03840.hselasky@c2i.net> <20090102.230605.-4053934.imp@bsdimp.com> In-Reply-To: <20090102.230605.-4053934.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901031203.01803.hselasky@c2i.net> Cc: FreeBSD-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' 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 11:00:45 -0000 On Saturday 03 January 2009, M. Warner Losh wrote: > In message: <200901030132.03840.hselasky@c2i.net> > > Hans Petter Selasky writes: > : This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. > > I think I fixed this in usb1 not too long ago. It was introduced in > the mpsafetty conversion... Well, exposed might be a better word... > > : I will be fixed shortly. > > I'm sorry to hear that... > > Warner s/I/it It will be fixed shortly. --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 11:10:03 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE956106566C for ; Sat, 3 Jan 2009 11:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BCD408FC16 for ; Sat, 3 Jan 2009 11:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n03BA3Xu063451 for ; Sat, 3 Jan 2009 11:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n03BA33s063450; Sat, 3 Jan 2009 11:10:03 GMT (envelope-from gnats) Date: Sat, 3 Jan 2009 11:10:03 GMT Message-Id: <200901031110.n03BA33s063450@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 11:10:04 -0000 The following reply was made to PR usb/130066; it has been noted by GNATS. From: Hans Petter Selasky To: "M. Warner Losh" Cc: freebsd-usb@freebsd.org, simon@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' Date: Sat, 3 Jan 2009 12:03:00 +0100 On Saturday 03 January 2009, M. Warner Losh wrote: > In message: <200901030132.03840.hselasky@c2i.net> > > Hans Petter Selasky writes: > : This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. > > I think I fixed this in usb1 not too long ago. It was introduced in > the mpsafetty conversion... Well, exposed might be a better word... > > : I will be fixed shortly. > > I'm sorry to hear that... > > Warner s/I/it It will be fixed shortly. --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 18:59:03 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 9ED5E1065678; Sat, 3 Jan 2009 18:59:03 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id 53D598FC1E; Sat, 3 Jan 2009 18:59:02 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (Q7da8.q.ppp-pool.de [89.53.125.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id A586512883F; Sat, 3 Jan 2009 19:34:45 +0100 (CET) Received: from [192.168.16.4] (dardanos.sz.vwsoft.com [192.168.16.4]) by mail.vtec.ipme.de (Postfix) with ESMTP id 59D4B2E916; Sat, 3 Jan 2009 19:34:41 +0100 (CET) Message-ID: <495FAFC0.1020801@vwsoft.com> Date: Sat, 03 Jan 2009 19:34:40 +0100 From: Volker User-Agent: Thunderbird 2.0.0.18 (X11/20081203) MIME-Version: 1.0 To: Hans Petter Selasky References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901030135.11461.hselasky@c2i.net> In-Reply-To: <200901030135.11461.hselasky@c2i.net> X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit MailScanner-NULL-Check: 1231612482.57178@Pdmty8/WyTseLWvizPBs1w X-MailScanner-ID: 59D4B2E916.629D1 X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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 18:59:04 -0000 On 01/03/09 01:35, Hans Petter Selasky wrote: > On Wednesday 31 December 2008, vwe@freebsd.org wrote: >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as a >> normal user >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb >> Responsible-Changed-By: vwe >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 >> Responsible-Changed-Why: >> reassign >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > > Hi, > > "usbconfig" will only show USB devices which the user has access to. > > What should be the correct display message when no devices are accessible due > to innsufficient permissions? > > --HPS > Hans, what about "access denied" or "insufficient privileges"? Someone might have a better idea but everything should be better than silently refusing to do anything. Volker From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 18:59:04 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 9F4BA1065679; Sat, 3 Jan 2009 18:59:03 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id 53DBE8FC1F; Sat, 3 Jan 2009 18:59:02 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (Q7da8.q.ppp-pool.de [89.53.125.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id CBB2A12883F; Sat, 3 Jan 2009 19:35:16 +0100 (CET) Received: from [192.168.16.4] (dardanos.sz.vwsoft.com [192.168.16.4]) by mail.vtec.ipme.de (Postfix) with ESMTP id 519BF2E91E; Sat, 3 Jan 2009 19:35:10 +0100 (CET) Message-ID: <495FAFDD.2050206@vwsoft.com> Date: Sat, 03 Jan 2009 19:35:09 +0100 From: Volker User-Agent: Thunderbird 2.0.0.18 (X11/20081203) MIME-Version: 1.0 To: Hans Petter Selasky References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901030135.11461.hselasky@c2i.net> In-Reply-To: <200901030135.11461.hselasky@c2i.net> X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit MailScanner-NULL-Check: 1231612514.25659@ShyCTLRCiuQNC1Ldzshqlw X-MailScanner-ID: 519BF2E91E.7B11E X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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 18:59:04 -0000 On 01/03/09 01:35, Hans Petter Selasky wrote: > On Wednesday 31 December 2008, vwe@freebsd.org wrote: >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as a >> normal user >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb >> Responsible-Changed-By: vwe >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 >> Responsible-Changed-Why: >> reassign >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > > Hi, > > "usbconfig" will only show USB devices which the user has access to. > > What should be the correct display message when no devices are accessible due > to innsufficient permissions? > > --HPS > Hans, what about "access denied" or "insufficient privileges"? Someone might have a better idea but everything should be better than silently refusing to do anything. Volker From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 19:32:24 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 0EA8C106566C; Sat, 3 Jan 2009 19:32:24 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id AF59D8FC13; Sat, 3 Jan 2009 19:32:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n03JTPb2078619; Sat, 3 Jan 2009 12:29:25 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 03 Jan 2009 12:29:38 -0700 (MST) Message-Id: <20090103.122938.-532678760.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901030028.38064.hselasky@c2i.net> References: <200901022123.57193.hselasky@c2i.net> <20090102.151501.1649768486.imp@bsdimp.com> <200901030028.38064.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 19:32:24 -0000 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? If so, here's what you requested: ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0004 bmAttributes = 0x00c0 bMaxPower = 0x0005 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0005 bInterfaceProtocol = 0x0050 iInterface = 0x0005 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0003 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x04cf idProduct = 0x8818 bcdDevice = 0xb007 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <100> bNumConfigurations = 0x0001 : > : > : You can also try: : > : : > : kldload usb2_quirk : > : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 : > : > What the heck are these different fields? vid, pid, etc? : : Vendor ID, product ID, lower inclusive revision number, higher inclusive : revision numer that is used when matching the quirk. I'll give it a try... Warner From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 19:40:03 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29DDB106564A for ; Sat, 3 Jan 2009 19:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 17DE68FC13 for ; Sat, 3 Jan 2009 19:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n03Je2ZQ045249 for ; Sat, 3 Jan 2009 19:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n03Je2EN045248; Sat, 3 Jan 2009 19:40:02 GMT (envelope-from gnats) Date: Sat, 3 Jan 2009 19:40:02 GMT Message-Id: <200901031940.n03Je2EN045248@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "M. Warner Losh" Cc: 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 Reply-To: "M. Warner Losh" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 19:40:03 -0000 The following reply was made to PR usb/130122; it has been noted by GNATS. From: "M. Warner Losh" To: hselasky@c2i.net Cc: freebsd-usb@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device Date: Sat, 03 Jan 2009 12:29:38 -0700 (MST) 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? If so, here's what you requested: ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0004 bmAttributes = 0x00c0 bMaxPower = 0x0005 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0005 bInterfaceProtocol = 0x0050 iInterface = 0x0005 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0003 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x04cf idProduct = 0x8818 bcdDevice = 0xb007 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <100> bNumConfigurations = 0x0001 : > : > : You can also try: : > : : > : kldload usb2_quirk : > : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 : > : > What the heck are these different fields? vid, pid, etc? : : Vendor ID, product ID, lower inclusive revision number, higher inclusive : revision numer that is used when matching the quirk. I'll give it a try... Warner From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 20:42:45 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 7555C106564A for ; Sat, 3 Jan 2009 20:42:45 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id 04AE68FC08 for ; Sat, 3 Jan 2009 20:42:44 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so1187867ugs.39 for ; Sat, 03 Jan 2009 12:42:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=igvFWWdEEugLmyCRMkr9/nvwJ8GLBvfGVuyjxDd0BpE=; b=QuAMmtlnEwXmwYdO4b1dRYYQKoF0QBBs5RTTD8ABy+2xkUpPZefseRGOrdnDoScoHA SCy8SRFAGZn/fA8RX7XxO/quQcpl0oSz2UoyOWyf47cz80jo0T1m64eJE1tSNiB5PQ/z QvwRmsa9LIym5wIYBdIlXClJs6XtyqoP3LJ+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=S3nvAK64DTBArAIBQHtUUPNpa5qQYNB1B7CheUZvobPPVNBCo9MRsXCRQfYrd88WQ8 u1FJ6RE+Hxa2bS4fIkypObhsxTYKL2IWhgzg9wUkZ25Ib+CuKyPFnb2nQ8zmtcK+Uk5g tiQudUJax0MRMywvcsaTHpb2TvrrcQSH/hYUA= Received: by 10.67.100.10 with SMTP id c10mr12037217ugm.2.1231013536823; Sat, 03 Jan 2009 12:12:16 -0800 (PST) Received: by 10.67.88.9 with HTTP; Sat, 3 Jan 2009 12:12:16 -0800 (PST) Message-ID: <7d6fde3d0901031212o6059edccwfd72535de5b0c3f1@mail.gmail.com> Date: Sat, 3 Jan 2009 12:12:16 -0800 From: "Garrett Cooper" To: Volker In-Reply-To: <495FAFDD.2050206@vwsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901030135.11461.hselasky@c2i.net> <495FAFDD.2050206@vwsoft.com> Cc: freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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 20:42:45 -0000 On Sat, Jan 3, 2009 at 10:35 AM, Volker wrote: > On 01/03/09 01:35, Hans Petter Selasky wrote: >> On Wednesday 31 December 2008, vwe@freebsd.org wrote: >>> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as a >>> normal user >>> >>> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb >>> Responsible-Changed-By: vwe >>> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 >>> Responsible-Changed-Why: >>> reassign >>> >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 >> >> Hi, >> >> "usbconfig" will only show USB devices which the user has access to. >> >> What should be the correct display message when no devices are accessible due >> to innsufficient permissions? >> >> --HPS >> > > Hans, > > what about "access denied" or "insufficient privileges"? > > Someone might have a better idea but everything should be better than > silently refusing to do anything. > > Volker Why not just simplify the problem by printing out the strerror(3) message for the actual issue -- or was that the misleading error message? Cheers, -Garrett 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 From owner-freebsd-usb@FreeBSD.ORG Sat Jan 3 23:10:06 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C1B8106566B for ; Sat, 3 Jan 2009 23:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2A6AC8FC14 for ; Sat, 3 Jan 2009 23:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n03NA5Aw001637 for ; Sat, 3 Jan 2009 23:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n03NA5Z4001634; Sat, 3 Jan 2009 23:10:05 GMT (envelope-from gnats) Date: Sat, 3 Jan 2009 23:10:05 GMT Message-Id: <200901032310.n03NA5Z4001634@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: 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 Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 23:10:06 -0000 The following reply was made to PR usb/130122; it has been noted by GNATS. From: Hans Petter Selasky To: "M. Warner Losh" Cc: freebsd-usb@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device Date: Sat, 3 Jan 2009 23:08:50 +0100 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