From owner-freebsd-usb@FreeBSD.ORG Sun Apr 17 20:00:39 2005 Return-Path: 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 5418716A4CE for ; Sun, 17 Apr 2005 20:00:39 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09C8743D53 for ; Sun, 17 Apr 2005 20:00:39 +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 j3HK0bK2047688 for ; Sun, 17 Apr 2005 20:00:37 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3HK0bxG047680; Sun, 17 Apr 2005 20:00:37 GMT (envelope-from gnats) Resent-Date: Sun, 17 Apr 2005 20:00:37 GMT Resent-Message-Id: <200504172000.j3HK0bxG047680@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, Winfried Maus Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E45016A4CE for ; Sun, 17 Apr 2005 19:59:23 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id F167D43D2F for ; Sun, 17 Apr 2005 19:59:22 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j3HJxLiq058246 for ; Sun, 17 Apr 2005 19:59:21 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j3HJxLoU058197; Sun, 17 Apr 2005 19:59:21 GMT (envelope-from nobody) Message-Id: <200504171959.j3HJxLoU058197@www.freebsd.org> Date: Sun, 17 Apr 2005 19:59:21 GMT From: Winfried Maus To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/80040: Use of sound mixer causes system freeze with uaudio driver X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Apr 2005 20:00:39 -0000 >Number: 80040 >Category: usb >Synopsis: Use of sound mixer causes system freeze with uaudio driver >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 17 20:00:37 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Winfried Maus >Release: 5.4 RC1 >Organization: World Health Organization >Environment: Sorry, machine is currently not available. >Description: After installing the latest available uaudio module (downloaded 2005-04-16), uaudio finally worked with the Creative Labs Sound Blaster mp3+, but two problems remained: 1. Using Gnome's sound mixer on that device causes an immediate system freeze. 2. According to the uaudio driver, the device can only play at 48000Hz which results in asynchronous sound when playing movies with Totem or other video players. >How-To-Repeat: 1. Plug a Creative mp3+ to the system. 2. Launch esd -r 48000 or artsd -r 48000. 3. Use a sound mixer: System Freeze. 4. After reboot and restarting the sound daemons as described above, try to playback an Xvid or Divx movie with Totem - the sound will always be asynchronous. >Fix: Sorry, no solution known. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Apr 18 11:02:19 2005 Return-Path: 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 9551116A4CE for ; Mon, 18 Apr 2005 11:02:19 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CFE343D1F for ; Mon, 18 Apr 2005 11:02:19 +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 j3IB2JbM093455 for ; Mon, 18 Apr 2005 11:02:19 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3IB2IvY093449 for freebsd-usb@freebsd.org; Mon, 18 Apr 2005 11:02:18 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 18 Apr 2005 11:02:18 GMT Message-Id: <200504181102.j3IB2IvY093449@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 Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 11:02:19 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/04/17] usb/80040 usb Use of sound mixer causes system freeze w 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/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 36 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/16] usb/80010 usb Add support for the AEI USB to LAN adapte 46 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Apr 18 14:46:45 2005 Return-Path: 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 96F8616A4CE for ; Mon, 18 Apr 2005 14:46:45 +0000 (GMT) Received: from avscan1.sentex.ca (avscan1.sentex.ca [199.212.134.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FC3343D41 for ; Mon, 18 Apr 2005 14:46:45 +0000 (GMT) (envelope-from mike@sentex.net) Received: from localhost (localhost.sentex.ca [127.0.0.1]) by avscan1.sentex.ca (8.12.11/8.12.11) with ESMTP id j3IEki0h043759 for ; Mon, 18 Apr 2005 10:46:44 -0400 (EDT) (envelope-from mike@sentex.net) Received: from avscan1.sentex.ca ([127.0.0.1]) by localhost (avscan1.sentex.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 43293-06 for ; Mon, 18 Apr 2005 10:46:44 -0400 (EDT) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by avscan1.sentex.ca (8.12.11/8.12.11) with ESMTP id j3IEkiYj043723 for ; Mon, 18 Apr 2005 10:46:44 -0400 (EDT) (envelope-from mike@sentex.net) Received: from simian.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.3/8.12.11) with ESMTP id j3IEkcqX041820 for ; Mon, 18 Apr 2005 10:46:38 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <6.2.1.2.0.20050418104507.048676f0@64.7.153.2> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Mon, 18 Apr 2005 10:45:17 -0400 To: freebsd-usb@freebsd.org From: Mike Tancsa Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at avscan1b Subject: stable / solid USB ethernet ? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 14:46:45 -0000 I am looking for a stable USB ethernet device under RELENG_5. Can anyone make any recommendations ? The max throughput is under 5Mb, so I dont need anything fast-- just stable / reliable and hopefully available in North America. ---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 Mon Apr 18 18:40:16 2005 Return-Path: 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 9EBDE16A4CE for ; Mon, 18 Apr 2005 18:40:16 +0000 (GMT) Received: from avscan1.sentex.ca (avscan1.sentex.ca [199.212.134.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id B819D43D2F for ; Mon, 18 Apr 2005 18:40:15 +0000 (GMT) (envelope-from mike@sentex.net) Received: from localhost (localhost.sentex.ca [127.0.0.1]) by avscan1.sentex.ca (8.12.11/8.12.11) with ESMTP id j3IIeEWj005740; Mon, 18 Apr 2005 14:40:14 -0400 (EDT) (envelope-from mike@sentex.net) Received: from avscan1.sentex.ca ([127.0.0.1]) by localhost (avscan1.sentex.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05080-09; Mon, 18 Apr 2005 14:40:14 -0400 (EDT) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by avscan1.sentex.ca (8.12.11/8.12.11) with ESMTP id j3IIeE2L005735; Mon, 18 Apr 2005 14:40:14 -0400 (EDT) (envelope-from mike@sentex.net) Received: from simian.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.3/8.12.11) with ESMTP id j3IIe7aW042890; Mon, 18 Apr 2005 14:40:07 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <6.2.1.2.0.20050418133919.03102d90@64.7.153.2> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Mon, 18 Apr 2005 14:38:26 -0400 To: freebsd-usb@freebsd.org From: Mike Tancsa Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at avscan1b Subject: ugen lockups with apcupsd X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 18:40:16 -0000 Hi, I have been trying out the apcupsd program with an APC RS-1500 on= =20 FreeBSD via the ugen interface. On my VIA box, the machine locks up solid= =20 within a short period of time after starting the daemon. If I already have= =20 a session open, the machine is somewhat responsive, but if it needs to load= =20 anything off disk (I am guessing here), I am hosed. I just need to do a=20 few "apcacess status" calls, and then sysctl -A and the box will hang. I=20 have the machine hooked up via serial console. Is there any debugging info= =20 that would be helpful to find out where the problem is ? (ps, trace and=20 dump below). Should I open a PR ? This is with RELENG_5. sysctl -A and then the last line is below that it shows and hangs on. ... dev.orm.0.%parent: isa0 dev.sc.0.%desc: System console dev.sc.0.%driver: sc dev.sc.0.%parent: isa0 dev.vga.0.%desc: Generic ISA VGA dev.vga.0.%driver: vga dev.vga.0.%parent: isa0 dev.ugen.0.%desc: American Power Conversion Back-UPS RS 1500 FW:8.g8 .D USB= =20 FW:g8, rev 1.10/1.06, addr 2 dev.ugen.0.%driver: ugen dev.ugen.0.%location: port=3D0 In a non hanging state, it will also print out the following 2 lines after= =20 the port=3D0 line dev.ugen.0.%pnpinfo: vendor=3D0x051d product=3D0x0002 devclass=3D0x00=20 devsubclass=3D0x00 sernum=3D"JB0439029117 " dev.ugen.0.%parent: uhub1 [via-4port]# 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 #1: Tue Apr 12 16:50:31 EDT 2005 mdtancsa@via-4port.sentex.ca:/usr/src/sys/i386/compile/p2 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: VIA C3 Nehemiah (1002.28-MHz 686-class CPU) Origin =3D "CentaurHauls" Id =3D 0x691 Stepping =3D 1 Features=3D0x380b035 real memory =3D 251592704 (239 MB) avail memory =3D 236556288 (225 MB) npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe6000000-0xe63fffff at=20 device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) vr0: port 0xd000-0xd0ff mem=20 0xe6400000-0xe64000ff irq 15 at device 15.0 on pci0 miibus0: on vr0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:40:63:c9:fa:99 uhci0: port 0xd400-0xd41f irq 11 at device 16.0= =20 on pci0 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 0xd800-0xd81f irq 12 at device 16.1= =20 on pci0 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 0xdc00-0xdc1f irq 7 at device 16.2= =20 on pci0 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 ehci0: mem 0xe6401000-0xe64010ff irq 15 at= =20 device 16.3 on pci0 usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port=20 0xe000-0xe00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 17.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 vr1: port 0xe400-0xe4ff mem=20 0xe6402000-0xe64020ff irq 11 at device 18.0 on pci0 miibus1: on vr1 ukphy1: on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr1: Ethernet address: 00:40:63:c9:fa:98 puc0: port 0xe800-0xe807 irq 12 at device=20 20.0 on pci0 sio4: on puc0 sio4: type 16550A sio4: unable to activate interrupt in fast mode - using normal mode fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on= acpi0 sio0: type 16550A, console sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 sio2: <16550A-compatible COM port> port 0x3e8-0x3ef irq 5 on acpi0 sio2: type 16550A sio3: <16550A-compatible COM port> port 0x2e8-0x2ef irq 10 on acpi0 sio3: type 16550A pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcdfff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: parallel port not found. ugen0: American Power Conversion Back-UPS RS 1500 FW:8.g8 .D USB FW:g8, rev= =20 1.10/1.06, addr 2 Timecounter "TSC" frequency 1002278641 Hz quality 800 Timecounters tick every 10.000 msec Fast IPsec: Initialized Security Association Processing. ipfw2 initialized, divert disabled, rule-based forwarding disabled, default= =20 to accept, logging limited to 31000 packets/entry by default ad0: 38166MB [77545/16/63] at ata0-master UDMA100 Mounting root from ufs:/dev/ad0s1a db> ps pid proc uid ppid pgrp flag stat wmesg wchan cmd 485 c154c1c4 0 484 485 0004002 [SLPQ usbsyn 0xc1560100][SLP]= sysctl 484 c154c000 0 483 484 0004002 [SLPQ pause 0xc154c038][SLP] csh 483 c138de20 1001 481 483 0004102 [SLPQ wait 0xc138de20][SLP] su 481 c138da98 1001 480 481 0004002 [SLPQ pause 0xc138dad0][SLP] csh 480 c138d54c 1001 478 478 0000100 [SLPQ select 0xc07127a4][SLP] sshd 478 c138d710 0 397 478 0000100 [SLPQ sbwait 0xc1373974][SLP] sshd 477 c138d8d4 0 461 477 0004002 [SLPQ select 0xc07127a4][SLP]=20 apcaccess 464 c1551000 0 1 464 0008080 (threaded) apcupsd thread 0xc154da80 ksegrp 0xc11c1a10 [SLPQ kserel 0xc11c1a50][SLP] thread 0xc154dc00 ksegrp 0xc11c1a10 [SLPQ select 0xc07127a4][SLP] thread 0xc1552d80 ksegrp 0xc11c1a10 [SLPQ usbsyn 0xc1444a00][SLP] thread 0xc1554000 ksegrp 0xc11c1620 [SLPQ ksesigwait 0xc1551100][SLP] 461 c12e9a98 0 460 461 0004002 [SLPQ pause 0xc12e9ad0][SLP] csh 460 c138d000 1001 458 460 0004102 [SLPQ wait 0xc138d000][SLP] su 458 c138854c 1001 457 458 0004002 [SLPQ pause 0xc1388584][SLP] csh 457 c13881c4 1001 407 407 0000100 [SLPQ select 0xc07127a4][SLP] sshd 456 c138d1c4 0 1 456 0004002 [SLPQ ttyin 0xc1230c10][SLP] getty 455 c13888d4 0 1 455 0004002 [SLPQ ttyin 0xc1230010][SLP] getty 454 c11c3388 0 1 454 0004002 [SLPQ ttyin 0xc1230210][SLP] getty 453 c11c31c4 0 1 453 0004002 [SLPQ ttyin 0xc1230410][SLP] getty 452 c1388a98 0 1 452 0004002 [SLPQ ttyin 0xc1230610][SLP] getty 451 c11c3a98 0 1 451 0004002 [SLPQ ttyin 0xc1230810][SLP] getty 450 c11c38d4 0 1 450 0004002 [SLPQ ttyin 0xc1230a10][SLP] getty 449 c1388c5c 0 1 449 0004002 [SLPQ ttyin 0xc1143210][SLP] getty 448 c11c3e20 0 1 448 0004002 [SLPQ ttyin 0xc1143410][SLP] getty 421 c11c354c 0 1 421 0000000 [SLPQ nanslp 0xc070d02c][SLP] cron 408 c1388000 25 1 408 0000100 [SLPQ pause 0xc1388038][SLP]= sendmail 407 c12e9c5c 0 397 407 0000100 [SLPQ sbwait 0xc1372e84][SLP] sshd 403 c12e9e20 0 1 403 0000100 [SLPQ sysctl lock 0xc070ce50][SLP]= =20 sendmail 397 c138d388 0 1 397 0000100 [SLPQ select 0xc07127a4][SLP] sshd 285 c1388710 0 1 285 0000000 [SLPQ select 0xc07127a4][SLP]= syslogd 267 c1388e20 0 1 267 0000000 [SLPQ select 0xc07127a4][SLP] devd 236 c1388388 0 1 236 0000000 [SLPQ select 0xc07127a4][SLP]= dhclient 174 c11c3710 0 1 174 0000000 [SLPQ pause 0xc11c3748][SLP]= adjkerntz 52 c12e9000 0 0 0 0000204 [SLPQ - 0xcbad8d18][SLP] schedcpu 51 c12e91c4 0 0 0 0000204 [SLPQ - 0xc0718e8c][SLP] nfsiod 3 50 c12e9388 0 0 0 0000204 [SLPQ - 0xc0718e88][SLP] nfsiod 2 49 c12e954c 0 0 0 0000204 [SLPQ - 0xc0718e84][SLP] nfsiod 1 48 c12e9710 0 0 0 0000204 [SLPQ - 0xc0718e80][SLP] nfsiod 0 47 c12e98d4 0 0 0 0000204 [SLPQ vlruwt 0xc12e98d4][SLP] vnlru 46 c1133a98 0 0 0 0000204 [SLPQ syncer 0xc070cdac][SLP]= syncer 45 c1133c5c 0 0 0 0000204 [SLPQ psleep 0xc0712d6c][SLP]=20 bufdaemon 44 c1133e20 0 0 0 000020c [SLPQ pgzero 0xc071f8b4][SLP]= pagezero 43 c11bf000 0 0 0 0000204 [SLPQ psleep 0xc071f908][SLP]= vmdaemon 42 c11bf1c4 0 0 0 0000204 [SLPQ psleep 0xc071f8c4][SLP]=20 pagedaemon 41 c11bf388 0 0 0 0000204 [SLPQ - 0xc11cf13c][SLP] fdc0 40 c11bf54c 0 0 0 0000204 [IWAIT] swi0: sio 39 c11bf710 0 0 0 0000204 [SLPQ usbevt 0xc1192a10][SLP] usb3 38 c11bf8d4 0 0 0 0000204 [SLPQ usbevt 0xc11e5210][SLP] usb2 37 c11bfa98 0 0 0 0000204 [SLPQ usbevt 0xc11da210][SLP] usb1 36 c11bfc5c 0 0 0 0000204 [SLPQ usbtsk 0xc0705038][SLP]= usbtask 35 c11bfe20 0 0 0 0000204 [SLPQ usbevt 0xc119c210][SLP] usb0 9 c11c3000 0 0 0 0000204 [SLPQ actask 0xc0812bcc][SLP]=20 acpi_task0 8 c112954c 0 0 0 0000204 [SLPQ - 0xc116cc00][SLP] thread= taskq 34 c1129710 0 0 0 0000204 [IWAIT] swi6:+ 33 c11298d4 0 0 0 0000204 [IWAIT] swi6: task queue 32 c1129a98 0 0 0 0000204 [IWAIT] swi6: acpitaskq 7 c1129c5c 0 0 0 0000204 [SLPQ - 0xc116cdc0][SLP] kqueue= taskq 31 c1129e20 0 0 0 0000204 [IWAIT] swi6:+ 30 c1133000 0 0 0 0000204 [SLPQ - 0xc0704920][SLP] yarrow 6 c11331c4 0 0 0 0000204 [SLPQ crypto_ret_wait=20 0xc071e8e4][SLP] crypto returns 5 c1133388 0 0 0 0000204 [SLPQ crypto_wait 0xc071e8a4][SLP]= =20 crypto 4 c113354c 0 0 0 0000204 [SLPQ - 0xc0707688][SLP] g_down 3 c1133710 0 0 0 0000204 [SLPQ - 0xc0707684][SLP] g_up 2 c11338d4 0 0 0 0000204 [SLPQ - 0xc070767c][SLP] g_event 29 c11031c4 0 0 0 0000204 [IWAIT] swi4: vm 28 c1103388 0 0 0 000020c [IWAIT] swi5: clock sio 27 c110354c 0 0 0 0000204 [IWAIT] swi1: net 26 c1103710 0 0 0 0000204 [IWAIT] irq15: vr0 ehci0+ 25 c11038d4 0 0 0 0000204 [IWAIT] irq14: ata0 24 c1103a98 0 0 0 0000204 [IWAIT] irq13: 23 c1103c5c 0 0 0 0000204 [IWAIT] irq12: uhci1 puc0 22 c1103e20 0 0 0 0000204 [IWAIT] irq11: vr1 uhci0 21 c1129000 0 0 0 0000204 [IWAIT] irq10: sio3 20 c11291c4 0 0 0 0000204 [IWAIT] irq9: acpi0 19 c1129388 0 0 0 0000204 [IWAIT] irq8: rtc 18 c10fa000 0 0 0 0000204 [IWAIT] irq7: uhci2 17 c10fa1c4 0 0 0 0000204 [IWAIT] irq6: fdc0 16 c10fa388 0 0 0 0000204 [IWAIT] irq5: sio2 15 c10fa54c 0 0 0 0000204 [IWAIT] irq4: sio0 14 c10fa710 0 0 0 0000204 [IWAIT] irq3: sio1 13 c10fa8d4 0 0 0 0000204 [IWAIT] irq1: atkbd0 12 c10faa98 0 0 0 0000204 [IWAIT] irq0: clk 11 c10fac5c 0 0 0 000020c [CPU 0] idle: cpu0 1 c10fae20 0 0 1 0004200 [SLPQ wait 0xc10fae20][SLP] init 10 c1103000 0 0 0 0000204 [SLPQ ktrace 0xc070afd8][SLP]= ktrace 0 c0707780 0 0 0 0000200 [SLPQ sched 0xc0707780][SLP]= swapper db> trace Tracing pid 11 tid 100003 td 0xc10fb480 kdb_enter(3228331256) at kdb_enter+43 siointr1(3239667712) at siointr1+206 siointr(3239667712) at siointr+94 intr_execute_handlers(3228563648,3406687392,0,3239270656,3239270680) at=20 intr_execute_handlers+125 atpic_handle_intr(4) at atpic_handle_intr+202 Xatpic_intr4() at Xatpic_intr4+32 --- interrupt, eip =3D 3229635933, esp =3D 3406687460, ebp =3D 3406687460= --- acpi_cpu_c1(1108401515,183028309,3406687492,3239031936,4) at acpi_cpu_c1+5 acpi_cpu_idle(3406687520,3226345477,3239029852,3226345324,0) at=20 acpi_cpu_idle+207 cpu_idle(3239029852,3226345324,0,3406687540,3226344669) at cpu_idle+40 idle_proc(0,3406687560) at idle_proc+153 fork_exit(3226345324,0,3406687560) at fork_exit+117 fork_trampoline() at fork_trampoline+8 --- trap 1, eip =3D 0, esp =3D 3406687612, ebp =3D 0 --- db> call doadump() Dumping 239 MB 16 32 48 64 80 96 112 128 144 160 176 192 208 224 Dump complete 15 db> call doadump() Dumping 239 MB 16 32 48 64 80 96 112 128 144 160 176 192 208 224 Dump complete 0xf db> call panic() [via-4port]# kgdb /usr/obj/usr/src/sys/p2/kernel.debug /var/crash/vmcore.6 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so:= =20 Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain= conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". #0 doadump () at pcpu.h:159 159 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt full #0 doadump () at pcpu.h:159 No locals. #1 0xc0431d0e in db_fncall (dummy1=3D0, dummy2=3D0, dummy3=3D0,=20 dummy4=3D0xcb0deaac "=D8=EA\r=CBl=F2d=C0=C4=EA\r=CB=C8=EA\r=CB\222\a") at /usr/src/sys/ddb/db_command.c:531 fn_addr =3D -1068536844 args =3D {0 } nargs =3D 11 retval =3D 0 func =3D (fcn_10args_t *) 0xc04f6bf4 t =3D 0 #2 0xc0431b1c in db_command (last_cmdp=3D0xc0703524, cmd_table=3D0x0,=20 aux_cmd_tablep=3D0xc06cdd3c, aux_cmd_tablep_end=3D0xc06cdd40) at /usr/src/sys/ddb/db_command.c:349 cmd =3D (struct command *) 0xc06d3260 t =3D 0 modif =3D=20 "=D8=EA\r=CBl=F2d=C0=C4=EA\r=CB=C8=EA\r=CB\222\a\000\000=F8\003\000\000=F8= =EA\r=CB\000\000\000\000=E4=EA\r=CB=F8\003\000\000=E8=EA\r=CB\rvd=C0=F8\003\= 000\000=F8\003\000\000\r\000\000\000\020=EB\r=CB\002xd=C0=F8=EA\r=CB=F8\003\= 000\000\f\000\017\003x\000\000\000 =20 >p=C0\000\000\000\000$=EB\r=CB ;C=C0=E37k=C0\0208C=C0\000\000\000\000= >p=C0=C2/C=C0" addr =3D 0 count =3D 0 have_addr =3D 0 result =3D 0 #3 0xc0431be4 in db_command_loop () at /usr/src/sys/ddb/db_command.c:455 No locals. #4 0xc043377d in db_trap (type=3D3, code=3D0) at= /usr/src/sys/ddb/db_main.c:221 jb =3D {{_jb =3D {-888280220, -888280240, -888280168, -1055935360,= 0,=20 -1069336810, 0, -629538816, -888314880, 0, 0, -888280164}}} prev_jb =3D (void *) 0x0 bkpt =3D 0 #5 0xc050f067 in kdb_trap (type=3D3, code=3D0, tf=3D0x1) at=20 /usr/src/sys/kern/subr_kdb.c:418 did_stop_cpus =3D 1 handled =3D -1055935360 #6 0xc066b710 in trap (frame=3D {tf_fs =3D 24, tf_es =3D 16, tf_ds =3D 16, tf_edi =3D 249, tf_esi =3D= =20 -1055299584, tf_ebp =3D -888280020, tf_isp =3D -888280040, tf_ebx =3D=20 -1055935360, tf_edx =3D 0, tf_ecx =3D -1060786176, tf_eax =3D 34, tf_trapno= =3D 3,=20 tf_err =3D 0, tf_eip =3D -1068438069, tf_cs =3D 8, tf_eflags =3D 130, tf_esp= =3D=20 -888279992, tf_ss =3D -1067164142}) at /usr/src/sys/i386/i386/trap.c:576 td =3D (struct thread *) 0xc10fb480 p =3D (struct proc *) 0xc10fac5c ---Type to continue, or q to quit--- sticks =3D 3239068752 i =3D 0 ucode =3D 0 type =3D 3 code =3D 0 eva =3D 0 #7 0xc065957a in calltrap () at /usr/src/sys/i386/i386/exception.s:140 No locals. #8 0x00000018 in ?? () No symbol table info available. #9 0x00000010 in ?? () No symbol table info available. #10 0x00000010 in ?? () No symbol table info available. #11 0x000000f9 in ?? () No symbol table info available. #12 0xc1196800 in ?? () No symbol table info available. #13 0xcb0dec2c in ?? () No symbol table info available. #14 0xcb0dec18 in ?? () No symbol table info available. #15 0xc10fb480 in ?? () No symbol table info available. #16 0x00000000 in ?? () No symbol table info available. #17 0xc0c5b000 in ?? () No symbol table info available. #18 0x00000022 in ?? () No symbol table info available. #19 0x00000003 in ?? () No symbol table info available. #20 0x00000000 in ?? () No symbol table info available. #21 0xc050edcb in kdb_enter (msg=3D0x0) at cpufunc.h:56 No locals. #22 0xc0645e12 in siointr1 (com=3D0xc1196800) at= /usr/src/sys/dev/sio/sio.c:1841 int_ctl =3D 0 '\0' ---Type to continue, or q to quit--- int_ctl_new =3D 0 '\0' line_status =3D 249 '=F9' modem_status =3D 128 '\200' ioptr =3D (u_char *) 0xc10fb480 "\\=AC\017=C1@\034\020=C1" recv_data =3D 0 '\0' #23 0xc0645bf2 in siointr (arg=3D0xc1196800) at= /usr/src/sys/dev/sio/sio.c:1710 com =3D (struct com_s *) 0xc1196800 #24 0xc065cf09 in intr_execute_handlers (isrc=3D0xc06ff8c0,= iframe=3D0xcb0deca0) at /usr/src/sys/i386/i386/intr_machdep.c:203 td =3D (struct thread *) 0xc10fb480 it =3D (struct ithd *) 0xc1122b80 ih =3D (struct intrhand *) 0xc1221780 error =3D -888279904 vector =3D 4 #25 0xc066e70a in atpic_handle_intr (iframe=3D {if_vec =3D 4, if_fs =3D 24, if_es =3D 16, if_ds =3D 16, if_edi =3D= =20 -1055696616, if_esi =3D -1055696640, if_ebp =3D -888279836, if_ebx =3D 0,= if_edx=20 =3D 0, if_ecx =3D 0, if_eax =3D 10000, if_eip =3D -1065331363, if_cs =3D 8,= if_eflags=20 =3D 534, if_esp =3D -888279804, if_ss =3D -1065346929}) at=20 /usr/src/sys/i386/isa/atpic.c:558 isrc =3D (struct intsrc *) 0xc06ff8c0 #26 0xc06596d0 in Xatpic_intr4 () at atpic_vector.s:74 No locals. #27 0x00000004 in ?? () No symbol table info available. #28 0x00000018 in ?? () No symbol table info available. #29 0x00000010 in ?? () No symbol table info available. #30 0x00000010 in ?? () No symbol table info available. #31 0xc1135918 in ?? () No symbol table info available. #32 0xc1135900 in ?? () No symbol table info available. #33 0xcb0dece4 in ?? () No symbol table info available. #34 0xcb0decd0 in ?? () No symbol table info available. #35 0x00000000 in ?? () ---Type to continue, or q to quit--- No symbol table info available. #36 0x00000000 in ?? () No symbol table info available. #37 0x00000000 in ?? () No symbol table info available. #38 0x00002710 in ?? () No symbol table info available. #39 0x00000000 in ?? () No symbol table info available. #40 0x00000000 in ?? () No symbol table info available. #41 0xc080555d in ?? () No symbol table info available. #42 0x00000008 in ?? () No symbol table info available. #43 0x00000216 in ?? () No symbol table info available. #44 0xcb0ded04 in ?? () No symbol table info available. #45 0xc080188f in ?? () No symbol table info available. #46 0xd506546b in ?? () No symbol table info available. #47 0x16165981 in ?? () No symbol table info available. #48 0xcb0ded04 in ?? () No symbol table info available. #49 0xc10fb480 in ?? () No symbol table info available. #50 0x00000004 in ?? () No symbol table info available. #51 0x00000001 in ?? () No symbol table info available. #52 0xcb0ded0c in ?? () No symbol table info available. #53 0xc0660dbc in cpu_idle () at /usr/src/sys/i386/i386/machdep.c:1135 No locals. Previous frame inner to this frame (corrupt stack?) (kgdb) -------------------------------------------------------------------- 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 Tue Apr 19 01:42:58 2005 Return-Path: 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 9C73D16A4CE for ; Tue, 19 Apr 2005 01:42:57 +0000 (GMT) Received: from ms-smtp-04.nyroc.rr.com (ms-smtp-04.nyroc.rr.com [24.24.2.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D45543D3F for ; Tue, 19 Apr 2005 01:42:56 +0000 (GMT) (envelope-from akropel1@rochester.rr.com) Received: from mail.kroptech.com (cpe-24-93-20-125.rochester.res.rr.com [24.93.20.125])j3J1grpl020740; Mon, 18 Apr 2005 21:42:53 -0400 (EDT) Received: from pia (pia.kroptech.com [192.168.200.3]) by mail.kroptech.com (Postfix) with SMTP id C34C211376E; Mon, 18 Apr 2005 21:51:53 -0400 (EDT) Message-ID: <064001c54481$19ea1b90$03c8a8c0@kroptech.com> From: "Adam Kropelin" To: "Mike Tancsa" , References: <6.2.1.2.0.20050418133919.03102d90@64.7.153.2> Date: Mon, 18 Apr 2005 21:42:52 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_063D_01C5445F.92CA23B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: ugen lockups with apcupsd X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 01:42:58 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_063D_01C5445F.92CA23B0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit Mike Tancsa wrote: > Hi, > I have been trying out the apcupsd program with an APC > RS-1500 on FreeBSD via the ugen interface. On my VIA box, the machine > locks up > solid within a short period of time after starting the daemon. This is a known bug and is fixed by a patch I posted to apcupsd-users. The BSD UHCI driver has a tendency to leave transfers on the queue when they complete 'short' (i.e., with fewer bytes than expected). This happens often in apcupsd-3.10.17 due to some poor coding on my part, but can also happen on UPSes having broken firmware that sends fewer bytes than the report descriptor claims. (These UPSes do not deadlock on Linux, so I think there is still a BSD UHCI bug here, but luckily it can be worked around in apcupsd.) Patch against apcupsd-3.10.17 attached. Let me know if it solves the problem for you. --Adam ------=_NextPart_000_063D_01C5445F.92CA23B0 Content-Type: application/octet-stream; name="apcupsd-freebsd-usb-lockup-fix-2.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="apcupsd-freebsd-usb-lockup-fix-2.patch" Index: bsd-usb.c=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvsroot/apcupsd/apcupsd/src/drivers/usb/bsd/bsd-usb.c,v=0A= retrieving revision 1.4=0A= diff -u -r1.4 bsd-usb.c=0A= --- bsd-usb.c 9 Nov 2004 01:51:54 -0000 1.4=0A= +++ bsd-usb.c 18 Apr 2005 02:40:35 -0000=0A= @@ -48,6 +48,7 @@=0A= unsigned unit; /* units */=0A= int data_type; /* data type */=0A= hid_item_t item; /* HID item */=0A= + int report_len; /* Length of containing report */=0A= } USB_INFO;=0A= =0A= =0A= @@ -394,6 +395,8 @@=0A= info->unit =3D item.unit;=0A= info->data_type =3D known_info[i].data_type;=0A= memcpy(&info->item, &item, sizeof(item));=0A= + info->report_len =3D hid_report_size( /* +1 for report = id */=0A= + my_data->rdesc, item.kind, item.report_ID) + 1;=0A= Dmsg3(200, "Got ci=3D%d, usage=3D0x%x (len=3D%d)\n",ci,=0A= known_info[i].usage_code, item.report_size);=0A= }=0A= @@ -424,11 +427,38 @@=0A= if (!UPS_HAS_CAP(ci) || !info)=0A= return false; /* UPS does not have capability */=0A= =0A= + /*=0A= + * Clear the destination buffer. In the case of a short transfer = (see=0A= + * below) this will increase the likelihood of extracting the = correct=0A= + * value in spite of the missing data.=0A= + */=0A= + memset(data, 0, sizeof(data));=0A= +=0A= /* Fetch the proper report */=0A= - len =3D hidu_get_report(my_data->fd, &info->item, data);=0A= + len =3D hidu_get_report(my_data->fd, &info->item, data, = info->report_len);=0A= if (len =3D=3D -1)=0A= return false;=0A= =0A= + /*=0A= + * Some UPSes seem to have broken firmware that sends a different = number=0A= + * of bytes (usually fewer) than the report descriptor specifies. On=0A= + * UHCI controllers under *BSD, this can lead to random lockups. To=0A= + * reduce the likelihood of a lockup, we adjust our expected length = to=0A= + * match the actual as soon as a mismatch is detected, so future=0A= + * transfers will have the proper lengths from the outset. NOTE that=0A= + * the data returned may not be parsed properly (since the parsing = is=0A= + * necessarily based on the report descriptor) but given that HID=0A= + * reports are in little endian byte order and we cleared the buffer=0A= + * above, chances are good that we will actually extract the right=0A= + * value in spite of the UPS's brokenness.=0A= + */=0A= + if (info->report_len !=3D len) {=0A= + Dmsg4(100, "Report length mismatch, fixing "=0A= + "(id=3D%d, ci=3D%d, expected=3D%d, actual=3D%d)",=0A= + info->item.report_ID, ci, info->report_len, len);=0A= + info->report_len =3D len;=0A= + }=0A= +=0A= /* data+1 skips the report tag byte */=0A= value =3D hid_get_data(data+1, &info->item);=0A= =0A= @@ -798,7 +828,8 @@=0A= {=0A= info =3D my_data->info[ci]; /* point to our info = structure */=0A= =0A= - if (hidu_get_report(my_data->fd, &info->item, rpt) < 1)=0A= + if (hidu_get_report(=0A= + my_data->fd, &info->item, rpt, info->report_len) < 1)=0A= {=0A= Dmsg1(000, "get_report for kill power function %s = failed.\n", =0A= name);=0A= @@ -809,14 +840,15 @@=0A= =0A= hid_set_data(rpt+1, &info->item, value);=0A= =0A= - if (!hidu_set_report(my_data->fd, &info->item, rpt))=0A= + if (!hidu_set_report(my_data->fd, &info->item, rpt, = info->report_len))=0A= {=0A= Dmsg1(000, "set_report for kill power function %s = failed.\n", =0A= name);=0A= return false;=0A= }=0A= =0A= - if (hidu_get_report(my_data->fd, &info->item, rpt) < 1)=0A= + if (hidu_get_report(=0A= + my_data->fd, &info->item, rpt, info->report_len) < 1)=0A= {=0A= Dmsg1(000, "get_report for kill power function %s = failed.\n", =0A= name);=0A= Index: hidutils.c=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvsroot/apcupsd/apcupsd/src/drivers/usb/bsd/hidutils.c,v=0A= retrieving revision 1.2=0A= diff -u -r1.2 hidutils.c=0A= --- hidutils.c 9 Nov 2004 02:03:49 -0000 1.2=0A= +++ hidutils.c 18 Apr 2005 02:40:35 -0000=0A= @@ -259,43 +259,22 @@=0A= =0A= /*=0A= * Fetch a report from a device given an fd for the device's control=0A= - * endpoint, the populated item structure describing the report, and=0A= - * a data buffer in which to store the result. Returns report length=0A= - * (in bytes) on success and -1 on failure.=0A= + * endpoint, the populated item structure describing the report, a=0A= + * data buffer in which to store the result, and the report length.=0A= + * Returns actual report length (in bytes) on success and -1 on failure.=0A= */=0A= -int hidu_get_report(int fd, hid_item_t* item, unsigned char* data)=0A= +int hidu_get_report(int fd, hid_item_t* item, unsigned char* data, int = len)=0A= {=0A= - int rc, len;=0A= + int rc;=0A= struct usb_ctl_request req;=0A= - unsigned char buf[100];=0A= =0A= Dmsg4(200, "get_report: id=3D0x%02x, kind=3D%d, length=3D%d = pos=3D%d\n",=0A= - item->report_ID, item->kind, item->report_size, item->pos);=0A= -=0A= -#if 0=0A= - /*=0A= - * Length is report size (in bits) rounded up to nearest=0A= - * byte, plus one additional byte for the report tag.=0A= - */=0A= - len =3D (item->report_size+7)/8+1;=0A= -#else=0A= - /*=0A= - * Some reports seem to be longer than the above calculation says.=0A= - * Either APC has bogus length fields in their descriptors or=0A= - * libusbhid is buggy. The FreeBSD kernel corrupts its memory when=0A= - * this happens, resulting in a panic shortly thereafter. Work = around=0A= - * the problem by using a plenty large buffer and letting the = transfer=0A= - * return less than was requested.=0A= - */=0A= - len =3D sizeof(buf);=0A= -#endif=0A= -=0A= - memset(buf, 0, sizeof(buf));=0A= + item->report_ID, item->kind, len, item->pos);=0A= =0A= req.ucr_flags =3D USBD_SHORT_XFER_OK;=0A= req.ucr_actlen =3D 0;=0A= req.ucr_addr =3D 0;=0A= - req.ucr_data =3D buf;=0A= + req.ucr_data =3D data;=0A= req.ucr_request.bmRequestType =3D UT_READ_CLASS_INTERFACE;=0A= req.ucr_request.bRequest =3D UR_GET_REPORT;=0A= USETW(req.ucr_request.wValue, ((item->kind+1) << 8) | = item->report_ID);=0A= @@ -308,7 +287,7 @@=0A= rc =3D ioctl(fd, USB_DO_REQUEST, &req);=0A= if (rc)=0A= {=0A= - Dmsg1(100, "Error getting report: %s\n", strerror(-rc));=0A= + Dmsg1(100, "Error getting report: %s\n", strerror(errno));=0A= return -1;=0A= }=0A= =0A= @@ -316,32 +295,25 @@=0A= {=0A= printf( "%02x: ", item->report_ID);=0A= for (rc=3D0; rcreport_ID, item->kind, item->report_size, item->pos);=0A= -=0A= - /*=0A= - * Length is report size (in bits) rounded up to nearest=0A= - * byte, plus one additional byte for the report tag.=0A= - */=0A= - len =3D (item->report_size+7)/8+1;=0A= + item->report_ID, item->kind, len, item->pos);=0A= =0A= if (debug_level >=3D 300)=0A= {=0A= @@ -367,7 +339,7 @@=0A= rc =3D ioctl(fd, USB_DO_REQUEST, &req);=0A= if (rc)=0A= {=0A= - Dmsg2(100, "Error setting report: (%d) %s\n", rc, = strerror(-rc));=0A= + Dmsg2(100, "Error setting report: (%d) %s\n", errno, = strerror(errno));=0A= return 0;=0A= }=0A= =0A= @@ -391,7 +363,7 @@=0A= rc =3D ioctl(fd, USB_GET_STRING_DESC, &sd);=0A= if (rc)=0A= {=0A= - Dmsg1(100, "Error fetching string descriptor: %s\n", = strerror(-rc));=0A= + Dmsg1(100, "Error fetching string descriptor: %s\n", = strerror(errno));=0A= return NULL;=0A= }=0A= =0A= Index: hidutils.h=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvsroot/apcupsd/apcupsd/src/drivers/usb/bsd/hidutils.h,v=0A= retrieving revision 1.1=0A= diff -u -r1.1 hidutils.h=0A= --- hidutils.h 7 Nov 2004 23:46:55 -0000 1.1=0A= +++ hidutils.h 18 Apr 2005 02:40:35 -0000=0A= @@ -34,18 +34,18 @@=0A= =0A= /*=0A= * Fetch a report from a device given an fd for the device's control=0A= - * endpoint, the populated item structure describing the report, and=0A= - * a data buffer in which to store the result. Returns report length=0A= - * (in bytes) on success and -1 on failure.=0A= + * endpoint, the populated item structure describing the report, a=0A= + * data buffer in which to store the result, and the report length.=0A= + * Returns actual report length (in bytes) on success and -1 on failure.=0A= */=0A= -int hidu_get_report(int fd, hid_item_t* item, unsigned char* data);=0A= +int hidu_get_report(int fd, hid_item_t* item, unsigned char* data, int = len);=0A= =0A= /*=0A= * Send a report to the device given an fd for the device's control=0A= - * endpoint, the populated item structure, and the data to send. =0A= - * Returns true on success, false on failure.=0A= + * endpoint, the populated item structure, the data to send, and the=0A= + * report length. Returns true on success, false on failure.=0A= */=0A= -int hidu_set_report(int fd, hid_item_t* item, unsigned char* data);=0A= +int hidu_set_report(int fd, hid_item_t* item, unsigned char* data, int = len);=0A= =0A= /*=0A= * Fetch a string descriptor from the device given an fd for the=0A= ------=_NextPart_000_063D_01C5445F.92CA23B0-- From owner-freebsd-usb@FreeBSD.ORG Tue Apr 19 04:15:28 2005 Return-Path: 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 0AF0216A4CE for ; Tue, 19 Apr 2005 04:15:28 +0000 (GMT) Received: from avscan1.sentex.ca (avscan1.sentex.ca [199.212.134.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8579C43D4C for ; Tue, 19 Apr 2005 04:15:27 +0000 (GMT) (envelope-from mike@sentex.net) Received: from localhost (localhost.sentex.ca [127.0.0.1]) by avscan1.sentex.ca (8.12.11/8.12.11) with ESMTP id j3J4FQvM012584; Tue, 19 Apr 2005 00:15:26 -0400 (EDT) (envelope-from mike@sentex.net) Received: from avscan1.sentex.ca ([127.0.0.1]) by localhost (avscan1.sentex.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12056-05; Tue, 19 Apr 2005 00:15:26 -0400 (EDT) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by avscan1.sentex.ca (8.12.11/8.12.11) with ESMTP id j3J4FPnp012578; Tue, 19 Apr 2005 00:15:25 -0400 (EDT) (envelope-from mike@sentex.net) Received: from simian.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.3/8.12.11) with ESMTP id j3J4FJHV044198; Tue, 19 Apr 2005 00:15:19 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <6.2.1.2.0.20050418232543.034c5970@64.7.153.2> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Tue, 19 Apr 2005 00:13:52 -0400 To: "Adam Kropelin" , From: Mike Tancsa In-Reply-To: <064001c54481$19ea1b90$03c8a8c0@kroptech.com> References: <6.2.1.2.0.20050418133919.03102d90@64.7.153.2> <064001c54481$19ea1b90$03c8a8c0@kroptech.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at avscan1b Subject: Re: ugen lockups with apcupsd X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 04:15:28 -0000 At 09:42 PM 18/04/2005, Adam Kropelin wrote: >Mike Tancsa wrote: >>Hi, >> I have been trying out the apcupsd program with an APC >>RS-1500 on FreeBSD via the ugen interface. On my VIA box, the machine >>locks up >>solid within a short period of time after starting the daemon. > >This is a known bug and is fixed by a patch I posted to apcupsd-users. The >BSD UHCI driver has a tendency to leave transfers on the queue when they >complete 'short' (i.e., with fewer bytes than expected). This happens >often in apcupsd-3.10.17 due to some poor coding on my part, but can also >happen on UPSes having broken firmware that sends fewer bytes than the >report descriptor claims. (These UPSes do not deadlock on Linux, so I >think there is still a BSD UHCI bug here, but luckily it can be worked >around in apcupsd.) Hi, actually, I was just about to post that I found the patches while looking through the mailing archives and it does seem to fix the issue. I will let it run overnight to see if it fixes it long term by doing an apcaccess status once per second in a loop. I guess this is still kind of a bug as a userland app could potentially DoS a system no ? One does not need to be root to open the device and presumably a malicious program could recreate the issue no ? Thanks again for the code and fix! ---Mike From owner-freebsd-usb@FreeBSD.ORG Thu Apr 21 02:45:58 2005 Return-Path: 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 B2E7516A4CE for ; Thu, 21 Apr 2005 02:45:58 +0000 (GMT) Received: from rip.psg.com (rip.psg.com [147.28.0.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9903043D49 for ; Thu, 21 Apr 2005 02:45:58 +0000 (GMT) (envelope-from randy@psg.com) Received: from localhost ([127.0.0.1] helo=roam.psg.com) by rip.psg.com with esmtp (Exim 4.50 (FreeBSD)) id 1DORhW-000FOi-D8 for freebsd-usb@freebsd.org; Thu, 21 Apr 2005 02:45:58 +0000 Received: from [127.0.0.1] (helo=roam.psg.com.psg.com) by roam.psg.com with esmtp (Exim 4.50 (FreeBSD)) id 1DORhQ-0000Lf-AH for freebsd-usb@freebsd.org; Wed, 20 Apr 2005 16:45:52 -1000 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16999.5087.868333.378085@roam.psg.com> Date: Wed, 20 Apr 2005 16:45:51 -1000 To: FreeBSD USB Subject: sandisk usb freeze X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2005 02:45:58 -0000 running current as of yesterday on a thinkpd t41 picked up a sandisk cruzer 128mb usb disk stick. it looks ok from winxp plug it in, the stick's led lights up syslog sez umass0: SanDisk Corporation Cruzer Mini, rev 2.00/1.04, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 125MB (256000 512 byte sectors: 64H 32S/T 125C) fdisk da0 either locks up or causes reboot with no disk flowers savecore: no dumps found any pointers on how to best debug? randy From owner-freebsd-usb@FreeBSD.ORG Fri Apr 22 19:00:41 2005 Return-Path: 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 9F89416A596 for ; Fri, 22 Apr 2005 19:00:41 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3759D43D31 for ; Fri, 22 Apr 2005 19:00:41 +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 j3MJ0fII057788 for ; Fri, 22 Apr 2005 19:00:41 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3MJ0fUJ057782; Fri, 22 Apr 2005 19:00:41 GMT (envelope-from gnats) Resent-Date: Fri, 22 Apr 2005 19:00:41 GMT Resent-Message-Id: <200504221900.j3MJ0fUJ057782@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, Steve Davidson Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0ABC16A4D4 for ; Fri, 22 Apr 2005 18:52:57 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id B037843D1D for ; Fri, 22 Apr 2005 18:52:57 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j3MIqvEw021883 for ; Fri, 22 Apr 2005 18:52:57 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j3MIqvxD021882; Fri, 22 Apr 2005 18:52:57 GMT (envelope-from nobody) Message-Id: <200504221852.j3MIqvxD021882@www.freebsd.org> Date: Fri, 22 Apr 2005 18:52:57 GMT From: Steve Davidson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/80260: Travan USB tape drive fails to write X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 19:00:41 -0000 >Number: 80260 >Category: usb >Synopsis: Travan USB tape drive fails to write >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 22 19:00:40 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Steve Davidson >Release: 5.3-RELEASE >Organization: >Environment: FreeBSD 5.3-RELEASE #0: Fri Dec 10 12:48:11 PST 2004 >Description: I have a Certance (Seagate DiskStor) Travan external USB tape unit that attaches to FreeBSD 5.3-RELEASE with the following entry in log/messages: Apr 22 11:30:08 calvin kernel: ehci_idone: need toggle update status=80028d40 nstatus=80008c80 Apr 22 11:30:08 calvin kernel: umass1: Seagate RSS Seagate DiskStor USB, rev 2.00/11.01, addr 3 Apr 22 11:30:08 calvin kernel: ehci_idone: need toggle update status=80028d40 nstatus=80008c80 Apr 22 11:30:09 calvin kernel: sa2 at umass-sim1 bus 1 target 0 lun 0 Apr 22 11:30:09 calvin kernel: sa2: Removable Sequential Access SCSI-2 devi ce Apr 22 11:30:09 calvin kernel: sa2: 1.000MB/s transfers So far, so good. But... Any attempt to write yields the following message: % tar cvf /dev/sa2 . tar: Failed to open '/dev/sa2': Input/output error Does anyone know how to write to an external USB tape unit? The tape installed is a brand new Certance tape that came with the unit. % camcontrol devlist at scbus1 target 4 lun 0 (sa0,pass0) at scbus1 target 5 lun 0 (sa1,pass1) at scbus1 target 6 lun 0 (cd0,pass2) at scbus1 target 8 lun 0 (pass3,da0) at scbus4 target 0 lun 0 (cd1,pass4) at scbus11 target 0 lun 0 (da1,pass5) at scbus12 target 0 lun 0 (pass6,sa2) % l /dev/sa2* lrwxr-xr-x 1 root wheel 5 Apr 22 09:58 /dev/sa2 -> sa2.0 crw-rw---- 1 root operator 226, 32 Mar 24 13:04 /dev/sa2.0 crw-rw---- 1 root operator 226, 36 Mar 24 13:04 /dev/sa2.1 crw-rw---- 1 root operator 226, 40 Mar 24 13:04 /dev/sa2.2 crw-rw---- 1 root operator 226, 44 Mar 24 13:04 /dev/sa2.3 crw-rw---- 1 root operator 226, 0x20000020 Mar 24 13:04 /dev/sa2.ctl % l /dev/pass6 crw------- 1 root operator 227, 6 Mar 24 13:04 /dev/pass6 % camcontrol tur sa2 -v Unit is not ready (pass6:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (pass6:umass-sim1:1:0:0): CAM Status: SCSI Status Error (pass6:umass-sim1:1:0:0): SCSI Status: Check Condition (pass6:umass-sim1:1:0:0): MEDIUM ERROR asc:30,0 (pass6:umass-sim1:1:0:0): Incompatible medium installed >How-To-Repeat: Attach a Seagate TapeStor USB tape drive and write to it. >Fix: Fix the driver? >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Apr 22 20:40:35 2005 Return-Path: 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 4289D16A4CE for ; Fri, 22 Apr 2005 20:40:35 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13A1F43D2D for ; Fri, 22 Apr 2005 20:40:35 +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 j3MKeYvS072408 for ; Fri, 22 Apr 2005 20:40:34 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3MKeY83072407; Fri, 22 Apr 2005 20:40:34 GMT (envelope-from gnats) Date: Fri, 22 Apr 2005 20:40:34 GMT Message-Id: <200504222040.j3MKeY83072407@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Jean-Sebastien Roy Subject: Re: kern/65436: QUIRK: [patch] to add support for PNY Attache 256MB USB 2.0 Flash Drive X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jean-Sebastien Roy List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 20:40:35 -0000 The following reply was made to PR kern/65436; it has been noted by GNATS. From: Jean-Sebastien Roy To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/65436: QUIRK: [patch] to add support for PNY Attache 256MB USB 2.0 Flash Drive Date: Fri, 22 Apr 2005 22:33:51 +0200 It still was necessary and worked fine on FreeBSD 4.11-STABLE too. Could this patch be commited ? Thanks in advance ! Regards, js From owner-freebsd-usb@FreeBSD.ORG Sat Apr 23 10:24:19 2005 Return-Path: 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 36EDA16A4CE; Sat, 23 Apr 2005 10:24:19 +0000 (GMT) Received: from mail-gw1.york.ac.uk (mail-gw1.york.ac.uk [144.32.128.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0D8E43D53; Sat, 23 Apr 2005 10:24:17 +0000 (GMT) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from ury.york.ac.uk (ury.york.ac.uk [144.32.108.81]) by mail-gw1.york.ac.uk (8.12.10/8.12.10) with ESMTP id j3NAOFLM009766; Sat, 23 Apr 2005 11:24:15 +0100 (BST) Received: from ury.york.ac.uk (localhost.york.ac.uk [127.0.0.1]) by ury.york.ac.uk (8.12.9p2/8.12.9) with ESMTP id j3NAOFRw074989; Sat, 23 Apr 2005 11:24:15 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from localhost (gavin@localhost)j3NAOEKB074986; Sat, 23 Apr 2005 11:24:15 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) X-Authentication-Warning: ury.york.ac.uk: gavin owned process doing -bs Date: Sat, 23 Apr 2005 11:24:14 +0100 (BST) From: Gavin Atkinson X-X-Sender: gavin@ury.york.ac.uk To: Ian Dowse In-Reply-To: <200503230157.j2N1vcnN029193@freefall.freebsd.org> Message-ID: <20050423111116.T61253@ury.york.ac.uk> References: <200503230157.j2N1vcnN029193@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin.atkinson@ury.york.ac.uk cc: freebsd-usb@FreeBSD.org Subject: Re: kern/40948: [usb] USB HP CDW8200 does not work X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2005 10:24:19 -0000 On Wed, 23 Mar 2005, Ian Dowse wrote: > Synopsis: [usb] USB HP CDW8200 does not work > > State-Changed-From-To: open->feedback > State-Changed-By: iedowse > State-Changed-When: Wed Mar 23 01:57:09 GMT 2005 > State-Changed-Why: > > Does this problem still occur with more recent releases? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=40948 I'm sorry for the delay in replying, yes this is still an issue. On 5.4-PRERELEASE Sat Mar 12 10:56:24, I get the following: umass0: Hewlett Packard HP USB CD-Writer Plus, rev 1.00/0.01, addr 2 umass0: CBI reset failed, TIMEOUT umass0: CBI reset failed, TIMEOUT umass0: CBI reset failed, TIMEOUT umass0: CBI reset failed, TIMEOUT umass0: CBI reset failed, TIMEOUT umass0: at uhub2 port 1 (addr 2) disconnected umass0: detached (Note that each timeout message is two minutes apart, so the above process takes 12 minutes). On 6.0-CURRENT I suspect I'd have got the same if I'd have left the drive in long enough, but instead, being impatient, I removed it after about 60 seconds and recieved a panic in camisr(). umass0: vendor 0x03f0 HP USB CD-Writer Plus, rev 1.00/0.01, addr 2 umass0: at uhub0 port 2 (addr 2) disconnected Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0xdeadc116 fault code = supervisor write, page not present instruction pointer = 0x8:0xc04500ab stack pointer = 0x10:0xcb758cdc frame pointer = 0x10:0xcb758cf4 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 curent process = 34 (swi2: cambio) I'm happy to test anything you want me to try, but as this isn't my CD writer, it may take a while... Thanks Gavin From owner-freebsd-usb@FreeBSD.ORG Sat Apr 23 11:48:02 2005 Return-Path: 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 3B21B16A4CE for ; Sat, 23 Apr 2005 11:48:02 +0000 (GMT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0676743D54 for ; Sat, 23 Apr 2005 11:47:57 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.30.114.143]) by comcast.net (rwcrmhc11) with ESMTP id <2005042311474101300rmi8be>; Sat, 23 Apr 2005 11:47:41 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost.127.in-addr.arpa [127.0.0.1])j3NBlkvv043382; Sat, 23 Apr 2005 07:47:46 -0400 (EDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)j3NBlk8L043381; Sat, 23 Apr 2005 07:47:46 -0400 (EDT) (envelope-from rodrigc) Date: Sat, 23 Apr 2005 07:47:45 -0400 From: Craig Rodrigues To: Randy Bush Message-ID: <20050423114745.GA43345@crodrigues.org> References: <16999.5087.868333.378085@roam.psg.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16999.5087.868333.378085@roam.psg.com> User-Agent: Mutt/1.5.9i cc: FreeBSD USB Subject: Re: sandisk usb freeze X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2005 11:48:02 -0000 On Wed, Apr 20, 2005 at 04:45:51PM -1000, Randy Bush wrote: > any pointers on how to best debug? Debugging USB stuff can be a bit ugly. One technique is to have USB_DEBUG set in your kernel config file, and then after rebooting, play with setting values of the following sysctls: hw.usb.umass.debug and hw.usb.debug . The other technique is to have two machines set up for kernel debugging, set a breakpoint somewhere in the USB code that would be accessed during an fdisk, and single step through the debugger until you hit the point where things reboot. It's not pretty.... -- Craig Rodrigues rodrigc@crodrigues.org