From owner-freebsd-usb@FreeBSD.ORG Sun May 22 13:30:08 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51C4216A41C for ; Sun, 22 May 2005 13:30:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D27643D58 for ; Sun, 22 May 2005 13:30:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4MDU8U4001934 for ; Sun, 22 May 2005 13:30:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4MDU8rY001933; Sun, 22 May 2005 13:30:08 GMT (envelope-from gnats) Date: Sun, 22 May 2005 13:30:08 GMT Message-Id: <200505221330.j4MDU8rY001933@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Thierry Thomas Cc: Subject: Re: kern/80383: [PATCH] Add quirk for uhid to ignore certain usbdevices (blacklist) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thierry Thomas List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2005 13:30:08 -0000 The following reply was made to PR usb/80383; it has been noted by GNATS. From: Thierry Thomas To: FreeBSD-gnats-submit@freebsd.org Cc: Adam Kropelin Subject: Re: kern/80383: [PATCH] Add quirk for uhid to ignore certain usbdevices (blacklist) Date: Sun, 22 May 2005 15:24:20 +0200 On Sun 1 may 05 at 15:12:55 +0200, Adam Kropelin wrote: > >>To add the MGE UPS devices, I need the attached patches. > > Here are additional patches to add APC UPSes to the quirk table. In order to rebuild a machine where I need these patches, I have merged all the submitted patches in a single file, available at: It applies against a 5.4-STABLE. Regards, -- Th. Thomas. From owner-freebsd-usb@FreeBSD.ORG Sun May 22 14:30:28 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5251E16A41C for ; Sun, 22 May 2005 14:30:28 +0000 (GMT) (envelope-from chu@kemia.me.tut.fi) Received: from kemia.me.tut.fi (kemia.me.tut.fi [130.230.40.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5F2243D1D for ; Sun, 22 May 2005 14:30:27 +0000 (GMT) (envelope-from chu@kemia.me.tut.fi) Received: from kempc17.me.tut.fi (kempc32.me.tut.fi [130.230.40.50]) by kemia.me.tut.fi (8.13.1/8.13.1) with ESMTP id j4MEUPLs010061 for ; Sun, 22 May 2005 17:30:25 +0300 To: freebsd-usb@freebsd.org Date: Sun, 22 May 2005 17:30:24 +0300 From: "Vladimir Chukharev" Organization: Tampere University of Technology Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.0 (FreeBSD, build 1095) Subject: Camera stopped working after upgrade 4->5 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, 22 May 2005 14:30:28 -0000 Hi! I have a problem with digital camera on FreeBSD 5. The same camera worked well with FreeBSD 4, including one case of the same hardware, when I upgraded 4->5. I use gtkam program. With fbsd4 it opens the camera and allows to copy the photos. With fbsd5 it cannot find the camera. When I try to add a camera manually, it can correctly detect the camera as Canon Digital IXUS 400 Universal Serial Bus (usb:) but then it cannot initialize it. Same happens on all 4 usb connectors. Since the messages on connecting/disconnecting are virtually the same in different versions of FreeBSD, and versions of gtkam are really close, I think the problem should be somewhere in the usb driver in FreeBSD 5. Does anybody have any clue to this? Can I give more useful information? Best regards, V.Chukharev -------------------------------- The system I would like to use the camera with (and it fails to work): $ uname -a FreeBSD chu.h33.erkki.ton.tut.fi 5.4-STABLE FreeBSD 5.4-STABLE #20: Sun May 15 16:16:12 EEST 2005 root@chu.h33.erkki.ton.tut.fi:/usr/obj/usr/src/sys/CHU i386 This appears in /etc/log/all.log on connecting/disconnecting the camera: May 21 23:08:41 chu kernel: ugen0: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2 May 21 23:08:42 chu kernel: ugen0: at uhub0 port 2 (addr 2) disconnected May 21 23:08:42 chu kernel: ugen0: detached Full dmesg output on this computer: $ dmesg Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.4-STABLE #20: Sun May 15 16:16:12 EEST 2005 root@chu.h33.erkki.ton.tut.fi:/usr/obj/usr/src/sys/CHU Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) M processor 1500MHz (1500.06-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x695 Stepping = 5 Features=0xa7e9fbbf real memory = 527695872 (503 MB) avail memory = 506724352 (483 MB) npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) acpi_ec0: port 0x66,0x62 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.1 (no driver attached) pci0: at device 0.3 (no driver attached) agp0: port 0xdc00-0xdc07 mem 0xfeb00000-0xfeb7ffff,0xf0000000-0xf7ffffff irq 11 at device 2.0 on pci0 agp0: detected 8060k stolen memory agp0: aperture size is 128M pci0: at device 2.1 (no driver attached) uhci0: port 0xd480-0xd49f irq 11 at device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd800-0xd81f irq 5 at device 29.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xd880-0xd89f irq 4 at device 29.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pci0: at device 29.7 (no driver attached) pcib1: at device 30.0 on pci0 pci1: on pcib1 pci1: at device 4.0 (no driver attached) cbb0: at device 5.0 on pci1 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 fwohci0: mem 0xfe8ff000-0xfe8ff7ff irq 11 at device 5.1 on pci1 fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:e0:18:00:03:18:13:e4 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:e0:18:18:13:e4 fwe0: Ethernet address: 02:e0:18:18:13:e4 fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) fxp0: port 0xcc00-0xcc3f mem 0xfe8fe000-0xfe8fefff irq 11 at device 8.0 on pci1 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:0e:a6:8e:a9:ae isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: at device 31.5 (no driver attached) pci0: at device 31.6 (no driver attached) acpi_button0: on acpi0 acpi_lid0: on acpi0 acpi_tz0: on acpi0 acpi_acad0: on acpi0 acpi_cmbat0: on acpi0 acpi_cmbat1: on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 sio0: configured irq 3 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 port 0x2f8-0x2ff irq 3 drq 1 flags 0x10 on acpi0 sio0: type 16550A ppc0: port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 orm0: at iomem 0xc0000-0xccfff on isa0 pmtimer0 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1500059068 Hz quality 800 Timecounters tick every 10.000 msec ad0: 57231MB [116280/16/63] at ata0-master UDMA100 acd0: DVDR at ata1-master PIO4 Mounting root from ufs:/dev/ad0s2a pcm0: port 0xe100-0xe13f,0xe000-0xe0ff at device 31.5 on pci0 pcm0: ugen0: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2 ugen0: at uhub0 port 2 (addr 2) disconnected ugen0: detached cpu0: Cx states changed cpu0: Cx states changed ums0: Logitech Optical USB Mouse, rev 2.00/3.40, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. The versions of the gtkam program and its dependencies: $ pkg_tree gtkam gtkam-gnome-0.1.12_4 |\__ pkgconfig-0.17.2 |\__ expat-1.95.8_1 |\__ xorg-fonts-encodings-6.8.2 |\__ xmlcatmgr-2.2 |\__ jpeg-6b_3 |\__ freetype2-2.1.9 |\__ fontconfig-2.2.3,1 |\__ sdocbook-xml-4.1.2.5_2 |\__ docbook-sk-4.1.2_3 |\__ libiconv-1.9.2_1 |\__ python-2.4.1_1 |\__ py24-numeric-23.7 |\__ xorg-libraries-6.8.2 |\__ samba-libsmbclient-3.0.14a_2 |\__ png-1.2.8_2 |\__ libxml2-2.6.19 |\__ perl-5.8.6_2 |\__ bitstream-vera-1.10_1 |\__ startup-notification-0.8_1 |\__ openldap-client-2.2.26 |\__ nspr-4.4.1_1 |\__ nss-3.9.2 |\__ gettext-0.14.4 |\__ popt-1.7 |\__ glib-2.6.4 |\__ p5-XML-Parser-2.34_1 |\__ hicolor-icon-theme-0.5 |\__ libusb-0.1.10a |\__ shared-mime-info-0.16_1 |\__ libXft-2.1.6_1 |\__ tiff-3.7.2 |\__ libijs-0.35 |\__ libgpg-error-1.0_1 |\__ xorg-fonts-truetype-6.8.2 |\__ libgcrypt-1.2.1_1 |\__ libwmf-0.2.8.3 |\__ linc-1.0.3_3 |\__ fam-2.6.9_6 |\__ libexif-0.6.12_1 |\__ libaudiofile-0.2.6 |\__ gnomehier-2.0_6 |\__ libxslt-1.1.14 |\__ gnutls-1.0.24_1 |\__ pango-1.8.1 |\__ libgsf-1.11.1 |\__ docbook-xml-4.2_1 |\__ atk-1.9.1 |\__ esound-0.2.35_2 |\__ libart_lgpl2-2.3.17 |\__ gtk-2.6.7 |\__ libcroco-0.6.0_1 |\__ lcms-1.14,1 |\__ libmng-1.0.8 |\__ libgphoto2-2.1.5_1 |\__ intltool-0.33 |\__ libIDL-0.8.5_1 |\__ libglade2-2.5.1_2 |\__ ORBit2-2.12.2 |\__ libsoup-2.2.3 |\__ docbook-xsl-1.68.1 |\__ libwnck-2.10.0 |\__ py24-gtk-2.6.2 |\__ libgnomecanvas-2.10.1 |\__ scrollkeeper-0.3.14_1,1 |\__ cdparanoia-3.9.8_7 |\__ gnomemimedata-2.4.2 |\__ gail-1.8.4 |\__ libexif-gtk-0.3.4_3 |\__ gimp-print-4.2.7_1 |\__ libbonobo-2.8.1_1 |\__ gtk-engines2-2.6.3_3 |\__ gconf2-2.10.0 |\__ gnomevfs2-2.10.1 |\__ gnome-icon-theme-2.10.1_1 |\__ librsvg2-2.9.5_2 |\__ gnomekeyring-0.4.2_1 |\__ libgnome-2.10.0_1 |\__ libbonoboui-2.8.1_2 |\__ libgnomeui-2.10.0_1 |\__ evolution-data-server-1.2.2_1 |\__ gnomedesktop-2.10.1 |\__ desktop-file-utils-0.10_2 |\__ gnome-menus-2.10.1_1 |\__ gnomepanel-2.10.1_1 |\__ libgtkhtml-2.6.3_1 |\__ aalib-1.4.r5_1 \__ gimp-gnome-2.2.6,1 ----------------------------------------------- For comparison, some info from FreeBSD 4, where gtkam works. $ uname -a FreeBSD svak.h33.erkki.ton.tut.fi 4.10-STABLE FreeBSD 4.10-STABLE #0: Sun Aug 22 13:27:05 EEST 2004 root@svak.h33.erkki.ton.tut.fi:/usr/obj/usr/src/sys/SVAK i386 This appears in /etc/log/all.log on connecting/disconnecting the camera: May 21 23:14:49 svak /kernel: ugen0: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2 May 21 23:14:54 svak /kernel: ugen0: at uhub0 port 3 (addr 2) disconnected May 21 23:14:54 svak /kernel: ugen0: detached $ pkg_tree gtkam gtkam-gnome-0.1.12 |\__ xmlcatmgr-2.1 |\__ jpeg-6b_3 |\__ freetype2-2.1.7_3 |\__ expat-1.95.8 |\__ sdocbook-xml-4.1.2.5_2 |\__ docbook-xml-4.2_1 |\__ libiconv-1.9.2_1 |\__ python-2.3.4_2 |\__ py23-numeric-23.1 |\__ imake-4.4.0 |\__ samba-libsmbclient-3.0.7_1 |\__ png-1.2.6 |\__ pkgconfig-0.15.0_1 |\__ fontconfig-2.2.3,1 |\__ gettext-0.13.1_1 |\__ p5-XML-Parser-2.34_1 |\__ glib-2.4.6_1 |\__ libxml2-2.6.13 |\__ XFree86-libraries-4.4.0_1 |\__ gnomehier-1.0_19 |\__ libusb-0.1.7_1 |\__ popt-1.7 |\__ tiff-3.6.1_2 |\__ libijs-0.35 |\__ libxslt-1.1.10 |\__ libXft-2.1.6 |\__ XFree86-fontEncodings-4.4.0 |\__ shared-mime-info-0.15 |\__ libgnugetopt-1.2 |\__ docbook-xsl-1.65.1 |\__ linc-1.0.3_2 |\__ docbook-sk-4.1.2_3 |\__ startup-notification-0.7 |\__ libwmf-0.2.8.3 |\__ XFree86-fontScalable-4.4.0_1 |\__ libexif-0.5.12_2 |\__ fam-2.6.9_6 |\__ libgphoto2-2.1.4_3 |\__ libaudiofile-0.2.6 |\__ libart_lgpl2-2.3.16 |\__ pango-1.4.1 |\__ libgsf-1.10.1 |\__ lcms-1.13,1 |\__ libmng-1.0.8 |\__ atk-1.6.1 |\__ hicolor-icon-theme-0.5 |\__ intltool-0.31.2 |\__ gtk-2.4.9_1 |\__ libglade2-2.4.0 |\__ gsfonts-8.11_2 |\__ cdparanoia-3.9.8_7 |\__ libIDL-0.8.4 |\__ gtk-engines2-2.2.0_4 |\__ py23-gtk-2.2.0_3 |\__ libgnomecanvas-2.6.1.1 |\__ gail-1.6.6 |\__ libwnck-2.6.2.1_1 |\__ ORBit2-2.10.4 |\__ cups-base-1.1.20.0 |\__ libexif-gtk-0.3.3_2 |\__ libcroco-0.5.1 |\__ gnomemimedata-2.4.1_2 |\__ librsvg2-2.6.5_1 |\__ libbonobo-2.6.2 |\__ gnome-icon-theme-1.2.3 |\__ gconf2-2.6.4 |\__ gnomevfs2-2.6.2_1 |\__ ghostscript-gnu-7.07_11 |\__ esound-0.2.35_1 |\__ scrollkeeper-0.3.14_1,1 |\__ libgnome-2.6.1.2 |\__ libbonoboui-2.6.1 |\__ gnomekeyring-0.2.1_1 |\__ cups-pstoraster-7.07_1 |\__ libgnomeui-2.6.1.1 |\__ gnomedesktop-2.6.2 |\__ gimp-print-4.2.7 |\__ aalib-1.4.r5_1 |\__ gnomepanel-2.6.2_1 |\__ libgtkhtml-2.6.2 \__ gimp-gnome-2.0.4,1 From owner-freebsd-usb@FreeBSD.ORG Sun May 22 15:30:18 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98FD016A41C for ; Sun, 22 May 2005 15:30:18 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58EF343D1D for ; Sun, 22 May 2005 15:30:17 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR010.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0IGW00GHFDQGEV@VL-MO-MR010.ip.videotron.ca> for freebsd-usb@freebsd.org; Sun, 22 May 2005 11:30:17 -0400 (EDT) Date: Sun, 22 May 2005 11:30:16 -0400 From: Nicolas Blais To: freebsd-usb@freebsd.org Message-id: <200505221130.16392.nb_root@videotron.ca> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Content-disposition: inline User-Agent: KMail/1.8 Subject: ehci cause my umass0 to hang at boot, no ehci kills my mouse... 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, 22 May 2005 15:30:18 -0000 I have a Mitsumi 7/1 multi-card reader with integrated floppy which works=20 great in XP. In FreeBSD 6-CURRENT, the floppy part works fine (it's a=20 seperate cable) but the memory card part causes a 5 minute delay at boot=20 (during probe) and ends up not working at all. With ehci enabled in my kern= el,=20 I get this at boot: Here's the =A0snipped dmesg -v (with ehci enabled in kernel): uhci0: port 0x9800-0x981f irq 21 at device 16.0= on=20 p uhci0: Reserved 0x20 bytes for rid 0x20 type 4 at 0x9800 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 ehci0: mem 0xfb600000-0xfb6000ff irq 21 at= =20 devic ehci0: Reserved 0x100 bytes for rid 0x10 type 3 at 0xfb600000 ehci0: [GIANT-LOCKED] umass0: VIA Technologies Inc. Mitsumi multi cardreader, rev 2.00/0.03, addr= 2 umass0:0:0:-1: Attached to scbus0 (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): error 5 (probe0:umass-sim0:0:0:0): Retries Exausted At that probe part, there is about a minute between each tries which is qui= te=20 long downtime. When I remove ehci from my kernel, boot is very fast, no longer hangs at pr= obe=20 and umass0 is still detected: uhci0: port 0xa000-0xa01f irq 11 at device 16.0= on=20 pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xa400-0xa41f irq 11 at device 16.1= on=20 pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xa800-0xa81f irq 10 at device 16.2= on=20 pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xb000-0xb01f irq 10 at device 16.3= on=20 pci0 uhci3: [GIANT-LOCKED] usb3: on uhci3 usb3: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered pci0: at device 16.4 (no driver attached) umass0: VIA Technologies Inc. Mitsumi multi cardreader, rev 2.00/0.03, addr= 2 umass0:0:0:-1: Attached to scbus0 (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): error 5 (probe0:umass-sim0:0:0:0): Retries Exausted And yet no 5 minute delay during the probe. Unfortunatly, my mouse is not detected at boot and doesn't work unless I=20 unplug it and replug it, then it will work (bug in uhci?).=20 Also, although my cardreader is still detected, I can't seem to make /dev/d= a0=20 whether I : camcontrol rescan 0 camcontrol rescan 0:0:1 (to 4) and camcontrol devlist shows my dvdr: at scbus2 target 0 lun 0 (pass0,cd0) Please help, Nicolas. =2D-=20 =46reeBSD 6.0-CURRENT #0: Sun May 22 10:51:41 EDT 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 From owner-freebsd-usb@FreeBSD.ORG Sun May 22 15:38:37 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3959116A41C for ; Sun, 22 May 2005 15:38:37 +0000 (GMT) (envelope-from rolf_steenge@planet.nl) Received: from smtp14.wxs.nl (smtp14.wxs.nl [195.121.6.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBCA643D1F for ; Sun, 22 May 2005 15:38:36 +0000 (GMT) (envelope-from rolf_steenge@planet.nl) Received: from Rolf (ip503caf36.speed.planet.nl [80.60.175.54]) by smtp14.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with SMTP id <0IGW00DARE4B5E@smtp14.wxs.nl> for freebsd-usb@freebsd.org; Sun, 22 May 2005 17:38:35 +0200 (CEST) Date: Sun, 22 May 2005 17:38:23 +0200 From: Rolf Steenge To: freebsd-usb@freebsd.org Message-id: <000c01c55ee4$4a09fc50$36af3c50@Rolf> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-Priority: 3 X-MSMail-priority: Normal Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: SanDisk Cruzer Micro - slow speed 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, 22 May 2005 15:38:37 -0000 Hi Marcin, I use the sandisk cruzer, 2gb under windows XP sp2 and I first copied a folder of 380 mb and 4000 files, it took 65 minutes. I enabled the write cache and the copy time reduced to 55 minutes. Then I noticed that it was possible to format the disk as NTFS (was formatted FAT32) The copy time reduced to an amazing 4 minutes! Best regards Rolf Steenge From owner-freebsd-usb@FreeBSD.ORG Sun May 22 19:56:39 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A56216A41C for ; Sun, 22 May 2005 19:56:39 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id B82FD43D55 for ; Sun, 22 May 2005 19:56:36 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.10/8.12.10) with ESMTP id j4MJuW4J056257 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sun, 22 May 2005 21:56:34 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j4MJtRhs017832 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 22 May 2005 21:55:27 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j4MJtQM6013831; Sun, 22 May 2005 21:55:26 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j4MJtQwG013830; Sun, 22 May 2005 21:55:26 +0200 (CEST) (envelope-from ticso) Date: Sun, 22 May 2005 21:55:25 +0200 From: Bernd Walter To: Rolf Steenge Message-ID: <20050522195525.GK80082@cicely12.cicely.de> References: <000c01c55ee4$4a09fc50$36af3c50@Rolf> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000c01c55ee4$4a09fc50$36af3c50@Rolf> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de Cc: freebsd-usb@freebsd.org Subject: Re: SanDisk Cruzer Micro - slow speed X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2005 19:56:39 -0000 On Sun, May 22, 2005 at 05:38:23PM +0200, Rolf Steenge wrote: > Hi Marcin, > > I use the sandisk cruzer, 2gb under windows XP sp2 and I first copied a folder of 380 mb and 4000 files, it took 65 minutes. > > I enabled the write cache and the copy time reduced to 55 minutes. > > Then I noticed that it was possible to format the disk as NTFS (was formatted FAT32) > > The copy time reduced to an amazing 4 minutes! What does this have to do with FreeBSD? -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Mon May 23 06:04:07 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE34C16A41C for ; Mon, 23 May 2005 06:04:07 +0000 (GMT) (envelope-from rucci@warganizer.com) Received: from mta3.srv.hcvlny.cv.net (mta3.srv.hcvlny.cv.net [167.206.4.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 861F943D1D for ; Mon, 23 May 2005 06:04:07 +0000 (GMT) (envelope-from rucci@warganizer.com) Received: from [192.168.1.100] (ool-18b92f9e.dyn.optonline.net [24.185.47.158]) by mta3.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0IGX00J4WI5VCH@mta3.srv.hcvlny.cv.net> for freebsd-usb@freebsd.org; Mon, 23 May 2005 02:03:31 -0400 (EDT) Date: Mon, 23 May 2005 02:04:12 -0400 From: Daniel Rucci In-reply-to: <428F7723.8010102@elischer.org> To: Julian Elischer Message-id: <4291725C.50504@warganizer.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050416) X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime References: <428A2350.6000603@warganizer.com> <428E33CE.8060007@warganizer.com> <20050520192340.GP80082@cicely12.cicely.de> <200505202252.17614.hselasky@c2i.net> <428F7723.8010102@elischer.org> Cc: ticso@cicely.de, freebsd-usb@freebsd.org Subject: Re: force power over usb 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, 23 May 2005 06:04:08 -0000 Heres the dump from udesc_dump Standard Device Descriptor: bLength 18 bDescriptorType 01 bcdUSB 0110 bDeviceClass 02 bDeviceSubClass 00 bDeviceProtocol 00 bMaxPacketSize 8 idVendor 22b8 idProduct 4902 bcdDevice 0001 iManufacturer 1 iProduct 2 iSerialNumber 0 bNumConfigurations 1 Configuration 0: Standard Configuration Descriptor: bLength 9 bDescriptorType 02 wTotalLength 67 bNumInterface 2 bConfigurationValue 1 iConfiguration 4 bmAttributes c0 (self-powered) bMaxPower 50 (100 mA) Standard Interface Descriptor: bLength 9 bDescriptorType 04 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 02 bInterfaceSubClass 02 bInterfaceProtocol 01 iInterface 5 Descriptor: bLength 5 bDescriptorType 24 bDescriptorSubtype 00 05 24 00 01 01 Descriptor: bLength 5 bDescriptorType 24 bDescriptorSubtype 01 05 24 01 03 01 Descriptor: bLength 5 bDescriptorType 24 bDescriptorSubtype 06 05 24 06 00 01 Descriptor: bLength 4 bDescriptorType 24 bDescriptorSubtype 02 04 24 02 02 Standard Endpoint Descriptor: bLength 7 bDescriptorType 05 bEndpointAddress 89 (in) bmAttributes 03 (Interrupt) wMaxPacketSize 16 bInterval 10 Standard Interface Descriptor: bLength 9 bDescriptorType 04 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 0a bInterfaceSubClass 00 bInterfaceProtocol 00 iInterface 16 Standard Endpoint Descriptor: bLength 7 bDescriptorType 05 bEndpointAddress 01 (out) bmAttributes 02 (Bulk) wMaxPacketSize 32 bInterval 0 Standard Endpoint Descriptor: bLength 7 bDescriptorType 05 bEndpointAddress 82 (in) bmAttributes 02 (Bulk) wMaxPacketSize 32 bInterval 0 Codes Representing Languages by the Device: bLength 4 bDescriptorType 03 wLANGID[0] 0409 String (index 1): Motorola Inc. String (index 2): Motorola Phone (V3) String (index 3): ED3F9710 String (index 4): Motorola Communication Class String (index 5): Motorola Communication Interface String (index 6): Audio Control Interface String (index 7): Linear Streaming Audio MiCrophone Interface String (index 8): Logarithmic Streaming Audio Microphone Interface String (index 9): Linear Streaming Audio Speaker Interface. String (index 10): Logarithmic Streaming Audio Speaker Interface String (index 11): Motorola Accessory String (index 12): Motorola MCU Data Logger String (index 13): Motorola Test Command String (index 14): Motorola DSP Logger String (index 15): Motorola DSP Debugger String (index 16): Motorola Data Interface From owner-freebsd-usb@FreeBSD.ORG Mon May 23 08:47:42 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67C2C16A41C for ; Mon, 23 May 2005 08:47:42 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.tele2.se [212.247.155.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E503943D55 for ; Mon, 23 May 2005 08:47:38 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-233-206.daxnet.no ([193.217.233.206] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 163128397; Mon, 23 May 2005 10:47:17 +0200 From: Hans Petter Selasky To: Daniel Rucci Date: Mon, 23 May 2005 10:47:58 +0200 User-Agent: KMail/1.7 References: <428A2350.6000603@warganizer.com> <428F7723.8010102@elischer.org> <4291725C.50504@warganizer.com> In-Reply-To: <4291725C.50504@warganizer.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200505231048.00554.hselasky@c2i.net> Cc: Julian Elischer , freebsd-usb@freebsd.org, ticso@cicely.de Subject: Re: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2005 08:47:42 -0000 On Monday 23 May 2005 08:04, Daniel Rucci wrote: > >Standard Device Descriptor: > bLength 18 > bDescriptorType 01 > bcdUSB 0110 > bDeviceClass 02 > bDeviceSubClass 00 > bDeviceProtocol 00 > bMaxPacketSize 8 > idVendor 22b8 > idProduct 4902 > bcdDevice 0001 > iManufacturer 1 > iProduct 2 > iSerialNumber 0 > bNumConfigurations 1 > >Configuration 0: > Standard Configuration Descriptor: > bLength 9 > bDescriptorType 02 > wTotalLength 67 > bNumInterface 2 > bConfigurationValue 1 > iConfiguration 4 > bmAttributes c0 (self-powered) > bMaxPower 50 (100 mA) There is only one configuration, and that configuration is self-powered, so= =20 I'm not sure if that cable is for charging. But do you know if it charges=20 under other OS'es ? > =A0 =A0 Standard Interface Descriptor: > =A0 =A0 =A0 bLength =A0 =A0 =A0 =A0 =A0 =A09 > =A0 =A0 =A0 bDescriptorType =A0 =A004 > =A0 =A0 =A0 bInterfaceNumber =A0 0 > =A0 =A0 =A0 bAlternateSetting =A00 > =A0 =A0 =A0 bNumEndpoints =A0 =A0 =A01 > =A0 =A0 =A0 bInterfaceClass =A0 =A002 bInterfaceClass is "CDC"=20 > =A0 =A0 =A0 bInterfaceSubClass 02 bInterfaceSubClass is "ABSTRACT_CONTROL_MODEL" > =A0 =A0 =A0 bInterfaceProtocol 01 > =A0 =A0 =A0 iInterface =A0 =A0 =A0 =A0 5 according to defines in /sys/dev/usb/* There is a spec available at: http://www.usb.org/developers/devclass_docs/usbcdc11.pdf But I'm not sure if it describes "bInterfaceProtocol 01". What you can do is: cat /dev/ugen0.1 | hexdump Then do something on the phone and see what happens. > Standard Interface Descriptor: > bLength 9 > bDescriptorType 04 > bInterfaceNumber 1 > bAlternateSetting 0 > bNumEndpoints 2 > bInterfaceClass 0a > bInterfaceSubClass 00 > bInterfaceProtocol 00 > iInterface 16 To get this interface working you will have to ask the vendor for informati= on.=20 Maybe they've got a specification for it that is not propritary? =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Mon May 23 09:04:57 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDB3D16A41C for ; Mon, 23 May 2005 09:04:57 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EABC43D1D for ; Mon, 23 May 2005 09:04:56 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-228-178.daxnet.no ([193.217.228.178] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 374232886; Mon, 23 May 2005 11:04:54 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 23 May 2005 11:05:41 +0200 User-Agent: KMail/1.7 References: <428A2350.6000603@warganizer.com> <4291725C.50504@warganizer.com> <200505231048.00554.hselasky@c2i.net> In-Reply-To: <200505231048.00554.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200505231105.43045.hselasky@c2i.net> Cc: ticso@cicely.de, Julian Elischer , Daniel Rucci Subject: Re: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2005 09:04:57 -0000 On Monday 23 May 2005 10:47, Hans Petter Selasky wrote: > On Monday 23 May 2005 08:04, Daniel Rucci wrote: > >Standard Device Descriptor: > > bLength 18 > > bDescriptorType 01 > > bcdUSB 0110 > > bDeviceClass 02 > > bDeviceSubClass 00 > > bDeviceProtocol 00 > > bMaxPacketSize 8 > > idVendor 22b8 > > idProduct 4902 > > bcdDevice 0001 > > iManufacturer 1 > > iProduct 2 > > iSerialNumber 0 > > bNumConfigurations 1 > > > >Configuration 0: > > Standard Configuration Descriptor: > > bLength 9 > > bDescriptorType 02 > > wTotalLength 67 > > bNumInterface 2 > > bConfigurationValue 1 > > iConfiguration 4 > > bmAttributes c0 (self-powered) > > bMaxPower 50 (100 mA) > > There is only one configuration, and that configuration is self-powered, = so > I'm not sure if that cable is for charging. But do you know if it charges > under other OS'es ? > > > =A0 =A0 Standard Interface Descriptor: > > =A0 =A0 =A0 bLength =A0 =A0 =A0 =A0 =A0 =A09 > > =A0 =A0 =A0 bDescriptorType =A0 =A004 > > =A0 =A0 =A0 bInterfaceNumber =A0 0 > > =A0 =A0 =A0 bAlternateSetting =A00 > > =A0 =A0 =A0 bNumEndpoints =A0 =A0 =A01 > > =A0 =A0 =A0 bInterfaceClass =A0 =A002 > > bInterfaceClass is "CDC" > > > =A0 =A0 =A0 bInterfaceSubClass 02 > > bInterfaceSubClass is "ABSTRACT_CONTROL_MODEL" > > > =A0 =A0 =A0 bInterfaceProtocol 01 > > =A0 =A0 =A0 iInterface =A0 =A0 =A0 =A0 5 > > according to defines in /sys/dev/usb/* > > > Standard Interface Descriptor: > > bLength 9 > > bDescriptorType 04 > > bInterfaceNumber 1 > > bAlternateSetting 0 > > bNumEndpoints 2 > > bInterfaceClass 0a > > bInterfaceSubClass 00 > > bInterfaceProtocol 00 > > iInterface 16 > Looked at the wrong numbers: bInterfaceClass is "UICLASS_CDC_DATA". bInterfaceSubClass is "UISUBCLASS_DATA". Maybe "umodem" supports this? Try "kldload umodem" and replug your device.= =20 Does it still appear as "ugen0"? =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Mon May 23 11:02:04 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F4B816A42B for ; Mon, 23 May 2005 11:02:04 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA9CA43D48 for ; Mon, 23 May 2005 11:02:03 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4NB23QF004235 for ; Mon, 23 May 2005 11:02:03 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4NB2302004229 for freebsd-usb@freebsd.org; Mon, 23 May 2005 11:02:03 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 23 May 2005 11:02:03 GMT Message-Id: <200505231102.j4NB2302004229@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 23 May 2005 11:02:04 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/05/20] usb/81308 usb Polling a ugen(4) control endpoint causes 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/07/19] kern/40792 usb signals lead to data loss on device ugen o [2002/12/10] kern/46176 usb umass causes kernel panic if device remov o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I f [2003/02/17] kern/48359 usb SiS 5597/8 USB + uscanner breakage f [2003/03/05] kern/48952 usb uscanner0 hangs o [2003/09/26] bin/57255 usb usbd and multi-function devices f [2003/12/11] kern/60131 usb [usb] Page fault on disconnect of USB dev s [2003/12/15] kern/60276 usb [usb] Kernel panic when plugging in USB ( f [2004/01/11] kern/61191 usb [usb] panic: USB vs. Serial problems o [2004/01/20] kern/61627 usb [usb] [patch] New USB printer not support o [2004/01/24] kern/61841 usb [boot] 5.2 Boot freeze if memorybird (USB f [2004/01/30] kern/62088 usb [usb] Logitech Cordless/Optical Mouse not f [2004/01/30] kern/62123 usb [usb] LaCie 160GB USB drive umass: BBB re f [2004/02/23] i386/63251 usb [usb] USB stops working after 2nd APM sus f [2004/03/01] kern/63621 usb [usb] USB MemoryStick Reader stalls/crash f [2004/04/07] kern/65292 usb [panic] random page faults (usb-related?) o [2004/07/13] kern/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] kern/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/10/30] kern/73307 usb Kernel panics on USB disconnect f [2004/11/18] kern/74088 usb ohci ehci uhub: port disabled on connecti o [2005/01/13] usb/76204 usb panic while using usb attached modem o [2005/01/18] usb/76395 usb USB printer does not work, usbdevs says " o [2005/01/21] usb/76554 usb Panram "yoyo" USB MP3 player causes panic f [2005/01/25] usb/76684 usb Toshiba PDR-M4 camera connected via USB h f [2005/01/26] usb/76727 usb usb printing locks machine f [2005/01/30] usb/76847 usb ukbd panics on boot o [2005/02/06] usb/77184 usb kernel panic on USB device disconnect o [2005/02/09] usb/77294 usb ucom + ulpcom panic o [2005/02/16] usb/77604 usb Sluggish Logitch LX700 USB Mouse o [2005/03/18] usb/78989 usb please add USB keyboard support to instal o [2005/03/22] usb/79140 usb WD Firewire/USB Combo hangs under load on o [2005/03/27] usb/79269 usb USB ohci da0 plug/unplug causes crashes a o [2005/03/27] usb/79287 usb UHCI hang after interrupt transfer o [2005/04/02] usb/79436 usb Panic: ohci_abort_xfer: not in process co o [2005/04/04] usb/79524 usb printing to Minolta PagePro 1[23]xxW via o [2005/04/07] usb/79656 usb [usb] RHSC interrupts lost o [2005/04/09] usb/79722 usb [usb] wrong alignments in ehci.h o [2005/04/17] usb/80040 usb [hang] Use of sound mixer causes system f o [2005/04/22] usb/80260 usb Travan USB tape drive fails to write o [2005/04/26] usb/80361 usb mounting of usb-stick fails o [2005/04/26] usb/80373 usb usb keyboard does not respond o [2005/05/04] usb/80628 usb recent USB MFCs cause panics o [2005/05/06] usb/80685 usb panic in usb_cold_explore() at begining o [2005/05/09] usb/80829 usb possible panic when loading USB-modules o [2005/05/10] usb/80862 usb USB locking issues 45 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/09/30] conf/30929 usb [patch] use usbd to initialize USB ADSL m o [2001/12/09] kern/32652 usb [patch] A new ioctl to uscanner s [2001/12/09] ports/32653 usb Added patches to improve USB scanner supp f [2002/07/24] kern/40948 usb [usb] USB HP CDW8200 does not work o [2002/08/07] kern/41415 usb [usb] [patch] Some USB scanners cannot ta o [2003/02/16] bin/48342 usb [PATCH] usbd dynamic device list. f [2003/03/19] kern/50110 usb [usb] Astra 2100U scanner being detected o [2003/05/08] kern/51958 usb [usb] [patch] update for urio driver o [2003/05/10] kern/52026 usb [usb] feature request: umass driver suppo f [2003/05/19] bin/52432 usb [sysinstall] drivers.flp won't load with o [2003/06/08] kern/53025 usb [PATCH] ugen does not allow O_NONBLOCK fo f [2003/09/19] kern/56999 usb FreeCom USB CD/RW problem on FreeBSD 5.1 f [2003/11/10] i386/59147 usb [usb] USB active extension cable not reco o [2003/11/11] kern/59169 usb [patch] ulpt is missing read operation o [2003/12/15] kern/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] bin/61234 usb [usb] [patch] usbhidaction doesn't suppor f [2004/02/13] kern/62788 usb need quirks for Super Talent Flash USB 2. f [2004/03/04] kern/63779 usb [usb] USB-mass storage (USB to IDE Conver o [2004/03/06] kern/63837 usb [patch] USB: hid_is_collection() only loo o [2004/04/11] kern/65436 usb QUIRK: [patch] to add support for PNY Att o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops f [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/27] kern/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/07/06] i386/68719 usb [usb] USB 2.0 mobil rack+ fat32 performan o [2004/08/16] kern/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] kern/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] kern/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] kern/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] kern/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] kern/71605 usb [usb] [patch] umass doesn't recognize mul o [2004/10/05] kern/72344 usb [usb] [patch] QUIRK: Dane-Elec zMate 512 f [2004/10/06] i386/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/23] i386/73056 usb [usb] Sun Microsystems Type 6 USB mouse n f [2004/11/02] i386/73421 usb [usb] USB not recgnized/working on Toshib o [2004/11/30] usb/74557 usb imation 500mb usb key can only be written o [2004/12/12] usb/74989 usb (regression) Lost USB support between 5.2 o [2004/12/28] usb/75578 usb [patch] QUIRK: PNY USB flash key o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has o [2005/01/19] usb/76461 usb disklabel of umass(4)-CAM(4)-da(4) not us o [2005/01/27] usb/76732 usb Mouse problems with USB KVM Switch f [2005/03/03] usb/78371 usb Philips Wearable Audio Player (128) fails o [2005/03/07] usb/78543 usb [patch] Support for Trip-Lite USB 2 Seria o [2005/03/18] usb/78984 usb Creative MUVO umass failure o [2005/04/09] usb/79723 usb [usb] prepare for high speed isochronous o [2005/04/09] usb/79725 usb [patch] [usb] USB device speed is not dou o [2005/04/14] kern/79893 usb New usbdevs/umass quirks derived from Lin o [2005/04/16] usb/80010 usb Add support for the AEI USB to LAN adapte o [2005/04/27] usb/80383 usb [PATCH] Add quirk for uhid to ignore cert o [2005/04/27] usb/80420 usb atapicam stops iPod functionality o [2005/05/08] usb/80773 usb "usbd_get_string()" could have taken a le o [2005/05/08] usb/80774 usb have "usbd_find_desc" in line with the ot o [2005/05/08] usb/80776 usb UDAV device driver shouldn't use usb_add_ o [2005/05/08] usb/80777 usb usb_rem_task() should wait for callback t o [2005/05/10] usb/80854 usb suggestion for new iface-no-probe mechani o [2005/05/12] usb/80935 usb uvisor.c is not work with CLIE TH55. o [2005/05/15] usb/81073 usb [patch] fix umass NO_GETMAXLUN quirk o [2005/05/18] usb/81191 usb Support for Curitel HX-550C USB modem to 57 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon May 23 20:58:12 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D13116A41C for ; Mon, 23 May 2005 20:58:12 +0000 (GMT) (envelope-from rucci@warganizer.com) Received: from mta10.srv.hcvlny.cv.net (mta10.srv.hcvlny.cv.net [167.206.4.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id DED1443D1D for ; Mon, 23 May 2005 20:58:11 +0000 (GMT) (envelope-from rucci@warganizer.com) Received: from [192.168.1.100] (ool-18b92f9e.dyn.optonline.net [24.185.47.158]) by mta10.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0IGY0000GNJLPA@mta10.srv.hcvlny.cv.net> for freebsd-usb@freebsd.org; Mon, 23 May 2005 16:57:23 -0400 (EDT) Date: Mon, 23 May 2005 16:58:17 -0400 From: Daniel Rucci In-reply-to: <200505231105.43045.hselasky@c2i.net> To: hselasky@c2i.net Message-id: <429243E9.1050403@warganizer.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050416) X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime References: <428A2350.6000603@warganizer.com> <4291725C.50504@warganizer.com> <200505231048.00554.hselasky@c2i.net> <200505231105.43045.hselasky@c2i.net> Cc: ticso@cicely.de, freebsd-usb@freebsd.org, Julian Elischer Subject: Re: force power over usb 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, 23 May 2005 20:58:12 -0000 Hans Petter Selasky wrote: >On Monday 23 May 2005 10:47, Hans Petter Selasky wrote: > > >>On Monday 23 May 2005 08:04, Daniel Rucci wrote: >> >> >>>Standard Device Descriptor: >>> bLength 18 >>> bDescriptorType 01 >>> bcdUSB 0110 >>> bDeviceClass 02 >>> bDeviceSubClass 00 >>> bDeviceProtocol 00 >>> bMaxPacketSize 8 >>> idVendor 22b8 >>> idProduct 4902 >>> bcdDevice 0001 >>> iManufacturer 1 >>> iProduct 2 >>> iSerialNumber 0 >>> bNumConfigurations 1 >>> >>>Configuration 0: >>> Standard Configuration Descriptor: >>> bLength 9 >>> bDescriptorType 02 >>> wTotalLength 67 >>> bNumInterface 2 >>> bConfigurationValue 1 >>> iConfiguration 4 >>> bmAttributes c0 (self-powered) >>> bMaxPower 50 (100 mA) >>> >>> >>There is only one configuration, and that configuration is self-powered, so >>I'm not sure if that cable is for charging. But do you know if it charges >>under other OS'es ? >> >> >> >>> Standard Interface Descriptor: >>> bLength 9 >>> bDescriptorType 04 >>> bInterfaceNumber 0 >>> bAlternateSetting 0 >>> bNumEndpoints 1 >>> bInterfaceClass 02 >>> >>> >>bInterfaceClass is "CDC" >> >> >> >>> bInterfaceSubClass 02 >>> >>> >>bInterfaceSubClass is "ABSTRACT_CONTROL_MODEL" >> >> >> >>> bInterfaceProtocol 01 >>> iInterface 5 >>> >>> >>according to defines in /sys/dev/usb/* >> >> >> >>> Standard Interface Descriptor: >>> bLength 9 >>> bDescriptorType 04 >>> bInterfaceNumber 1 >>> bAlternateSetting 0 >>> bNumEndpoints 2 >>> bInterfaceClass 0a >>> bInterfaceSubClass 00 >>> bInterfaceProtocol 00 >>> iInterface 16 >>> >>> > >Looked at the wrong numbers: > >bInterfaceClass is "UICLASS_CDC_DATA". > >bInterfaceSubClass is "UISUBCLASS_DATA". > >Maybe "umodem" supports this? Try "kldload umodem" and replug your device. >Does it still appear as "ugen0"? > > kldload umodem does the trick! thanks, for future reference how did you figure that out from looking at that output? [...] Thanks, Dan From owner-freebsd-usb@FreeBSD.ORG Tue May 24 09:46:09 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7344016A41C for ; Tue, 24 May 2005 09:46:09 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id E942643D1D for ; Tue, 24 May 2005 09:46:08 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-44-138.daxnet.no ([193.216.44.138] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 364634239; Tue, 24 May 2005 11:46:03 +0200 From: Hans Petter Selasky To: Daniel Rucci Date: Tue, 24 May 2005 11:46:50 +0200 User-Agent: KMail/1.7 References: <428A2350.6000603@warganizer.com> <200505231105.43045.hselasky@c2i.net> <429243E9.1050403@warganizer.com> In-Reply-To: <429243E9.1050403@warganizer.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505241146.52155.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2005 09:46:09 -0000 On Monday 23 May 2005 22:58, Daniel Rucci wrote: > > >bInterfaceClass is "UICLASS_CDC_DATA". > > > >bInterfaceSubClass is "UISUBCLASS_DATA". > > > >Maybe "umodem" supports this? Try "kldload umodem" and replug your device. > >Does it still appear as "ugen0"? > > kldload umodem does the trick! thanks, for future reference how did you > figure that out from looking at that output? I searched the sources. Sources can be installed from "sysinstall" if they are not installed already. The interface classes are defined in "/sys/dev/usb/usb.h" (see UICLASS_XXX and UISUBCLASS_XXX). If you type "cat /sys/dev/usb/* |more" and press enter, then type "/UICLASS_CDC" and press enter. Then use the "n"-key to search forth and "N"-key to search back until you find something that matches your USB descriptors. Then scroll up to find the file name: __FBSDID("$FreeBSD: src/sys/dev/usb/umodem.c,v 1.57 2005/01/31 13:58:10 akiyama Exp $"); Then check if there is a module that compiles this file: cat `find /sys/modules |grep Makefile` | more (search for "umodem.c") If no match try kernel configuration files: cat /sys/conf/* | more (search for "umodem.c") This might not be so easy, so in the future maybe something like "kldload /boot/kernel/usb*ko" will load all USB drivers? --HPS From owner-freebsd-usb@FreeBSD.ORG Tue May 24 10:53:33 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AD7E16A41C for ; Tue, 24 May 2005 10:53:33 +0000 (GMT) (envelope-from gouders@et.bocholt.fh-gelsenkirchen.de) Received: from alice.et.bocholt.fh-gelsenkirchen.de (alice.et.bocholt.fh-gelsenkirchen.de [193.175.197.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id D948543D49 for ; Tue, 24 May 2005 10:53:30 +0000 (GMT) (envelope-from gouders@et.bocholt.fh-gelsenkirchen.de) Received: from musashi.et.bocholt.fh-gelsenkirchen.de (musashi.et.bocholt.fh-gelsenkirchen.de [193.175.197.95]) by alice.et.bocholt.fh-gelsenkirchen.de (8.12.9/8.12.9) with ESMTP id j4OArROr018177 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 24 May 2005 12:53:28 +0200 Received: from localhost (localhost [127.0.0.1]) by musashi.et.bocholt.fh-gelsenkirchen.de (8.13.3/8.13.3) with ESMTP id j4OArR2c000390 for ; Tue, 24 May 2005 12:53:27 +0200 (CEST) (envelope-from hank@musashi.et.bocholt.fh-gelsenkirchen.de) Message-Id: <200505241053.j4OArR2c000390@musashi.et.bocholt.fh-gelsenkirchen.de> From: Dirk Gouders To: freebsd-usb@freebsd.org Date: Tue, 24 May 2005 12:53:27 +0200 Sender: gouders@et.bocholt.fh-ge.de X-Scanned-By: MIMEDefang 2.43 Subject: poll(2)ing or select(2)ing /dev/usb0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dirk Gouders List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2005 10:53:33 -0000 Hello, in the section USB CONTROLLER INTERFACE the manual page usb(4) says that one can use poll(2) on /dev/usbN to get noticed when USB devices are connected or disconnected. Now, I wrote two small programs to play with poll(2) and select(2) on /dev/usb0 and see what happens if I connect/disconnect a USB device, but nothing happens. As the manual page does not say what events to poll(2) for, I just turned on all bits in the events mask and the programs work fine on the event interface /dev/usb. I am now wondering, if it is correct what the manual page says about poll(2)ing /dev/usbN. If so, what results should be expected, if several processes are accessing /dev/usb0 (usually usbd(8) is also running and it also has opened /dev/usb0 on my machine)? Dirk From owner-freebsd-usb@FreeBSD.ORG Tue May 24 19:22:22 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D03916A41C for ; Tue, 24 May 2005 19:22:22 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ED6143D48 for ; Tue, 24 May 2005 19:22:18 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-200-254.daxnet.no ([193.217.200.254] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 379462787; Tue, 24 May 2005 21:22:06 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Dirk Gouders Date: Tue, 24 May 2005 21:22:52 +0200 User-Agent: KMail/1.7 References: <200505241053.j4OArR2c000390@musashi.et.bocholt.fh-gelsenkirchen.de> In-Reply-To: <200505241053.j4OArR2c000390@musashi.et.bocholt.fh-gelsenkirchen.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505242122.53801.hselasky@c2i.net> Cc: Subject: Re: poll(2)ing or select(2)ing /dev/usb0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2005 19:22:22 -0000 On Tuesday 24 May 2005 12:53, Dirk Gouders wrote: > Hello, > > in the section USB CONTROLLER INTERFACE the manual page usb(4) says > that one can use poll(2) on /dev/usbN to get noticed when USB devices > are connected or disconnected. > > Now, I wrote two small programs to play with poll(2) and select(2) > on /dev/usb0 and see what happens if I connect/disconnect a USB > device, but nothing happens. As the manual page does not say > what events to poll(2) for, I just turned on all bits in the events > mask and the programs work fine on the event interface /dev/usb. > You cannot read data from /dev/usbN, only ioctls are possible on those devices. See "/sys/dev/usb/usb.c" (usbpoll), if you got the source code installed. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue May 24 20:50:52 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D0FA16A41C for ; Tue, 24 May 2005 20:50:52 +0000 (GMT) (envelope-from gouders@et.bocholt.fh-gelsenkirchen.de) Received: from alice.et.bocholt.fh-gelsenkirchen.de (alice.et.bocholt.fh-gelsenkirchen.de [193.175.197.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id D549E43D55 for ; Tue, 24 May 2005 20:50:51 +0000 (GMT) (envelope-from gouders@et.bocholt.fh-gelsenkirchen.de) Received: from musashi.et.bocholt.fh-gelsenkirchen.de (musashi.et.bocholt.fh-gelsenkirchen.de [193.175.197.95]) by alice.et.bocholt.fh-gelsenkirchen.de (8.12.9/8.12.9) with ESMTP id j4OKomOr019628 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 24 May 2005 22:50:49 +0200 Received: from karga.hank.home (karga.hank.home [192.168.252.2]) by musashi.et.bocholt.fh-gelsenkirchen.de (8.13.3/8.13.3) with ESMTP id j4OKolQG001299 for ; Tue, 24 May 2005 22:50:48 +0200 (CEST) (envelope-from hank@karga.hank.home) Received: from localhost (localhost [127.0.0.1]) by karga.hank.home (8.13.3/8.13.3) with ESMTP id j4OKqJiI001602 for ; Tue, 24 May 2005 22:52:19 +0200 (CEST) (envelope-from hank@karga.hank.home) Message-Id: <200505242052.j4OKqJiI001602@karga.hank.home> To: freebsd-usb@freebsd.org In-Reply-To: Message from Hans Petter Selasky of "Tue, 24 May 2005 21:22:52 +0200." <200505242122.53801.hselasky@c2i.net> Date: Tue, 24 May 2005 22:52:19 +0200 From: Dirk GOUDERS X-Scanned-By: MIMEDefang 2.43 Subject: Re: poll(2)ing or select(2)ing /dev/usb0 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, 24 May 2005 20:50:52 -0000 > You cannot read data from /dev/usbN, only ioctls are possible on those > devices. > > See "/sys/dev/usb/usb.c" (usbpoll), if you got the source code installed. Ah yes, thank you, now I understand why my programs behave like they do. To me, it looks as if the manual page usb(4) is a little bit misleading: USB CONTROLLER INTERFACE Use the following to get access to the USB specific structures and defines. The /dev/usbN can be opened and a few operations can be performed on it. The poll(2) system call will say that I/O is possible on the controller device when a USB device has been connected or disconnected to the bus. The following ioctl(2) commands are supported on the controller device: I understood the text in the following way: "If you want to know if a device has been connected/disconnected, then call poll(2) on /dev/usbN and if poll(2) says that descriptors are ready, perform one of the ioctl(2) command to find out what exactly happened." Well, do I understand it right, that the only way to use poll(2) to come to know if a device has been connected/disconnected to/from the bus is to poll(2) /dev/usb (the event interface)? And therefore on a machine that runs usbd(8), no other process can use poll(2), to come to know about such events, but has to do it somehow else? Dirk From owner-freebsd-usb@FreeBSD.ORG Wed May 25 09:37:33 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8C4E16A41C for ; Wed, 25 May 2005 09:37:33 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 322B743D49 for ; Wed, 25 May 2005 09:37:32 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-233-132.daxnet.no ([193.217.233.132] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 179094620; Wed, 25 May 2005 11:37:30 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 25 May 2005 11:38:13 +0200 User-Agent: KMail/1.7 References: <200505242052.j4OKqJiI001602@karga.hank.home> In-Reply-To: <200505242052.j4OKqJiI001602@karga.hank.home> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505251138.14355.hselasky@c2i.net> Cc: Subject: Re: poll(2)ing or select(2)ing /dev/usb0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2005 09:37:33 -0000 On Tuesday 24 May 2005 22:52, Dirk GOUDERS wrote: > > You cannot read data from /dev/usbN, only ioctls are possible on those > > devices. > > > > See "/sys/dev/usb/usb.c" (usbpoll), if you got the source code > > installed. > > Ah yes, thank you, now I understand why my programs behave like they do. > > To me, it looks as if the manual page usb(4) is a little bit misleading: > > > USB CONTROLLER INTERFACE > Use the following to get access to the USB specific structures and > defines. > > The /dev/usbN can be opened and a few operations can be performed on > it. The poll(2) system call will say that I/O is possible on the controller > device when a USB device has been connected or disconnected to the bus. > > The following ioctl(2) commands are supported on the controller > device: > > I understood the text in the following way: > > "If you want to know if a device has been connected/disconnected, then > call poll(2) on /dev/usbN and if poll(2) says that descriptors are > ready, perform one of the ioctl(2) command to find out what exactly > happened." > > > Well, do I understand it right, that the only way to use poll(2) to > come to know if a device has been connected/disconnected to/from the > bus is to poll(2) /dev/usb (the event interface)? right > And therefore on a > machine that runs usbd(8), no other process can use poll(2), to come to > know about such events, but has to do it somehow else? If you want to do something special then you might want to modify "/usr/src/usr.sbin/usbd/usbd.c", if you got the sources installed. If you just want to start a program when a device has been attached or detached, there is "/etc/devd.conf" (or "/etc/usbd.conf", which is depreceated). These configuration files do almost the same. I'm not sure exactly when, but in FreeBSD-6-current, USB product and vendor ID's get printed to "pnpinfo" (sysctl -a | grep pnpinfo), and can be matched in "/etc/devd.conf". If there is no "pnpinfo" for your USB devices, then you might have to use "/etc/usbd.conf" until further, though that file will be replaced by "/etc/devd.conf". --HPS From owner-freebsd-usb@FreeBSD.ORG Wed May 25 15:08:43 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E2A016A41C for ; Wed, 25 May 2005 15:08:43 +0000 (GMT) (envelope-from jpp@cloudview.com) Received: from skipjack.no-such-agency.net (skipjack.no-such-agency.net [64.142.114.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2224743D48 for ; Wed, 25 May 2005 15:08:43 +0000 (GMT) (envelope-from jpp@cloudview.com) Received: from skipjack.no-such-agency.net (localhost [127.0.0.1]) by skipjack.no-such-agency.net (Postfix) with ESMTP id D58B734DA11 for ; Wed, 25 May 2005 08:08:42 -0700 (PDT) Received: from [192.168.2.120] (blackhole.no-such-agency.net [64.142.103.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by skipjack.no-such-agency.net (Postfix) with ESMTP id 1721134D435 for ; Wed, 25 May 2005 08:08:42 -0700 (PDT) Message-ID: <429494F9.80900@cloudview.com> Date: Wed, 25 May 2005 08:08:41 -0700 From: John Pettitt User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-usb@freebsd.org X-Enigmail-Version: 0.91.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AV-Checked: by skipjack Subject: i386/79169 as USB issue? 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, 25 May 2005 15:08:43 -0000 Bug i386/79169 is beginning to look like a USB issue - http://www.freebsd.org/cgi/query-pr.cgi?pr=i386/79169 I rebuild the kernel with PREEMPTION defined and presto the bug no longer triggers. I'm guessing someplace there is a condition where the USB driver sleeps with a lock and the second USB disk causes a fatal embrace because the IRQ thread can't run without preemption. Reproduce the bug with a striped USB disk set and a loop running dbench 25 - it should fail in less than two hours if it's going to. From owner-freebsd-usb@FreeBSD.ORG Wed May 25 19:37:18 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7A5316A431 for ; Wed, 25 May 2005 19:37:18 +0000 (GMT) (envelope-from sebastien.b@swissinfo.org) Received: from md1.swissinfo.org (md1.swissinfo.org [146.159.4.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6D1D43D49 for ; Wed, 25 May 2005 19:37:11 +0000 (GMT) (envelope-from sebastien.b@swissinfo.org) Received: from mail.swissinfo.org ([194.6.181.33]) by md1.swissinfo.org (phad1.swissinfo.org [146.159.6.9]) (MDaemon.PRO.v7.2.1.R) with ESMTP id 08-md50000485282.msg for ; Wed, 25 May 2005 21:36:58 +0200 Received: from oasis (82.231.254.101) by mail.swissinfo.org (7.0.020) (authenticated as sebastien.b) id 4153942003C1A047 for freebsd-usb@freebsd.org; Wed, 25 May 2005 21:36:52 +0200 From: Seb To: freebsd-usb@freebsd.org Date: Wed, 25 May 2005 21:20:22 +0200 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200505252120.22408.sebastien.b@swissinfo.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Processed: phad1.swissinfo.org, Wed, 25 May 2005 21:36:58 +0200 (not processed: message from valid local sender) X-MDRemoteIP: 194.6.181.33 X-Return-Path: sebastien.b@swissinfo.org X-MDaemon-Deliver-To: freebsd-usb@freebsd.org X-MDAV-Processed: phad1.swissinfo.org, Wed, 25 May 2005 21:37:03 +0200 Subject: usbd_bulk_transfer returns 1 (USBD_IN_PROGRESS) ?! 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, 25 May 2005 19:37:18 -0000 Hello, The function usbd_bulk_transfer() returns sometimes USBD_IN_PROGRESS at random when I try to send data to my wireless device (Siemens Gigaset USB Adapter 54 ; the USB data is processed by the NET2280 chipset). AFAIK, this function is never supposed to return USBD_IN_PROGRESS... is it ? Then, when I unplug the device or try to reboot, sometimes the machine completely locks up without any error message (Giant mutex never released in the USB driver ?) Can this be because of a bug in my driver (available at http://lekernel.host.lya-network.biz), a hardware problem (I tried with and without EHCI on an Intel 82845GV integrated chipset, same bug) or a bug in the USB driver ? Thanks, Sebastien From owner-freebsd-usb@FreeBSD.ORG Thu May 26 12:20:09 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FDC116A422 for ; Thu, 26 May 2005 12:20:09 +0000 (GMT) (envelope-from sebastien.b@swissinfo.org) Received: from md1.swissinfo.org (md1.swissinfo.org [146.159.4.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7758D43D53 for ; Thu, 26 May 2005 12:20:01 +0000 (GMT) (envelope-from sebastien.b@swissinfo.org) Received: from mail.swissinfo.org ([194.6.181.33]) by md1.swissinfo.org (phad1.swissinfo.org [146.159.6.9]) (MDaemon.PRO.v7.2.1.R) with ESMTP id 06-md50000486561.msg for ; Thu, 26 May 2005 14:19:57 +0200 Received: from [192.168.0.10] (82.231.254.101) by mail.swissinfo.org (7.0.020) (authenticated as sebastien.b) id 4153942003C425FC; Thu, 26 May 2005 14:19:55 +0200 From: Seb To: hselasky@c2i.net, freebsd-usb@freebsd.org Date: Thu, 26 May 2005 14:21:52 +0200 User-Agent: KMail/1.8 References: <200505252120.22408.sebastien.b@swissinfo.org> <200505261346.54260.hselasky@c2i.net> In-Reply-To: <200505261346.54260.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505261421.53060.sebastien.b@swissinfo.org> X-Spam-Processed: phad1.swissinfo.org, Thu, 26 May 2005 14:19:57 +0200 (not processed: message from valid local sender) X-MDRemoteIP: 194.6.181.33 X-Return-Path: sebastien.b@swissinfo.org X-MDaemon-Deliver-To: freebsd-usb@freebsd.org X-MDAV-Processed: phad1.swissinfo.org, Thu, 26 May 2005 14:19:58 +0200 Cc: Subject: Re: usbd_bulk_transfer returns 1 (USBD_IN_PROGRESS) ?! 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, 26 May 2005 12:20:09 -0000 Hello, On Thursday 26 May 2005 13:46, Hans Petter Selasky wrote: > Have you got a link to the tarball of your driver? Sure. http://lekernel.host.lya-network.biz/download/prism54u-bsd-0.1.tar.bz2 > I downloaded one of the files I found and had a look. > > When you detach, you have to stop the pipes/transfers you are using. Then > usbd_bulk_transfer will return USBD_CANCELLED and must not be called again! Ok, I'll add this, thanks for the info. But this won't solve the USBD_IN_PROGRESS problem... > Also you must make sure that transfers (xfer) are not started two times in > success, before the first call has returned transfer status. > > I'm not too familiar with swi_sched, but it might be that it runs the > interrupt handler in parallell. According to the ithread and swi_add manual pages, since I don't specify the INTR_MPSAFE flag the Giant mutex is acquired before the interrupt thread runs my code and is released right after my function returns. So there is no possibility for parallel USB transfers AFAIK. > Where are you tearing down your software interrupt handler? In p54u_netdev_free (netdev.c) : if(sc->update_state != NULL) ithread_remove_handler(sc->update_state); and in p54u_shutdown (usb_init.c) : if(sc->send_pending != NULL) ithread_remove_handler(sc->send_pending); if(sc->swi != NULL) ithread_destroy(sc->swi); The update_state handler is responsible for reconfiguring the device (LED status, frequency, RX filter) ; and send_pending handler sends the 802.11 frames. USB transfers also occur in the sc_stats_ch callout to update the network statistics, but since the mpsafe argument in callout_init is set to zero, the Giant mutex is held while the callout function executes ; therefore the USB transfers shouldn't race. > Does the same problem happen with my USB driver? I'll try. Regards, Sebastien From owner-freebsd-usb@FreeBSD.ORG Thu May 26 17:24:53 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A89716A41C for ; Thu, 26 May 2005 17:24:53 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.tele2.se [212.247.155.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B92A43D55 for ; Thu, 26 May 2005 17:24:52 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-207-187.daxnet.no ([193.217.207.187] verified) by mailfe10.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 168928771; Thu, 26 May 2005 19:24:49 +0200 From: Hans Petter Selasky To: Seb Date: Thu, 26 May 2005 19:25:37 +0200 User-Agent: KMail/1.7 References: <200505252120.22408.sebastien.b@swissinfo.org> <200505261346.54260.hselasky@c2i.net> <200505261421.53060.sebastien.b@swissinfo.org> In-Reply-To: <200505261421.53060.sebastien.b@swissinfo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505261925.38744.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: usbd_bulk_transfer returns 1 (USBD_IN_PROGRESS) ?! X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2005 17:24:53 -0000 On Thursday 26 May 2005 14:21, Seb wrote: > Hello, > > On Thursday 26 May 2005 13:46, Hans Petter Selasky wrote: > > Have you got a link to the tarball of your driver? > > Sure. > http://lekernel.host.lya-network.biz/download/prism54u-bsd-0.1.tar.bz2 > > > I downloaded one of the files I found and had a look. > > > > When you detach, you have to stop the pipes/transfers you are using. Then > > usbd_bulk_transfer will return USBD_CANCELLED and must not be called > > again! > > Ok, I'll add this, thanks for the info. But this won't solve the > USBD_IN_PROGRESS problem... > > > Also you must make sure that transfers (xfer) are not started two times > > in success, before the first call has returned transfer status. > > > > I'm not too familiar with swi_sched, but it might be that it runs the > > interrupt handler in parallell. > > According to the ithread and swi_add manual pages, since I don't specify > the INTR_MPSAFE flag the Giant mutex is acquired before the interrupt > thread runs my code and is released right after my function returns. So > there is no possibility for parallel USB transfers AFAIK. That is what people expect. The problem is that when "usbd_bulk_transfer()" is called, it will call tsleep() which will exit the Giant lock silently and then sleep. If you used a custom lock you would have gotten an error. So I recommend using custom locks. The problem is that the existing USB API is not compatible with that. You have to lock Giant before calling any "usbxxxx" function, which usually means that you have to unlock your custom mutex first, to avoid locking order reversal, but that leads to loss of synchronization in the code! For example: lock(custom); unlock(custom); lock(Giant); usbd_bulk_transfer(); /* will sleep and exit Giant */ unlock(Giant); lock(custom); unlock(custom); Here "usbd_bulk_transfer" can be called multiple times in parallel! The bad solution is to implement an SX-lock to solve this problem (which is very inefficient): lock(custom); while(starting) { waiting = 1; msleep(&waiting,...custom); } starting = 1; unlock(custom); lock(Giant); usbd_bulk_transfer(); unlock(Giant); lock(custom); if(waiting) { waiting = 0; wakeup(&waiting); } starting = 0; unlock(custom); ---- Here I give an example on how you can solve things asynchronously, using my USB-API, which supports custom mutexes: See "/sys/dev/usb2/_ugen.c" for a complete reference (after that you have installed my USB driver). at attach: ========== sc->mtx = should be pointer to a statically allocated mutex. setup.callback = &your_usb_callback; if(usbd_transfer_setup(... &setup ... &sc->output_xfer, sc->mtx)) return ENXIO; at detach: ========== mtx_lock(sc->mtx); usbd_transfer_stop(sc->output_xfer); /* make sure that "usbd_transfer_start" is not * called again from if_start! */ mtx_unlock(sc->mtx); usbd_transfer_unsetup(&sc->output_xfer, 1); /* will free xfer */ if_start: ========= mtx_lock(sc->mtx); queue mbuf into queue usbd_transfer_start(sc->output_xfer); /* will only start transfer once * even if called multiple times ! */ mtx_unlock(sc->mtx); static void your_usb_callback(struct usbd_xfer *xfer) ========================================= { /* caller will apply the custom lock !!! */ USBD_CHECK_STATUS(xfer); tr_transferred: tr_setup: m = DEQUEUE mbuf; if(m) { xfer->length = m->length; bcopy(m->data, xfer->buffer, xfer->length); free(m); usbd_start_hardware(xfer); } return; tr_error: if(xfer->error != USBD_CANCELLED) printf("%s: transfer returned error(%s) - " "please replug your device to continue operation\n", __FUNCTION__, usbd_errstr(xfer->error)); /* or just call "usbd_start_hardware(xfer);" again * or wait for next "usbd_transfer_start(xfer);" */ return; } --HPS From owner-freebsd-usb@FreeBSD.ORG Thu May 26 18:00:10 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21A4716A41F for ; Thu, 26 May 2005 18:00:10 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA1AC43D1F for ; Thu, 26 May 2005 18:00:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4QI096m027013 for ; Thu, 26 May 2005 18:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4QI09Jo027012; Thu, 26 May 2005 18:00:09 GMT (envelope-from gnats) Resent-Date: Thu, 26 May 2005 18:00:09 GMT Resent-Message-Id: <200505261800.j4QI09Jo027012@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, Eugene Grosbein Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F0BC16A41C for ; Thu, 26 May 2005 17:58:34 +0000 (GMT) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 121CA43D1F for ; Thu, 26 May 2005 17:58:32 +0000 (GMT) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (eugen@localhost [127.0.0.1]) by grosbein.pp.ru (8.13.1/8.13.1) with ESMTP id j4QHwVAM000952 for ; Fri, 27 May 2005 01:58:31 +0800 (KRAST) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.13.1/8.13.1/Submit) id j4QHwVML000951; Fri, 27 May 2005 01:58:31 +0800 (KRAST) (envelope-from eugen) Message-Id: <200505261758.j4QHwVML000951@grosbein.pp.ru> Date: Fri, 27 May 2005 01:58:31 +0800 (KRAST) From: Eugene Grosbein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/81524: panic: usb_cold_explore: busses to explore when !cold X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eugene Grosbein List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2005 18:00:10 -0000 >Number: 81524 >Category: usb >Synopsis: panic: usb_cold_explore: busses to explore when !cold >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 26 18:00:09 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 4.11-STABLE i386 >Organization: Svyaz Service JSC >Environment: System: FreeBSD grosbein.pp.ru 4.11-STABLE FreeBSD 4.11-STABLE #2: Fri May 27 00:56:38 KRAST 2005 eu@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV i386 Iwill BD100+ i440BX-based motherboard with integrated Intel 82371AB/EB/MB PIIX4/4E/4M USB Interface >Description: Recent 4.11-STABLE kernel panices at device probe stage if compiled with INVARIANS and INVARIANT_SUPPORT. Otherwise, it detects USB devices twice. >How-To-Repeat: Take Iwill BD100+ motherboard and boot next kernel: #for strings -n 3 /kernel | grep ^___ | sed -e 's/^___//' > MYKERNEL options INCLUDE_CONFIG_FILE machine i386 cpu I686_CPU options CPU_ENABLE_SSE #enables SSE/MMX2 instructions support. ident DADV maxusers 0 makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options "CLK_USE_I8254_CALIBRATION" options CLK_USE_TSC_CALIBRATION options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options CPU_SUSP_HLT options USER_LDT options PPP_BSDCOMP options PPP_DEFLATE options PPP_FILTER options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options SHMALL=4097 options SHMMAXPGS=4097 options SHMMAX=(SHMMAXPGS*PAGE_SIZE+1) options SEMMAP=255 options SEMMNI=235 options SEMMNS=255 options SEMMNU=235 options SEMMSL=255 options SEMOPM=201 options SEMUME=201 options P1003_1B #Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options _KPOSIX_VERSION=199309L options ICMP_BANDLIM #Rate limit bad replies options NSWAPDEV=4 device isa device eisa device pci options AUTO_EOI_1 # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives options ATA_STATIC_ID #Static device numbering device atapicam device scbus device cd device da device pass # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 device psm0 at atkbdc? irq 12 device vga0 at isa? options VESA options VGA_WIDTH90 # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? options SC_DFLT_FONT # compile font in makeoptions SC_DFLT_FONT=cp866 options MAXCONS=24 options SC_HISTORY_SIZE=1000 options SC_MOUSE_CHAR=0x03 options SC_PIXEL_MODE # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Power management support (see LINT for more options) device apm0 at nexus? # Advanced Power Management # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x90 irq 4 device sio1 at isa? port IO_COM2 irq 3 device miibus device fxp device rl device ep # Parallel port device ppc0 at isa? irq 7 device ppbus # Parallel port bus (required) device lpt # Printer device ppi # Parallel port interface device # Pseudo devices - the number indicates how many units to allocated. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support pseudo-device sl 2 # Kernel SLIP pseudo-device ppp 2 # Kernel PPP pseudo-device tun # Packet tunnel. pseudo-device pty 16 # Pseudo-ttys (telnet etc) pseudo-device gif 4 # IPv6 and IPv4 tunneling pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation) pseudo-device snp pseudo-device gzip # Exec gzipped a.out's pseudo-device speaker # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-device bpf #Berkeley packet filter options MSGBUF_SIZE=40960 device pcm options IPFIREWALL options IPFIREWALL_VERBOSE options IPFW2 options IPDIVERT options DUMMYNET options SOFTUPDATES device smbus device intpm device smb options DDB options DDB_UNATTENDED options ALT_BREAK_TO_DEBUGGER options RANDOM_IP_ID options UFS_DIRHASH options PQ_CACHESIZE=128 # color for 128k/16k cache options SHOW_BUSYBUFS device uhci device usb device uscanner device ugen device uhid device ucom device umass device tap options IPSEC #IP security options IPSEC_ESP #IP security (crypto; define w/ IPSEC) options INVARIANTS options INVARIANT_SUPPORT options USB_DEBUG device agp Here comes dmesg.boot: Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.11-STABLE #2: Fri May 27 00:56:38 KRAST 2005 eu@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV Timecounter "i8254" frequency 1193163 Hz CPU: Intel Celeron (902.03-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x68a Stepping = 10 Features=0x383f9ff real memory = 603914240 (589760K bytes) config> flags atkbd 0x0 config> quit sio0: gdb debugging port avail memory = 582279168 (568632K bytes) Preloaded elf kernel "kernel" at 0xc042d000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc042d09c. Preloaded elf module "splash_bmp.ko" at 0xc042d0ec. Preloaded splash_image_data "/boot/saturn.bmp" at 0xc042d190. VESA: v2.0, 65536k memory, flags:0x1, mode table:0xc0363462 (1000022) VESA: ATI RADEON 9200 Pentium Pro MTRR support enabled splash_bmp: No appropriate video mode found module_register_init: MOD_LOAD (splash_bmp, c03dd77c, 0) error 19 Using $PIR table, 8 entries at 0xc00fdef0 apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe8000000-0xebffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 pci1: at 0.1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd000-0xd01f irq 9 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered intpm0: port 0x5000-0x500f irq 9 at device 7.3 on pci0 intpm0: I/O mapped 5000 intpm0: intr IRQ 9 enabled revision 0 smbus0: on intsmb0 smb0: on smbus0 intpm0: PM I/O mapped 4000 fxp0: port 0xd400-0xd41f mem 0xf0000000-0xf00fffff,0xf0104000-0xf0104fff irq 9 at device 16.0 on pci0 fxp0: Ethernet address 00:a0:c9:89:95:1f inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto atapci1: port 0xe800-0xe80f,0xe400-0xe403,0xe000-0xe007,0xdc00-0xdc03,0xd800-0xd807 mem 0xf0100000-0xf0103fff irq 10 at device 18.0 on pci0 ata2: at 0xd800 on atapci1 ata3: at 0xe000 on atapci1 orm0: