From owner-freebsd-usb@FreeBSD.ORG Sun Mar 15 01:08:29 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 439021065672 for ; Sun, 15 Mar 2009 01:08:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id CFE038FC15 for ; Sun, 15 Mar 2009 01:08:28 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=dgE-iOzW_JR8m5ilrhsA:9 a=ANJf4ybA4_DmkeChHlJ6vYgpy5UA:4 a=LY0hPdMaydYA:10 Received: from [193.217.167.198] (account mc467741@c2i.net HELO [10.0.0.188]) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1208548810; Sun, 15 Mar 2009 02:08:26 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 15 Mar 2009 02:10:58 +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: <200903150210.58509.hselasky@c2i.net> Cc: Alexander Best Subject: Re: problem with usb printer 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: Sun, 15 Mar 2009 01:08:29 -0000 On Saturday 14 March 2009, Alexander Best wrote: > Alexander Best I think there has been a regression. Can you try the following patch: http://perforce.freebsd.org/chv.cgi?CH=159225 --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 15 01:55:07 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 918411065670 for ; Sun, 15 Mar 2009 01:55:07 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out3.uni-muenster.de (ZIVM-OUT3.UNI-MUENSTER.DE [128.176.192.18]) by mx1.freebsd.org (Postfix) with ESMTP id D5D8B8FC13 for ; Sun, 15 Mar 2009 01:55:06 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.38,364,1233529200"; d="scan'208";a="1708870" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER03.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay3.uni-muenster.de with ESMTP; 15 Mar 2009 02:55:05 +0100 Received: by ZIVMAILUSER03.UNI-MUENSTER.DE (Postfix, from userid 149459) id 1D0391B075A; Sun, 15 Mar 2009 02:55:04 +0100 (CET) Date: Sun, 15 Mar 2009 02:55:04 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: In-Reply-To: <200903150210.58509.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: problem with usb printer 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: Sun, 15 Mar 2009 01:55:07 -0000 i recompiled my kernel with the p4-files, but still nothing get's printed. this is what i get when attaching the device: ugen0.3: at usbus0 ulpt_probe:472: ulpt_attach:498: sc=0xc5a4c900 ulpt0: on usbus0 ulpt_attach:538: setting alternate config number: 0 ulpt0: using bi-directional mode and this when i try to print something: ulpt_reset:164: ulpt_write_callback:203: state=0x0 ulpt_write_callback:203: state=0x1 ulpt_write_callback:203: state=0x1 i also enabled debugging output in the cups config file, but that didn't reveal any errors. right now i'm trying to build a kernel with the old usb stack to see if the problem get's solved. if the problem then still exists cups must be causing the problems. unfortunately building the kernel with the old usb stack fails: /usr/src/sys/legacy/dev/usb/ehci.c:84:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci.c:85:30: error: dev/usb/usbdivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci.c:86:29: error: dev/usb/usb_mem.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci.c:87:32: error: dev/usb/usb_quirks.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci.c:89:29: error: dev/usb/ehcireg.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci.c:90:29: error: dev/usb/ehcivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci_ddb.c:19:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci_ddb.c:20:30: error: dev/usb/usbdivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci_ddb.c:22:29: error: dev/usb/ehcireg.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci_ddb.c:23:29: error: dev/usb/ehcivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci_pci.c:74:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci_pci.c:75:30: error: dev/usb/usbdivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci_pci.c:76:29: error: dev/usb/usb_mem.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci_pci.c:78:29: error: dev/usb/ehcireg.h: No such file or directory /usr/src/sys/legacy/dev/usb/ehci_pci.c:79:29: error: dev/usb/ehcivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/hid.c:50:25: error: dev/usb/hid.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhci.c:82:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhci.c:83:30: error: dev/usb/usbdivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhci.c:84:29: error: dev/usb/usb_mem.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhci.c:85:32: error: dev/usb/usb_quirks.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhci.c:87:29: error: dev/usb/uhcireg.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhci.c:88:29: error: dev/usb/uhcivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhci_pci.c:69:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhci_pci.c:70:30: error: dev/usb/usbdivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhci_pci.c:71:29: error: dev/usb/usb_mem.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhci_pci.c:73:29: error: dev/usb/uhcireg.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhci_pci.c:74:29: error: dev/usb/uhcivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhub.c:60:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhub.c:61:32: error: dev/usb/usbdi_util.h: No such file or directory /usr/src/sys/legacy/dev/usb/uhub.c:62:30: error: dev/usb/usbdivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/ukbd.c:64:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/ukbd.c:65:32: error: dev/usb/usbdi_util.h: No such file or directory /usr/src/sys/legacy/dev/usb/ukbd.c:67:32: error: dev/usb/usb_quirks.h: No such file or directory /usr/src/sys/legacy/dev/usb/ukbd.c:68:25: error: dev/usb/hid.h: No such file or directory /usr/src/sys/legacy/dev/usb/ulpt.c:63:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/ulpt.c:64:32: error: dev/usb/usbdi_util.h: No such file or directory /usr/src/sys/legacy/dev/usb/ulpt.c:66:32: error: dev/usb/usb_quirks.h: No such file or directory /usr/src/sys/legacy/dev/usb/umass.c:119:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/umass.c:120:32: error: dev/usb/usbdi_util.h: No such file or directory /usr/src/sys/legacy/dev/usb/ums.c:64:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/ums.c:65:32: error: dev/usb/usbdi_util.h: No such file or directory /usr/src/sys/legacy/dev/usb/ums.c:67:32: error: dev/usb/usb_quirks.h: No such file or directory /usr/src/sys/legacy/dev/usb/ums.c:68:25: error: dev/usb/hid.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb.c:78:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb.c:79:32: error: dev/usb/usbdi_util.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb.c:92:30: error: dev/usb/usbdivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb.c:93:32: error: dev/usb/usb_quirks.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb_ethersubr.c:70:35: error: dev/usb/usb_ethersubr.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb_mem.c:68:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb_mem.c:69:55: error: dev/usb/usbdivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb_mem.c:70:29: error: dev/usb/usb_mem.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb_quirks.c:49:32: error: dev/usb/usb_quirks.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb_subr.c:68:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb_subr.c:69:32: error: dev/usb/usbdi_util.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb_subr.c:70:30: error: dev/usb/usbdivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/usb_subr.c:72:32: error: dev/usb/usb_quirks.h: No such file or directory /usr/src/sys/legacy/dev/usb/usbdi.c:57:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/usbdi.c:58:32: error: dev/usb/usbdi_util.h: No such file or directory /usr/src/sys/legacy/dev/usb/usbdi.c:59:30: error: dev/usb/usbdivar.h: No such file or directory /usr/src/sys/legacy/dev/usb/usbdi.c:60:29: error: dev/usb/usb_mem.h: No such file or directory /usr/src/sys/legacy/dev/usb/usbdi.c:61:32: error: dev/usb/usb_quirks.h: No such file or directory /usr/src/sys/legacy/dev/usb/usbdi_util.c:53:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/legacy/dev/usb/usbdi_util.c:54:32: error: dev/usb/usbdi_util.h: No such file or directory /usr/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c:50:27: error: dev/usb/usbdi.h: No such file or directory /usr/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c:51:32: error: dev/usb/usbdi_util.h: No such file or directory /usr/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c:52:30: error: dev/usb/usbdivar.h: No such file or directory mkdep: compile failed *** Error code 1 alex Hans Petter Selasky schrieb am 2009-03-15: > On Saturday 14 March 2009, Alexander Best wrote: > > Alexander Best > I think there has been a regression. Can you try the following patch: > http://perforce.freebsd.org/chv.cgi?CH=159225 > --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 15 03:36: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 38BCC1065670 for ; Sun, 15 Mar 2009 03:36:47 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id EA3408FC12 for ; Sun, 15 Mar 2009 03:36:46 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id CB68710011; Sun, 15 Mar 2009 16:36:45 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2j5S9mkhSFb0; Sun, 15 Mar 2009 16:36:42 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Sun, 15 Mar 2009 16:36:42 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id A58B21142F; Sun, 15 Mar 2009 16:36:41 +1300 (NZDT) Date: Sat, 14 Mar 2009 20:36:41 -0700 From: Andrew Thompson To: Alexander Best Message-ID: <20090315033641.GD24680@citylink.fud.org.nz> References: <200903150210.58509.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-usb@freebsd.org Subject: Re: problem with usb printer 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: Sun, 15 Mar 2009 03:36:47 -0000 On Sun, Mar 15, 2009 at 02:55:04AM +0100, Alexander Best wrote: > i recompiled my kernel with the p4-files, but still nothing get's printed. > > this is what i get when attaching the device: > > ugen0.3: at usbus0 > ulpt_probe:472: > ulpt_attach:498: sc=0xc5a4c900 > ulpt0: 1.10/1.00, addr 3> on usbus0 > ulpt_attach:538: setting alternate config number: 0 > ulpt0: using bi-directional mode > > and this when i try to print something: > > ulpt_reset:164: > ulpt_write_callback:203: state=0x0 > ulpt_write_callback:203: state=0x1 > ulpt_write_callback:203: state=0x1 > > i also enabled debugging output in the cups config file, but that didn't > reveal any errors. > > right now i'm trying to build a kernel with the old usb stack to see if the > problem get's solved. if the problem then still exists cups must be causing > the problems. unfortunately building the kernel with the old usb stack fails: > > /usr/src/sys/legacy/dev/usb/ehci.c:84:27: error: dev/usb/usbdi.h: No such file > or directory You need to add makeoptions WITH_LEGACY to your kernel config so it can find the old usb headers. Andrew From owner-freebsd-usb@FreeBSD.ORG Sun Mar 15 08:36:21 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 1AEFA106564A for ; Sun, 15 Mar 2009 08:36:21 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.tele2.se [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id A703E8FC0A for ; Sun, 15 Mar 2009 08:36:20 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=_fpiVutBunVaYO_HQPwA:9 a=TOxRJw_wLcMjgmGd0fmh9PPGiWMA:4 a=LY0hPdMaydYA:10 Received: from [193.217.167.198] (account mc467741@c2i.net HELO [10.0.0.188]) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1040965085; Sun, 15 Mar 2009 09:36:18 +0100 From: Hans Petter Selasky To: Alexander Best Date: Sun, 15 Mar 2009 09:38:49 +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: <200903150938.49921.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: problem with usb printer 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: Sun, 15 Mar 2009 08:36:21 -0000 On Sunday 15 March 2009, Alexander Best wrote: > i recompiled my kernel with the p4-files, but still nothing get's printed. > > this is what i get when attaching the device: > > ugen0.3: at usbus0 > ulpt_probe:472: > ulpt_attach:498: sc=0xc5a4c900 > ulpt0: 1.10/1.00, addr 3> on usbus0 > ulpt_attach:538: setting alternate config number: 0 > ulpt0: using bi-directional mode > > and this when i try to print something: > > ulpt_reset:164: > ulpt_write_callback:203: state=0x0 > ulpt_write_callback:203: state=0x1 > ulpt_write_callback:203: state=0x1 Looks good. Try also: sysctl hw.usb2.dev.debug=15 While printing and see if there is a drain in the end! > > i also enabled debugging output in the cups config file, but that didn't > reveal any errors. > > right now i'm trying to build a kernel with the old usb stack to see if the > problem get's solved. if the problem then still exists cups must be causing > the problems. unfortunately building the kernel with the old usb stack > fails: Did it work before? The only thing I can imagine is that the flushing/drain mechanism is not working, after that the last byte has been written. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 15 10:37: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 7636E106564A for ; Sun, 15 Mar 2009 10:37:12 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id 0AC558FC14 for ; Sun, 15 Mar 2009 10:37:11 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=MYlu1DWrYlndQWyXzUgA:9 a=iOEbBh1CyGyju7zyJ-kA:7 a=VCQjf5nsC6UhZLRTJiF-E-rdf08A:4 a=50e4U0PicR4A:10 Received: from [193.217.167.198] (account mc467741@c2i.net HELO [10.0.0.188]) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1208658400; Sun, 15 Mar 2009 11:37:10 +0100 From: Hans Petter Selasky To: Alexander Best Date: Sun, 15 Mar 2009 11:39:41 +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: <200903151139.42508.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: problem with usb printer 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: Sun, 15 Mar 2009 10:37:12 -0000 Hi, I have been able to reproduce the issue over here on an USB printer. Try this patch in addition to the previous ones: http://perforce.freebsd.org/chv.cgi?CH=159241 --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 15 18:26:46 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 361C0106566B for ; Sun, 15 Mar 2009 18:26:46 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out2.uni-muenster.de (ZIVM-OUT2.UNI-MUENSTER.DE [128.176.192.9]) by mx1.freebsd.org (Postfix) with ESMTP id BE9158FC20 for ; Sun, 15 Mar 2009 18:26:45 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.38,367,1233529200"; d="scan'208";a="211929607" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER03.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay2.uni-muenster.de with ESMTP; 15 Mar 2009 19:26:43 +0100 Received: by ZIVMAILUSER03.UNI-MUENSTER.DE (Postfix, from userid 149459) id CF0A71B075A; Sun, 15 Mar 2009 19:26:43 +0100 (CET) Date: Sun, 15 Mar 2009 19:26:43 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: In-Reply-To: <200903151139.42508.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: problem with usb printer 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: Sun, 15 Mar 2009 18:26:46 -0000 i applied the patches. now every time i try to print something the printer indicates an error (red light blinking). i can however turn off the printer and then turn it on again with the printer getting detached and attached properly. if i try to print something after the first attempt to print the issue i described beforehand occurs. cupsd cannot be killed and usb devices cannot be attached/detached. running lp* and usbconfig doesn't work anymore. i need to reboot. cheers. Hans Petter Selasky schrieb am 2009-03-15: > Hi, > I have been able to reproduce the issue over here on an USB printer. > Try this > patch in addition to the previous ones: > http://perforce.freebsd.org/chv.cgi?CH=159241 > --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 15 19:35:17 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 C005610656DB for ; Sun, 15 Mar 2009 19:35:17 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out3.uni-muenster.de (ZIVM-OUT3.UNI-MUENSTER.DE [128.176.192.18]) by mx1.freebsd.org (Postfix) with ESMTP id 541FD8FC0C for ; Sun, 15 Mar 2009 19:35:17 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.38,367,1233529200"; d="scan'208";a="1722228" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER05.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay3.uni-muenster.de with ESMTP; 15 Mar 2009 20:35:15 +0100 Received: by ZIVMAILUSER05.UNI-MUENSTER.DE (Postfix, from userid 149459) id 9A7701B07E2; Sun, 15 Mar 2009 20:35:15 +0100 (CET) Date: Sun, 15 Mar 2009 20:35:15 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: In-Reply-To: <200903150938.49921.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: problem with usb printer 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: Sun, 15 Mar 2009 19:35:18 -0000 i recompiled my kernel using the usb1 stack and was able to print a perfect testpage. i was able to print using the gdi driver (ulpt and unlpt) and printing with the splix2 driver also works. the splix version from the ports dir doesn't work for some reason. i now installed 4 printers in cups: splix2 (ulpt and unlpt) and gdi (ulpt and unlpt). i'll try to recompile my kernel (usb2) with and without the patches and see if one of those combinations works. cheers. Hans Petter Selasky schrieb am 2009-03-15: > On Sunday 15 March 2009, Alexander Best wrote: > > i recompiled my kernel with the p4-files, but still nothing get's > > printed. > > this is what i get when attaching the device: > > ugen0.3: at usbus0 > > ulpt_probe:472: > > ulpt_attach:498: sc=0xc5a4c900 > > ulpt0: > 0/0, rev > > 1.10/1.00, addr 3> on usbus0 > > ulpt_attach:538: setting alternate config number: 0 > > ulpt0: using bi-directional mode > > and this when i try to print something: > > ulpt_reset:164: > > ulpt_write_callback:203: state=0x0 > > ulpt_write_callback:203: state=0x1 > > ulpt_write_callback:203: state=0x1 > Looks good. > Try also: > sysctl hw.usb2.dev.debug=15 > While printing and see if there is a drain in the end! > > i also enabled debugging output in the cups config file, but that > > didn't > > reveal any errors. > > right now i'm trying to build a kernel with the old usb stack to > > see if the > > problem get's solved. if the problem then still exists cups must be > > causing > > the problems. unfortunately building the kernel with the old usb > > stack > > fails: > Did it work before? > The only thing I can imagine is that the flushing/drain mechanism is > not > working, after that the last byte has been written. > --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 15 21:15:58 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 7E5C4106564A for ; Sun, 15 Mar 2009 21:15:58 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out2.uni-muenster.de (ZIVM-OUT2.UNI-MUENSTER.DE [128.176.192.9]) by mx1.freebsd.org (Postfix) with ESMTP id 131A38FC20 for ; Sun, 15 Mar 2009 21:15:57 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.38,368,1233529200"; d="scan'208";a="211932785" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER05.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay2.uni-muenster.de with ESMTP; 15 Mar 2009 22:15:55 +0100 Received: by ZIVMAILUSER05.UNI-MUENSTER.DE (Postfix, from userid 149459) id B7F4F1B07E2; Sun, 15 Mar 2009 22:15:55 +0100 (CET) Date: Sun, 15 Mar 2009 22:15:55 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: In-Reply-To: <200903151139.42508.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: problem with usb printer 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: Sun, 15 Mar 2009 21:15:58 -0000 alright. i've tried various patches and cups drivers. the only combination that slightly works is a kernel with both patchsets in combination with the splix2 driver. alls other combinations of patches and drivers fail without a page being printed and causing the printer to signal an error. with the two patchsets and the splix2 driver i'm able to print about 5% of the testpage. the paper is almost completely empty. only a a little bit of the testpage is being printed onto the top of the page. after ejecting the page the printer signals an error. with the usb1-stack the whole testpage get's printed and the printer stays operational afterwards. also the gdi driver works just like the splix2 driver without any problems. using the usb2-stack the gdi driver causes the printer to signal an error without anything being printed. alex Hans Petter Selasky schrieb am 2009-03-15: > Hi, > I have been able to reproduce the issue over here on an USB printer. > Try this > patch in addition to the previous ones: > http://perforce.freebsd.org/chv.cgi?CH=159241 > --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Mar 16 06:21:54 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3258106564A; Mon, 16 Mar 2009 06:21:54 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by mx1.freebsd.org (Postfix) with ESMTP id 9910F8FC12; Mon, 16 Mar 2009 06:21:54 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: by rv-out-0506.google.com with SMTP id f6so2951085rvb.43 for ; Sun, 15 Mar 2009 23:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:organization :x-operation-sytem; bh=klN6Pod6A/gn/Mk8KGSBuJMWEPC071Bt1g7EM0Gfpfo=; b=uvIY76qmOg9HsjnET+gTnNCDXORcBH4fuiLl8FfRcKfzGGShiaWUbKJc4UrTTnDWsm hVA7Mzpg4mEVzB+3+92dYwmuFZaKT+W2TDGlqhjhPTg4BMLrRdhzrcr7Xhw7pc9xJV0O uGlITJVZ/sApytEBH3K+JGPH3t6JDFBu6IGM4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :organization:x-operation-sytem; b=TqM+GbpBMEUAkxhPCdtIVTHeu8mGqfTu/C6R49RiQHCYYv3ICjw8jYlq6/s6J8yJW9 exJ6Z38rJEgvfM2VUdBbYchTHFWKKl90KrUjHMLQyMLvA39eWZJ0AUUtJKuqgp6ehOOZ pbgM96iUG9q3lNtXNbB0NYIGN1CMR3r/aunzY= Received: by 10.141.20.7 with SMTP id x7mr2111218rvi.85.1237184514294; Sun, 15 Mar 2009 23:21:54 -0700 (PDT) Received: from weongyo ([114.111.62.249]) by mx.google.com with ESMTPS id k41sm3976652rvb.6.2009.03.15.23.21.52 (version=SSLv3 cipher=RC4-MD5); Sun, 15 Mar 2009 23:21:53 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Mon, 16 Mar 2009 15:21:50 +0900 From: Weongyo Jeong Date: Mon, 16 Mar 2009 15:21:50 +0900 To: Robert Watson Message-ID: <20090316062150.GC1851@weongyo.cdnetworks.kr> References: <20090217052121.GB86244@weongyo.cdnetworks.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: usb@freebsd.org, Hans Petter Selasky , thompsa@freebsd.org Subject: Re: USB support in NDIS -- IFF_NEEDSGIANT? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2009 06:21:55 -0000 On Fri, Mar 13, 2009 at 11:37:57AM +0000, Robert Watson wrote: > > On Tue, 17 Feb 2009, Weongyo Jeong wrote: > > >>As you know, I've been gradually working to eliminate all non-MPSAFE > >>network device driver infrastructure for 8.0, having removed non-MPSAFE > >>network protocol infrastructure in 7.0. In reviewing remaining drivers > >>using IFF_NEEDSGIANT, I spotted this in the NDIS code: > ... > >>Having taken a glance, it looks like this was added specifically to > >>support > >>USB devices attached via NDIS. > > > >AFAIK all of usb wireless drivers had it so I couldn't avoid it when I had > >implemented. > > > >>With the new USB code, are NDIS drivers still supported? > > > >I think that it would be supported at 8.0 > > > >>And in the new world order, is this IFF_NEEDSGIANT still required? > > > >Probably we can remove the IFF_NEEDSGIANT flags at the new USB code. > > > >>Can I simply remove it once the old USB code is on the way out the door? > > > >IMHO yes I think. > > Dear all: > > A few weeks have passed, so I wanted to check in and see how this project > was going -- are we at a point yet where removing IFF_NEEDSGIANT won't > cause significant loss of functionality? In the current, NDIS USB porting almost have completed and it doesn't use IFF_NEEDSGIANT anymore. With some tests it looks it works well so I think it wouldn't cause any loss of functionality. regards, Weongyo Jeong From owner-freebsd-usb@FreeBSD.ORG Mon Mar 16 08:22:46 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 DD962106564A for ; Mon, 16 Mar 2009 08:22:46 +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 D2ECE8FC13 for ; Mon, 16 Mar 2009 08:22:45 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=fNQ8nRIzS81pyxWkF_QA:9 a=VWDcjLM4jLxAo8V_nLqh051o1t4A:4 a=50e4U0PicR4A:10 a=NXxshty15AaSwr1H_WEA:9 a=8ZPgyZN_OnEfXnjl24sA:7 a=pSkXWaF4eF96CJ6qNsMRlRMq634A:4 a=NfA2RSpTaHsA:10 a=FypReMOLt-2TUOxO:21 a=2jJQ1G5-XDVULmmb:21 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1037886885; Mon, 16 Mar 2009 09:22:43 +0100 From: Hans Petter Selasky To: Alexander Best Date: Mon, 16 Mar 2009 09:25:14 +0100 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_rzgvJSq5VJIwOZW" Message-Id: <200903160925.15806.hselasky@c2i.net> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: Re: problem with usb printer 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: Mon, 16 Mar 2009 08:22:47 -0000 --Boundary-00=_rzgvJSq5VJIwOZW Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Alexander, There are now multiple outstanding patches. Are you sure you applied all of them? I've attached a diff between -current and USB P4. Some patches might fail regarding the RCS-ID changes. --HPS --Boundary-00=_rzgvJSq5VJIwOZW-- From owner-freebsd-usb@FreeBSD.ORG Mon Mar 16 11:07: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 D3DB1106564A for ; Mon, 16 Mar 2009 11:07:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C05D78FC0A for ; Mon, 16 Mar 2009 11:07:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2GB74N1043431 for ; Mon, 16 Mar 2009 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2GB740o043427 for freebsd-usb@FreeBSD.org; Mon, 16 Mar 2009 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Mar 2009 11:07:04 GMT Message-Id: <200903161107.n2GB740o043427@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org 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: Mon, 16 Mar 2009 11:07:06 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o usb/129964 usb [newusb] disconnection of ugen devices isn't logged o bin/129963 usb [newusb] usbconfig(8) fails with misleading error when o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe f usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 305 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Mar 16 11:48:37 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 05B51106566C for ; Mon, 16 Mar 2009 11:48:37 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out3.uni-muenster.de (ZIVM-OUT3.UNI-MUENSTER.DE [128.176.192.18]) by mx1.freebsd.org (Postfix) with ESMTP id 2F03F8FC08 for ; Mon, 16 Mar 2009 11:48:35 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.38,373,1233529200"; d="conf'?scan'208";a="1742448" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER04.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay3.uni-muenster.de with ESMTP; 16 Mar 2009 12:48:34 +0100 Received: by ZIVMAILUSER04.UNI-MUENSTER.DE (Postfix, from userid 149459) id 7106C1B07B8; Mon, 16 Mar 2009 12:48:34 +0100 (CET) Date: Mon, 16 Mar 2009 12:48:24 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: In-Reply-To: <200903160925.15806.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=+permail-2009031611482480e26a0b00001384-a_best01+ Cc: Subject: Re: problem with usb printer 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: Mon, 16 Mar 2009 11:48:37 -0000 This is a MIME encoded multipart message. --+permail-2009031611482480e26a0b00001384-a_best01+ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit to be sure i updated my sources using `svn up /usr/src` then reverted back to the repository files in order to get rid of any previously patched files using `svn -R revert /usr/src` and the applied the patch you send me. the result is the same: only the top of the page get's printed. that's it. the printer signals an error. at this point i need to turn off the printer and turn it on again in order to use it again. if i try to print another page without restarting the printer usb becomes unusable. i've attached my kernel config and my make.conf. maybe there's a problem there. cheers. Hans Petter Selasky schrieb am 2009-03-16: > Hi Alexander, > There are now multiple outstanding patches. Are you sure you applied > all of > them? I've attached a diff between -current and USB P4. Some patches > might > fail regarding the RCS-ID changes. > --HPS --+permail-2009031611482480e26a0b00001384-a_best01+ Content-Type: application/octet-stream Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename="arundel" IyBERUJVRyBvcHRpb25zCm9wdGlvbnMJCUtEQgkJCSNDb21waWxlIHdpdGgga2VybmVsIGRlYnVn Z2VyIHJlbGF0ZWQgY29kZQpvcHRpb25zCQlLREJfVFJBQ0UJCSNQcmludCBhIHN0YWNrIHRyYWNl IG9mIHRoZSBjdXJyZW50IHRocmVhZCBvbiB0aGUgY29uc29sZSBmb3IgYSBwYW5pYy4Kb3B0aW9u cwkJQlJFQUtfVE9fREVCVUdHRVIKb3B0aW9ucwkJUFJFRU1QVElPTgpvcHRpb25zCQlJUElfUFJF RU1QVElPTgpvcHRpb25zCQlEREIKCm1ha2VvcHRpb25zCURFQlVHPS1nCm9wdGlvbnMJCUlOVkFS SUFOVFMKb3B0aW9ucwkJSU5WQVJJQU5UX1NVUFBPUlQKb3B0aW9ucwkJV0lUTkVTUwpvcHRpb25z CQlERUJVR19MT0NLUwpvcHRpb25zCQlERUJVR19WRlNfTE9DS1MKb3B0aW9ucwkJRElBR05PU1RJ QwpvcHRpb25zCQlTV19XQVRDSERPRwoKY3B1CQlJNjg2X0NQVQppZGVudAkJQVJVTkRFTAoKI29w dGlvbnMJCVNDSEVEXzRCU0QJCSM0QlNEIHNjaGVkdWxlcgpvcHRpb25zCQlTQ0hFRF9VTEUJCSNV TEUgc2NoZWR1bGVyCiNvcHRpb25zCQlTQ0hFRF9TVEFUUwpvcHRpb25zIAlJTkVUCQkJI0ludGVy TkVUd29ya2luZwpvcHRpb25zCQlQUk9DRlMJCQkjUHJvY2VzcyBmaWxlc3lzdGVtIChyZXF1aXJl cyBQU0VVRE9GUykKb3B0aW9ucwkJUFNFVURPRlMJCSNQc2V1ZG8tZmlsZXN5c3RlbSBmcmFtZXdv cmsKb3B0aW9ucwkJTElCSUNPTlYJCSNLZXJuZWwgc2lkZSBpY29udiBsaWJyYXJ5Cm9wdGlvbnMJ CUNEOTY2MAkJCSNJU08gOTY2MCBmaWxlc3lzdGVtCiNvcHRpb25zCQlDRDk2NjBfSUNPTlYKb3B0 aW9ucwkJTVNET1NGUwkJCSNNUyBET1MgRmlsZSBTeXN0ZW0gKEZBVCwgRkFUMzIpCm9wdGlvbnMJ CU1TRE9TRlNfSUNPTlYKb3B0aW9ucyAJRkZTCQkJI0JlcmtlbGV5IEZhc3QgRmlsZXN5c3RlbQpv cHRpb25zIAlTT0ZUVVBEQVRFUwkJI0VuYWJsZSBGRlMgc29mdCB1cGRhdGVzIHN1cHBvcnQKb3B0 aW9ucyAJVUZTX0RJUkhBU0gJCSNJbXByb3ZlIHBlcmZvcm1hbmNlIG9uIGJpZyBkaXJlY3Rvcmll cwojb3B0aW9ucwkJQ09NUEFUXzQzVFRZCQkjIEJTRCA0LjMgVFRZIGNvbXBhdCAoc2d0dHkpCiNv cHRpb25zCQlDT01QQVRfNDMJCSNDb21wYXRpYmxlIHdpdGggQlNEIDQuMyBbS0VFUCBUSElTIV0K I29wdGlvbnMJCUNPTVBBVF9MSU5VWAojb3B0aW9ucwkJU1RPUF9OTUkJCSMgU3RvcCBDUFVTIHVz aW5nIE5NSSBpbnN0ZWFkIG9mIElQSQojb3B0aW9ucwkJVkVTQQojb3B0aW9ucwkJU0NfUElYRUxf TU9ERQoKb3B0aW9ucwkJS1RSQUNFCQkJIyBrdHJhY2UoMSkgc3VwcG9ydApvcHRpb25zCQlTQ19I SVNUT1JZX1NJWkU9MTAwMAkjbnVtYmVyIG9mIGhpc3RvcnkgYnVmZmVyIGxpbmVzCm9wdGlvbnMg CVNZU1ZTSE0JCQkjU1lTVi1zdHlsZSBzaGFyZWQgbWVtb3J5Cm9wdGlvbnMgCVNZU1ZNU0cJCQkj U1lTVi1zdHlsZSBtZXNzYWdlIHF1ZXVlcwpvcHRpb25zIAlTWVNWU0VNCQkJI1NZU1Ytc3R5bGUg c2VtYXBob3JlcwpvcHRpb25zIAlfS1BPU0lYX1BSSU9SSVRZX1NDSEVEVUxJTkcgIyBQT1NJWCBQ MTAwM18xQiByZWFsLXRpbWUgZXh0ZW5zaW9ucwpvcHRpb25zIAlLQkRfSU5TVEFMTF9DREVWCSNp bnN0YWxsIGEgQ0RFViBlbnRyeSBpbiAvZGV2Cm9wdGlvbnMJCVVLQkRfREZMVF9LRVlNQVAJI3Nw ZWNpZnkgdGhlIGJ1aWx0LWluIGtleW1hcAptYWtlb3B0aW9ucwlVS0JEX0RGTFRfS0VZTUFQPSJn ZXJtYW4uaXNvIgoKI2RldmljZQkJYXRrYmQKI2RldmljZQkJYXRrYmRjCiNtYWtlb3B0aW9ucwlB VEtCRF9ERkxUX0tFWU1BUD0iZ2VybWFuLmlzbyIKCm9wdGlvbnMJCVNNUAkJCSMgU3ltbWV0cmlj IE11bHRpUHJvY2Vzc29yIEtlcm5lbApkZXZpY2UJCWFwaWMJCQkjIEkvTyBBUElDCgojZGV2aWNl cwpkZXZpY2UJCWVpc2EKZGV2aWNlCQlwY2kKZGV2aWNlCQlhdGEKZGV2aWNlCQlhdGFkaXNrCmRl dmljZQkJYXRhcGljZApkZXZpY2UJCXZnYQpkZXZpY2UJCXNjCgojdXNiCmRldmljZSAgICAgICAg ICB1c2IKZGV2aWNlICAgICAgICAgIHVoY2kKZGV2aWNlICAgICAgICAgIGVoY2kKZGV2aWNlICAg ICAgICAgIHVrYmQKZGV2aWNlICAgICAgICAgIHVscHQKZGV2aWNlICAgICAgICAgIHVtYXNzCmRl dmljZSAgICAgICAgICB1bXMKI21ha2VvcHRpb25zICAgIFdJVEhfTEVHQUNZCgojbmV0d29yawpk ZXZpY2UJCXdsYW4KZGV2aWNlCQlhdGgKZGV2aWNlCQlhdGhfaGFsCm9wdGlvbnMJCUFIX1NVUFBP UlRfQVI1NDE2CmRldmljZQkJYXRoX3JhdGVfc2FtcGxlCmRldmljZQkJd2xhbl93ZXAKI29wdGlv bnMJCUlFRUU4MDIxMV9ERUJVRwojb3B0aW9ucwkJQVRIX0RFQlVHCgpkZXZpY2UJCWNwdWZyZXEK ZGV2aWNlCQljb3JldGVtcAoKI3BzZXVkbyBkZXZpY2VzCmRldmljZQkJbG9vcApkZXZpY2UJCWV0 aGVyCmRldmljZQkJcHR5CmRldmljZQkJbWQKCiNtaXNjCmRldmljZQkJc2NidXMKZGV2aWNlCQlj ZApkZXZpY2UJCXBhc3MKZGV2aWNlCQlkYQpkZXZpY2UJCWF0YXBpY2FtCmRldmljZQkJc291bmQK ZGV2aWNlCQlzbmRfaGRhCmRldmljZQkJcmFuZG9tCgojYmx1ZXRvb3RoCm9wdGlvbgkJTkVUR1JB UEgKb3B0aW9ucwkJTkVUR1JBUEhfQkxVRVRPT1RIX1VCVAkJIyBuZ191YnQoNCkKb3B0aW9ucwkJ TkVUR1JBUEhfQkxVRVRPT1RICQkjIG5nX2JsdWV0b290aCg0KQpvcHRpb25zCQlORVRHUkFQSF9C TFVFVE9PVEhfU09DS0VUCSMgbmdfYnRzb2NrZXQoNCkKb3B0aW9ucwkJTkVUR1JBUEhfQkxVRVRP T1RIX0wyQ0FQCSMgbmdfbDJjYXAoNCkKb3B0aW9ucwkJTkVUR1JBUEhfQkxVRVRPT1RIX0hDSQkJ IyBuZ19oY2koNCkKb3B0aW9ucwkJTkVUR1JBUEhfU09DS0VUCg== --+permail-2009031611482480e26a0b00001384-a_best01+ Content-Type: application/octet-stream Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename="make.conf" IyAKIyBHQ0Mgb3B0aW9ucwojIApDUFVUWVBFPz0gcHJlc2NvdHQKQ0ZMQUdTPSAtTzIgLWZuby1z dHJpY3QtYWxpYXNpbmcgLXBpcGUKQ09QVEZMQUdTPz0gLU8gLXBpcGUKIyAKIyBCVUlMRFdPUkxE IG9wdGlvbnMKIyAKS0VSTkNPTkY9QVJVTkRFTApNT0RVTEVTX09WRVJSSURFPWFjcGkgbGludXgg bGlucHJvY2ZzIHVzYi9xdWlyayB1c2IvdWhpZApUUkFDRVJPVVRFX05PX0lQU0VDPXllcwojIAoj IFNFTkRNQUlMIG9wdGlvbnMKIyAKU0VORE1BSUxfTUM9L2V0Yy9tYWlsL2ZyZWVic2QubWMKU0VO RE1BSUxfU1VCTUlUX01DPS9ldGMvbWFpbC9mcmVlYnNkLnN1Ym1pdC5tYwojCiMgCiMgTUlTQyBv cHRpb25zCiMgCkRPQ19MQU5HPSBlbl9VUy5JU084ODU5LTEgZGVfREUuSVNPODg1OS0xNQpPVkVS UklERV9MSU5VWF9CQVNFX1BPUlQ9ZmM0ClJBTkRPTUlaRV9NQVNURVJfU0lURVM9eWVzCkRBND15 ZXMKV0lUSF9CU0RFTD15ZXMKIyAKIyBhZGRlZCBieSB1c2UucGVybCAyMDA5LTAzLTA5IDEyOjM1 OjU0ClBFUkxfVkVSU0lPTj01LjguOQo= --+permail-2009031611482480e26a0b00001384-a_best01+-- From owner-freebsd-usb@FreeBSD.ORG Mon Mar 16 14:53: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 D365B1065751 for ; Mon, 16 Mar 2009 14:53:20 +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 57A278FC1B for ; Mon, 16 Mar 2009 14:53:17 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=R36gBA1915bkL10jGPMA:9 a=zCB2b2vMHRxBOdC1vmDOuvdhRn0A:4 a=50e4U0PicR4A:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO [10.36.2.183]) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1208738802; Mon, 16 Mar 2009 15:53:16 +0100 From: Hans Petter Selasky To: Alexander Best Date: Mon, 16 Mar 2009 15:55:48 +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: <200903161555.49172.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: problem with usb printer 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: Mon, 16 Mar 2009 14:53:24 -0000 Hi, It seems like I have introduced a regression in ULPT and USCANNER. Code has been reverted to be similar to USB1 behaviour. http://perforce.freebsd.org/chv.cgi?CH=159292 Thanks for reporting and testing! --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Mar 16 19:56: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 424B7106568B for ; Mon, 16 Mar 2009 19:56:30 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id 00C778FC0C for ; Mon, 16 Mar 2009 19:56:29 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0KGM00HYU7E44K90@osl1smout1.broadpark.no> for freebsd-usb@freebsd.org; Mon, 16 Mar 2009 20:56:28 +0100 (CET) Received: from kg-work2.kg4.no ([80.203.109.110]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0KGM00GRD7E23C10@osl1sminn1.broadpark.no> for freebsd-usb@freebsd.org; Mon, 16 Mar 2009 20:56:28 +0100 (CET) Date: Mon, 16 Mar 2009 20:56:26 +0100 From: Torfinn Ingolfsen To: freebsd-usb@freebsd.org Message-id: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Xorg 7.4 and umass devices - a bad combination? 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: Mon, 16 Mar 2009 19:56:31 -0000 Hi, Have anyone seen bad performance when using umass devices (external hard drives) in combination with Xorg 7.4? The reason I ask is that I have this machine[1] which is both a test workstation, and cheap-ass fileserver. I am using external usb drives for storage (it was the cheapest option when I set this up). root@kg-quiet# dmesg | grep da[01234] da4 at sbp0 bus 0 target 0 lun 0 da4: Fixed Direct Access SCSI-4 device da4: 50.000MB/s transfers da4: 286188MB (586114704 512 byte sectors: 255H 63S/T 36483C) da3 at umass-sim3 bus 3 target 0 lun 0 da3: Fixed Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) da2 at umass-sim2 bus 2 target 0 lun 0 da2: Fixed Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) da1 at umass-sim1 bus 1 target 0 lun 0 da1: Fixed Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) Yes, there is a firewire drive in there too. The machine currently runs FreeBSD 6.4-stable / amd64, and have run through most releases sine 6.1-prerelease. I use Samba for file serving. root@kg-quiet# uname -a FreeBSD kg-quiet.kg4.no 6.4-STABLE FreeBSD 6.4-STABLE #27: Sun Mar 15 19:42:19 CET 2009 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET amd64 The machine have always been in X when it is up (I use XFce) and this hasn't created any problems that I have noticed. However, after I upgraded Xorg to 7.4, I get lots of these messages in /var/log/messages if I try to do a simple 'ls' on any filesystem on a usb drive: Mar 16 17:09:02 kg-quiet kernel: umass2: BBB bulk-out clear stall failed, TIMEOUT Mar 16 17:09:31 kg-quiet kernel: umass1: BBB bulk-out clear stall failed, TIMEOUT Mar 16 17:10:00 kg-quiet kernel: umass3: BBB bulk-out clear stall failed, TIMEOUT Mar 16 17:10:43 kg-quiet kernel: umass0: BBB reset failed, TIMEOUT Mar 16 17:11:12 kg-quiet kernel: umass2: BBB reset failed, TIMEOUT Mar 16 17:11:41 kg-quiet kernel: umass1: BBB reset failed, TIMEOUT Mar 16 17:11:48 kg-quiet kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT Mar 16 17:12:10 kg-quiet kernel: umass3: BBB reset failed, TIMEOUT Followed by these: Mar 16 17:12:53 kg-quiet kernel: g_vfs_done():da0s1d[WRITE(offset=196864589824, length=16384)]error = 5 Mar 16 17:12:53 kg-quiet kernel: g_vfs_done():da0s1d[WRITE(offset=114688, length=16384)]error = 5 Mar 16 17:13:15 kg-quiet kernel: umass3: BBB bulk-in clear stall failed, TIMEOUT Mar 16 17:13:22 kg-quiet kernel: umass2: BBB bulk-out clear stall failed, TIMEOUT Mar 16 17:13:22 kg-quiet kernel: g_vfs_done():da2s1d[WRITE(offset=357707874304, length=16384)]error = 5 Mar 16 17:13:22 kg-quiet kernel: g_vfs_done():da2s1d[WRITE(offset=114688, length=16384)]error = 5 and the 'ls' takes several minutes to complete. Notice that the messages mention all umass drives (umass0 - umass3), even if I only do an ls on one of them. Also notice that the firewire drive is absent fom any messages. Note: hal is NOT running on this machine. What is my workaround? Reboot the machine (needing a forced reset, as the machine hangs on shutdown after the umass errors), let fsck do its thing and then don't start Xorg. But this is no solution. The funny thing is that It worked find before I upgraded Xorg from 7.3.2 to 7.4... Any hints on how I can debug this? More info: FreeBSD work log[2], dmesg output normal[3] and verbose[4]. References: 1) http://tingox.googlepages.com/rs480m2 2) http://tingox.googlepages.com/rs480m2_freebsd 3) http://tingox.googlepages.com/quiet-dmesg-6.4-stable-20090315.txt 4) http://tingox.googlepages.com/quiet-dmesg-6.4-stable-20090315_verb.txt -- Regards, Torfinn Ingolfsen, Norway From owner-freebsd-usb@FreeBSD.ORG Mon Mar 16 20:01:46 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 58A4A1065674 for ; Mon, 16 Mar 2009 20:01:46 +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 1F8DB8FC19 for ; Mon, 16 Mar 2009 20:01:46 +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 n2GK0lvn042138; Mon, 16 Mar 2009 14:00:48 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 17 Mar 2009 05:01:16 +0900 (JST) Message-Id: <20090317.050116.76561605.imp@bsdimp.com> To: torfinn.ingolfsen@broadpark.no From: "M. Warner Losh" In-Reply-To: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> References: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> 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-usb@freebsd.org Subject: Re: Xorg 7.4 and umass devices - a bad combination? 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: Mon, 16 Mar 2009 20:01:46 -0000 In message: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> Torfinn Ingolfsen writes: : Have anyone seen bad performance when using umass devices (external : hard drives) in combination with Xorg 7.4? I don't see it. But I'm not using a usb mouse/keyboard... Are you? Warner : The reason I ask is that I have this machine[1] which is both a test : workstation, and cheap-ass fileserver. I am using external usb drives : for storage (it was the cheapest option when I set this up). : root@kg-quiet# dmesg | grep da[01234] : da4 at sbp0 bus 0 target 0 lun 0 : da4: Fixed Direct Access SCSI-4 device : da4: 50.000MB/s transfers : da4: 286188MB (586114704 512 byte sectors: 255H 63S/T 36483C) : da3 at umass-sim3 bus 3 target 0 lun 0 : da3: Fixed Direct Access SCSI-0 device : da3: 40.000MB/s transfers : da3: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) : da2 at umass-sim2 bus 2 target 0 lun 0 : da2: Fixed Direct Access SCSI-0 device : da2: 40.000MB/s transfers : da2: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) : da1 at umass-sim1 bus 1 target 0 lun 0 : da1: Fixed Direct Access SCSI-0 device : da1: 40.000MB/s transfers : da1: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) : da0 at umass-sim0 bus 0 target 0 lun 0 : da0: Fixed Direct Access SCSI-0 device : da0: 40.000MB/s transfers : da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) : : Yes, there is a firewire drive in there too. : : The machine currently runs FreeBSD 6.4-stable / amd64, and have run : through most releases sine 6.1-prerelease. I use Samba for file serving. : root@kg-quiet# uname -a : FreeBSD kg-quiet.kg4.no 6.4-STABLE FreeBSD 6.4-STABLE #27: Sun Mar 15 : 19:42:19 CET 2009 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET : amd64 : : The machine have always been in X when it is up (I use XFce) and this hasn't created any problems that I have noticed. : However, after I upgraded Xorg to 7.4, I get lots of these messages in /var/log/messages if I try to : do a simple 'ls' on any filesystem on a usb drive: : Mar 16 17:09:02 kg-quiet kernel: umass2: BBB bulk-out clear stall failed, TIMEOUT : Mar 16 17:09:31 kg-quiet kernel: umass1: BBB bulk-out clear stall failed, TIMEOUT : Mar 16 17:10:00 kg-quiet kernel: umass3: BBB bulk-out clear stall failed, TIMEOUT : Mar 16 17:10:43 kg-quiet kernel: umass0: BBB reset failed, TIMEOUT : Mar 16 17:11:12 kg-quiet kernel: umass2: BBB reset failed, TIMEOUT : Mar 16 17:11:41 kg-quiet kernel: umass1: BBB reset failed, TIMEOUT : Mar 16 17:11:48 kg-quiet kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT : Mar 16 17:12:10 kg-quiet kernel: umass3: BBB reset failed, TIMEOUT : : Followed by these: : Mar 16 17:12:53 kg-quiet kernel: g_vfs_done():da0s1d[WRITE(offset=196864589824, length=16384)]error = 5 : Mar 16 17:12:53 kg-quiet kernel: g_vfs_done():da0s1d[WRITE(offset=114688, length=16384)]error = 5 : Mar 16 17:13:15 kg-quiet kernel: umass3: BBB bulk-in clear stall failed, TIMEOUT : Mar 16 17:13:22 kg-quiet kernel: umass2: BBB bulk-out clear stall failed, TIMEOUT : Mar 16 17:13:22 kg-quiet kernel: g_vfs_done():da2s1d[WRITE(offset=357707874304, length=16384)]error = 5 : Mar 16 17:13:22 kg-quiet kernel: g_vfs_done():da2s1d[WRITE(offset=114688, length=16384)]error = 5 : : and the 'ls' takes several minutes to complete. : : Notice that the messages mention all umass drives (umass0 - umass3), even if I only do an ls on one of them. : Also notice that the firewire drive is absent fom any messages. : Note: hal is NOT running on this machine. : : What is my workaround? Reboot the machine (needing a forced reset, as the machine hangs on shutdown : after the umass errors), let fsck do its thing and then don't start Xorg. But this is no solution. : : The funny thing is that It worked find before I upgraded Xorg from 7.3.2 to 7.4... : : Any hints on how I can debug this? : : More info: FreeBSD work log[2], dmesg output normal[3] and verbose[4]. : : References: : 1) http://tingox.googlepages.com/rs480m2 : 2) http://tingox.googlepages.com/rs480m2_freebsd : 3) http://tingox.googlepages.com/quiet-dmesg-6.4-stable-20090315.txt : 4) http://tingox.googlepages.com/quiet-dmesg-6.4-stable-20090315_verb.txt : -- : Regards, : Torfinn Ingolfsen, : Norway : : _______________________________________________ : freebsd-usb@freebsd.org mailing list : http://lists.freebsd.org/mailman/listinfo/freebsd-usb : To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" : : From owner-freebsd-usb@FreeBSD.ORG Mon Mar 16 22:15:15 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 A618710656D4 for ; Mon, 16 Mar 2009 22:15:15 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id 4AEBA8FC13 for ; Mon, 16 Mar 2009 22:15:15 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0KGM00K1WDTEWB20@osl1smout1.broadpark.no> for freebsd-usb@freebsd.org; Mon, 16 Mar 2009 23:15:14 +0100 (CET) Received: from kg-work2.kg4.no ([80.203.109.110]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0KGM00G8XDTD3C30@osl1sminn1.broadpark.no> for freebsd-usb@freebsd.org; Mon, 16 Mar 2009 23:15:14 +0100 (CET) Date: Mon, 16 Mar 2009 23:15:13 +0100 From: Torfinn Ingolfsen To: freebsd-usb@freebsd.org Message-id: <20090316231513.208750bf.torfinn.ingolfsen@broadpark.no> In-reply-to: <20090317.050116.76561605.imp@bsdimp.com> References: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> <20090317.050116.76561605.imp@bsdimp.com> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: Xorg 7.4 and umass devices - a bad combination? 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: Mon, 16 Mar 2009 22:15:16 -0000 On Tue, 17 Mar 2009 05:01:16 +0900 (JST) "M. Warner Losh" wrote: > In message: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> > Torfinn Ingolfsen writes: > : Have anyone seen bad performance when using umass devices (external > : hard drives) in combination with Xorg 7.4? > > I don't see it. > > But I'm not using a usb mouse/keyboard... Are you? No, I am not. PS/" mouse and keyboard here. This is very strange, very puzzling. -- Regards, Torfinn Ingolfsen From owner-freebsd-usb@FreeBSD.ORG Tue Mar 17 07:54:37 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 1CDC91065687 for ; Tue, 17 Mar 2009 07:54:37 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.tele2.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id A6CDA8FC18 for ; Tue, 17 Mar 2009 07:54:36 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6X8fPFVjp3oA:10 a=6-bPiiMEMcMA:10 a=7Qk2ozbKAAAA:8 a=-cFleaG9nbALjYtY79QA:9 a=zvnUCtQ9gcMIqmebVo3KJNQ8Pg0A:4 a=LY0hPdMaydYA:10 a=cvZW9r6VXHAA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO [10.36.2.183]) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1038625375; Tue, 17 Mar 2009 08:54:34 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 17 Mar 2009 08:57:06 +0100 User-Agent: KMail/1.9.7 References: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> <20090317.050116.76561605.imp@bsdimp.com> <20090316231513.208750bf.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20090316231513.208750bf.torfinn.ingolfsen@broadpark.no> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903170857.07049.hselasky@c2i.net> Cc: Subject: Re: Xorg 7.4 and umass devices - a bad combination? 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: Tue, 17 Mar 2009 07:54:38 -0000 On Monday 16 March 2009, Torfinn Ingolfsen wrote: > On Tue, 17 Mar 2009 05:01:16 +0900 (JST) > > "M. Warner Losh" wrote: > > In message: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> > > > > Torfinn Ingolfsen writes: > > : Have anyone seen bad performance when using umass devices (external > > : hard drives) in combination with Xorg 7.4? > > > > I don't see it. > > > > But I'm not using a usb mouse/keyboard... Are you? > > No, I am not. PS/" mouse and keyboard here. > > This is very strange, very puzzling. It's maybe an interrupt problem. Can you do some vmstat'ing before and after ? Also try to upgrade the kernel to the lastest sources. There has been an EHCI performance quirk added recently. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Mar 17 20:23: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 42EA6106564A; Tue, 17 Mar 2009 20:23:41 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout021.mac.com (asmtpout021.mac.com [17.148.16.96]) by mx1.freebsd.org (Postfix) with ESMTP id 2F8418FC15; Tue, 17 Mar 2009 20:23:40 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from jwills-mbp.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp021.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KGO00A9P3BFG960@asmtp021.mac.com>; Tue, 17 Mar 2009 13:23:40 -0700 (PDT) Message-id: From: Marcel Moolenaar To: freebsd-usb@freebsd.org Date: Tue, 17 Mar 2009 13:23:39 -0700 X-Mailer: Apple Mail (2.930.3) Cc: FreeBSD Current , freebsd-gnome@FreeBSD.org Subject: USB2: usb_device_info not declared (redux) 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: Tue, 17 Mar 2009 20:23:41 -0000 I got the following error building KDE4 on FreeBSD/powerpc (-current): In file included from /usr/obj/nfs/freebsd/ports/x11/kdebase4/work/ kdebase-4.2.1/apps/kinfocenter/usbview/kcmusb.cpp:27: /usr/obj/nfs/freebsd/ports/x11/kdebase4/work/kdebase-4.2.1/apps/ kinfocenter/usbview/usbdevices.h:80: error: 'usb_device_info' has not been declared *** Error code 1 Do we have closure on where it's going to be fixed? Do we know if GNOME is affected as well? Andrew: you were think about adding the ioctl. Did you reach a conclusion? -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-usb@FreeBSD.ORG Tue Mar 17 21:44:14 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 383111065706 for ; Tue, 17 Mar 2009 21:44:14 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id E8A9C8FC08 for ; Tue, 17 Mar 2009 21:44:13 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0KGO00A0B71MURC0@osl1smout1.broadpark.no> for freebsd-usb@freebsd.org; Tue, 17 Mar 2009 22:44:10 +0100 (CET) Received: from kg-work2.kg4.no ([80.203.109.110]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0KGO00DW871LM500@osl1sminn1.broadpark.no> for freebsd-usb@freebsd.org; Tue, 17 Mar 2009 22:44:10 +0100 (CET) Date: Tue, 17 Mar 2009 22:44:09 +0100 From: Torfinn Ingolfsen To: freebsd-usb@freebsd.org Message-id: <20090317224409.e0d71dc4.torfinn.ingolfsen@broadpark.no> In-reply-to: <20090316231513.208750bf.torfinn.ingolfsen@broadpark.no> References: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> <20090317.050116.76561605.imp@bsdimp.com> <20090316231513.208750bf.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: Xorg 7.4 and umass devices - a bad combination? 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: Tue, 17 Mar 2009 21:44:15 -0000 On Mon, 16 Mar 2009 23:15:13 +0100 Torfinn Ingolfsen wrote: > No, I am not. PS/" mouse and keyboard here. should read: PS/2 mouse and keyboard. -- Torfinn From owner-freebsd-usb@FreeBSD.ORG Tue Mar 17 21:55: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 6004C106564A for ; Tue, 17 Mar 2009 21:55:03 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id 1833F8FC12 for ; Tue, 17 Mar 2009 21:55:03 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0KGO00ACN7JQURC0@osl1smout1.broadpark.no> for freebsd-usb@freebsd.org; Tue, 17 Mar 2009 22:55:02 +0100 (CET) Received: from kg-work2.kg4.no ([80.203.109.110]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0KGO00A637JN4U40@osl1sminn1.broadpark.no> for freebsd-usb@freebsd.org; Tue, 17 Mar 2009 22:55:02 +0100 (CET) Date: Tue, 17 Mar 2009 22:54:59 +0100 From: Torfinn Ingolfsen To: freebsd-usb@freebsd.org Message-id: <20090317225459.d709b94a.torfinn.ingolfsen@broadpark.no> In-reply-to: <200903170857.07049.hselasky@c2i.net> References: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> <20090317.050116.76561605.imp@bsdimp.com> <20090316231513.208750bf.torfinn.ingolfsen@broadpark.no> <200903170857.07049.hselasky@c2i.net> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: Xorg 7.4 and umass devices - a bad combination? 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: Tue, 17 Mar 2009 21:55:03 -0000 On Tue, 17 Mar 2009 08:57:06 +0100 Hans Petter Selasky wrote: > It's maybe an interrupt problem. Can you do some vmstat'ing before > and after ? After starting Xorg (with startx this time), but before doing an 'ls' on one of the usb drives: root@kg-quiet# vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 1 0 0 136M 2736M 512 4 11 0 438 0 0 0 198 1604 570 1 1 98 After issuing the 'ls' command (and still waiting for it to complete): root@kg-quiet# vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 1 1 0 136M 2736M 474 4 10 0 405 0 0 0 205 1484 573 1 1 98 root@kg-quiet# vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 1 1 0 136M 2736M 470 4 10 0 402 0 0 0 206 1473 574 1 1 98 root@kg-quiet# vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 1 1 0 136M 2736M 469 4 10 0 401 0 0 0 206 1469 574 1 1 98 root@kg-quiet# vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 1 1 0 136M 2736M 468 4 10 0 400 0 0 0 206 1464 574 1 1 98 root@kg-quiet# vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 1 1 0 136M 2736M 466 4 10 0 399 0 0 0 206 1459 574 1 1 98 root@kg-quiet# vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 1 1 0 136M 2736M 467 4 10 0 399 0 0 0 207 1460 576 1 1 98 root@kg-quiet# vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 1 1 0 136M 2736M 466 4 10 0 398 0 0 0 207 1456 576 1 1 98 root@kg-quiet# vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 1 1 0 136M 2736M 464 4 10 0 397 0 0 0 208 1451 576 1 1 98 root@kg-quiet# vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 1 1 0 136M 2736M 463 4 9 0 396 0 0 0 208 1447 576 1 1 98 I can't see anything odd from these. Can you? Now it is several minutes later,. the 'ls' command still hasn't completed, and I try vmstat once more: root@kg-quiet# vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 0 1 0 136M 2736M 214 2 4 0 183 0 0 0 252 676 606 0 1 99 I now have several timeout messages in /var/log/messages: Mar 17 22:48:56 kg-quiet kernel: umass1: BBB reset failed, TIMEOUT Mar 17 22:48:56 kg-quiet kernel: umass3: BBB reset failed, TIMEOUT Mar 17 22:48:56 kg-quiet kernel: umass2: BBB reset failed, TIMEOUT Mar 17 22:48:56 kg-quiet kernel: umass0: BBB reset failed, TIMEOUT Mar 17 22:50:01 kg-quiet kernel: umass1: BBB bulk-in clear stall failed, TIMEOUT Mar 17 22:50:01 kg-quiet kernel: umass3: BBB bulk-in clear stall failed, TIMEOUT Mar 17 22:50:01 kg-quiet kernel: umass2: BBB bulk-in clear stall failed, TIMEOUT Mar 17 22:50:01 kg-quiet kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT Mar 17 22:51:06 kg-quiet kernel: umass1: BBB bulk-out clear stall failed, TIMEOUT Mar 17 22:51:06 kg-quiet kernel: umass3: BBB bulk-out clear stall failed, TIMEOUT Mar 17 22:51:06 kg-quiet kernel: umass2: BBB bulk-out clear stall failed, TIMEOUT Mar 17 22:51:06 kg-quiet kernel: umass0: BBB bulk-out clear stall failed, TIMEOUT Mar 17 22:53:16 kg-quiet kernel: umass1: BBB reset failed, TIMEOUT Mar 17 22:53:16 kg-quiet kernel: umass3: BBB reset failed, TIMEOUT Mar 17 22:53:16 kg-quiet kernel: umass2: BBB reset failed, TIMEOUT Mar 17 22:53:16 kg-quiet kernel: umass0: BBB reset failed, TIMEOUT Mar 17 22:54:21 kg-quiet kernel: umass1: BBB bulk-in clear stall failed, TIMEOUT Mar 17 22:54:21 kg-quiet kernel: umass3: BBB bulk-in clear stall failed, TIMEOUT Mar 17 22:54:21 kg-quiet kernel: umass2: BBB bulk-in clear stall failed, TIMEOUT Mar 17 22:54:21 kg-quiet kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT > Also try to upgrade the kernel to the lastest sources. There has been > an EHCI performance quirk added recently. Is this update in RELENG_6 as well? I am running: root@kg-quiet# uname -a FreeBSD kg-quiet.kg4.no 6.4-STABLE FreeBSD 6.4-STABLE #27: Sun Mar 15 19:42:19 CET 2009 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET amd64 which is quite recent (but RELENG_6). HTH -- Regards, Torfinn Ingolfsen From owner-freebsd-usb@FreeBSD.ORG Tue Mar 17 21:55:55 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 E3A0E1065673; Tue, 17 Mar 2009 21:55:55 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id 7778D8FC19; Tue, 17 Mar 2009 21:55:55 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.3/8.14.3) with ESMTP id n2HLwVUg032984; Tue, 17 Mar 2009 17:58:31 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Marcel Moolenaar In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-ldhWWW2FRbe3/3kh+Eeu" Organization: MarcusCom, Inc. Date: Tue, 17 Mar 2009 17:55:57 -0400 Message-Id: <1237326957.5465.100.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on creme-brulee.marcuscom.com Cc: FreeBSD Current , freebsd-gnome@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB2: usb_device_info not declared (redux) 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: Tue, 17 Mar 2009 21:55:57 -0000 --=-ldhWWW2FRbe3/3kh+Eeu Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2009-03-17 at 13:23 -0700, Marcel Moolenaar wrote: > I got the following error building KDE4 on FreeBSD/powerpc (-current): >=20 > In file included from /usr/obj/nfs/freebsd/ports/x11/kdebase4/work/=20 > kdebase-4.2.1/apps/kinfocenter/usbview/kcmusb.cpp:27: > /usr/obj/nfs/freebsd/ports/x11/kdebase4/work/kdebase-4.2.1/apps/=20 > kinfocenter/usbview/usbdevices.h:80: error: 'usb_device_info' has not =20 > been declared > *** Error code 1 >=20 > Do we have closure on where it's going to be fixed? > Do we know if GNOME is affected as well? All GNOME Desktop components should now be building on the latest -CURRENT. Joe >=20 > Andrew: you were think about adding the ioctl. > Did you reach a conclusion? >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-ldhWWW2FRbe3/3kh+Eeu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAknAHGwACgkQb2iPiv4Uz4e2sQCfQ0CWSgRi09iAQiXbkcv4aMsZ 9pYAmgO+j2lHcBiUeJ/CX+AAaNkpGEEr =VLNN -----END PGP SIGNATURE----- --=-ldhWWW2FRbe3/3kh+Eeu-- From owner-freebsd-usb@FreeBSD.ORG Tue Mar 17 22:27:18 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 9B8941065672; Tue, 17 Mar 2009 22:27:18 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout017.mac.com (asmtpout017.mac.com [17.148.16.92]) by mx1.freebsd.org (Postfix) with ESMTP id 844C28FC0A; Tue, 17 Mar 2009 22:27:18 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp017.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KGO00AYU91HYY00@asmtp017.mac.com>; Tue, 17 Mar 2009 15:27:18 -0700 (PDT) Message-id: <94E025C2-8AC4-4AAF-B7D2-43B836D1CC36@mac.com> From: Marcel Moolenaar To: Joe Marcus Clarke In-reply-to: <1237326957.5465.100.camel@shumai.marcuscom.com> Date: Tue, 17 Mar 2009 15:27:17 -0700 References: <1237326957.5465.100.camel@shumai.marcuscom.com> X-Mailer: Apple Mail (2.930.3) Cc: FreeBSD Current , freebsd-gnome@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB2: usb_device_info not declared (redux) 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: Tue, 17 Mar 2009 22:27:19 -0000 On Mar 17, 2009, at 2:55 PM, Joe Marcus Clarke wrote: > On Tue, 2009-03-17 at 13:23 -0700, Marcel Moolenaar wrote: >> I got the following error building KDE4 on FreeBSD/powerpc (- >> current): >> >> In file included from /usr/obj/nfs/freebsd/ports/x11/kdebase4/work/ >> kdebase-4.2.1/apps/kinfocenter/usbview/kcmusb.cpp:27: >> /usr/obj/nfs/freebsd/ports/x11/kdebase4/work/kdebase-4.2.1/apps/ >> kinfocenter/usbview/usbdevices.h:80: error: 'usb_device_info' has not >> been declared >> *** Error code 1 >> >> Do we have closure on where it's going to be fixed? >> Do we know if GNOME is affected as well? > > All GNOME Desktop components should now be building on the latest > -CURRENT. Ok. I guess we change consumers. I switch to GNOME again (I keep ping-ponging :-) Thanks for tracking -current so closely. It's very much appreciated! -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-usb@FreeBSD.ORG Tue Mar 17 22:37:05 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 91E82106566B; Tue, 17 Mar 2009 22:37:05 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id 23F8B8FC1E; Tue, 17 Mar 2009 22:37:05 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.3/8.14.3) with ESMTP id n2HMdfiW033394; Tue, 17 Mar 2009 18:39:41 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Marcel Moolenaar In-Reply-To: <94E025C2-8AC4-4AAF-B7D2-43B836D1CC36@mac.com> References: <1237326957.5465.100.camel@shumai.marcuscom.com> <94E025C2-8AC4-4AAF-B7D2-43B836D1CC36@mac.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-DIfuoeMxCI0aZ+eyRZ0T" Organization: MarcusCom, Inc. Date: Tue, 17 Mar 2009 18:37:07 -0400 Message-Id: <1237329427.5465.136.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on creme-brulee.marcuscom.com Cc: FreeBSD Current , freebsd-gnome@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB2: usb_device_info not declared (redux) 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: Tue, 17 Mar 2009 22:37:06 -0000 --=-DIfuoeMxCI0aZ+eyRZ0T Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2009-03-17 at 15:27 -0700, Marcel Moolenaar wrote: > On Mar 17, 2009, at 2:55 PM, Joe Marcus Clarke wrote: >=20 > > On Tue, 2009-03-17 at 13:23 -0700, Marcel Moolenaar wrote: > >> I got the following error building KDE4 on FreeBSD/powerpc (-=20 > >> current): > >> > >> In file included from /usr/obj/nfs/freebsd/ports/x11/kdebase4/work/ > >> kdebase-4.2.1/apps/kinfocenter/usbview/kcmusb.cpp:27: > >> /usr/obj/nfs/freebsd/ports/x11/kdebase4/work/kdebase-4.2.1/apps/ > >> kinfocenter/usbview/usbdevices.h:80: error: 'usb_device_info' has not > >> been declared > >> *** Error code 1 > >> > >> Do we have closure on where it's going to be fixed? > >> Do we know if GNOME is affected as well? > > > > All GNOME Desktop components should now be building on the latest > > -CURRENT. >=20 > Ok. I guess we change consumers. >=20 > I switch to GNOME again (I keep ping-ponging :-) >=20 > Thanks for tracking -current so closely. It's very much appreciated! Tracking -CURRENT is the key. This means running delete-old and delete-old-libs, and removing stale packages. In this case, you should NOT have devel/libusb installed on -CURRENT anymore. If you do that, you shouldn't have any issues with GNOME. I'm running GNOME 2.25 on -CURRENT i386 and amd64 quite well. I assume 2.24 should be okay, but any issues found will be fixed. Joe >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-DIfuoeMxCI0aZ+eyRZ0T Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAknAJhIACgkQb2iPiv4Uz4fN4gCeNHGegvV4dIHJjy9Gk2cUcOMA kh0An3pMgumhouOP8a40LkN/cg5q3cvL =RkGE -----END PGP SIGNATURE----- --=-DIfuoeMxCI0aZ+eyRZ0T-- From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 01:10:58 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 221E61065672; Wed, 18 Mar 2009 01:10:58 +0000 (UTC) (envelope-from jrh29@alumni.cwru.edu) Received: from beta.eecs.cwru.edu (beta.eecs.CWRU.Edu [129.22.150.110]) by mx1.freebsd.org (Postfix) with ESMTP id C78F18FC17; Wed, 18 Mar 2009 01:10:57 +0000 (UTC) (envelope-from jrh29@alumni.cwru.edu) Received: from narn.knownspace ([::ffff:69.250.50.210]) (AUTH: PLAIN jrh29, TLS: TLSv1/SSLv3,168bits,DES-CBC3-SHA) by beta.eecs.cwru.edu with esmtp; Tue, 17 Mar 2009 18:55:17 -0400 id 00004C12.49C02A55.00001B2A Date: Tue, 17 Mar 2009 18:55:53 -0400 From: Justin Hibbits To: Marcel Moolenaar Message-ID: <20090317225553.GA20340@narn.knownspace> References: <1237326957.5465.100.camel@shumai.marcuscom.com> <94E025C2-8AC4-4AAF-B7D2-43B836D1CC36@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <94E025C2-8AC4-4AAF-B7D2-43B836D1CC36@mac.com> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Joe Marcus Clarke , FreeBSD Current , freebsd-usb@freebsd.org, freebsd-gnome@freebsd.org Subject: Re: USB2: usb_device_info not declared (redux) 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: Wed, 18 Mar 2009 01:10:58 -0000 On Tue, Mar 17, 2009 at 03:27:17PM -0700, Marcel Moolenaar wrote: > > On Mar 17, 2009, at 2:55 PM, Joe Marcus Clarke wrote: > > > On Tue, 2009-03-17 at 13:23 -0700, Marcel Moolenaar wrote: > >> I got the following error building KDE4 on FreeBSD/powerpc (- > >> current): > >> > >> In file included from /usr/obj/nfs/freebsd/ports/x11/kdebase4/work/ > >> kdebase-4.2.1/apps/kinfocenter/usbview/kcmusb.cpp:27: > >> /usr/obj/nfs/freebsd/ports/x11/kdebase4/work/kdebase-4.2.1/apps/ > >> kinfocenter/usbview/usbdevices.h:80: error: 'usb_device_info' has not > >> been declared > >> *** Error code 1 > >> > >> Do we have closure on where it's going to be fixed? > >> Do we know if GNOME is affected as well? > > > > All GNOME Desktop components should now be building on the latest > > -CURRENT. > > Ok. I guess we change consumers. > > I switch to GNOME again (I keep ping-ponging :-) > > Thanks for tracking -current so closely. It's very much appreciated! > > -- > Marcel Moolenaar > xcllnt@mac.com A patch to kdebase4 was applied recently as well (last couple days). Updating your ports tree to today's should fix that. - Justin From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 07:50:19 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 9C1571065670; Wed, 18 Mar 2009 07:50:19 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swip.net [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id D12EC8FC08; Wed, 18 Mar 2009 07:50:18 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=43LKmNx98UoA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=6I5d2MoRAAAA:8 a=tvf_CbeH7eBSgVi82vUA:9 a=z05f_VU47Xxj0qSpKmcA:7 a=_2dsPlJt2eAaEAyhkwp07hUIvH0A:4 a=50e4U0PicR4A:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 468471919; Wed, 18 Mar 2009 08:50:16 +0100 From: Hans Petter Selasky To: Weongyo Jeong Date: Wed, 18 Mar 2009 08:52:47 +0100 User-Agent: KMail/1.9.7 References: <20090318073032.GA12632@weongyo.cdnetworks.kr> In-Reply-To: <20090318073032.GA12632@weongyo.cdnetworks.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903180852.48034.hselasky@c2i.net> Cc: Sam Leffler , freebsd-usb@freebsd.org, Andrew Thompson Subject: Re: q: USB_SET_TIMEOUT in ugen. 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: Wed, 18 Mar 2009 07:50:19 -0000 Hi, On Wednesday 18 March 2009, Weongyo Jeong wrote: > Hello, > > During porting uath(4) to usb2 I found the following code failed to run: > > data = open("/dev/usb/0.2.2", O_WRONLY, 0); > timeout = UATH_DATA_TIMEOUT; > if (ioctl(data, USB_SET_TIMEOUT, &timeout) < 0) > err(-1, "%s: USB_SET_TIMEOUT(%u)", datadev, > UATH_DATA_TIMEOUT); > > and the error was: > > uathload: /dev/usb/0.2.2: USB_SET_TIMEOUT(1000): Invalid > argument Use the following macro instead: #define USB_SET_TX_TIMEOUT _IOW ('U', 137, int) There also is a match for USB_SET_RX_TIMEOUT . USB_SET_TIMEOUT has been removed. Also don't forget to include "usb_ioctl.h" . Another idea: Port the program to libusb .... > > It looks it's ok with calling ioctl(msg, USB_SET_TIMEOUT, ..) to > /dev/usb/0.2.1 > > And the behaviour of program isn't likely with usb1 that it worked well > in usb1. After writing some data into msg and data pipe there was no > any response using read(2). The problem source can be found at:. > > http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/user/weongyo >/wireless/src/usr.sbin/uathload&HIDEDEL=NO > > Are there something I missed in here? > See hints above. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 08:00:19 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 9F760106564A for ; Wed, 18 Mar 2009 08:00:19 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 5482B8FC08 for ; Wed, 18 Mar 2009 08:00:19 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: by yw-out-2324.google.com with SMTP id 5so270850ywh.13 for ; Wed, 18 Mar 2009 01:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:mime-version:content-type :content-disposition:user-agent:organization:x-operation-sytem; bh=FHlDtGDzjfhX0/K2CMJKUtntWOLmByBXVh81UDYHDNY=; b=Tt28QCdFm9p1Voj8aro5JdT0j3Hb9h31HAIjBc2ZSSgyEKVkYX6YQgFVci+BgQpEPf ZZG8HDuy+nRjzmaBVegeb2SqGTiU4AyYb4mO4C81lhqeey3n53o6aavOVixBDb5gN9H3 9XQZKnVlq6PDqzIb2XqRoDZcZ1N/+8o+3SAEs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:mime-version :content-type:content-disposition:user-agent:organization :x-operation-sytem; b=TPXGDukue/q7YfmHLUNhjqrU6r2Kd1blBMv0QVAgV+Dih/3x9D+8y0BXe/0hgP+kUx js2Wz/MUZxqfjvEIhOnnnRhVz4h2FVJe6z4uFEr2ifjXbfTjc6tKsA13Cc59IG8M5cE5 Pd5Yw7tryCGzxIw9NGKAMNjxElWtuUqJRk/X0= Received: by 10.114.183.20 with SMTP id g20mr581660waf.142.1237361437442; Wed, 18 Mar 2009 00:30:37 -0700 (PDT) Received: from weongyo ([114.111.62.249]) by mx.google.com with ESMTPS id c26sm1919977waa.50.2009.03.18.00.30.35 (version=SSLv3 cipher=RC4-MD5); Wed, 18 Mar 2009 00:30:37 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Wed, 18 Mar 2009 16:30:33 +0900 From: Weongyo Jeong Date: Wed, 18 Mar 2009 16:30:32 +0900 To: Hans Petter Selasky Message-ID: <20090318073032.GA12632@weongyo.cdnetworks.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: Sam Leffler , freebsd-usb@freebsd.org, Andrew Thompson Subject: q: USB_SET_TIMEOUT in ugen. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 08:00:20 -0000 Hello, During porting uath(4) to usb2 I found the following code failed to run: data = open("/dev/usb/0.2.2", O_WRONLY, 0); timeout = UATH_DATA_TIMEOUT; if (ioctl(data, USB_SET_TIMEOUT, &timeout) < 0) err(-1, "%s: USB_SET_TIMEOUT(%u)", datadev, UATH_DATA_TIMEOUT); and the error was: uathload: /dev/usb/0.2.2: USB_SET_TIMEOUT(1000): Invalid argument It looks it's ok with calling ioctl(msg, USB_SET_TIMEOUT, ..) to /dev/usb/0.2.1 And the behaviour of program isn't likely with usb1 that it worked well in usb1. After writing some data into msg and data pipe there was no any response using read(2). The problem source can be found at:. http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/user/weongyo/wireless/src/usr.sbin/uathload&HIDEDEL=NO Are there something I missed in here? regards, Weongyo Jeong From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 11:46:51 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 61B501065675; Wed, 18 Mar 2009 11:46:51 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 1E5D18FC15; Wed, 18 Mar 2009 11:46:51 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: by wa-out-1112.google.com with SMTP id m38so6639waf.27 for ; Wed, 18 Mar 2009 04:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:organization :x-operation-sytem; bh=ZbIkAmXqdHldltDq22jB/+MzrnNSwVmQUXmAYGsudB4=; b=lxzGr9Q1Z8Ic/2ImdCTmCxCVT2FEV4un2bFfZSH45jtZ4PkEmoOi2r6SVCJDBaE0p+ QjpxPuBUyQray5UtWlwH1tQtCeTopUrwFhfKAWk3qlz9cy33ts+/6/Q4GJH7CmStTnrN 0kqVcila37Eivnsa0hvrLJ7xS646UVBjTlhVo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :organization:x-operation-sytem; b=NJnDajDTQe0m+KAs0itaxlcBHy7Wfvf3Wc7azrhEHUsvt/6gYFEXPLFYzGvWdIOge9 ec3nki/Vo2EUDtNsXyk0e+0cevSzE9bxCEfYu6gv2qrJkm8Lmh7ADAs2wu9gN2iW3p5o 4zf0m5eLQFQZFB/zKpLbiJQ3MgtOS2Pzy23L8= Received: by 10.114.176.1 with SMTP id y1mr745517wae.49.1237376810607; Wed, 18 Mar 2009 04:46:50 -0700 (PDT) Received: from weongyo ([114.111.62.249]) by mx.google.com with ESMTPS id j26sm30774waf.59.2009.03.18.04.46.48 (version=SSLv3 cipher=RC4-MD5); Wed, 18 Mar 2009 04:46:50 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Wed, 18 Mar 2009 20:46:42 +0900 From: Weongyo Jeong Date: Wed, 18 Mar 2009 20:46:42 +0900 To: Hans Petter Selasky Message-ID: <20090318114642.GB12632@weongyo.cdnetworks.kr> References: <20090318073032.GA12632@weongyo.cdnetworks.kr> <200903180852.48034.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200903180852.48034.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: Sam Leffler , freebsd-usb@freebsd.org, Andrew Thompson Subject: Re: q: USB_SET_TIMEOUT in ugen. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 11:46:51 -0000 On Wed, Mar 18, 2009 at 08:52:47AM +0100, Hans Petter Selasky wrote: > Hi, > > On Wednesday 18 March 2009, Weongyo Jeong wrote: > > Hello, > > > > During porting uath(4) to usb2 I found the following code failed to run: > > > > data = open("/dev/usb/0.2.2", O_WRONLY, 0); > > timeout = UATH_DATA_TIMEOUT; > > if (ioctl(data, USB_SET_TIMEOUT, &timeout) < 0) > > err(-1, "%s: USB_SET_TIMEOUT(%u)", datadev, > > UATH_DATA_TIMEOUT); > > > > and the error was: > > > > uathload: /dev/usb/0.2.2: USB_SET_TIMEOUT(1000): Invalid > > argument > > Use the following macro instead: > > #define USB_SET_TX_TIMEOUT _IOW ('U', 137, int) > > There also is a match for USB_SET_RX_TIMEOUT . > > USB_SET_TIMEOUT has been removed. > > Also don't forget to include "usb_ioctl.h" . > > Another idea: > > Port the program to libusb .... > > > > > It looks it's ok with calling ioctl(msg, USB_SET_TIMEOUT, ..) to > > /dev/usb/0.2.1 > > > > And the behaviour of program isn't likely with usb1 that it worked well > > in usb1. After writing some data into msg and data pipe there was no > > any response using read(2). The problem source can be found at:. > > > > http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/user/weongyo > >/wireless/src/usr.sbin/uathload&HIDEDEL=NO > > > > Are there something I missed in here? > > > > See hints above. Thank you for advise. :-) I've solve `Invalid argument' error. However the program looks it still doesn't work. All functions the problem used are open(2), ioctl(2), read(2) and write(2). I think I can try to use libusb but it'd be better if it works again using the above 4 system calls. Is it supported in CURRENT or is it a one of regression? regards, Weongyo Jeong From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 13:51:51 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 41E5E106566C; Wed, 18 Mar 2009 13:51:51 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.swipnet.se [212.247.155.225]) by mx1.freebsd.org (Postfix) with ESMTP id 134718FC0A; Wed, 18 Mar 2009 13:51:49 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=43LKmNx98UoA:10 a=6I5d2MoRAAAA:8 a=de1quZT7TJFzwo-8ftkA:9 a=I2bVkS09J8oob1nPCaUA:7 a=YtdkiAnRMYEJ94RFeoUx6uAE0hYA:4 a=LY0hPdMaydYA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO [10.36.2.183]) by mailfe16.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 468045948; Wed, 18 Mar 2009 14:51:48 +0100 From: Hans Petter Selasky To: Weongyo Jeong Date: Wed, 18 Mar 2009 14:54:17 +0100 User-Agent: KMail/1.9.7 References: <20090318073032.GA12632@weongyo.cdnetworks.kr> <200903180852.48034.hselasky@c2i.net> <20090318114642.GB12632@weongyo.cdnetworks.kr> In-Reply-To: <20090318114642.GB12632@weongyo.cdnetworks.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903181454.18859.hselasky@c2i.net> Cc: Sam Leffler , freebsd-usb@freebsd.org, Andrew Thompson Subject: Re: q: USB_SET_TIMEOUT in ugen. 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: Wed, 18 Mar 2009 13:51:51 -0000 On Wednesday 18 March 2009, Weongyo Jeong wrote: > On Wed, Mar 18, 2009 at 08:52:47AM +0100, Hans Petter Selasky wrote: > > Hi, > > > > On Wednesday 18 March 2009, Weongyo Jeong wrote: > > > Hello, > > > > > > During porting uath(4) to usb2 I found the following code failed to > > > run: > > > > > > data = open("/dev/usb/0.2.2", O_WRONLY, 0); > > > timeout = UATH_DATA_TIMEOUT; > > > if (ioctl(data, USB_SET_TIMEOUT, &timeout) < 0) > > > err(-1, "%s: USB_SET_TIMEOUT(%u)", datadev, > > > UATH_DATA_TIMEOUT); > > > > > > and the error was: > > > > > > uathload: /dev/usb/0.2.2: USB_SET_TIMEOUT(1000): Invalid > > > argument > > > > Use the following macro instead: > > > > #define USB_SET_TX_TIMEOUT _IOW ('U', 137, int) > > > > There also is a match for USB_SET_RX_TIMEOUT . > > > > USB_SET_TIMEOUT has been removed. > > > > Also don't forget to include "usb_ioctl.h" . > > > > Another idea: > > > > Port the program to libusb .... > > > > > It looks it's ok with calling ioctl(msg, USB_SET_TIMEOUT, ..) to > > > /dev/usb/0.2.1 > > > > > > And the behaviour of program isn't likely with usb1 that it worked well > > > in usb1. After writing some data into msg and data pipe there was no > > > any response using read(2). The problem source can be found at:. > > > > > > http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/user/weo > > >ngyo /wireless/src/usr.sbin/uathload&HIDEDEL=NO > > > > > > Are there something I missed in here? > > > > See hints above. > > Thank you for advise. :-) I've solve `Invalid argument' error. However > the program looks it still doesn't work. All functions the problem used > are open(2), ioctl(2), read(2) and write(2). I think I can try to use > libusb but it'd be better if it works again using the above 4 system > calls. > > Is it supported in CURRENT or is it a one of regression? > > regards, > Weongyo Jeong What other IOCTL's are used? Can you make a debug trace: sysctl hw.usb2.ugen.debug=15 sysctl hw.usb2.dev.debug=15 ? --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 16:08:01 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 9A45410656E8 for ; Wed, 18 Mar 2009 16:08:01 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9A6838FC49 for ; Wed, 18 Mar 2009 16:07:59 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA01491; Wed, 18 Mar 2009 17:44:43 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <49C116EB.7020409@icyb.net.ua> Date: Wed, 18 Mar 2009 17:44:43 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.19 (X11/20090110) MIME-Version: 1.0 To: freebsd-usb@freebsd.org, FreeBSD Hackers References: <4912E462.4090608@icyb.net.ua> <491586B9.2020303@vwsoft.com> <4919851B.7050800@icyb.net.ua> <492FF127.807@icyb.net.ua> <20081128134802.GA75900@onelab2.iet.unipi.it> <493D37DB.6030902@icyb.net.ua> In-Reply-To: <493D37DB.6030902@icyb.net.ua> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Luigi Rizzo Subject: Re: usb keyboard dying at loader prompt 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: Wed, 18 Mar 2009 16:08:29 -0000 I would like to report that I am no longer seeing the issue in the subject line. The problem was fixed by the recent commits of jhb ( I tested stable/7). -- Andriy Gapon From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 19:31:40 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 4850D1065670 for ; Wed, 18 Mar 2009 19:31:40 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.freebsd.org (Postfix) with ESMTP id BD6238FC14 for ; Wed, 18 Mar 2009 19:31:39 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A5BAA.dip.t-dialin.net [84.154.91.170]) (authenticated bits=0) by flat.berklix.org (8.13.8/8.13.8) with ESMTP id n2IJ7O6l062220 for ; Wed, 18 Mar 2009 20:07:25 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by js.berklix.net (8.13.8/8.13.8) with ESMTP id n2IJ7pp0085676 for ; Wed, 18 Mar 2009 20:07:51 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id n2IJ7k1D042835 for ; Wed, 18 Mar 2009 20:07:51 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200903181907.n2IJ7k1D042835@fire.js.berklix.net> To: freebsd-usb@freebsd.org From: "Julian Stacey" Organization: http://berklix.com BSD Linux Unix Consultancy, Munich Germany. User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://berklix.com/~jhs/cv/ Date: Wed, 18 Mar 2009 20:07:46 +0100 Sender: jhs@berklix.org Subject: Belkin Cardbus USB2 adaptors too hot. 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: Wed, 18 Mar 2009 19:31:41 -0000 Hi, Anyone else noticed Belkin Cardbus USB2 adaptors run extremely hot ? I've been having weird things happen umass errs, g_vfs_done()da0a[WRITE(offset=...., length=131072)]error = 5 first errors after a 66G write, subsequent errors after just 1G more, (in retrospect when truly hot) I've built a break out box to check Voltages & Current delivered into external USB2 to IDE enclosures, just bought another new 250G IDE for another enclosure, lots of enclosures & usb2 hub power blocks tried, then I remembered this card used to run hot on FreeBSD-6, in this Toshiba Satellite S5100-603, & I think BSD + this laptop cooked my brothers identical Belkin card too last year. The laptop BTW: http://www.berklix.com/~jhs/hardware/toshiba/satellite.s5100-603/ So 2 things: FreeBSD-7.1-RELEASE is still cooking by default. I recall cardbus can run at 2 different voltages ? Well we need to change something to detect that. Anyone want to throw me an RTFM URL start point for reading ? (Sorry to ask here & not read first, trying to catch a boat ASAP). Cheers, Julian -- Julian Stacey: BSDUnixLinux C Prog Admin SysEng Consult Munich www.berklix.com Mail plain ASCII text. HTML & Base64 text are spam. www.asciiribbon.org From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 19:58:15 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 6FF42106564A for ; Wed, 18 Mar 2009 19:58:15 +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 2C6CC8FC17 for ; Wed, 18 Mar 2009 19:58:15 +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 n2IJuvYj055715; Wed, 18 Mar 2009 13:56:57 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 18 Mar 2009 13:57:29 -0600 (MDT) Message-Id: <20090318.135729.1159138617.imp@bsdimp.com> To: jhs@berklix.org From: "M. Warner Losh" In-Reply-To: <200903181907.n2IJ7k1D042835@fire.js.berklix.net> References: <200903181907.n2IJ7k1D042835@fire.js.berklix.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-usb@freebsd.org Subject: Re: Belkin Cardbus USB2 adaptors too hot. 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: Wed, 18 Mar 2009 19:58:15 -0000 In message: <200903181907.n2IJ7k1D042835@fire.js.berklix.net> "Julian Stacey" writes: : Hi, : Anyone else noticed Belkin Cardbus USB2 adaptors run extremely hot ? : I've been having weird things happen : umass errs, g_vfs_done()da0a[WRITE(offset=...., : length=131072)]error = 5 first errors after a 66G write, : subsequent errors after just 1G more, (in retrospect when : truly hot) : I've built a break out box to check Voltages & Current : delivered into external USB2 to IDE enclosures, : just bought another new 250G IDE for another enclosure, : lots of enclosures & usb2 hub power blocks tried, then I : remembered this card used to run hot on FreeBSD-6, in this : Toshiba Satellite S5100-603, & I think BSD + this laptop : cooked my brothers identical Belkin card too last year. : The laptop BTW: : http://www.berklix.com/~jhs/hardware/toshiba/satellite.s5100-603/ : So 2 things: : FreeBSD-7.1-RELEASE is still cooking by default. : I recall cardbus can run at 2 different voltages ? : Well we need to change something to detect that. : Anyone want to throw me an RTFM URL start point for reading ? : (Sorry to ask here & not read first, trying to catch a boat ASAP). Cardbus runs at 3.3V only. There's X.X and Y.Y low-voltage specs, but nobody seems to implement them. PC Card (the 16-bit version) runs at 3.3V or 5.0V. The usual reason for cards running really hot is too much current draw over the bus for supplied devices. Many of the cards have an external power supply that can be used to provide more power over a path that is made for it rather than exceeding the CardBus specs to pull the power in over that power bus. Don't know if this card has that or not... Warner From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 19:59:11 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 18C491065672 for ; Wed, 18 Mar 2009 19:59:11 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id CABC48FC13 for ; Wed, 18 Mar 2009 19:59:10 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0KGP004KYWULN320@osl1smout1.broadpark.no> for freebsd-usb@freebsd.org; Wed, 18 Mar 2009 20:59:09 +0100 (CET) Received: from kg-work2.kg4.no ([80.202.83.38]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0KGP005Y5WUL9530@osl1sminn1.broadpark.no> for freebsd-usb@freebsd.org; Wed, 18 Mar 2009 20:59:09 +0100 (CET) Date: Wed, 18 Mar 2009 20:59:09 +0100 From: Torfinn Ingolfsen To: freebsd-usb@freebsd.org Message-id: <20090318205909.07625cdb.torfinn.ingolfsen@broadpark.no> In-reply-to: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> References: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: Xorg 7.4 and umass devices - a bad combination? 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: Wed, 18 Mar 2009 19:59:11 -0000 Hello, More testing. - I verified that listing the firewire drive while Xorg is running doesn't seeem to cause any errors. So I thought: what happens if I start Xorg (using startx), then exit it and _then_ do an 'ls' on the usb drives? First try: 'startx', do a couple of commands (like 'date', 'pwd'), the exit Xorg again. Then do 'ls' on the usb drives. Result: it works without errors. Second try: 'startx', do a couple of commands (like 'date', 'pwd'), the exit Xorg again. Then do 'ls' on the usb drives. Result: the erors are back. -- Regards, Torfinn Ingolfsen From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 20:01:55 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 41711106566B for ; Wed, 18 Mar 2009 20:01:55 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id F14118FC12 for ; Wed, 18 Mar 2009 20:01:54 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0KGP004PGWZ6N320@osl1smout1.broadpark.no> for freebsd-usb@freebsd.org; Wed, 18 Mar 2009 21:01:54 +0100 (CET) Received: from kg-work2.kg4.no ([80.202.83.38]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0KGP006E0WZ5V820@osl1sminn1.broadpark.no> for freebsd-usb@freebsd.org; Wed, 18 Mar 2009 21:01:54 +0100 (CET) Date: Wed, 18 Mar 2009 21:01:53 +0100 From: Torfinn Ingolfsen To: freebsd-usb@freebsd.org Message-id: <20090318210153.188e35db.torfinn.ingolfsen@broadpark.no> In-reply-to: <20090318205909.07625cdb.torfinn.ingolfsen@broadpark.no> References: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> <20090318205909.07625cdb.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: Xorg 7.4 and umass devices - a bad combination? 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: Wed, 18 Mar 2009 20:01:55 -0000 On Wed, 18 Mar 2009 20:59:09 +0100 Torfinn Ingolfsen wrote: > More testing. Also, drm uses irq 18. AFAICT, this doesn't conflict with anything else: Mar 18 20:49:45 kg-quiet kernel: drm0: port 0xef00-0xefff mem 0xd8000000-0xdfffffff,0xfdef0000-0xfdefffff irq 18 at device 0.0 on pci1 Mar 18 20:49:45 kg-quiet kernel: info: [drm] Initialized radeon 1.25.0 20060524 Mar 18 20:49:46 kg-quiet kernel: info: [drm] Setting GART location based on new memory map Mar 18 20:49:46 kg-quiet kernel: info: [drm] Loading R300 Microcode Mar 18 20:49:46 kg-quiet kernel: info: [drm] writeback test succeeded in 1 usecs -- Torfinn From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 20:15:54 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 F33A3106566C for ; Wed, 18 Mar 2009 20:15:53 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by mx1.freebsd.org (Postfix) with ESMTP id CB1928FC12 for ; Wed, 18 Mar 2009 20:15:53 +0000 (UTC) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.14.3/8.14.3) with ESMTP id n2IKFWIb011457 for ; Wed, 18 Mar 2009 16:15:32 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200903182015.n2IKFWIb011457@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 18 Mar 2009 16:15:46 -0400 To: freebsd-usb@freebsd.org From: Mike Tancsa Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: openct port and USB2 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: Wed, 18 Mar 2009 20:15:54 -0000 Hi, I was trying to see if OpenCT and OpenSC work under the new USB regime, but openCT doesnt compile now. Are there any tricks to get it to compile and or work ? . . . mv -f .deps/libifd_la-sys-sunray.Tpo .deps/libifd_la-sys-sunray.Plo /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT libifd_la-sys-solaris.lo -MD -MP -MF .deps/libifd_la-sys-solaris.Tpo -c -o libifd_la-sys-solaris.lo `test -f 'sys-solaris.c' || echo './'`sys-solaris.c cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT libifd_la-sys-solaris.lo -MD -MP -MF .deps/libifd_la-sys-solaris.Tpo -c sys-solaris.c -fPIC -DPIC -o .libs/libifd_la-sys-solaris.o cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT libifd_la-sys-solaris.lo -MD -MP -MF .deps/libifd_la-sys-solaris.Tpo -c sys-solaris.c -o libifd_la-sys-solaris.o >/dev/null 2>&1 mv -f .deps/libifd_la-sys-solaris.Tpo .deps/libifd_la-sys-solaris.Plo /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT libifd_la-sys-bsd.lo -MD -MP -MF .deps/libifd_la-sys-bsd.Tpo -c -o libifd_la-sys-bsd.lo `test -f 'sys-bsd.c' || echo './'`sys-bsd.c cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT libifd_la-sys-bsd.lo -MD -MP -MF .deps/libifd_la-sys-bsd.Tpo -c sys-bsd.c -fPIC -DPIC -o .libs/libifd_la-sys-bsd.o sys-bsd.c: In function 'ifd_sysdep_usb_bulk': sys-bsd.c:113: error: 'USB_SET_SHORT_XFER' undeclared (first use in this function) sys-bsd.c:113: error: (Each undeclared identifier is reported only once sys-bsd.c:113: error: for each function it appears in.) sys-bsd.c: In function 'ifd_sysdep_usb_control': sys-bsd.c:243: error: storage size of 'ctrl' isn't known sys-bsd.c:256: error: 'USBD_SHORT_XFER_OK' undeclared (first use in this function) sys-bsd.c:265: error: 'USB_SET_TIMEOUT' undeclared (first use in this function) sys-bsd.c:272: error: 'USB_DO_REQUEST' undeclared (first use in this function) sys-bsd.c: In function 'ifd_sysdep_usb_set_configuration': sys-bsd.c:291: error: 'USB_SET_CONFIG' undeclared (first use in this function) sys-bsd.c: In function 'ifd_sysdep_usb_set_interface': sys-bsd.c:312: error: 'USB_SET_ALTINTERFACE' undeclared (first use in this function) sys-bsd.c: In function 'ifd_scan_usb': sys-bsd.c:378: error: 'USB_MAX_DEVICES' undeclared (first use in this function) sys-bsd.c:379: error: storage size of 'device_info' isn't known sys-bsd.c:386: error: 'USB_DEVICEINFO' undeclared (first use in this function) gmake[3]: *** [libifd_la-sys-bsd.lo] Error 1 gmake[3]: Leaving directory `/usr/ports/security/openct/work/openct-0.6.15/src/ifd' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/security/openct/work/openct-0.6.15/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/security/openct/work/openct-0.6.15' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/security/openct. *** Error code 1 Stop in /usr/ports/security/openct. 1[i7]# ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 21:09: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 8FFF0106566B for ; Wed, 18 Mar 2009 21:09:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.swipnet.se [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id F2D228FC16 for ; Wed, 18 Mar 2009 21:09:03 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=STAwMDSBDEqr1-HYUoYA:9 a=OcLNl2sCqAbrnodWlMgA:7 a=w4T2lPRoY7Qc9CtRPVV74t1NjrYA:4 a=LY0hPdMaydYA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 465427009; Wed, 18 Mar 2009 22:09:02 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 18 Mar 2009 22:11:29 +0100 User-Agent: KMail/1.9.7 References: <200903182015.n2IKFWIb011457@lava.sentex.ca> In-Reply-To: <200903182015.n2IKFWIb011457@lava.sentex.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903182211.30046.hselasky@c2i.net> Cc: Subject: Re: openct port and USB2 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: Wed, 18 Mar 2009 21:09:04 -0000 On Wednesday 18 March 2009, Mike Tancsa wrote: > Hi, > I was trying to see if OpenCT and OpenSC work under the new > USB regime, but openCT doesnt compile now. Are there any tricks to > get it to compile and or work ? > > . > . > . > mv -f .deps/libifd_la-sys-sunray.Tpo .deps/libifd_la-sys-sunray.Plo > /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H > -I. -I../.. -I../../src/include > -I../../src/include -I/usr/local/include -O2 -pipe > -fno-strict-aliasing -MT libifd_la-sys-solaris.lo -MD -MP -MF > .deps/libifd_la-sys-solaris.Tpo -c -o libifd_la-sys-solaris.lo `test > -f 'sys-solaris.c' || echo './'`sys-solaris.c > cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include > -I../../src/include -I/usr/local/include -O2 -pipe > -fno-strict-aliasing -MT libifd_la-sys-solaris.lo -MD -MP -MF > .deps/libifd_la-sys-solaris.Tpo -c sys-solaris.c -fPIC -DPIC -o > .libs/libifd_la-sys-solaris.o > cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include > -I../../src/include -I/usr/local/include -O2 -pipe > -fno-strict-aliasing -MT libifd_la-sys-solaris.lo -MD -MP -MF > .deps/libifd_la-sys-solaris.Tpo -c sys-solaris.c -o > libifd_la-sys-solaris.o >/dev/null 2>&1 > mv -f .deps/libifd_la-sys-solaris.Tpo .deps/libifd_la-sys-solaris.Plo > /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H > -I. -I../.. -I../../src/include > -I../../src/include -I/usr/local/include -O2 -pipe > -fno-strict-aliasing -MT libifd_la-sys-bsd.lo -MD -MP -MF > .deps/libifd_la-sys-bsd.Tpo -c -o libifd_la-sys-bsd.lo `test -f > 'sys-bsd.c' || echo './'`sys-bsd.c > cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include > -I../../src/include -I/usr/local/include -O2 -pipe > -fno-strict-aliasing -MT libifd_la-sys-bsd.lo -MD -MP -MF > .deps/libifd_la-sys-bsd.Tpo -c sys-bsd.c -fPIC -DPIC -o > .libs/libifd_la-sys-bsd.o > sys-bsd.c: In function 'ifd_sysdep_usb_bulk': > sys-bsd.c:113: error: 'USB_SET_SHORT_XFER' undeclared (first use in > this function) > sys-bsd.c:113: error: (Each undeclared identifier is reported only once > sys-bsd.c:113: error: for each function it appears in.) > sys-bsd.c: In function 'ifd_sysdep_usb_control': > sys-bsd.c:243: error: storage size of 'ctrl' isn't known > sys-bsd.c:256: error: 'USBD_SHORT_XFER_OK' undeclared (first use in > this function) > sys-bsd.c:265: error: 'USB_SET_TIMEOUT' undeclared (first use in this > function) sys-bsd.c:272: error: 'USB_DO_REQUEST' undeclared (first use in > this function) sys-bsd.c: In function 'ifd_sysdep_usb_set_configuration': > sys-bsd.c:291: error: 'USB_SET_CONFIG' undeclared (first use in this > function) sys-bsd.c: In function 'ifd_sysdep_usb_set_interface': > sys-bsd.c:312: error: 'USB_SET_ALTINTERFACE' undeclared (first use in > this function) > sys-bsd.c: In function 'ifd_scan_usb': > sys-bsd.c:378: error: 'USB_MAX_DEVICES' undeclared (first use in this > function) sys-bsd.c:379: error: storage size of 'device_info' isn't known > sys-bsd.c:386: error: 'USB_DEVICEINFO' undeclared (first use in this > function) gmake[3]: *** [libifd_la-sys-bsd.lo] Error 1 > gmake[3]: Leaving directory > `/usr/ports/security/openct/work/openct-0.6.15/src/ifd' > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory > `/usr/ports/security/openct/work/openct-0.6.15/src' gmake[1]: *** > [all-recursive] Error 1 > gmake[1]: Leaving directory `/usr/ports/security/openct/work/openct-0.6.15' > gmake: *** [all] Error 2 > *** Error code 2 > > Stop in /usr/ports/security/openct. > *** Error code 1 > > Stop in /usr/ports/security/openct. > 1[i7]# > > ---Mike > You need to check in the sources if there is a libusb-based backend which you can use! Else the old way is still supported, but ioctl numbers have changed. See /usr/include/dev/usb/usb_ioctl.h --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 21:40: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 4D86B1065673 for ; Wed, 18 Mar 2009 21:40:32 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 0C30C8FC1F for ; Wed, 18 Mar 2009 21:40:31 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 51249FF69; Thu, 19 Mar 2009 10:40:31 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kcKZW3BV49Cp; Thu, 19 Mar 2009 10:40:25 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Thu, 19 Mar 2009 10:40:25 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 4E3841142F; Thu, 19 Mar 2009 10:40:25 +1300 (NZDT) Date: Wed, 18 Mar 2009 14:40:25 -0700 From: Andrew Thompson To: Mike Tancsa Message-ID: <20090318214025.GB79077@citylink.fud.org.nz> References: <200903182015.n2IKFWIb011457@lava.sentex.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200903182015.n2IKFWIb011457@lava.sentex.ca> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-usb@freebsd.org Subject: Re: openct port and USB2 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: Wed, 18 Mar 2009 21:40:33 -0000 On Wed, Mar 18, 2009 at 04:15:46PM -0400, Mike Tancsa wrote: > Hi, > I was trying to see if OpenCT and OpenSC work under the new USB > regime, but openCT doesnt compile now. Are there any tricks to get it to > compile and or work ? > Can you try this patch. http://people.freebsd.org/~thompsa/openct.diff Andrew From owner-freebsd-usb@FreeBSD.ORG Wed Mar 18 23:48:24 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4276E106572E for ; Wed, 18 Mar 2009 23:48:24 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 030408FC17 for ; Wed, 18 Mar 2009 23:48:23 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 2E994FF65 for ; Thu, 19 Mar 2009 12:48:23 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wOxmiqtb6ZTp for ; Thu, 19 Mar 2009 12:48:19 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP for ; Thu, 19 Mar 2009 12:48:19 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 992171142F; Thu, 19 Mar 2009 12:48:18 +1300 (NZDT) Date: Wed, 18 Mar 2009 16:48:18 -0700 From: Andrew Thompson To: usb Message-ID: <20090318234818.GD79077@citylink.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Subject: uscanner & sane 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: Wed, 18 Mar 2009 23:48:24 -0000 Hi, I am looking into fixing sane-backends and see that the uscanner driver is not needed at all. I wonder if we should follow Linux on this and remove it in favour of libusb? uscanner is just a simple wrapper around a fifo anyway, it has no logic. Andrew From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 00:04:55 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 16A3E106566B; Thu, 19 Mar 2009 00:04:55 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by mx1.freebsd.org (Postfix) with ESMTP id D68AE8FC15; Thu, 19 Mar 2009 00:04:54 +0000 (UTC) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.14.3/8.14.3) with ESMTP id n2J04YjP012665; Wed, 18 Mar 2009 20:04:34 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200903190004.n2J04YjP012665@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 18 Mar 2009 20:04:48 -0400 To: Andrew Thompson From: Mike Tancsa In-Reply-To: <20090318214025.GB79077@citylink.fud.org.nz> References: <200903182015.n2IKFWIb011457@lava.sentex.ca> <20090318214025.GB79077@citylink.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: freebsd-usb@FreeBSD.org Subject: Re: openct port and USB2 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, 19 Mar 2009 00:04:55 -0000 At 05:40 PM 3/18/2009, Andrew Thompson wrote: >On Wed, Mar 18, 2009 at 04:15:46PM -0400, Mike Tancsa wrote: > > Hi, > > I was trying to see if OpenCT and OpenSC work under the new USB > > regime, but openCT doesnt compile now. Are there any tricks to get it to > > compile and or work ? > > > >Can you try this patch. > >http://people.freebsd.org/~thompsa/openct.diff > Thanks! It does build now. However, not all of the bits seem to be working just yet 1[i7]# opensc-tool -l [opensc-tool] reader-pcsc.c:996:pcsc_detect_readers: returning with: No readers found No smart card readers found. 0[i7]# ps -auxww | grep if root 64638 0.0 0.1 3328 1640 ?? Ss 7:57PM 0:00.00 /usr/local/sbin/ifdhandler -H etoken64 usb (null)/usb//dev/usb//dev/ugen1.2 root 64653 0.0 0.1 3440 1616 2 R+ 7:59PM 0:00.00 grep if 0[i7]# 0[i7]# usbconfig 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: at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen7.1: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen6.2: at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.2: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.2: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON 0[i7]# ---Mike From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 00:30:06 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 6070D1065674 for ; Thu, 19 Mar 2009 00:30:06 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 1D9048FC16 for ; Thu, 19 Mar 2009 00:30:06 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 6E6DCFF64; Thu, 19 Mar 2009 13:30:05 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oUUiIUrHkF+G; Thu, 19 Mar 2009 13:30:02 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Thu, 19 Mar 2009 13:30:02 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 722E011432; Thu, 19 Mar 2009 13:30:01 +1300 (NZDT) Date: Wed, 18 Mar 2009 17:30:01 -0700 From: Andrew Thompson To: Mike Tancsa Message-ID: <20090319003001.GE79077@citylink.fud.org.nz> References: <200903182015.n2IKFWIb011457@lava.sentex.ca> <20090318214025.GB79077@citylink.fud.org.nz> <200903190004.n2J04YjP012665@lava.sentex.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200903190004.n2J04YjP012665@lava.sentex.ca> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-usb@FreeBSD.org Subject: Re: openct port and USB2 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, 19 Mar 2009 00:30:06 -0000 On Wed, Mar 18, 2009 at 08:04:48PM -0400, Mike Tancsa wrote: > At 05:40 PM 3/18/2009, Andrew Thompson wrote: >> On Wed, Mar 18, 2009 at 04:15:46PM -0400, Mike Tancsa wrote: >> > Hi, >> > I was trying to see if OpenCT and OpenSC work under the new USB >> > regime, but openCT doesnt compile now. Are there any tricks to get it to >> > compile and or work ? >> > >> >> Can you try this patch. >> >> http://people.freebsd.org/~thompsa/openct.diff >> > > Thanks! It does build now. However, not all of the bits seem to be > working just yet Thats odd, its working for me. > 1[i7]# opensc-tool -l > [opensc-tool] reader-pcsc.c:996:pcsc_detect_readers: returning with: No > readers found > No smart card readers found. % opensc-tool -l Readers known about: Nr. Driver Name 0 openct Aladdin eToken PRO 1 openct Aladdin eToken PRO 64k > 0[i7]# ps -auxww | grep if > root 64638 0.0 0.1 3328 1640 ?? Ss 7:57PM 0:00.00 > /usr/local/sbin/ifdhandler -H etoken64 usb (null)/usb//dev/usb//dev/ugen1.2 root 4433 0.0 0.1 3352 1548 ?? Ss 5:22PM 0:00.01 /usr/local/sbin/ifdhandler -H etoken usb (null)/usb//dev/usb//dev/ugen1.3 root 4435 0.0 0.1 3352 1548 ?? Ss 5:22PM 0:00.01 /usr/local/sbin/ifdhandler -H etoken64 usb (null)/usb//dev/usb//dev/ugen1.2 Does 'ldd /usr/local/sbin/ifdhandler' show it linked to /usr/lib/libusb.so.1 ? Andrew From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 00:47:07 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 8344B1065672; Thu, 19 Mar 2009 00:47:07 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by mx1.freebsd.org (Postfix) with ESMTP id 5DB628FC24; Thu, 19 Mar 2009 00:47:07 +0000 (UTC) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.14.3/8.14.3) with ESMTP id n2J0kk0x012885; Wed, 18 Mar 2009 20:46:46 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200903190046.n2J0kk0x012885@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 18 Mar 2009 20:47:01 -0400 To: Andrew Thompson From: Mike Tancsa In-Reply-To: <20090319003001.GE79077@citylink.fud.org.nz> References: <200903182015.n2IKFWIb011457@lava.sentex.ca> <20090318214025.GB79077@citylink.fud.org.nz> <200903190004.n2J04YjP012665@lava.sentex.ca> <20090319003001.GE79077@citylink.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: freebsd-usb@FreeBSD.org Subject: Re: openct port and USB2 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, 19 Mar 2009 00:47:07 -0000 At 08:30 PM 3/18/2009, Andrew Thompson wrote: >On Wed, Mar 18, 2009 at 08:04:48PM -0400, Mike Tancsa wrote: > > At 05:40 PM 3/18/2009, Andrew Thompson wrote: > >> On Wed, Mar 18, 2009 at 04:15:46PM -0400, Mike Tancsa wrote: > >> > Hi, > >> > I was trying to see if OpenCT and OpenSC work under the new USB > >> > regime, but openCT doesnt compile now. Are there any tricks > to get it to > >> > compile and or work ? > >> > > >> > >> Can you try this patch. > >> > >> http://people.freebsd.org/~thompsa/openct.diff > >> > > > > Thanks! It does build now. However, not all of the bits seem to be > > working just yet > >Thats odd, its working for me. > > > 1[i7]# opensc-tool -l > > [opensc-tool] reader-pcsc.c:996:pcsc_detect_readers: returning with: No > > readers found > > No smart card readers found. > >% opensc-tool -l >Readers known about: >Nr. Driver Name >0 openct Aladdin eToken PRO >1 openct Aladdin eToken PRO 64k > > > 0[i7]# ps -auxww | grep if > > root 64638 0.0 0.1 3328 1640 ?? Ss 7:57PM 0:00.00 > > /usr/local/sbin/ifdhandler -H etoken64 usb (null)/usb//dev/usb//dev/ugen1.2 > >root 4433 0.0 0.1 3352 1548 ?? Ss 5:22PM 0:00.01 >/usr/local/sbin/ifdhandler -H etoken usb >(null)/usb//dev/usb//dev/ugen1.3 >root 4435 0.0 0.1 3352 1548 ?? Ss 5:22PM 0:00.01 >/usr/local/sbin/ifdhandler -H etoken64 usb >(null)/usb//dev/usb//dev/ugen1.2 > >Does 'ldd /usr/local/sbin/ifdhandler' show it linked to >/usr/lib/libusb.so.1 ? Hi, 0[i7]# ldd /usr/local/sbin/ifdhandler /usr/local/sbin/ifdhandler: libopenct.so.1 => /usr/local/lib/libopenct.so.1 (0x280b0000) libltdl.so.4 => /usr/local/lib/libltdl.so.4 (0x280b7000) libusb.so.1 => /usr/lib/libusb.so.1 (0x280be000) libc.so.7 => /lib/libc.so.7 (0x280c7000) 0[i7]# Actually, I just did a full make deinstall and full re-install of opensc, and it seems to periodically work 0[i7]# opensc-tool -l [opensc-tool] reader-pcsc.c:996:pcsc_detect_readers: returning with: No readers found Readers known about: Nr. Driver Name 0 openct Aladdin eToken PRO 64k 1 openct OpenCT reader (detached) 0[i7]# opensc-tool -l [opensc-tool] reader-pcsc.c:996:pcsc_detect_readers: returning with: No readers found Readers known about: Nr. Driver Name 0 openct Aladdin eToken PRO 64k 1 openct OpenCT reader (detached) 0[i7]# cardos-info Running cardos-tool --info [cardos-tool] reader-pcsc.c:996:pcsc_detect_readers: returning with: No readers found Using reader with a card: Aladdin eToken PRO 64k 3b:f2:18:00:02:c1:0a:31:fe:58:c8:09:75 Info : CardOS V4.2B (C) Siemens AG 1994-2005 Chip type: 124 Serial number: 28 59 e2 19 37 20 Full prom dump: 33 66 00 22 9A 9A 9A 9A 7C FF 28 59 E2 19 37 20 3f."....|.(Y..7 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................ OS Version: 200.9 (that's CardOS M4.2B) Current life cycle: 32 (administration) Security Status of current DF: Free memory : 1024 ATR Status: 0x0 ROM-ATR [cardos-tool] reader-openct.c:324:openct_reader_transmit: unable to transmit [cardos-tool] apdu.c:394:do_single_transmit: unable to transmit APDU APDU transmit failed: Generic reader error 1[i7]# cardos-info Running cardos-tool --info [cardos-tool] reader-pcsc.c:996:pcsc_detect_readers: returning with: No readers found Using reader with a card: Aladdin eToken PRO 64k 3b:f2:18:00:02:c1:0a:31:fe:58:c8:09:75 [cardos-tool] reader-openct.c:324:openct_reader_transmit: unable to transmit [cardos-tool] apdu.c:394:do_single_transmit: unable to transmit APDU APDU transmit failed: Generic reader error 1[i7]# ---Mike ---Mike From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 01:24:05 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9526B106564A; Thu, 19 Mar 2009 01:24:05 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 4E48A8FC14; Thu, 19 Mar 2009 01:24:05 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id n2J1As4p074417; Wed, 18 Mar 2009 19:10:54 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id n2J1AsRJ074414; Wed, 18 Mar 2009 19:10:54 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 18 Mar 2009 19:10:54 -0600 (MDT) From: Warren Block To: Andrew Thompson In-Reply-To: <20090318234818.GD79077@citylink.fud.org.nz> Message-ID: References: <20090318234818.GD79077@citylink.fud.org.nz> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (wonkity.com [127.0.0.1]); Wed, 18 Mar 2009 19:10:54 -0600 (MDT) Cc: usb Subject: Re: uscanner & sane 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, 19 Mar 2009 01:24:05 -0000 On Wed, 18 Mar 2009, Andrew Thompson wrote: > I am looking into fixing sane-backends and see that the uscanner driver > is not needed at all. I wonder if we should follow Linux on this and > remove it in favour of libusb? uscanner is just a simple wrapper around > a fifo anyway, it has no logic. libusb also allows the detection of scanner button presses which don't make it through uscanner. Having said that, for some reason I can't recall I switched back to uscanner. -Warren Block * Rapid City, South Dakota USA From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 02:11:36 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 683B61065674; Thu, 19 Mar 2009 02:11:36 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id E1E248FC14; Thu, 19 Mar 2009 02:11:35 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: by yw-out-2324.google.com with SMTP id 5so231970ywh.13 for ; Wed, 18 Mar 2009 19:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:organization :x-operation-sytem; bh=6jX7r781Y6725QoTjOVuYXwG2wcQb7fujyTA3qu16uI=; b=ALxZ4cC6tQ4fbs570iSHr9ZxiI1U37un5D8ad8NCzp63Oref1xYqU6c+r+ZbbGybB2 X7UyDtayVrVKhEzqUoJvie9Y9SgWocABRhgFmFb0MzlbpQ7BueDFnpKR2M95LcQwTxCG BawBhzFa/+dasrmeUKerubNtxW5EBlRkXlbfw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :organization:x-operation-sytem; b=WVPySFsNgN83BAu4U0SD4HZki5xIBFhTTPzG3n/66UhFqtJXhFvf8rV+B6bOejlhV8 gVl6GHBK0c6W0LKaegeakpJtgzYFu+eqvG3OyH6nugqVYUZ6vfiWw/v9W9xyenkcWAam RVIJxflTICF8knT2cVrwfXdLio4TA4DcxdUUA= Received: by 10.100.172.17 with SMTP id u17mr2274362ane.105.1237428695013; Wed, 18 Mar 2009 19:11:35 -0700 (PDT) Received: from weongyo ([114.111.62.249]) by mx.google.com with ESMTPS id b29sm1456353ana.51.2009.03.18.19.11.31 (version=SSLv3 cipher=RC4-MD5); Wed, 18 Mar 2009 19:11:33 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Thu, 19 Mar 2009 11:11:28 +0900 From: Weongyo Jeong Date: Thu, 19 Mar 2009 11:11:28 +0900 To: Hans Petter Selasky Message-ID: <20090319021128.GC12632@weongyo.cdnetworks.kr> References: <20090318073032.GA12632@weongyo.cdnetworks.kr> <200903180852.48034.hselasky@c2i.net> <20090318114642.GB12632@weongyo.cdnetworks.kr> <200903181454.18859.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200903181454.18859.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: Sam Leffler , freebsd-usb@freebsd.org, Andrew Thompson Subject: Re: q: USB_SET_TIMEOUT in ugen. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 02:11:37 -0000 On Wed, Mar 18, 2009 at 02:54:17PM +0100, Hans Petter Selasky wrote: > On Wednesday 18 March 2009, Weongyo Jeong wrote: > > On Wed, Mar 18, 2009 at 08:52:47AM +0100, Hans Petter Selasky wrote: > > > Hi, > > > > > > On Wednesday 18 March 2009, Weongyo Jeong wrote: > > > > Hello, > > > > > > > > During porting uath(4) to usb2 I found the following code failed to > > > > run: > > > > > > > > data = open("/dev/usb/0.2.2", O_WRONLY, 0); > > > > timeout = UATH_DATA_TIMEOUT; > > > > if (ioctl(data, USB_SET_TIMEOUT, &timeout) < 0) > > > > err(-1, "%s: USB_SET_TIMEOUT(%u)", datadev, > > > > UATH_DATA_TIMEOUT); > > > > > > > > and the error was: > > > > > > > > uathload: /dev/usb/0.2.2: USB_SET_TIMEOUT(1000): Invalid > > > > argument > > > > > > Use the following macro instead: > > > > > > #define USB_SET_TX_TIMEOUT _IOW ('U', 137, int) > > > > > > There also is a match for USB_SET_RX_TIMEOUT . > > > > > > USB_SET_TIMEOUT has been removed. > > > > > > Also don't forget to include "usb_ioctl.h" . > > > > > > Another idea: > > > > > > Port the program to libusb .... > > > > > > > It looks it's ok with calling ioctl(msg, USB_SET_TIMEOUT, ..) to > > > > /dev/usb/0.2.1 > > > > > > > > And the behaviour of program isn't likely with usb1 that it worked well > > > > in usb1. After writing some data into msg and data pipe there was no > > > > any response using read(2). The problem source can be found at:. > > > > > > > > http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/user/weo > > > >ngyo /wireless/src/usr.sbin/uathload&HIDEDEL=NO > > > > > > > > Are there something I missed in here? > > > > > > See hints above. > > > > Thank you for advise. :-) I've solve `Invalid argument' error. However > > the program looks it still doesn't work. All functions the problem used > > are open(2), ioctl(2), read(2) and write(2). I think I can try to use > > libusb but it'd be better if it works again using the above 4 system > > calls. > > > > Is it supported in CURRENT or is it a one of regression? > > > > regards, > > Weongyo Jeong > > What other IOCTL's are used? > > Can you make a debug trace: > > sysctl hw.usb2.ugen.debug=15 > sysctl hw.usb2.dev.debug=15 > > ? It's a simple program so only USB_SET_RX_TIMEOUT and USB_SET_TX_TIMEOUT are set via ioctl(2). And the result is as follows: [root@kkk /usr/p4/w/usr.sbin/uathload]# ./uathload -d /dev/ugen0.2 -v usb2_open:823: fflags=0x00000003 usb2_ref_device:165: usb2_ref_device, cpd=0xc8374bc0 need uref=1 usb2_ref_device:243: ref udev - needed usb2_fifo_create:409: Endpoint device, searching for 0x01 usb2_fifo_create:480: dev_get_pipe(1, 0x0) usb2_fifo_create:507: dev_get_pipe(1, 0x1) usb2_fifo_create:536: fifo index = 0 ugen_open:158: flag=0x1 ugen_open:158: flag=0x2 usb2_ref_device:165: usb2_ref_device, cpd=0xc8374bc0 need uref=0 usb2_ref_device:235: ref write usb2_ref_device:239: ref read usb2_ioctl:1021: fflags=3, cmd=0x80045572 ugen_ioctl:1388: cmd=0x80045572 ugen_ioctl:1566: error=-3 usb2_uref_location:297: ref udev ugen_ioctl_post:1963: cmd=0x80045572 ugen_ioctl_post:2164: error=0 usb2_open:823: fflags=0x00000002 usb2_ref_device:165: usb2_ref_device, cpd=0xc8374740 need uref=1 usb2_ref_device:243: ref udev - needed usb2_fifo_create:409: Endpoint device, searching for 0x02 usb2_fifo_create:480: dev_get_pipe(2, 0x0) usb2_fifo_create:536: fifo index = 2 ugen_open:158: flag=0x2 usb2_ref_device:165: usb2_ref_device, cpd=0xc8374740 need uref=0 usb2_ref_device:235: ref write usb2_ioctl:1021: fflags=2, cmd=0x80045589 ugen_ioctl:1388: cmd=0x80045589 ugen_ioctl:1566: error=-3 usb2_uref_location:297: ref udev ugen_ioctl_post:1963: cmd=0x80045589 ugen_ioctl_post:2164: error=0 Load firmware aru5523.bin (builtisn) to /dev/ugen0b.2 send block 20: 147368 bytes _remainingwrite:1291: usb2_ref_device:165: usb2_ref_device, cpd=0xc8374bc0 need uref=0 usb2_ref_device:235: ref write usb2_ref_device:239: ref read usb2_write:1362: transfer 512 bytes to 0xc8382038 ugen_default_write_callback:434: actlen=0, aframes=0 ugen_default_write_callback:434: actlen=0, aframes=0 ugen_default_write_callback:434: actlen=512, aframes=1 u : dsata...b2_write:1291: usb2_ref_device:165: usb2_ref_device, cpd=0xc8374740 need uref=0 usb2_ref_device:235: ref write usb2_write:1362: transfer 2048 bytes to 0xc839c038 ugen_default_write_callback:434: actlen=0, aframes=0 ugen_default_write_callback:434: actlen=0, aframes=0 ugen_default_write_callback:434: actlen=2048, aframes=1 u : wsait for ack...b2_ref_device:165: usb2_ref_device, cpd=0xc8374bc0 need uref=0 usb2_ref_device:235: ref write usb2_ref_device:239: ref read usb2_read:1222: sleeping ugen_default_read_callback:384: actlen=0, aframes=0 ugen_default_read_callback:384: actlen=0, aframes=0 ugen_read_clear_stall_callback:477: f=0xc4d5b000: stall cleared [...again...] ugen_default_read_callback:384: actlen=0, aframes=0 ugen_default_read_callback:384: actlen=0, aframes=0 ugen_read_clear_stall_callback:477: f=0xc4d5b000: stall cleared [...again...] ugen_default_read_callback:384: actlen=0, aframes=0 ugen_default_read_callback:384: actlen=0, aframes=0 ugen_read_clear_stall_callback:477: f=0xc4d5b000: stall cleared [...again...] [...again...] [...again...] [...after CTRL-C...] ^Cusb2_close:889: cpd=0xc8374bc0 usb2_ref_device:165: usb2_ref_device, cpd=0xc8374bc0 need uref=1 usb2_ref_device:235: ref write usb2_ref_device:239: ref read usb2_ref_device:243: ref udev - needed usb2_fifo_close:803: Sleeping at close! ugen_closugen_default_read_callback:384: actlen=0, aframes=0 e:188: flag=0x1 ugen_close:202: no FIFOs usb2_fifo_close:810: closed ugen_default_write_callback:434: actlen=512, aframes=1 ugen_close:188: flag=0x2 ugen_close:202: no FIFOs usb2_fifo_close:810: closed usb2_close:889: cpd=0xc8374740 usb2_ref_device:165: usb2_ref_device, cpd=0xc8374740 need uref=1 usb2_ref_device:235: ref write usb2_ref_device:243: ref udev - needed ugen_default_write_callback:434: actlen=2048, aframes=1 ugen_close:188: flag=0x2 ugen_close:202: no FIFOs usb2_fifo_close:810: closed regards, Weongyo Jeong From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 02:11:41 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 872151065674; Thu, 19 Mar 2009 02:11:41 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5CF618FC21; Thu, 19 Mar 2009 02:11:41 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2J2BfCf036680; Thu, 19 Mar 2009 02:11:41 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2J2BftT036668; Thu, 19 Mar 2009 02:11:41 GMT (envelope-from linimon) Date: Thu, 19 Mar 2009 02:11:41 GMT Message-Id: <200903190211.n2J2BftT036668@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/132785: [usb] [patch] Gemtech remote powersocket is classed as a HID device rather than ugen 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, 19 Mar 2009 02:11:42 -0000 Old Synopsis: Gemtech remote powersocket is classed as a HID device rather than ugen New Synopsis: [usb] [patch] Gemtech remote powersocket is classed as a HID device rather than ugen Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Thu Mar 19 02:11:24 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=132785 From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 05:30:01 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 B6B591065670 for ; Thu, 19 Mar 2009 05:30:01 +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 7673E8FC1D for ; Thu, 19 Mar 2009 05:30:01 +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 n2J5U1Ee089408 for ; Thu, 19 Mar 2009 05:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2J5U16g089405; Thu, 19 Mar 2009 05:30:01 GMT (envelope-from gnats) Resent-Date: Thu, 19 Mar 2009 05:30:01 GMT Resent-Message-Id: <200903190530.n2J5U16g089405@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, Yoshihiro Ota Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6C05106566C for ; Thu, 19 Mar 2009 05:28:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D524B8FC19 for ; Thu, 19 Mar 2009 05:28:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2J5SEME010938 for ; Thu, 19 Mar 2009 05:28:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n2J5SEG9010937; Thu, 19 Mar 2009 05:28:14 GMT (envelope-from nobody) Message-Id: <200903190528.n2J5SEG9010937@www.freebsd.org> Date: Thu, 19 Mar 2009 05:28:14 GMT From: Yoshihiro Ota To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/132799: [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CACHE in its QUIRK 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, 19 Mar 2009 05:30:02 -0000 >Number: 132799 >Category: usb >Synopsis: [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CACHE in its QUIRK >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Mar 19 05:30:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Yoshihiro Ota >Release: 7.1-RELEASE 8-CURRENT >Organization: >Environment: %uname -a FreeBSD xxx 7.1-RELEASE-p3 FreeBSD 7.1-RELEASE-p3 #463 r188634M: Thu Mar 12 12:27:06 EDT 2009 xxx:/usr/obj/usr/src/sys/GENERIC i386 >Description: >How-To-Repeat: >Fix: The patch is verified on both 7.1-RELEASE and 8-CURRENT. Patch attached with submission follows: Index: umass.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/Attic/umass.c,v retrieving revision 1.160.2.4.2.1 diff -u -r1.160.2.4.2.1 umass.c --- umass.c 25 Nov 2008 02:59:29 -0000 1.160.2.4.2.1 +++ umass.c 19 Mar 2009 05:18:51 -0000 @@ -415,6 +415,7 @@ { USB_VENDOR_GENESYS, USB_PRODUCT_GENESYS_GL641USB2IDE, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE + | NO_SYNCHRONIZE_CACHE }, { USB_VENDOR_GENESYS, USB_PRODUCT_GENESYS_GL641USB2IDE_2, RID_WILDCARD, UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 07:58:54 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 97ED21065672; Thu, 19 Mar 2009 07:58:54 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.swip.net [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id A07D78FC16; Thu, 19 Mar 2009 07:58:53 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=43LKmNx98UoA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=6I5d2MoRAAAA:8 a=QT6iA2m7k5gMu6kLvjsA:9 a=9iOXPxD_NNUrFgAk0gHR_WediiIA:4 a=LY0hPdMaydYA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 465580187; Thu, 19 Mar 2009 08:58:51 +0100 From: Hans Petter Selasky To: Weongyo Jeong Date: Thu, 19 Mar 2009 09:01:23 +0100 User-Agent: KMail/1.9.7 References: <20090318073032.GA12632@weongyo.cdnetworks.kr> <200903181454.18859.hselasky@c2i.net> <20090319021128.GC12632@weongyo.cdnetworks.kr> In-Reply-To: <20090319021128.GC12632@weongyo.cdnetworks.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903190901.23844.hselasky@c2i.net> Cc: Sam Leffler , freebsd-usb@freebsd.org, Andrew Thompson Subject: Re: q: USB_SET_TIMEOUT in ugen. 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, 19 Mar 2009 07:58:55 -0000 On Thursday 19 March 2009, Weongyo Jeong wrote: > ugen_default_read_callback:384: actlen=0, aframes=0 > ugen_default_read_callback:384: actlen=0, aframes=0 > ugen_read_clear_stall_callback:477: f=0xc4d5b000: stall cleared One difference from the old ugen implementation is that a stall error does not cause any error to be returned to userland! You could try to return a ZLP on errors. Try this patch: http://perforce.freebsd.org/chv.cgi?CH=159423 If you need to distinguish a ZLP from a STALL, then you have to use the new libusb! Ugen is not meant to be a replacement for libusb! --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 08:08:29 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 17C831065670 for ; Thu, 19 Mar 2009 08:08:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swipnet.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id 444D38FC19 for ; Thu, 19 Mar 2009 08:08:27 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=Ua5U2JTphEgA:10 a=m2zDYARmrrIA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=6I5d2MoRAAAA:8 a=gMs0AU6hp4lbugCzXeAA:9 a=TJgnn2hbmmFtnTh7MLMA:7 a=3i63QguY4dTBE3rLG5E_9LYFpfgA:4 a=LY0hPdMaydYA:10 a=SV7veod9ZcQA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1039789270; Thu, 19 Mar 2009 09:08:26 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 19 Mar 2009 09:10:57 +0100 User-Agent: KMail/1.9.7 References: <200903190211.n2J2BftT036668@freefall.freebsd.org> In-Reply-To: <200903190211.n2J2BftT036668@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903190910.58461.hselasky@c2i.net> Cc: freebsd-bugs@freebsd.org, linimon@freebsd.org Subject: Re: usb/132785: [usb] [patch] Gemtech remote powersocket is classed as a HID device rather than ugen 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, 19 Mar 2009 08:08:29 -0000 On Thursday 19 March 2009, linimon@freebsd.org wrote: > http://www.freebsd.org/cgi/query-pr.cgi?pr=132785 Does this patch also apply for FreeBSD 8-current? Hence on current both UGEN and UHID will appear. Does the device have HID descriptors? --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 10:13:22 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 1F68C1065676 for ; Thu, 19 Mar 2009 10:13:22 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.freebsd.org (Postfix) with ESMTP id 88A7B8FC19 for ; Thu, 19 Mar 2009 10:13:21 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A74A2.dip.t-dialin.net [84.154.116.162]) (authenticated bits=0) by flat.berklix.org (8.13.8/8.13.8) with ESMTP id n2JADA1q072119; Thu, 19 Mar 2009 11:13:13 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by js.berklix.net (8.13.8/8.13.8) with ESMTP id n2JADiiT090035; Thu, 19 Mar 2009 11:13:44 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id n2JADT9T054996; Thu, 19 Mar 2009 11:13:34 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200903191013.n2JADT9T054996@fire.js.berklix.net> To: "M. Warner Losh" From: "Julian Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://berklix.com In-reply-to: Your message "Wed, 18 Mar 2009 13:57:29 CST." <20090318.135729.1159138617.imp@bsdimp.com> Date: Thu, 19 Mar 2009 11:13:29 +0100 Sender: jhs@berklix.org Cc: Julian Stacey , freebsd-usb@freebsd.org Subject: Re: Belkin Cardbus USB2 adaptors too hot. 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, 19 Mar 2009 10:13:28 -0000 Hi Warner, cc usb@ Thanks for your reply :-) "M. Warner Losh" wrote: > "Julian Stacey" writes: > : Hi, > : Anyone else noticed Belkin Cardbus USB2 adaptors run extremely hot ? > : I've been having weird things happen > : umass errs, g_vfs_done()da0a[WRITE(offset=...., > : length=131072)]error = 5 first errors after a 66G write, > : subsequent errors after just 1G more, (in retrospect when > : truly hot) > : I've built a break out box to check Voltages & Current > : delivered into external USB2 to IDE enclosures, > : just bought another new 250G IDE for another enclosure, > : lots of enclosures & usb2 hub power blocks tried, then I > : remembered this card used to run hot on FreeBSD-6, in this > : Toshiba Satellite S5100-603, & I think BSD + this laptop > : cooked my brothers identical Belkin card too last year. > : The laptop BTW: > : http://www.berklix.com/~jhs/hardware/toshiba/satellite.s5100-603/ > : So 2 things: > : FreeBSD-7.1-RELEASE is still cooking by default. > : I recall cardbus can run at 2 different voltages ? > : Well we need to change something to detect that. > : Anyone want to throw me an RTFM URL start point for reading ? > : (Sorry to ask here & not read first, trying to catch a boat ASAP). > > Cardbus runs at 3.3V only. There's X.X and Y.Y low-voltage specs, but > nobody seems to implement them. PC Card (the 16-bit version) runs at > 3.3V or 5.0V. The usual reason for cards running really hot is too > much current draw over the bus for supplied devices. Many of the > cards have an external power supply that can be used to provide more > power over a path that is made for it rather than exceeding the > CardBus specs to pull the power in over that power bus. Don't know if > this card has that or not... I guess my Belkin Hi-Speed USB 2.0 Notebook Card is an earlier version of http://catalog.belkin.com/IWCatProductPage.process?Product_Id=123940 I've not found tech detail there though. It gets too warm when just plugged into laptop's cardbus, nothing external connected, (but not painfully hot as when pulled out after heavy use with no external power, connected to a powered hub driving an unpowered 2.5" disc. (But yes of course lots of stuff in a laptop to keep it hot. Belkin doesnt seem to get hot, sitting idle under XP But I dont know how to load Belkin to do disc intensive IO under XP. (more accurately I have not looked for eg GCC under XP to compile my http://berklix.com/~jhs/src/bsd/jhs/bin/public/testblock/ ) I wonder if XP turns off the card when not needed, & if that might be viable in BSD ?. Powerd: I was not running powerd until last few days. PC fan went on & off OK before & still does. Yes, this Belkin has a power socket, I hardly ever used it till now: Only ever used the Belkin via 1 or 2 powered hubs, which I assumed would buffer it + laptop from excess load. I had assumed laptop supplies the Belkin at a well regulated 5V, & I measured a few 5V supplies for hubs as { 5.36, 5.41 & 5.22 V }, (So unless disc pulled down hub voltage below 5.0, hub would not load down the Belkin, pulling extra current, but I suppose an over voltage is also potential unwanted heat (& at square law V^2 / R for heat), if hubs were to feeds back to Belkin at full V (but hubs would not, as discs pull hub V. down from eg 5.36 to 5.2. Both Belkin sockets deliver no voltage, unless Belkin is externaly powered. (& a memory stick requiring little current produces no /dev/da* so power supply from Belkin is not some OS related turn- on- if- something detected thing), but more simple: power must be supplied from { external socket or a device (in my case a powered hub). Current into 2 unpowered hubs, with no devs on hub: Powered Belkin alone, not in laptop PC: Hub=Slim: 0.01 A Hub=Zediworks: 0.19 A Belkin in PC: Unpowered Belkin: 0A Powered Belkin: Hub=Slim 0.16 A Hub=Zediworks: 0.29 A 7.1-RELEASE /var/log/messages : Belkin after insertion: cardbus0: Warning: CIS pointer 0 (no CIS present) cardbus0: Warning: Bogus CIS ignored cardbus0: at device 0.0 (no driver attached ) cardbus0: Warning: CIS pointer 0 (no CIS present) cardbus0: Warning: Bogus CIS ignored cardbus0: at device 0.1 (no driver attached ) cardbus0: Warning: CIS pointer 0 (no CIS present) cardbus0: Warning: Bogus CIS ignored ehci0: mem 0xfce05000-0xfce050ff irq 11 at device 0.2 on cardbus0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: wrong number of companions (2 != 0) usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 5 ports with 5 removable, self powered Hub=Slim uhub4: on uhub3 uhub4: single transaction translator uhub4: 4 ports with 4 removable, self powered Hub=Zediworks uhub4: on uhub3 uhub4: single transaction translator uhub4: 4 ports with 0 removable, self powered PS Ive tried a few runs since, with powered Belkin + powered hub, running my testblock.c to fill a UFS FS on various discs. It still runs too hot. Curiously at that point, I can still open more remote xterms on to the laptop, & run eg man etc, but the laptop just lets commands such as halt & reboot hang, presumably as kernel is waiting to talk to an overheated hanging USB system. Cheers, Julian -- Julian Stacey: BSDUnixLinux C Prog Admin SysEng Consult Munich www.berklix.com Mail plain ASCII text. HTML & Base64 text are spam. www.asciiribbon.org From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 10:52:05 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 7F1261065672; Thu, 19 Mar 2009 10:52:05 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.234]) by mx1.freebsd.org (Postfix) with ESMTP id 3B5FB8FC0C; Thu, 19 Mar 2009 10:52:05 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: by rv-out-0506.google.com with SMTP id l9so497536rvb.43 for ; Thu, 19 Mar 2009 03:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:organization :x-operation-sytem; bh=xllrMWcWT9HYeT0SXuSCKtNQdSm/Pwil7JHcL/5X5Fw=; b=NdKF2fpUBUmX44GFY/eYRNaqhJLbP6qy7VLYGF+F2rIQ1fCSN6CujxkDk4lxho6lPz 3o3odnsLvpKg5v16pReCPUad7TatHNUU9AWrvjcFlOLPQR4uqXPLWA3c9CW4oDFfhSPH uVtQVIkTeO0aTfSWxieU8gXhMUyYmUz5e+rsU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :organization:x-operation-sytem; b=arE7M9xddx+pX0axcY5CsMikGGKDhjaZ1Q95IHBRbuNKQLSgiiE66Itv1tMmUZeNJ7 6gZGnXjGon8PKN3OeiFN1EDL9cOgVInosZPYyIvBRXSpIggGYsIRzW+KFGx0l7OrdR1m ZXJeLm73oIkfntRwI35iYoZF7i29qFRXHwOVE= Received: by 10.141.177.2 with SMTP id e2mr735308rvp.71.1237459925005; Thu, 19 Mar 2009 03:52:05 -0700 (PDT) Received: from weongyo ([114.111.62.249]) by mx.google.com with ESMTPS id g14sm2265989rvb.9.2009.03.19.03.52.02 (version=SSLv3 cipher=RC4-MD5); Thu, 19 Mar 2009 03:52:04 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Thu, 19 Mar 2009 19:52:00 +0900 From: Weongyo Jeong Date: Thu, 19 Mar 2009 19:52:00 +0900 To: Hans Petter Selasky Message-ID: <20090319105200.GA17221@weongyo.cdnetworks.kr> References: <20090318073032.GA12632@weongyo.cdnetworks.kr> <200903181454.18859.hselasky@c2i.net> <20090319021128.GC12632@weongyo.cdnetworks.kr> <200903190901.23844.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200903190901.23844.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: Sam Leffler , freebsd-usb@freebsd.org, Andrew Thompson Subject: Re: q: USB_SET_TIMEOUT in ugen. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 10:52:05 -0000 On Thu, Mar 19, 2009 at 09:01:23AM +0100, Hans Petter Selasky wrote: > On Thursday 19 March 2009, Weongyo Jeong wrote: > > ugen_default_read_callback:384: actlen=0, aframes=0 > > ugen_default_read_callback:384: actlen=0, aframes=0 > > ugen_read_clear_stall_callback:477: f=0xc4d5b000: stall cleared > > One difference from the old ugen implementation is that a stall error does not > cause any error to be returned to userland! > > You could try to return a ZLP on errors. Try this patch: > > http://perforce.freebsd.org/chv.cgi?CH=159423 > > If you need to distinguish a ZLP from a STALL, then you have to use the new > libusb! Ugen is not meant to be a replacement for libusb! Thanks you for a patch but it's not a answer what I want because my symptom is that recv(2) waits forever before or returns 0 after applying your patch. It shouldn't return 0 or nothing that the size of the recv(2) return value should be 512. I tried to dump USB transactions using USB analyzer and the dump file is available at: http://people.freebsd.org/~weongyo/uathload_20090319_export.txt Interesting packets could be found after 241 transactions and the steps of program are as follows: write(endpoint 0x1, buf, 512); write(endpoint 0x2, buf, 512); write(endpoint 0x2, buf, 512); write(endpoint 0x2, buf, 512); write(endpoint 0x2, buf, 512); read(endpoint 0x81, buf, 512); <-- here error. As you can see with looking the dump file, ugen couldn't catch the read event even though the USB stick responses data at Transaction 264, 265 and 266. It looks the problem is in ugen(4). As looking usb_generic.c it looks the read/write pipe are opened on the fly when read(2) or write(2) systemcalls are called though in the previous ugen(4) in usb1 all pipes are opened at open(2). Could this difference affect this symptom? I'd try to test another cases. regards, Weongyo Jeong From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 13:29:57 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 30813106564A; Thu, 19 Mar 2009 13:29:57 +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 0F4708FC1C; Thu, 19 Mar 2009 13:29:55 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=43LKmNx98UoA:10 a=6I5d2MoRAAAA:8 a=TsqQ0i4SHsUrUjlJYlIA:9 a=Fy3LNlLyUtgipL1DaxY1Oyvl1DwA:4 a=50e4U0PicR4A:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO [10.36.2.183]) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 161850243; Thu, 19 Mar 2009 14:29:54 +0100 From: Hans Petter Selasky To: Weongyo Jeong Date: Thu, 19 Mar 2009 14:32:23 +0100 User-Agent: KMail/1.9.7 References: <20090318073032.GA12632@weongyo.cdnetworks.kr> <200903190901.23844.hselasky@c2i.net> <20090319105200.GA17221@weongyo.cdnetworks.kr> In-Reply-To: <20090319105200.GA17221@weongyo.cdnetworks.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903191432.24364.hselasky@c2i.net> Cc: Sam Leffler , freebsd-usb@freebsd.org, Andrew Thompson Subject: Re: q: USB_SET_TIMEOUT in ugen. 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, 19 Mar 2009 13:29:57 -0000 Hi, On Thursday 19 March 2009, Weongyo Jeong wrote: > On Thu, Mar 19, 2009 at 09:01:23AM +0100, Hans Petter Selasky wrote: > > On Thursday 19 March 2009, Weongyo Jeong wrote: > > > ugen_default_read_callback:384: actlen=0, aframes=0 > > > ugen_default_read_callback:384: actlen=0, aframes=0 > > > ugen_read_clear_stall_callback:477: f=0xc4d5b000: stall cleared > > > > One difference from the old ugen implementation is that a stall error > > does not cause any error to be returned to userland! > > > > You could try to return a ZLP on errors. Try this patch: > > > > http://perforce.freebsd.org/chv.cgi?CH=159423 > > > > If you need to distinguish a ZLP from a STALL, then you have to use the > > new libusb! Ugen is not meant to be a replacement for libusb! > > Thanks you for a patch but it's not a answer what I want because my > symptom is that recv(2) waits forever before or returns 0 after applying > your patch. It shouldn't return 0 or nothing that the size of the recv(2) > return value should be 512. The ugen interface is now double buffered, so it will read data in the background! The old was not double buffered. There are currently only two buffers. If you see the packet in the analyzer it has most likely also ended up in a UGEN buffer. > I tried to dump USB transactions using USB > analyzer and the dump file is available at: > > http://people.freebsd.org/~weongyo/uathload_20090319_export.txt What happens if you change: | if (read(msg, &rxmsg, sizeof(rxmsg)) != sizeof(rxmsg)) { 215: | VERBOSE("%s", "\n"); | err(-1, "error reading msg (%s)", msgdev); | break; | } Into while loop for sake of testing? So that if the length is 0 you loop one more time and if you have more than X zero lengths returned, you break? > > Interesting packets could be found after 241 transactions and the steps > of program are as follows: > > write(endpoint 0x1, buf, 512); > write(endpoint 0x2, buf, 512); > write(endpoint 0x2, buf, 512); > write(endpoint 0x2, buf, 512); > write(endpoint 0x2, buf, 512); > read(endpoint 0x81, buf, 512); <-- here error. > > As you can see with looking the dump file, ugen couldn't catch the read > event even though the USB stick responses data at Transaction 264, 265 > and 266. It looks the problem is in ugen(4). As looking usb_generic.c > it looks the read/write pipe are opened on the fly when read(2) or > write(2) systemcalls are called though in the previous ugen(4) in usb1 > all pipes are opened at open(2). Could this difference affect this > symptom? I'd try to test another cases. The old ugen would also do a clear-stall which the new one does not do, unless you do an IOCTL before the first read! That is also something you can try. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 14:00: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 810961065680 for ; Thu, 19 Mar 2009 14:00: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 4E3AF8FC21 for ; Thu, 19 Mar 2009 14:00: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 n2JE02XN084735 for ; Thu, 19 Mar 2009 14:00:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2JE02nm084734; Thu, 19 Mar 2009 14:00:02 GMT (envelope-from gnats) Resent-Date: Thu, 19 Mar 2009 14:00:02 GMT Resent-Message-Id: <200903191400.n2JE02nm084734@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, Renato Botelho Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8E88106564A for ; Thu, 19 Mar 2009 13:57:37 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from capeta.freebsdbrasil.com.br (capeta.freebsdbrasil.com.br [201.48.151.3]) by mx1.freebsd.org (Postfix) with SMTP id F28418FC18 for ; Thu, 19 Mar 2009 13:57:36 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: (qmail 62943 invoked from network); 19 Mar 2009 10:57:34 -0300 Received: from unknown (HELO botelhor.bluepex.com) (garga@189.19.84.134) by capeta.freebsdbrasil.com.br with SMTP; 19 Mar 2009 10:57:34 -0300 Received: (qmail 8020 invoked by uid 1001); 19 Mar 2009 10:57:53 -0300 Message-Id: <20090319135753.8019.qmail@botelhor.bluepex.com> Date: 19 Mar 2009 10:57:53 -0300 From: Renato Botelho To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/132811: Patch: [newusb] Add Sun Type 7 keyboard id X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Renato Botelho List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 14:00:05 -0000 >Number: 132811 >Category: usb >Synopsis: Patch: [newusb] Add Sun Type 7 keyboard id >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 19 14:00:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Renato Botelho >Release: FreeBSD 8.0-CURRENT i386 >Organization: BluePex Security Solutions >Environment: System: FreeBSD botelhor.bplab.local 8.0-CURRENT FreeBSD 8.0-CURRENT #58 r189892M: Thu Mar 19 10:26:41 BRT 2009 root@botelhor.bplab.local:/usr/obj/usr/src/sys/GARGA i386 >Description: Add Sun Type 7 keyboard id to usbdevs, working fine here: 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=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen3.2: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen3.3: at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen3.4: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen3.2 is the USB hub provvided by the keyboard, I didn't know how to describe this and where it's supposed to be added, but would be nice to have it added too >How-To-Repeat: >Fix: --- usbdevs.diff begins here --- Index: sys/dev/usb/usbdevs =================================================================== --- sys/dev/usb/usbdevs (revision 189892) +++ sys/dev/usb/usbdevs (working copy) @@ -2308,7 +2308,8 @@ product SUNTAC AS144L4 0x0011 SUNTAC U-Cable type A4 /* Sun Microsystems products */ -product SUN KEYBOARD 0x0005 Type 6 USB keyboard +product SUN KEYBOARD_TYPE_6 0x0005 Type 6 USB keyboard +product SUN KEYBOARD_TYPE_7 0x00a2 Type 7 USB keyboard /* XXX The above is a North American PC style keyboard possibly */ product SUN MOUSE 0x0100 Type 6 USB mouse --- usbdevs.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 17:18: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 2FC65106566C; Thu, 19 Mar 2009 17:18:02 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 067178FC21; Thu, 19 Mar 2009 17:18:02 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from freefall.freebsd.org (garga@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2JHI1H9050554; Thu, 19 Mar 2009 17:18:01 GMT (envelope-from garga@freefall.freebsd.org) Received: (from garga@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2JHI1vE050550; Thu, 19 Mar 2009 17:18:01 GMT (envelope-from garga) Date: Thu, 19 Mar 2009 17:18:01 GMT Message-Id: <200903191718.n2JHI1vE050550@freefall.freebsd.org> To: garga@FreeBSD.org, garga@FreeBSD.org, freebsd-usb@FreeBSD.org From: garga@FreeBSD.org Cc: Subject: Re: usb/132811: Patch: [newusb] Add Sun Type 7 keyboard id 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, 19 Mar 2009 17:18:02 -0000 Synopsis: Patch: [newusb] Add Sun Type 7 keyboard id State-Changed-From-To: open->closed State-Changed-By: garga State-Changed-When: Thu Mar 19 17:18:01 UTC 2009 State-Changed-Why: Committed. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=132811 From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 17:20: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 065051065679 for ; Thu, 19 Mar 2009 17:20: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 E985F8FC12 for ; Thu, 19 Mar 2009 17:20:04 +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 n2JHK4G7050672 for ; Thu, 19 Mar 2009 17:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2JHK48C050671; Thu, 19 Mar 2009 17:20:04 GMT (envelope-from gnats) Date: Thu, 19 Mar 2009 17:20:04 GMT Message-Id: <200903191720.n2JHK48C050671@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/132811: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 17:20:05 -0000 The following reply was made to PR usb/132811; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/132811: commit references a PR Date: Thu, 19 Mar 2009 17:16:48 +0000 (UTC) Author: garga (ports committer) Date: Thu Mar 19 17:16:33 2009 New Revision: 190089 URL: http://svn.freebsd.org/changeset/base/190089 Log: - Add Sun Type 7 keyboard - Rename Type 6 entry (following NetBSD) - Add Sun Type 7 Keyboard USB Hub PR: usb/132811 Reviewed by: thompsa Approved by: thompsa Modified: head/sys/dev/usb/usbdevs Modified: head/sys/dev/usb/usbdevs ============================================================================== --- head/sys/dev/usb/usbdevs Thu Mar 19 17:14:00 2009 (r190088) +++ head/sys/dev/usb/usbdevs Thu Mar 19 17:16:33 2009 (r190089) @@ -2310,9 +2310,11 @@ product SUNTAC AS64LX 0x000b SUNTAC U-C product SUNTAC AS144L4 0x0011 SUNTAC U-Cable type A4 /* Sun Microsystems products */ -product SUN KEYBOARD 0x0005 Type 6 USB keyboard +product SUN KEYBOARD_TYPE_6 0x0005 Type 6 USB keyboard +product SUN KEYBOARD_TYPE_7 0x00a2 Type 7 USB keyboard /* XXX The above is a North American PC style keyboard possibly */ product SUN MOUSE 0x0100 Type 6 USB mouse +product SUN KBD_HUB 0x100e Kbd Hub /* Super Top products */ product SUPERTOP IDE 0x6600 USB-IDE _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 18:10: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 B33B4106564A for ; Thu, 19 Mar 2009 18:10:30 +0000 (UTC) (envelope-from c.r.n.a@wanadoo.fr) Received: from smtp2c.orange.fr (smtp2c.orange.fr [80.12.242.153]) by mx1.freebsd.org (Postfix) with ESMTP id 779178FC22 for ; Thu, 19 Mar 2009 18:10:30 +0000 (UTC) (envelope-from c.r.n.a@wanadoo.fr) Received: from smtp20.orange.fr (mwinf2021 [172.22.130.121]) by mwinf2c05.orange.fr (SMTP Server) with ESMTP id 9B668C014A1B for ; Thu, 19 Mar 2009 18:07:46 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2021.orange.fr (SMTP Server) with ESMTP id E695C20005A0 for ; Thu, 19 Mar 2009 18:07:44 +0100 (CET) Received: from [192.168.1.96] (ABordeaux-157-1-104-249.w90-38.abo.wanadoo.fr [90.38.79.249]) by mwinf2021.orange.fr (SMTP Server) with ESMTP id AB97D20004D5 for ; Thu, 19 Mar 2009 18:07:44 +0100 (CET) X-ME-UUID: 20090319170744702.AB97D20004D5@mwinf2021.orange.fr Message-ID: <49C27B93.5000309@wanadoo.fr> Date: Thu, 19 Mar 2009 18:06:27 +0100 From: Nicolas User-Agent: Thunderbird 2.0.0.19 (X11/20090311) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: "Big Problem" with removable media 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, 19 Mar 2009 18:10:30 -0000 Hi, I'm using FreeBSD 8-Current (as of today) and when i plug my samsung omnia, i have this message: ugen7.7: at usbus7 umass1: on usbus7 umass1: SCSI over Bulk-Only; quirks = 0x0000 umass1:3:1:-1: Attached to scbus3 da1 at umass-sim1 bus 1 target 0 lun 0 da1: < > Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 7680MB (15728640 512 byte sectors: 255H 63S/T 979C) GEOM: da1: partition 1 does not start on a track boundary. GEOM: da1: partition 1 does not end on a track boundary. (da1:umass-sim1:1:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 My computer frezees until i unplug the device. What's wrong ? Thanks in advance, Niko. From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 19:31:23 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 ED06A10656CA for ; Thu, 19 Mar 2009 19:31:23 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.freebsd.org (Postfix) with ESMTP id 590D58FC1A for ; Thu, 19 Mar 2009 19:31:23 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A424E.dip.t-dialin.net [84.154.66.78]) (authenticated bits=0) by flat.berklix.org (8.13.8/8.13.8) with ESMTP id n2JJVEDA077897; Thu, 19 Mar 2009 20:31:15 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by js.berklix.net (8.13.8/8.13.8) with ESMTP id n2JJVlCI093965; Thu, 19 Mar 2009 20:31:47 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id n2JJVamf061503; Thu, 19 Mar 2009 20:31:47 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200903191931.n2JJVamf061503@fire.js.berklix.net> To: freebsd-usb@freebsd.org From: "Julian Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://berklix.com In-reply-to: Your message "Thu, 19 Mar 2009 11:13:29 +0100." <200903191013.n2JADT9T054996@fire.js.berklix.net> Date: Thu, 19 Mar 2009 20:31:36 +0100 Sender: jhs@berklix.org Cc: Subject: Re: Belkin Cardbus USB2 adaptors too hot. 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, 19 Mar 2009 19:31:24 -0000 Problem solved :-) All hangs I mentioned till now were coming from 2 identical enclosures I have, they report as: vendor=0x058f product=0x6390 devclass=0x00 devsubclass=0x00 release=0x0100 sernum="" intclass=0x08 intsubclass=0x06 2 other enclosures of different ID I have are OK. Should we extend devd or BSD USB code to issue a brief warning when devices match any in a lookup list of suspect rogues ? (Not the first flakey USB device I've encountered, Some Sony 2G sticks were bad, all 4, ( "vendor" "0x10d6"; "product" "0x1100"; "devclass" "0x00"; "devsubclass" "0x00"; "release" "0x0100"; ) PS Thanks for you power etc advice Warner :-) Further backround before conclusion above: { I moved same new 250G disc in same enclosure to another 7.1-RELEASE tower PC with & without USB hub, & with a current doubler cable (ie to suck up to a 2nd 0.5A from 2nd socket if disk wants) testblock -v /mnt/tmp/bla1 stopped writing at 5G. /var/log/messages & console: umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-out clear stall failed, IOERROR umass0: BBB reset failed, TIMEOUT g_vfs_done():da0a[WRITE(offset=65536, length=2048)]error = 5 g_vfs_done():da0a[WRITE(offset=6144000, length=16384)]error = 5 g_vfs_done():da0a[WRITE(offset=6160384, length=6144)]error = 5 g_vfs_done():da0a[WRITE(offset=198229819392, length=16384)]error = 5 .... I swapped the disc to a different USB to IDE converter, omitted case, disc does not get hot, but USB to IDE chip painfully hot (on good converter) + another power doubler cable, straight into PC, no hub, it wrote then read all remaining FS free space of 217 G succesfully. I swapped my other previously failing 120 G disc out of bad enclosure, into a known good enclosure, NO problems now on that either, have written 106 with no hang, & read verified 60 G as I type. } Cheers, Julian -- Julian Stacey: BSDUnixLinux C Prog Admin SysEng Consult Munich www.berklix.com Mail plain ASCII text. HTML & Base64 text are spam. www.asciiribbon.org From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 23:09:27 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1969F1065672; Thu, 19 Mar 2009 23:09:27 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id CE0E98FC19; Thu, 19 Mar 2009 23:09:26 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 21F60FF4B; Fri, 20 Mar 2009 12:09:26 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JA5xa2rnVtzv; Fri, 20 Mar 2009 12:09:22 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Fri, 20 Mar 2009 12:09:22 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 975191143C; Fri, 20 Mar 2009 11:37:56 +1300 (NZDT) Date: Thu, 19 Mar 2009 15:37:56 -0700 From: Andrew Thompson To: usb Message-ID: <20090319223756.GF2118@citylink.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Cc: current@freebsd.org Subject: USBTODO 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, 19 Mar 2009 23:09:28 -0000 Hi, Remember there is a page tracking the new USB stack to the 8.0 release. Please add any items/regressions or even better would be to pick up a task and work on it. http://wiki.freebsd.org/USBTODO Andrew From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 01:37:06 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBE901065670; Fri, 20 Mar 2009 01:37:06 +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 905DB8FC13; Fri, 20 Mar 2009 01:37:06 +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 n2K1YG68085812; Thu, 19 Mar 2009 19:34:16 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 19 Mar 2009 19:34:47 -0600 (MDT) Message-Id: <20090319.193447.-399283086.imp@bsdimp.com> To: thompsa@freebsd.org From: "M. Warner Losh" In-Reply-To: <20090319223756.GF2118@citylink.fud.org.nz> References: <20090319223756.GF2118@citylink.fud.org.nz> 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: usb@freebsd.org, current@freebsd.org Subject: Re: USBTODO 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, 20 Mar 2009 01:37:07 -0000 In message: <20090319223756.GF2118@citylink.fud.org.nz> Andrew Thompson writes: : Remember there is a page tracking the new USB stack to the 8.0 release. : Please add any items/regressions or even better would be to pick up a : task and work on it. : : http://wiki.freebsd.org/USBTODO I have a flash drive that dies under heavy load (the LED on it goes out) and then any further disk I/O fails. Would something like that go on the page? Warner From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 03:58:55 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 568211065674; Fri, 20 Mar 2009 03:58:55 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.237]) by mx1.freebsd.org (Postfix) with ESMTP id 0DC188FC13; Fri, 20 Mar 2009 03:58:54 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: by rv-out-0506.google.com with SMTP id l9so885681rvb.43 for ; Thu, 19 Mar 2009 20:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:organization :x-operation-sytem; bh=yWk/0+e8vjbOtBM+sDrYbGGnZA4thT8W/ltmKPxefX8=; b=uCLK17U5x5tbFz776eoww69MfVEjrtQfSBrTsvgm2u2/VKhOY0q84h7qjiGeyEwfo3 CfP/0hQ4AR7O1lkW7Na7MSr/XCgGiQ3a+PTiYDepLIFCk/VBZ8K0Sp7toMYLQ9b6yLCN AEYRw99S3bUYW0TMJsruj02BYJ+mbtdOo8Q8w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :organization:x-operation-sytem; b=Y4qrDZAd6pyT2hIipvsObJO1sHrXSyPmDI+JLBq6ok0774p7Hqv6OkYEWMlmS667RA yIdiwAP40z8m1d4kiV303esrfRGjHocpLsErNh8fz1P8BcsPtebLACDlHtdRBlFatEV3 kgs/U5MWmrEn9CTYJE0+MoQLcg7v7Baf0OK2g= Received: by 10.141.114.15 with SMTP id r15mr1121417rvm.179.1237521534558; Thu, 19 Mar 2009 20:58:54 -0700 (PDT) Received: from weongyo ([114.111.62.249]) by mx.google.com with ESMTPS id b39sm274522rvf.10.2009.03.19.20.58.52 (version=SSLv3 cipher=RC4-MD5); Thu, 19 Mar 2009 20:58:53 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Fri, 20 Mar 2009 12:58:50 +0900 From: Weongyo Jeong Date: Fri, 20 Mar 2009 12:58:50 +0900 To: Hans Petter Selasky Message-ID: <20090320035850.GB17221@weongyo.cdnetworks.kr> References: <20090318073032.GA12632@weongyo.cdnetworks.kr> <200903190901.23844.hselasky@c2i.net> <20090319105200.GA17221@weongyo.cdnetworks.kr> <200903191432.24364.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200903191432.24364.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: Sam Leffler , freebsd-usb@freebsd.org, Andrew Thompson Subject: Re: q: USB_SET_TIMEOUT in ugen. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 03:58:55 -0000 On Thu, Mar 19, 2009 at 02:32:23PM +0100, Hans Petter Selasky wrote: > Hi, > > On Thursday 19 March 2009, Weongyo Jeong wrote: > > On Thu, Mar 19, 2009 at 09:01:23AM +0100, Hans Petter Selasky wrote: > > > On Thursday 19 March 2009, Weongyo Jeong wrote: > > > > ugen_default_read_callback:384: actlen=0, aframes=0 > > > > ugen_default_read_callback:384: actlen=0, aframes=0 > > > > ugen_read_clear_stall_callback:477: f=0xc4d5b000: stall cleared > > > > > > One difference from the old ugen implementation is that a stall error > > > does not cause any error to be returned to userland! > > > > > > You could try to return a ZLP on errors. Try this patch: > > > > > > http://perforce.freebsd.org/chv.cgi?CH=159423 > > > > > > If you need to distinguish a ZLP from a STALL, then you have to use the > > > new libusb! Ugen is not meant to be a replacement for libusb! > > > > Thanks you for a patch but it's not a answer what I want because my > > symptom is that recv(2) waits forever before or returns 0 after applying > > your patch. It shouldn't return 0 or nothing that the size of the recv(2) > > return value should be 512. > > The ugen interface is now double buffered, so it will read data in the > background! The old was not double buffered. There are currently only two > buffers. If you see the packet in the analyzer it has most likely also ended > up in a UGEN buffer. > > > I tried to dump USB transactions using USB > > analyzer and the dump file is available at: > > > > http://people.freebsd.org/~weongyo/uathload_20090319_export.txt > > What happens if you change: > > | if (read(msg, &rxmsg, sizeof(rxmsg)) != > sizeof(rxmsg)) { > 215: | VERBOSE("%s", "\n"); > | err(-1, "error reading msg (%s)", > msgdev); > | break; > | } > > Into while loop for sake of testing? So that if the length is 0 you loop one > more time and if you have more than X zero lengths returned, you break? I tried to do your suggestion but no changes. read(2) returned always 0 (after applying http://perforce.freebsd.org/chv.cgi?CH=159423) that it looks ugen missed a transaction the device sent to the host. > > > > Interesting packets could be found after 241 transactions and the steps > > of program are as follows: > > > > write(endpoint 0x1, buf, 512); > > write(endpoint 0x2, buf, 512); > > write(endpoint 0x2, buf, 512); > > write(endpoint 0x2, buf, 512); > > write(endpoint 0x2, buf, 512); > > read(endpoint 0x81, buf, 512); <-- here error. > > > > As you can see with looking the dump file, ugen couldn't catch the read > > event even though the USB stick responses data at Transaction 264, 265 > > and 266. It looks the problem is in ugen(4). As looking usb_generic.c > > it looks the read/write pipe are opened on the fly when read(2) or > > write(2) systemcalls are called though in the previous ugen(4) in usb1 > > all pipes are opened at open(2). Could this difference affect this > > symptom? I'd try to test another cases. > > The old ugen would also do a clear-stall which the new one does not do, unless > you do an IOCTL before the first read! That is also something you can try. Also I tried this with commenting out all of ioctl(2) calls. But after it it looks recv(2) never returns. regards, Weongyo Jeong From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 07:26:49 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E72710656C3 for ; Fri, 20 Mar 2009 07:26:49 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id DF21D8FC16 for ; Fri, 20 Mar 2009 07:26:47 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id n2K6oUKt031542 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Mar 2009 09:50:32 +0300 (MSK) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LkYYo-00079u-EL; Fri, 20 Mar 2009 09:50:30 +0300 From: Vladimir Grebenschikov To: amistry@am-productions.biz Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Fri, 20 Mar 2009 09:50:30 +0300 Message-Id: <1237531830.1728.24.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: usb@freebsd.org Subject: print/hplip does not build with new USB stack (8-CURRENT) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 07:26:49 -0000 Hi # portupgrade -f hplip ---> Reinstalling 'hplip-2.8.2_3' (print/hplip) ---> Building '/usr/ports/print/hplip' ===> Cleaning for net-snmp-5.4.2.1_3 ===> Cleaning for hplip-2.8.2_3 ===> Found saved configuration for hplip-2.7.12 ===> Extracting for hplip-2.8.2_3 => MD5 Checksum OK for hplip-2.8.2.tar.gz. => SHA256 Checksum OK for hplip-2.8.2.tar.gz. ===> Patching for hplip-2.8.2_3 ===> Applying FreeBSD patches for hplip-2.8.2_3 ===> hplip-2.8.2_3 depends on file: /usr/local/bin/python2.5 - found ===> hplip-2.8.2_3 depends on shared library: jpeg.9 - found ===> hplip-2.8.2_3 depends on shared library: sane.1 - found ===> hplip-2.8.2_3 depends on shared library: cups.2 - found ===> hplip-2.8.2_3 depends on shared library: netsnmp.16 - found ===> Configuring for hplip-2.8.2_3 checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking for gawk... gawk ... checking for cups/cups.h... yes checking for usb_init in -lusb... yes checking usb.h usability... yes checking usb.h presence... yes checking for usb.h... yes checking whether /usr/local/bin/python2.5 version >= 2.2... yes ... ===> Building for hplip-2.8.2_3 /bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"HP\ Linux\ Imaging\ and\ Printing\" -DPACKAGE_TARNAME=\"hplip\" -DPACKAGE_VERSION=\"2.8.2\" -DPACKAGE_STRING=\"HP\ Linux\ Imaging\ and\ Printing\ 2.8.2\" -DPACKAGE_BUGREPORT=\"2.8.2.10\" -DPACKAGE=\"hplip\" -DVERSION=\"2.8.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBM=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_PTHREAD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_NET_SNMP_NET_SNMP_CONFIG_H=1 -DHAVE_LIBCUPS=1 -DHAVE_CUPS_CUPS_H=1 -DHAVE_LIBUSB=1 -DHAVE_USB_H=1 -DHAVE_PYTHON2_5_PYTHON_H=1 -DHAVE_LIBSANE=1 -I. -I. -Iip -Iio/hpmud -Iscan/sane -I/usr/local/include -I/usr/local/include/python2.5 -O2 -pipe! -fno-strict-aliasing -c -o cupsext_la-cupsext.lo `test -f 'prnt/cupsext/cupsext.c' || echo './'`prnt/cupsext/cupsext.c mkdir .libs cc "-DPACKAGE_NAME=\"HP Linux Imaging and Printing\"" -DPACKAGE_TARNAME=\"hplip\" -DPACKAGE_VERSION=\"2.8.2\" "-DPACKAGE_STRING=\"HP Linux Imaging and Printing 2.8.2\"" -DPACKAGE_BUGREPORT=\"2.8.2.10\" -DPACKAGE=\"hplip\" -DVERSION=\"2.8.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBM=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_PTHREAD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_NET_SNMP_NET_SNMP_CONFIG_H=1 -DHAVE_LIBCUPS=1 -DHAVE_CUPS_CUPS_H=1 -DHAVE_LIBUSB=1 -DHAVE_USB_H=1 -DHAVE_PYTHON2_5_PYTHON_H=1 -DHAVE_LIBSANE=1 -I. -I. -Iip -Iio/hpmud -Iscan/sane -I/usr/local/include -I/usr/local/include/python2.5 -O2 -pipe -fno-strict-aliasing -c prnt/cupsext/cupsext.c! -fPIC -DPIC -o .libs/cupsext_la-cupsext.o /bin/sh ./libtool --tag=CC --mode=link cc -O2 -pipe -fno-strict-aliasing -L/usr/local/lib -o cupsext.la -rpath /usr/local/lib/python2.5/site-packages -module -avoid-version cupsext_la-cupsext.lo -lsane -lusb -lcups -lnetsnmp -lcrypto -ljpeg -lm -pthread grep: /usr/local/lib/libusb.la: No such file or directory /usr/local/bin/gsed: can't read /usr/local/lib/libusb.la: No such file or directory ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20090320-2598-exqhin-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=hplip-2.8.2_3 UPGRADE_PORT_VER=2.8.2_3 make no libusb port installed, all old usb libraries and headers are cleaned (make delete-old). # pkg_info -I '*usb*' pkg_info: can't find package '*usb*' installed or in a file! # ldconfig -r | fgrep usb 94:-lusbhid.3 => /usr/lib/libusbhid.so.3 101:-lusb.1 => /usr/lib/libusb.so.1 1165:-lsane-mustek_usb.1 => /usr/local/lib/compat/pkg/libsane-mustek_usb.so.1 1166:-lsane-mustek_usb2.1 => /usr/local/lib/compat/pkg/libsane-mustek_usb2.so.1 1501:-lusb.0 => /usr/local/lib/compat/libusb.so.0 1502:-lusbhid.0 => /usr/local/lib/compat/libusbhid.so.0 1503:-lusbhid.1 => /usr/local/lib/compat/libusbhid.so.1 1504:-lusbhid.2 => /usr/local/lib/compat/libusbhid.so.2 # ls -ldtr /usr/include/*usb* -r--r--r-- 1 root wheel 1451 Nov 26 01:10 /usr/include/libusb20_compat10.h -r--r--r-- 1 root wheel 3601 Feb 2 17:20 /usr/include/usbhid.h -r--r--r-- 1 root wheel 9496 Mar 11 02:51 /usr/include/usb.h -r--r--r-- 1 root wheel 15969 Mar 11 02:51 /usr/include/libusb20_desc.h -r--r--r-- 1 root wheel 11822 Mar 18 17:31 /usr/include/libusb20.h # -- Vladimir B. Grebenschikov vova@fbsd.ru From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 07:26:50 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63BB310656C1; Fri, 20 Mar 2009 07:26:50 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id B54D38FC32; Fri, 20 Mar 2009 07:26:49 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id n2K6qUVD013154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Mar 2009 09:52:31 +0300 (MSK) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LkYak-0007AG-OW; Fri, 20 Mar 2009 09:52:30 +0300 From: Vladimir Grebenschikov To: Andrew Thompson In-Reply-To: <20090319223756.GF2118@citylink.fud.org.nz> References: <20090319223756.GF2118@citylink.fud.org.nz> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 20 Mar 2009 09:52:30 +0300 Message-Id: <1237531950.1728.25.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: usb , current@freebsd.org Subject: Re: USBTODO 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, 20 Mar 2009 07:26:51 -0000 On Thu, 2009-03-19 at 15:37 -0700, Andrew Thompson wrote: > Hi, > > > Remember there is a page tracking the new USB stack to the 8.0 release. > Please add any items/regressions or even better would be to pick up a > task and work on it. > > http://wiki.freebsd.org/USBTODO Please add here http://wiki.freebsd.org/PortsBrokenOnCurrent to USB part print/hplip > Andrew -- Vladimir B. Grebenschikov vova@fbsd.ru From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 07:51:23 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48A751065670; Fri, 20 Mar 2009 07:51:23 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from mail1.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id 17ECE8FC1A; Fri, 20 Mar 2009 07:51:22 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from localhost (pool-141-151-75-22.phlapa.east.verizon.net [141.151.75.22]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id B051969E8F; Fri, 20 Mar 2009 16:31:22 +0900 (JST) Date: Fri, 20 Mar 2009 04:31:15 -0400 From: Yoshihiro Ota To: Andrew Thompson Message-Id: <20090320043115.3b46177e.ota@j.email.ne.jp> In-Reply-To: <20090319223756.GF2118@citylink.fud.org.nz> References: <20090319223756.GF2118@citylink.fud.org.nz> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: usb , current@freebsd.org Subject: Re: USBTODO 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, 20 Mar 2009 07:51:23 -0000 On Thu, 19 Mar 2009 15:37:56 -0700 Andrew Thompson wrote: > Hi, > > > Remember there is a page tracking the new USB stack to the 8.0 release. > Please add any items/regressions or even better would be to pick up a > task and work on it. > > http://wiki.freebsd.org/USBTODO Can I create an account and update the page freely or do I need someone's permission to do so? I have USB FDD that does not work and USB keyboard that needs a workaround in the source. Hans has helped me to get keyboard functional. However, FDD needs more investigation but I haven't got enough time for that, yet. Should these be mentioned in the wiki? There are quirks filed in PRs as I searched patches before I had to create/update one for my device. If I get your or some other committer's help, I can find our quirk updates and report. I am currentlly looking for simple quirk updates that updates the table or add some defines for unlist venders in this effort. Are you, Andrew, able to help to commit them? Thanks, Hiro From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 09:20:21 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 26B26106564A for ; Fri, 20 Mar 2009 09:20:21 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id AF43A8FC0A for ; Fri, 20 Mar 2009 09:20:20 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=VECs6VnS8qEA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=gvHnSkt9JSX1oXFSMEEA:9 a=9oZAMoQWaQ0FIO-E4u4A:7 a=X0UoTauAiwIoE0mHjX1iEO0DngsA:4 a=LY0hPdMaydYA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1215951734; Fri, 20 Mar 2009 10:20:18 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 20 Mar 2009 10:22:48 +0100 User-Agent: KMail/1.9.7 References: <49C27B93.5000309@wanadoo.fr> In-Reply-To: <49C27B93.5000309@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903201022.49413.hselasky@c2i.net> Cc: Nicolas Subject: Re: "Big Problem" with removable media 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, 20 Mar 2009 09:20:21 -0000 On Thursday 19 March 2009, Nicolas wrote: > Hi, > > I'm using FreeBSD 8-Current (as of today) and when i plug my samsung > omnia, i have this message: > > ugen7.7: at usbus7 > umass1: on usbus7 > umass1: SCSI over Bulk-Only; quirks = 0x0000 > umass1:3:1:-1: Attached to scbus3 > da1 at umass-sim1 bus 1 target 0 lun 0 > da1: < > Removable Direct Access SCSI-0 device > da1: 40.000MB/s transfers > da1: 7680MB (15728640 512 byte sectors: 255H 63S/T 979C) > GEOM: da1: partition 1 does not start on a track boundary. > GEOM: da1: partition 1 does not end on a track boundary. > (da1:umass-sim1:1:0:0): Synchronize cache failed, status == 0x4, scsi ^^^^ looks like your mass storage device needs a quirk. You can try sysutils/kdpatch to patch the quirks table for umass. As far as I can tell the table has the same format in usb2 and usb1 so the following should work: kldpatch umass.ko - @0 0x10d6 0x0000xxxx 0xffffffff 0x0201 0x4200 (replace xxxx with the usb product id for your device). 0x201 means use ATAPI commands over BBB protocol which is what your messages say. Perhaps 0x101 also works here. 0x4000 means the following: /* Device cannot handle a SCSI synchronize cache command. Normally * this quirk would be handled in the cam layer, but for IDE bridges * we need to associate the quirk with the bridge and not the * underlying disk device. This is handled by faking a success result. */ # define NO_SYNCHRONIZE_CACHE 0x4000 you may have to play with different flags and quirks to make the thing work. cheers luigi --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 12:01:42 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 18B1B1065739 for ; Fri, 20 Mar 2009 12:01:42 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from ftp.translate.ru (ftp.translate.ru [195.131.4.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5D0CA8FC1C for ; Fri, 20 Mar 2009 12:01:40 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from desktop.home.serebryakov.spb.ru (blacklion.static.corbina.ru [89.179.122.169]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 8A91B13DF6A for ; Fri, 20 Mar 2009 14:43:06 +0300 (MSK) Date: Fri, 20 Mar 2009 14:43:04 +0300 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <83352858.20090320144304@serebryakov.spb.ru> To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Subject: libusb-1.x -- is it availiable on FreeBSD? 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, 20 Mar 2009 12:01:53 -0000 Hello, Freebsd-usb. Some software (with Linux origins, of course), which I want to port, uses libusb1 (libusb-1.0). Is it availiable on FreeBSD? It seems, that `ports/devel/libusb' is something very different... --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 13:43:28 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 1B3FD106564A for ; Fri, 20 Mar 2009 13:43:28 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id CD93F8FC21 for ; Fri, 20 Mar 2009 13:43:27 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 20554FF3A; Sat, 21 Mar 2009 02:43:27 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MnBD+FATctNU; Sat, 21 Mar 2009 02:43:23 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Sat, 21 Mar 2009 02:43:23 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 8F63F1142F; Sat, 21 Mar 2009 02:43:22 +1300 (NZDT) Date: Fri, 20 Mar 2009 06:43:22 -0700 From: Andrew Thompson To: Lev Serebryakov Message-ID: <20090320134322.GB5298@citylink.fud.org.nz> References: <83352858.20090320144304@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83352858.20090320144304@serebryakov.spb.ru> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-usb@freebsd.org Subject: Re: libusb-1.x -- is it availiable on FreeBSD? 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, 20 Mar 2009 13:43:28 -0000 On Fri, Mar 20, 2009 at 02:43:04PM +0300, Lev Serebryakov wrote: > Hello, Freebsd-usb. > > Some software (with Linux origins, of course), which I want to port, > uses libusb1 (libusb-1.0). Is it availiable on FreeBSD? It seems, that > `ports/devel/libusb' is something very different... Libusb 1.0 is not yet supported. ports/devel/libusb gives you libusb 0.1 (will be part of the base OS in 8.0). Andrew From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 13:45:01 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 B0A95106564A for ; Fri, 20 Mar 2009 13:45:01 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from ftp.translate.ru (ftp.translate.ru [195.131.4.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5BB958FC19 for ; Fri, 20 Mar 2009 13:45:01 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from desktop.home.serebryakov.spb.ru (blacklion.static.corbina.ru [89.179.122.169]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 2A54113DF62; Fri, 20 Mar 2009 16:45:00 +0300 (MSK) Date: Fri, 20 Mar 2009 16:44:58 +0300 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <973521329.20090320164458@serebryakov.spb.ru> To: Andrew Thompson In-Reply-To: <20090320134322.GB5298@citylink.fud.org.nz> References: <83352858.20090320144304@serebryakov.spb.ru> <20090320134322.GB5298@citylink.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re[2]: libusb-1.x -- is it availiable on FreeBSD? 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, 20 Mar 2009 13:45:02 -0000 Hello, Andrew. You wrote 20 =EC=E0=F0=F2=E0 2009 =E3., 16:43:22: >> Some software (with Linux origins, of course), which I want to port, >> uses libusb1 (libusb-1.0). Is it availiable on FreeBSD? It seems, that >> `ports/devel/libusb' is something very different... > Libusb 1.0 is not yet supported. ports/devel/libusb gives you libusb 0.1 Any ongoing project of porting? > (will be part of the base OS in 8.0). According to USBTODO wikipage, here is plan to add 1.0 support to 8.0? --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 13:45: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 128C71065672 for ; Fri, 20 Mar 2009 13:45:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.tele2.se [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id 9D9348FC22 for ; Fri, 20 Mar 2009 13:45:23 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=d0PXCBssvoUA:10 a=SllXE8PqFMgA:10 a=dR2xiTH6-K416KYdseIA:9 a=n5pXN1PgAj8RIoiVJrjNRyFNLNQA:4 a=LY0hPdMaydYA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO [10.36.2.183]) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 466355235; Fri, 20 Mar 2009 14:45:21 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 20 Mar 2009 14:47:49 +0100 User-Agent: KMail/1.9.7 References: <83352858.20090320144304@serebryakov.spb.ru> In-Reply-To: <83352858.20090320144304@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903201447.49983.hselasky@c2i.net> Cc: Lev Serebryakov Subject: Re: libusb-1.x -- is it availiable on FreeBSD? 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, 20 Mar 2009 13:45:24 -0000 On Friday 20 March 2009, Lev Serebryakov wrote: > Hello, Freebsd-usb. > > Some software (with Linux origins, of course), which I want to port, > uses libusb1 (libusb-1.0). Is it availiable on FreeBSD? It seems, that > `ports/devel/libusb' is something very different... I will be available on 8-current eventually. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 14:03:38 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 A24661065677 for ; Fri, 20 Mar 2009 14:03:38 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swip.net [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 367A68FC12 for ; Fri, 20 Mar 2009 14:03:37 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=d0PXCBssvoUA:10 a=SllXE8PqFMgA:10 a=5RMtx_wmDMXg1rbObwcA:9 a=C11s1LG7N5IxBHYk3ftwomRDzUsA:4 a=LY0hPdMaydYA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO [10.36.2.183]) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 823247551; Fri, 20 Mar 2009 15:03:36 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 20 Mar 2009 15:06:08 +0100 User-Agent: KMail/1.9.7 References: <83352858.20090320144304@serebryakov.spb.ru> <200903201447.49983.hselasky@c2i.net> In-Reply-To: <200903201447.49983.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903201506.08582.hselasky@c2i.net> Cc: Lev Serebryakov Subject: Re: libusb-1.x -- is it availiable on FreeBSD? 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, 20 Mar 2009 14:03:39 -0000 On Friday 20 March 2009, Hans Petter Selasky wrote: > On Friday 20 March 2009, Lev Serebryakov wrote: > > Hello, Freebsd-usb. > > > > Some software (with Linux origins, of course), which I want to port, > > uses libusb1 (libusb-1.0). Is it availiable on FreeBSD? It seems, that > > `ports/devel/libusb' is something very different... > > I will be available on 8-current eventually. s/I/it s/on/in My USB keyboard is obviously not of the best brand :-) --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 14:40: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 0A0561065670 for ; Fri, 20 Mar 2009 14:40: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 EC6CE8FC0C for ; Fri, 20 Mar 2009 14:40:04 +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 n2KEe4RZ077978 for ; Fri, 20 Mar 2009 14:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2KEe46r077977; Fri, 20 Mar 2009 14:40:04 GMT (envelope-from gnats) Date: Fri, 20 Mar 2009 14:40:04 GMT Message-Id: <200903201440.n2KEe46r077977@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Gavin Atkinson Cc: Subject: Re: usb/132066: [ukbd] Keyboard failure USB keyboard DELL 760 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gavin Atkinson List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 14:40:05 -0000 The following reply was made to PR usb/132066; it has been noted by GNATS. From: Gavin Atkinson To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/132066: [ukbd] Keyboard failure USB keyboard DELL 760 Date: Fri, 20 Mar 2009 14:33:36 +0000 -------- Forwarded Message -------- From: Judah Levine To: gavin@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: fein@nist.gov Subject: Re: usb/132066: [ukbd] Keyboard failure USB keyboard DELL 760 Date: Fri, 13 Mar 2009 10:14:33 -0600 Hello, I have fixed this problem, but I don't understand why it works. I made the following changes to the config file and re-built the kernel: 1. remove device atkb 2. add device puc 3. add: options UKBD_DFLT_KEYMAP options UKBD_DFLT_KEYMAP=us.unix I have installed the same software with USB keyboards on many different systems, and this is the first time that I had to do this. The system now works correctly both using the command-line and X-windows. Is it possible that the keyboard is not being recognized correctly during the bootstrap process? Judah Levine Time and Frequency Division NIST Boulder From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 17:14:18 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC84410657CB; Fri, 20 Mar 2009 17:14:18 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 8936A8FC12; Fri, 20 Mar 2009 17:14:18 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id D06C1FEF5; Sat, 21 Mar 2009 06:14:17 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mNOqnLNSoTMP; Sat, 21 Mar 2009 06:14:14 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Sat, 21 Mar 2009 06:14:14 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id C87561142F; Sat, 21 Mar 2009 06:14:13 +1300 (NZDT) Date: Fri, 20 Mar 2009 10:14:13 -0700 From: Andrew Thompson To: "M. Warner Losh" Message-ID: <20090320171413.GA33041@citylink.fud.org.nz> References: <20090319223756.GF2118@citylink.fud.org.nz> <20090319.193447.-399283086.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090319.193447.-399283086.imp@bsdimp.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: usb@freebsd.org, current@freebsd.org Subject: Re: USBTODO 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, 20 Mar 2009 17:14:20 -0000 On Thu, Mar 19, 2009 at 07:34:47PM -0600, M. Warner Losh wrote: > In message: <20090319223756.GF2118@citylink.fud.org.nz> > Andrew Thompson writes: > : Remember there is a page tracking the new USB stack to the 8.0 release. > : Please add any items/regressions or even better would be to pick up a > : task and work on it. > : > : http://wiki.freebsd.org/USBTODO > > I have a flash drive that dies under heavy load (the LED on it goes > out) and then any further disk I/O fails. Would something like that > go on the page? I think so, under the regressions section. Its better to be more verbose than forget to fix something. Andrew From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 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 A8FF7106566B for ; Fri, 20 Mar 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 981248FC12 for ; Fri, 20 Mar 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 n2KMK371001988 for ; Fri, 20 Mar 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 n2KMK3xB001987; Fri, 20 Mar 2009 22:20:03 GMT (envelope-from gnats) Date: Fri, 20 Mar 2009 22:20:03 GMT Message-Id: <200903202220.n2KMK3xB001987@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/132799: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 22:20:03 -0000 The following reply was made to PR usb/132799; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/132799: commit references a PR Date: Fri, 20 Mar 2009 22:17:37 +0000 (UTC) Author: thompsa Date: Fri Mar 20 22:17:27 2009 New Revision: 190189 URL: http://svn.freebsd.org/changeset/base/190189 Log: Add umass quirk. PR: usb/132799 Reported by: Yoshihiro Ota Submitted by: Hans Petter Selasky Modified: head/sys/dev/usb/storage/umass.c Modified: head/sys/dev/usb/storage/umass.c ============================================================================== --- head/sys/dev/usb/storage/umass.c Fri Mar 20 22:15:22 2009 (r190188) +++ head/sys/dev/usb/storage/umass.c Fri Mar 20 22:17:27 2009 (r190189) @@ -458,6 +458,7 @@ static const struct umass_devdescr umass {USB_VENDOR_GENESYS, USB_PRODUCT_GENESYS_GL641USB2IDE, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE + | NO_SYNCHRONIZE_CACHE }, {USB_VENDOR_GENESYS, USB_PRODUCT_GENESYS_GL641USB2IDE_2, RID_WILDCARD, UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 22:24:07 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 149381065670 for ; Fri, 20 Mar 2009 22:24:07 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id CE14E8FC0C for ; Fri, 20 Mar 2009 22:24:06 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 88AD0FEFD; Sat, 21 Mar 2009 11:24:05 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 385ssDc-tfal; Sat, 21 Mar 2009 11:24:02 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Sat, 21 Mar 2009 11:24:02 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 8AC191142F; Sat, 21 Mar 2009 11:24:01 +1300 (NZDT) Date: Fri, 20 Mar 2009 15:24:01 -0700 From: Andrew Thompson To: Mike Tancsa Message-ID: <20090320222401.GA39648@citylink.fud.org.nz> References: <200903182015.n2IKFWIb011457@lava.sentex.ca> <20090318214025.GB79077@citylink.fud.org.nz> <200903190004.n2J04YjP012665@lava.sentex.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200903190004.n2J04YjP012665@lava.sentex.ca> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-usb@FreeBSD.org Subject: Re: openct port and USB2 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, 20 Mar 2009 22:24:07 -0000 On Wed, Mar 18, 2009 at 08:04:48PM -0400, Mike Tancsa wrote: > At 05:40 PM 3/18/2009, Andrew Thompson wrote: >> On Wed, Mar 18, 2009 at 04:15:46PM -0400, Mike Tancsa wrote: >> > Hi, >> > I was trying to see if OpenCT and OpenSC work under the new USB >> > regime, but openCT doesnt compile now. Are there any tricks to get it to >> > compile and or work ? >> > >> >> Can you try this patch. >> >> http://people.freebsd.org/~thompsa/openct.diff >> > > Thanks! It does build now. However, not all of the bits seem to be > working just yet It should be working as of r190185, please try again. Andrew From owner-freebsd-usb@FreeBSD.ORG Sat Mar 21 02:03:10 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 39EBF106566B; Sat, 21 Mar 2009 02:03:10 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by mx1.freebsd.org (Postfix) with ESMTP id 033C88FC20; Sat, 21 Mar 2009 02:03:09 +0000 (UTC) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.14.3/8.14.3) with ESMTP id n2L22ltf030180; Fri, 20 Mar 2009 22:02:47 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200903210202.n2L22ltf030180@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Fri, 20 Mar 2009 22:03:01 -0400 To: Andrew Thompson From: Mike Tancsa In-Reply-To: <20090320222401.GA39648@citylink.fud.org.nz> References: <200903182015.n2IKFWIb011457@lava.sentex.ca> <20090318214025.GB79077@citylink.fud.org.nz> <200903190004.n2J04YjP012665@lava.sentex.ca> <20090320222401.GA39648@citylink.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: freebsd-usb@FreeBSD.org Subject: Re: openct port and USB2 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, 21 Mar 2009 02:03:10 -0000 At 06:24 PM 3/20/2009, Andrew Thompson wrote: >On Wed, Mar 18, 2009 at 08:04:48PM -0400, Mike Tancsa wrote: > > At 05:40 PM 3/18/2009, Andrew Thompson wrote: > >> On Wed, Mar 18, 2009 at 04:15:46PM -0400, Mike Tancsa wrote: > >> > Hi, > >> > I was trying to see if OpenCT and OpenSC work under the new USB > >> > regime, but openCT doesnt compile now. Are there any tricks > to get it to > >> > compile and or work ? > >> > > >> > >> Can you try this patch. > >> > >> http://people.freebsd.org/~thompsa/openct.diff > >> > > > > Thanks! It does build now. However, not all of the bits seem to be > > working just yet > >It should be working as of r190185, please try again. It sure does!!! Thanks for fixing! ---Mike >Andrew From owner-freebsd-usb@FreeBSD.ORG Sat Mar 21 21:06:16 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 CB678106564A for ; Sat, 21 Mar 2009 21:06:16 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 8A16D8FC08 for ; Sat, 21 Mar 2009 21:06:16 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 2F7F7DE8002; Sat, 21 Mar 2009 21:46:27 +0100 (CET) Received: from saturn.kn-bremen.de (noident@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id n2LKiYCP071944; Sat, 21 Mar 2009 21:44:34 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id n2LKiYWR071943; Sat, 21 Mar 2009 21:44:34 +0100 (CET) (envelope-from nox) Date: Sat, 21 Mar 2009 21:44:34 +0100 (CET) From: Juergen Lock Message-Id: <200903212044.n2LKiYWR071943@saturn.kn-bremen.de> To: torfinn.ingolfsen@broadpark.no X-Newsgroups: gmane.os.freebsd.devel.usb In-Reply-To: <20090318205909.07625cdb.torfinn.ingolfsen@broadpark.no> References: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> Organization: home Cc: freebsd-usb@freebsd.org Subject: Re: Xorg 7.4 and umass devices - a bad combination? 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, 21 Mar 2009 21:06:17 -0000 In article <20090318205909.07625cdb.torfinn.ingolfsen@broadpark.no> you write: >Hello, > >More testing. >- I verified that listing the firewire drive while Xorg is running >doesn't seeem to cause any errors. >So I thought: what happens if I start Xorg (using startx), then exit it >and _then_ do an 'ls' on the usb drives? > >First try: 'startx', do a couple of commands (like 'date', 'pwd'), the >exit Xorg again. Then do 'ls' on the usb drives. Result: it works >without errors. > >Second try: 'startx', do a couple of commands (like 'date', 'pwd'), the >exit Xorg again. Then do 'ls' on the usb drives. Result: the erors are >back. Just in case you haven't seen it yet... Apparently there have been issues on some hardware with the way xorg (used to) probe the pci bus, see the `Unhappy Xorg upgrade' thread on -stable, particularly: http://docs.freebsd.org/cgi/mid.cgi?1234292252.1524.38.camel and http://docs.freebsd.org/cgi/mid.cgi?49A81556.2040801 (which details the fix.) HTH, Juergen From owner-freebsd-usb@FreeBSD.ORG Sat Mar 21 21:42:54 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 0E2FA106566B for ; Sat, 21 Mar 2009 21:42:54 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id BF9938FC12 for ; Sat, 21 Mar 2009 21:42:53 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0KGV004KQLNGTP80@osl1smout1.broadpark.no> for freebsd-usb@freebsd.org; Sat, 21 Mar 2009 22:42:52 +0100 (CET) Received: from kg-work2.kg4.no ([80.202.83.38]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0KGV00GV1LNGUE30@osl1sminn1.broadpark.no> for freebsd-usb@freebsd.org; Sat, 21 Mar 2009 22:42:52 +0100 (CET) Date: Sat, 21 Mar 2009 22:42:52 +0100 From: Torfinn Ingolfsen To: freebsd-usb@freebsd.org Message-id: <20090321224252.7a92180e.torfinn.ingolfsen@broadpark.no> In-reply-to: <200903212044.n2LKiYWR071943@saturn.kn-bremen.de> References: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> <200903212044.n2LKiYWR071943@saturn.kn-bremen.de> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: Xorg 7.4 and umass devices - a bad combination? 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, 21 Mar 2009 21:42:54 -0000 On Sat, 21 Mar 2009 21:44:34 +0100 (CET) Juergen Lock wrote: > Just in case you haven't seen it yet... > > Apparently there have been issues on some hardware with the way xorg > (used to) probe the pci bus, see the `Unhappy Xorg upgrade' thread on > -stable, particularly: > http://docs.freebsd.org/cgi/mid.cgi?1234292252.1524.38.camel > and > http://docs.freebsd.org/cgi/mid.cgi?49A81556.2040801 > (which details the fix.) Interesting. As mentioned in my earlier posts, I am running RELENG_6, not RELENG_7. Is this problem also relevant for releng_6? -- Torfinn From owner-freebsd-usb@FreeBSD.ORG Sat Mar 21 21:47:26 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 9B5FA106566C for ; Sat, 21 Mar 2009 21:47:26 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id 57E868FC0A for ; Sat, 21 Mar 2009 21:47:26 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0KGV004NSLV1TP80@osl1smout1.broadpark.no> for freebsd-usb@freebsd.org; Sat, 21 Mar 2009 22:47:25 +0100 (CET) Received: from kg-work2.kg4.no ([80.202.83.38]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0KGV00F9MLV1HB40@osl1sminn1.broadpark.no> for freebsd-usb@freebsd.org; Sat, 21 Mar 2009 22:47:25 +0100 (CET) Date: Sat, 21 Mar 2009 22:47:24 +0100 From: Torfinn Ingolfsen To: freebsd-usb@freebsd.org Message-id: <20090321224724.1e2e2c72.torfinn.ingolfsen@broadpark.no> In-reply-to: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> References: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: Xorg 7.4 and umass devices - a bad combination? 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, 21 Mar 2009 21:47:26 -0000 I did some more tests, this time with RELENG_7 / amd64: root@kg-quiet# uname -a FreeBSD kg-quiet.kg4.no 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #2: Tue Mar 17 22:09:21 CET 2009 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET amd64 I updated the ports tree, and installed Xorg 7.4 (and Xfce 4.6.0) directly - no upgrades needed. And now everything runs smooth - I can not reproduce the problem at all. I am using the ati driver (xf86-video-ati-6.12.1) for Xorg in case that matters. -- Regards, Torfinn Ingolfsen