From owner-freebsd-usb@FreeBSD.ORG Sun Feb 27 08:27:31 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 7480216A4CE for ; Sun, 27 Feb 2005 08:27:31 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1988C43D55 for ; Sun, 27 Feb 2005 08:27:31 +0000 (GMT) (envelope-from dinkevich@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so654936wri for ; Sun, 27 Feb 2005 00:27:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:x-sender:x-mailer:date:to:subject:mime-version:content-type:from; b=Vy0d+aWhe2Yhh57hGGwF/QL1kXe6/ZbGZOk4Ag+ILEJzR6NELWo97e6DfPw6ZXe/+QIvmNWSNIE3oBmc3eI5MWNoWHBTgxlRGMe4Fkge3zo0EZ2wNrxUTdpjQUaPAOLeLmXZY6aFha/RuQF9lbCVtqdzZz0TZ54/Bn8+kQhdhWs= Received: by 10.54.54.78 with SMTP id c78mr16412wra; Sun, 27 Feb 2005 00:27:30 -0800 (PST) Received: from becker.Dinkevich.com ([194.90.113.98]) by smtp.gmail.com with ESMTP id d6sm1815wra.2005.02.27.00.27.29; Sun, 27 Feb 2005 00:27:30 -0800 (PST) Message-Id: <6.1.2.0.2.20050227102645.02a9d370@pop3> X-Sender: dinkevich@pop.gmail.com X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Sun, 27 Feb 2005 10:27:31 +0200 To: freebsd-usb@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed From: Boris Dinkevich Subject: 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, 27 Feb 2005 08:27:31 -0000 Hello everyone, ehci.c:378 - EWRITE4(sc, EHCI_CTRLDSSEGMENT, 0); should really be EOWRITE since its an operational register. I assume this list is the right place to send this kind of email to, correct me if I am wrong. Cheers, Boris From owner-freebsd-usb@FreeBSD.ORG Mon Feb 28 11:02:04 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 A319B16A52E for ; Mon, 28 Feb 2005 11:02:04 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A6A343D5C for ; Mon, 28 Feb 2005 11:02:04 +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.1/8.13.1) with ESMTP id j1SB24e2006821 for ; Mon, 28 Feb 2005 11:02:04 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1SB23Kl006812 for freebsd-usb@freebsd.org; Mon, 28 Feb 2005 11:02:03 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 28 Feb 2005 11:02:03 GMT Message-Id: <200502281102.j1SB23Kl006812@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, 28 Feb 2005 11:02:04 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2001/12/12] kern/32713 usb [usb] mouse detaches from hub and doesnt f [2002/01/13] kern/33839 usb usb0: host controller halted (involving A f [2002/04/07] i386/36850 usb Page Fault using ppp with USB Modem [4.9] f [2002/06/24] kern/39805 usb 4.6R install panics with umass0 device co 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 o [2002/12/29] kern/46618 usb USB (UHCI/ICH3) PALM connect/disconnect/c o [2003/02/17] kern/48359 usb SiS 5597/8 USB + uscanner breakage a [2003/03/02] kern/48849 usb Maxtor XT5000 causes panic in boot o [2003/03/05] kern/48952 usb uscanner0 hangs a [2003/03/20] kern/50149 usb Using Alcatel SpeedTouch results in "usb0 a [2003/08/14] kern/55587 usb null dereference in usbdi.c: usb_transfer 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 ( o [2004/01/11] kern/61191 usb [usb] panic: USB vs. Serial problems o [2004/01/15] kern/61377 usb [kbd] usb keyboard not functional after b o [2004/01/20] kern/61627 usb [usb] [patch] New USB printer not support f [2004/01/23] kern/61804 usb [panic] panic with hitachi travelstar USB 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 o [2004/01/30] kern/62123 usb [usb] LaCie 160GB USB drive umass: BBB re o [2004/02/23] i386/63251 usb [usb] USB stops working after 2nd APM sus o [2004/02/26] kern/63375 usb [patch] panic: unplugging USB devices pan o [2004/03/01] kern/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/04/07] kern/65292 usb [panic] random page faults (usb-related?) o [2004/04/19] i386/65783 usb [panic] Panic when attaching card reader 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/09/27] kern/72119 usb Detaching USB Memory Stick w/o umount cau f [2004/10/11] i386/72497 usb WD USB Disk Panics -stable and 5.2.1 o [2004/10/29] kern/73295 usb Lock order reversal in USB code. o [2004/10/30] kern/73307 usb Kernel panics on USB disconnect o [2004/11/18] kern/74088 usb ohci ehci uhub: port disabled on connecti o [2005/01/08] usb/75941 usb system halted during booting due to ehci 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 o [2005/01/21] usb/76555 usb PNY USB DISK 2.0 USB thumbdrive causes wo o [2005/01/25] usb/76684 usb Toshiba PDR-M4 camera connected via USB h o [2005/01/25] usb/76687 usb ugen USB_SET_TIMEOUT panics kernel when t o [2005/01/26] usb/76727 usb usb printing locks machine o [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/09] usb/77315 usb unproperly detached (without unmounting) o [2005/02/16] usb/77604 usb Sluggish Logitch LX700 USB Mouse 48 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/04/23] kern/37374 usb [PATCH] closing ums0 blocks with wmesg uh f [2002/05/04] conf/37732 usb usbd start in wrong place in /etc/rc in 4 o [2002/05/23] kern/38452 usb [usb] Logitech USB iFeel: device_probe_an o [2002/07/16] kern/40657 usb [usb] Logitech iFeel usb mouse will not a o [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 f [2002/08/30] bin/42213 usb moused(8) seems to delay some mouse event f [2002/10/25] kern/44450 usb USB support FAILURE for device that was s o [2003/01/18] kern/47200 usb USB port is disabled when Kodak DX4900 is o [2003/02/06] kern/48014 usb [usb] moused fails to correctly identify o [2003/02/16] bin/48342 usb [PATCH] usbd dynamic device list. o [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 o [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 o [2004/01/14] kern/61365 usb FreeBSD resets when I turn off monitor w/ o [2004/02/13] kern/62788 usb need quirks for Super Talent Flash USB 2. o [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 o [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 o [2004/11/02] i386/73421 usb [usb] USB not recgnized/working on Toshib o [2004/11/16] kern/73999 usb [usb] USB Freezes when a device is plugge 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 o [2005/02/24] usb/78028 usb The system must tell users information of 48 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Feb 28 18:30:16 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 3CBDF16A4CE for ; Mon, 28 Feb 2005 18:30:16 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C7E843D69 for ; Mon, 28 Feb 2005 18:30:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1SIUFM6074041 for ; Mon, 28 Feb 2005 18:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1SIUFB0074039; Mon, 28 Feb 2005 18:30:15 GMT (envelope-from gnats) Resent-Date: Mon, 28 Feb 2005 18:30:15 GMT Resent-Message-Id: <200502281830.j1SIUFB0074039@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, Jan-Espen Pettersen Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F28B16A4FD for ; Mon, 28 Feb 2005 18:29:21 +0000 (GMT) Received: from endeavour.localnet.radiotube.org (enterprise.radiotube.org [81.0.166.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD25A43D5E for ; Mon, 28 Feb 2005 18:29:17 +0000 (GMT) (envelope-from sigsegv@endeavour.localnet.radiotube.org) Received: from endeavour.localnet.radiotube.org (localhost [127.0.0.1]) j1SITDnD003790 for ; Mon, 28 Feb 2005 19:29:13 +0100 (CET) (envelope-from sigsegv@endeavour.localnet.radiotube.org) Received: (from sigsegv@localhost)j1SIT6sb003645; Mon, 28 Feb 2005 19:29:06 +0100 (CET) (envelope-from sigsegv) Message-Id: <200502281829.j1SIT6sb003645@endeavour.localnet.radiotube.org> Date: Mon, 28 Feb 2005 19:29:06 +0100 (CET) From: Jan-Espen Pettersen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: usb/78208: ulpt page fault X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jan-Espen Pettersen List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2005 18:30:16 -0000 >Number: 78208 >Category: usb >Synopsis: ulpt page fault >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 28 18:30:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Signal11 >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD endeavour.localnet.radiotube.org 5.3-STABLE FreeBSD 5.3-STABLE #10: Mon Feb 28 18:45:10 CET 2005 root@endeavour.localnet.radiotube.org:/usr/obj/usr/src/FreeBSD-5/sys/ENDEAVOUR i386 >Description: I got this page fault trap just after printing via ulpt. The pages came out just fine, which is why I think this problem is about handling EOF or close of transaction with /dev/ulpt0. To me this looks like a timer (as the name *_tick) which probably was not stopped in time, and therefore didn't have a valid xfer pointer to pass to the setup routine. These crashes has been going on for a while, but I haven't been able to get crashdumps before recently when I started to press Ctrl+Alt+F1 shortly after starting the print jobs. gdb analysis of crash dump: endeavour.root# gdb53 -k ./kernel.24 -c vmcore.24 GNU gdb 5.3 (FreeBSD) Copyright 2002 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-portbld-freebsd5.3"... panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor write, page not present instruction pointer = 0x8:0xc04dad19 stack pointer = 0x10:0xe2495c6c frame pointer = 0x10:0xe2495c6c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 27 (swi5: clock sio) Dumping 959 MB 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 3 52 368 384 400 416 432 448 464 480 496 512 528 544 560 576 592 608 624 640 656 6 72 688 704 720 736 752 768 784 800 816 832 848 864 880 896 912 928 944 --- #0 doadump () at pcpu.h:159 159 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt #0 doadump () at pcpu.h:159 #1 0xc0464075 in db_fncall (dummy1=0, dummy2=0, dummy3=1999, dummy4=0xe2495a78 " \024uĀ\f") at /usr/src/FreeBSD-5/sys/ddb/db_command.c:531 #2 0xc0463df2 in db_command (last_cmdp=0xc0750b24, cmd_table=0x0, aux_cmd_tablep=0xc071cd24, aux_cmd_tablep_end=0xc071cd28) at /usr/src/FreeBSD-5/sys/ddb/db_command.c:349 #3 0xc0463efa in db_command_loop () at /usr/src/FreeBSD-5/sys/ddb/db_command.c:455 #4 0xc0465f45 in db_trap (type=12, code=0) at /usr/src/FreeBSD-5/sys/ddb/db_main.c:221 #5 0xc0553297 in kdb_trap (type=0, code=0, tf=0xe2495c2c) at /usr/src/FreeBSD-5/sys/kern/subr_kdb.c:418 #6 0xc06d0d98 in trap_fatal (frame=0xe2495c2c, eva=0) at /usr/src/FreeBSD-5/sys/i386/i386/trap.c:804 #7 0xc06d0ac3 in trap_pfault (frame=0xe2495c2c, usermode=0, eva=0) at /usr/src/FreeBSD-5/sys/i386/i386/trap.c:727 #8 0xc06d064d in trap (frame= {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1034175360, tf_esi = 4, tf_ ebp = -498508692, tf_isp = -498508712, tf_ebx = -1034175360, tf_edx = 0, tf_ecx = -1034175312, tf_eax = 0, tf_trapno = 12, tf_err = 2, tf_eip = -1068651239, tf_ cs = 8, tf_eflags = 66118, tf_esp = -498508648, tf_ss = -1068687391}) at /usr/src/FreeBSD-5/sys/i386/i386/trap.c:417 #9 0xc04dad19 in usbd_setup_xfer (xfer=0x0, pipe=0x0, priv=0x0, buffer=0x0, ---Type to continue, or q to quit--- length=0, flags=5, timeout=0, callback=0) at /usr/src/FreeBSD-5/sys/dev/usb/usbdi.c:430 #10 0xc04d1fe1 in ulpt_tick (xsc=0xc25bbc80) at /usr/src/FreeBSD-5/sys/dev/usb/ulpt.c:835 #11 0xc05456ce in softclock (dummy=0x0) at /usr/src/FreeBSD-5/sys/kern/kern_timeout.c:259 #12 0xc051d670 in ithread_loop (arg=0xc2559500) at /usr/src/FreeBSD-5/sys/kern/kern_intr.c:547 #13 0xc051c44f in fork_exit (callout=0xc051d4d0 , arg=0x0, frame=0x0) at /usr/src/FreeBSD-5/sys/kern/kern_fork.c:807 (kgdb) up 9 #9 0xc04dad19 in usbd_setup_xfer (xfer=0x0, pipe=0x0, priv=0x0, buffer=0x0, length=0, flags=5, timeout=0, callback=0) at /usr/src/FreeBSD-5/sys/dev/usb/usbdi.c:430 430 xfer->pipe = pipe; (kgdb) print xfer $1 = 0x0 (kgdb) up #10 0xc04d1fe1 in ulpt_tick (xsc=0xc25bbc80) at /usr/src/FreeBSD-5/sys/dev/usb/ulpt.c:835 warning: Source file is more recent than executable. 835 if (sc->sc_in_xfer != NULL) (kgdb) print xsc $2 = (void *) 0xc25bbc80 (kgdb) print ((struct ulpt_softc *) xsc)->sc_in_xfer $3 = 0x0 (kgdb) print ((struct ulpt_softc *) xsc)->sc_has_callout $5 = 0 full 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.3-STABLE #10: Mon Feb 28 18:45:10 CET 2005 root@endeavour.localnet.radiotube.org:/usr/obj/usr/src/FreeBSD-5/sys/ENDEAVO UR Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) XP (2018.87-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x681 Stepping = 1 Features=0x383fbff AMD Features=0xc0400000 real memory = 1006567424 (959 MB) avail memory = 971202560 (926 MB) ACPI: overriding DSDT/SSDT with custom table ACPI-0377: *** Info: Table [DSDT] replaced by host OS acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_tz0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.1 (no driver attached) pci0: at device 0.2 (no driver attached) pci0: at device 0.3 (no driver attached) pci0: at device 0.4 (no driver attached) pci0: at device 0.5 (no driver attached) isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) ohci0: mem 0xef003000-0xef003fff irq 12 at devic e 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ums0: Logitech USB Receiver, rev 1.10/23.02, addr 2, iclass 3/1 ums0: 7 buttons and Z dir. uhid0: THRUSTMASTER Top Gun Fox 2 Pro, rev 1.10/1.00, addr 3, iclass 3/0 ulpt0: Samsung Electronics Co., Ltd. Samsung ML-1710, rev 1.10/1.00, addr 4, icl ass 7/1 ulpt0: using bi-directional mode ohci1: mem 0xef004000-0xef004fff irq 5 at device 2.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered umass0: ICSI USB2.0 Card Reader, rev 2.00/1.6b, addr 2 xpt_release_device: xpt_release_target: . done. xpt_release_target: done. pci0: at device 2.2 (no driver attached) pci0: at device 4.0 (no driver attached) pcm0: port 0xd800-0xd87f,0xd400-0xd4ff mem 0xef001000-0xef001ff f irq 5 at device 6.0 on pci0 pcm0: [GIANT-LOCKED] pcm0: pcib1: at device 8.0 on pci0 pci1: on pcib1 rl0: port 0xc000-0xc0ff mem 0xee000000-0xee0000ff ir q 5 at device 10.0 on pci1 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:0a:cd:05:58:21 atapci0: port 0xf000-0xf00f,0x376,0x170-0x17 7,0x3f6,0x1f0-0x1f7 at device 9.0 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pcib2: at device 30.0 on pci0 pci2: on pcib2 nvidia0: mem 0xe8000000-0xe807ffff,0xe4000000-0xe7f fffff,0xec000000-0xecffffff irq 12 at device 0.0 on pci2 nvidia0: [GIANT-LOCKED] fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on ac pi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] npx0: [FAST] npx0: on motherboard npx0: INT 16 interface orm0: at iomem 0xc0000-0xcafff 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 2018871828 Hz quality 800 Timecounters tick every 10.000 msec ad0: 152627MB [310101/16/63] at ata0-master UDMA100 acd0: CDROM at ata1-master PIO4 acd1: CDRW at ata1-slave UDMA33 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:25,0 (da0:umass-sim0:0:0:0): Logical unit not supported (da0:umass-sim0:0:0:0): fatal error, failed to attach to device (da0:umass-sim0:0:0:0): lost device (da1:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:1): ILLEGAL REQUEST asc:25,0 (da1:umass-sim0:0:0:1): Logical unit not supported (da1:umass-sim0:0:0:1): fatal error, failed to attach to device (da1:umass-sim0:0:0:1): lost device (da2:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:2): ILLEGAL REQUEST asc:25,0 (da2:umass-sim0:0:0:2): Logical unit not supported (da2:umass-sim0:0:0:2): fatal error, failed to attach to device (da2:umass-sim0:0:0:2): lost device (da3:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da3:umass-sim0:0:0:3): ILLEGAL REQUEST asc:25,0 (da3:umass-sim0:0:0:3): Logical unit not supported (da3:umass-sim0:0:0:3): fatal error, failed to attach to device (da3:umass-sim0:0:0:3): lost device (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:25,0 (da0:umass-sim0:0:0:0): Logical unit not supported (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 Mounting root from ufs:/dev/ad0s1a >How-To-Repeat: I have had some random panics with ulpt. It doesn't panic every time I print something, but at random fairly often. >Fix: I suggest something like this. Which at least prevents a page fault (NULL-ptr): Index: sys/dev/usb/ulpt.c =================================================================== RCS file: /usr/ncvs/src/sys/dev/usb/ulpt.c,v retrieving revision 1.65 diff -u -r1.65 ulpt.c --- sys/dev/usb/ulpt.c 15 Aug 2004 23:39:18 -0000 1.65 +++ sys/dev/usb/ulpt.c 28 Feb 2005 18:24:08 -0000 @@ -832,10 +832,13 @@ DPRINTFN(1,("ulpt_tick: start sc=%p\n", sc)); - usbd_setup_xfer(sc->sc_in_xfer, sc->sc_in_pipe, sc, sc->sc_in_buf, - ULPT_BSIZE, USBD_NO_COPY | USBD_SHORT_XFER_OK, - ULPT_READ_TIMO, ulpt_read_cb); - err = usbd_transfer(sc->sc_in_xfer); + if (sc->sc_in_xfer != NULL) { + usbd_setup_xfer(sc->sc_in_xfer, sc->sc_in_pipe, + sc, sc->sc_in_buf, ULPT_BSIZE, + USBD_NO_COPY | USBD_SHORT_XFER_OK, + ULPT_READ_TIMO, ulpt_read_cb); + err = usbd_transfer(sc->sc_in_xfer); + } DPRINTFN(1,("ulpt_tick: err=%d\n", err)); } >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Mar 1 15:45:30 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 30F7316A4D0 for ; Tue, 1 Mar 2005 15:45:30 +0000 (GMT) Received: from tuminfo2.informatik.tu-muenchen.de (tuminfo2.informatik.tu-muenchen.de [131.159.0.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CBDF43D1D for ; Tue, 1 Mar 2005 15:45:29 +0000 (GMT) (envelope-from euro@i.com.ua) From: Eugene Rogoza To: freebsd-usb@freebsd.org Content-Type: text/plain Date: Tue, 01 Mar 2005 16:45:32 +0100 Message-Id: <1109691932.959.26.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new/sophie/sophos at mailrelay2.informatik.tu-muenchen.de Subject: USB printing problem: /dev/ulpt0: device busy X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: euro@i.com.ua List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 15:45:30 -0000 Hello everybody, I'm experiencing certain problems with USB printing. I have a Minolta PagePro 1300W printer connected to USB port. FreeBSD 5.3 recognizes the printer just fine and creates /dev/ulpt0 and /dev/unlpt0 device nodes. But the simple test like echo "test" > /dev/ulpt0 (or /dev/unlpt0) fails with the message "/dev/ulpt0: device busy". And, respectively, if simple tests fail, then the complicated printing via ghostscript -> filter -> driver also doesn't work. I suppose some program uses the device already, but I don't know what it can be - I'm not running lpd (device is busy either with lpd running or not). There isn't really much regarding this problem on the net. Usually people have their USB printers working. Any suggestions are appreciated. Eugene Rogoza From owner-freebsd-usb@FreeBSD.ORG Tue Mar 1 18:40:04 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 9999916A4CE for ; Tue, 1 Mar 2005 18:40:04 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 498AF43D46 for ; Tue, 1 Mar 2005 18:40:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j21Ie4Il086923 for ; Tue, 1 Mar 2005 18:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j21Ie35q086920; Tue, 1 Mar 2005 18:40:03 GMT (envelope-from gnats) Date: Tue, 1 Mar 2005 18:40:03 GMT Message-Id: <200503011840.j21Ie35q086920@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Kazuhito HONDA Subject: Re: usb/78028: The system must tell users information of a USB sound device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kazuhito HONDA List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 18:40:04 -0000 The following reply was made to PR usb/78028; it has been noted by GNATS. From: Kazuhito HONDA To: Alexander@Leidinger.net Cc: FreeBSD-gnats-submit@freebsd.org, kazuhito@ph.noda.tus.ac.jp Subject: Re: usb/78028: The system must tell users information of a USB sound device. Date: Wed, 02 Mar 2005 03:39:13 +0900 (JST) From: Alexander Leidinger Subject: Re: usb/78028: The system must tell users information of a USB sound device. Date: Fri, 25 Feb 2005 11:54:16 +0100 > Don't you think this information is better suited in the otput of > /dev/sndstat? Right. But I don't know the management of /dev/sndstat. are three patches bellow correct? Sincerely tours, Kazuhito HONDA --- uaudio.c.orig Thu Jan 6 10:43:22 2005 +++ uaudio.c Wed Mar 2 03:12:46 2005 @@ -72,6 +72,7 @@ #include #if defined(__FreeBSD__) #include +#include #endif #if defined(__NetBSD__) || defined(__OpenBSD__) @@ -83,6 +84,7 @@ #elif defined(__FreeBSD__) #include /* XXXXX */ #include +#include "feeder_if.h" #endif #include @@ -234,6 +236,10 @@ int sc_nctls; /* # of mixer controls */ device_ptr_t sc_audiodev; char sc_dying; +#if defined(__FreeBSD__) + struct sbuf uaudio_sndstat; + int uaudio_sndstat_flag; +#endif }; struct terminal_list { @@ -444,6 +450,7 @@ #elif defined(__FreeBSD__) Static int audio_attach_mi(device_t); Static int uaudio_init_params(struct uaudio_softc * sc, struct chan *ch, int mode); +static int uaudio_sndstat_prepare_pcm(struct sbuf *s, device_t dev, int verbose); /* for NetBSD compatibirity */ #define AUMODE_PLAY 0x01 @@ -642,6 +649,9 @@ { USB_DETACH_START(uaudio, sc); + sbuf_delete(&(sc->uaudio_sndstat)); + sc->uaudio_sndstat_flag = 0; + sc->sc_dying = 1; #if 0 /* XXX */ @@ -2068,6 +2078,27 @@ printf("Hz\n"); } #endif +#if defined(__FreeBSD__) + if (sc->uaudio_sndstat_flag != 0) { + sbuf_printf(&(sc->uaudio_sndstat), "\n\t"); + sbuf_printf(&(sc->uaudio_sndstat), + "%s: %dch, %d/%dbit, %s,", + dir == UE_DIR_IN ? "recording" : "playback", + chan, prec, asf1d->bSubFrameSize * 8, format_str); + if (asf1d->bSamFreqType == UA_SAMP_CONTNUOUS) { + sbuf_printf(&(sc->uaudio_sndstat), " %d-%dHz", + UA_SAMP_LO(asf1d), UA_SAMP_HI(asf1d)); + } else { + int r; + sbuf_printf(&(sc->uaudio_sndstat), + " %d", UA_GETSAMP(asf1d, 0)); + for (r = 1; r < asf1d->bSamFreqType; r++) + sbuf_printf(&(sc->uaudio_sndstat), + ",%d", UA_GETSAMP(asf1d, r)); + sbuf_printf(&(sc->uaudio_sndstat), "Hz"); + } + } +#endif ai.alt = id->bAlternateSetting; ai.encoding = enc; ai.attributes = sed->bmAttributes; @@ -2106,6 +2137,11 @@ if (id == NULL) return (USBD_INVAL); +#if defined(__FreeBSD__) + sc->uaudio_sndstat_flag = 0; + if (sbuf_new(&(sc->uaudio_sndstat), NULL, 4096, SBUF_AUTOEXTEND) != NULL) + sc->uaudio_sndstat_flag = 1; +#endif /* Loop through all the alternate settings. */ while (offs <= size) { DPRINTFN(2, ("uaudio_identify: interface=%d offset=%d\n", @@ -2132,6 +2168,9 @@ if (id == NULL) break; } +#if defined(__FreeBSD__) + sbuf_finish(&(sc->uaudio_sndstat)); +#endif if (offs > size) return (USBD_INVAL); DPRINTF(("uaudio_identify_as: %d alts available\n", sc->sc_nalts)); @@ -4171,6 +4210,118 @@ return (1 << mc->slctrtype[mc->minval - 1]); } +static int +uaudio_sndstat_prepare_pcm(struct sbuf *s, device_t dev, int verbose) +{ + struct snddev_info *d; + struct snddev_channel *sce; + struct pcm_channel *c; + struct pcm_feeder *f; + int pc, rc, vc; + device_t pa_dev = device_get_parent(dev); + struct uaudio_softc *sc = device_get_softc(pa_dev); + + if (verbose < 1) + return 0; + + d = device_get_softc(dev); + if (!d) + return ENXIO; + + snd_mtxlock(d->lock); + if (SLIST_EMPTY(&d->channels)) { + sbuf_printf(s, " (mixer only)"); + snd_mtxunlock(d->lock); + return 0; + } + pc = rc = vc = 0; + SLIST_FOREACH(sce, &d->channels, link) { + c = sce->channel; + if (c->direction == PCMDIR_PLAY) { + if (c->flags & CHN_F_VIRTUAL) + vc++; + else + pc++; + } else + rc++; + } + sbuf_printf(s, " (%dp/%dr/%dv channels%s%s)", + d->playcount, d->reccount, d->vchancount, + (d->flags & SD_F_SIMPLEX)? "" : " duplex", +#ifdef USING_DEVFS + (device_get_unit(dev) == snd_unit)? " default" : "" +#else + "" +#endif + ); + + if (sc->uaudio_sndstat_flag != 0) { + sbuf_cat(s, sbuf_data(&(sc->uaudio_sndstat))); + } + + if (verbose <= 1) { + snd_mtxunlock(d->lock); + return 0; + } + + SLIST_FOREACH(sce, &d->channels, link) { + c = sce->channel; + sbuf_printf(s, "\n\t"); + + /* it would be better to indent child channels */ + sbuf_printf(s, "%s[%s]: ", c->parentchannel? c->parentchannel->name : "", c->name); + sbuf_printf(s, "spd %d", c->speed); + if (c->speed != sndbuf_getspd(c->bufhard)) + sbuf_printf(s, "/%d", sndbuf_getspd(c->bufhard)); + sbuf_printf(s, ", fmt 0x%08x", c->format); + if (c->format != sndbuf_getfmt(c->bufhard)) + sbuf_printf(s, "/0x%08x", sndbuf_getfmt(c->bufhard)); + sbuf_printf(s, ", flags 0x%08x, 0x%08x", c->flags, c->feederflags); + if (c->pid != -1) + sbuf_printf(s, ", pid %d", c->pid); + sbuf_printf(s, "\n\t"); + + if (c->bufhard != NULL && c->bufsoft != NULL) { + sbuf_printf(s, "interrupts %d, ", c->interrupts); + if (c->direction == PCMDIR_REC) + sbuf_printf(s, "overruns %d, hfree %d, sfree %d", + c->xruns, sndbuf_getfree(c->bufhard), sndbuf_getfree(c->bufsoft)); + else + sbuf_printf(s, "underruns %d, ready %d", + c->xruns, sndbuf_getready(c->bufsoft)); + sbuf_printf(s, "\n\t"); + } + + sbuf_printf(s, "{%s}", (c->direction == PCMDIR_REC)? "hardware" : "userland"); + sbuf_printf(s, " -> "); + f = c->feeder; + while (f->source != NULL) + f = f->source; + while (f != NULL) { + sbuf_printf(s, "%s", f->class->name); + if (f->desc->type == FEEDER_FMT) + sbuf_printf(s, "(0x%08x -> 0x%08x)", f->desc->in, f->desc->out); + if (f->desc->type == FEEDER_RATE) + sbuf_printf(s, "(%d -> %d)", FEEDER_GET(f, FEEDRATE_SRC), FEEDER_GET(f, FEEDRATE_DST)); + if (f->desc->type == FEEDER_ROOT || f->desc->type == FEEDER_MIXER) + sbuf_printf(s, "(0x%08x)", f->desc->out); + sbuf_printf(s, " -> "); + f = f->parent; + } + sbuf_printf(s, "{%s}", (c->direction == PCMDIR_REC)? "userland" : "hardware"); + } + snd_mtxunlock(d->lock); + + return 0; +} + +void +uaudio_sndstat_register(device_t dev) +{ + struct snddev_info *d = device_get_softc(dev); + sndstat_register(dev, d->status, uaudio_sndstat_prepare_pcm); +} + Static int audio_attach_mi(device_t dev) { --- uaudio_pcm.c.orig Thu Feb 24 00:38:11 2005 +++ uaudio_pcm.c Wed Mar 2 02:40:07 2005 @@ -336,6 +336,9 @@ return(ENXIO); } + sndstat_unregister(dev); + uaudio_sndstat_register(dev); + pcm_addchan(dev, PCMDIR_PLAY, &ua_chan_class, ua); #ifndef NO_RECORDING pcm_addchan(dev, PCMDIR_REC, &ua_chan_class, ua); --- uaudio.h.orig Thu Feb 24 00:38:03 2005 +++ uaudio.h Wed Mar 2 02:50:20 2005 @@ -50,3 +50,4 @@ u_int32_t uaudio_query_mix_info(device_t dev); u_int32_t uaudio_query_recsrc_info(device_t dev); void uaudio_query_formats(device_t dev, u_int32_t *pfmt, u_int32_t *rfmt); +void uaudio_sndstat_register(device_t dev); From owner-freebsd-usb@FreeBSD.ORG Fri Mar 4 11:10:23 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 D890216A4CE for ; Fri, 4 Mar 2005 11:10:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AB6143D49 for ; Fri, 4 Mar 2005 11:10:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j24BANbA008262 for ; Fri, 4 Mar 2005 11:10:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j24BANLM008255; Fri, 4 Mar 2005 11:10:23 GMT (envelope-from gnats) Date: Fri, 4 Mar 2005 11:10:23 GMT Message-Id: <200503041110.j24BANLM008255@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Alexander Leidinger Subject: Re: usb/78028: The system must tell users information of a USB sound device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alexander Leidinger List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2005 11:10:24 -0000 The following reply was made to PR usb/78028; it has been noted by GNATS. From: Alexander Leidinger To: Kazuhito HONDA Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/78028: The system must tell users information of a USB sound device. Date: Fri, 4 Mar 2005 12:00:21 +0100 Kazuhito HONDA wrote: > Right. But I don't know the management of /dev/sndstat. > are three patches bellow correct? At least they work and produce the following output: ---snip--- pcm0: at addr ? (1p/1r/0v channels duplex default) playback: 2ch, 16/16bit, pcm, 44100Hz playback: 2ch, 24/24bit, pcm, 44100Hz playback: 4ch, 16/16bit, pcm, 44100Hz playback: 4ch, 24/24bit, pcm, 44100Hz playback: 6ch, 16/16bit, pcm, 44100Hz playback: 6ch, 24/24bit, pcm, 44100Hz playback: 2ch, 16/16bit, pcm, 48000Hz playback: 2ch, 24/24bit, pcm, 48000Hz playback: 4ch, 16/16bit, pcm, 48000Hz playback: 4ch, 24/24bit, pcm, 48000Hz playback: 6ch, 16/16bit, pcm, 48000Hz playback: 6ch, 24/24bit, pcm, 48000Hz playback: 2ch, 16/16bit, pcm, 96000Hz playback: 2ch, 24/24bit, pcm, 96000Hz recording: 2ch, 16/16bit, pcm, 44100Hz recording: 2ch, 24/24bit, pcm, 44100Hz recording: 2ch, 16/16bit, pcm, 48000Hz recording: 2ch, 24/24bit, pcm, 48000Hz recording: 2ch, 16/16bit, pcm, 96000Hz recording: 2ch, 24/24bit, pcm, 96000Hz ---snip--- Maybe there should be a descriptive text before those lines, e.g. "Supported formats:" or something like this. This is an: ---snip--- uaudio0: Creative Technology SB Live! 24-bit External, rev 1.10/1.00, addr 2 uaudio0: audio rev 1.00 pcm0: on uaudio0 ---snip--- Some style(9) issues I found: > @@ -444,6 +450,7 @@ > #elif defined(__FreeBSD__) > Static int audio_attach_mi(device_t); > Static int uaudio_init_params(struct uaudio_softc * sc, struct chan > *ch, int mode); > +static int uaudio_sndstat_prepare_pcm(struct sbuf *s, device_t dev, > int verbose); It has to be "Static" (uppercase 'S') to fit the style of the file. > @@ -4171,6 +4210,118 @@ > return (1 << mc->slctrtype[mc->minval - 1]); > } > > +static int > +uaudio_sndstat_prepare_pcm(struct sbuf *s, device_t dev, int verbose) Here too. uaudio doesn't has io or irq resources assigned to it, but is there a way to display the kld which provides the driver (AFAIR the driver is responsible to fill out at least the kld part)? Here's an example of what I talk about: ---snip--- pcm1: at io 0xe100 irq 5 kld snd_via8233 (5p/1r/0v channels duplex) ---snip--- Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 The explanation requiring the fewest assumptions is the most likely to be correct. -- William of Occam From owner-freebsd-usb@FreeBSD.ORG Fri Mar 4 19:10:18 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 7F82A16A4CE for ; Fri, 4 Mar 2005 19:10:18 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1B4043D53 for ; Fri, 4 Mar 2005 19:10:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j24JAHpK066863 for ; Fri, 4 Mar 2005 19:10:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j24JAHvs066858; Fri, 4 Mar 2005 19:10:17 GMT (envelope-from gnats) Resent-Date: Fri, 4 Mar 2005 19:10:17 GMT Resent-Message-Id: <200503041910.j24JAHvs066858@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, Sebastien Bourdeauducq Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36C4316A4CE for ; Fri, 4 Mar 2005 19:07:35 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07FFD43D54 for ; Fri, 4 Mar 2005 19:07:35 +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 j24J7YeF038769 for ; Fri, 4 Mar 2005 19:07:34 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j24J7YSc038767; Fri, 4 Mar 2005 19:07:34 GMT (envelope-from nobody) Message-Id: <200503041907.j24J7YSc038767@www.freebsd.org> Date: Fri, 4 Mar 2005 19:07:34 GMT From: Sebastien Bourdeauducq To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/78426: Interrupts never come on EHCI pipes 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, 04 Mar 2005 19:10:18 -0000 >Number: 78426 >Category: usb >Synopsis: Interrupts never come on EHCI pipes >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 04 19:10:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Sebastien Bourdeauducq >Release: 5.3 >Organization: None >Environment: FreeBSD oasis 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Feb 11 15:24:11 CET 2005 seb@oasis:/usr/src/sys/i386/compile/STANDARD i386 >Description: When EHCI is enabled, data sent on the interrupt pipe by Prism and NET2280-based wireless devices is never received. The problem doesn't only appear on my computer nor with my particular wireless device (Siemens Gigaset USB Adapter 54) I also posted on the USB mailing list, see http://lists.freebsd.org/pipermail/freebsd-usb/2005-January/000608.html >How-To-Repeat: Download the driver from http://yoshiyo.ath.cx/seb/prism54_freebsd.html If using EHCI, the driver will never get the interrupt which occurs right after the firmware upload. If using UHCI, it will work. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Mar 4 23:40:31 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 7FF1516A4CF; Fri, 4 Mar 2005 23:40:31 +0000 (GMT) Received: from postal.netaxs.com (postal.netaxs.com [207.8.186.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 751FB43D39; Fri, 4 Mar 2005 23:40:30 +0000 (GMT) (envelope-from clear@alum.mit.edu) Received: from [127.0.0.1] (root@unix5.netaxs.com [207.8.186.7]) j24NeRLc020963; Fri, 4 Mar 2005 18:40:28 -0500 (EST) Message-ID: <4228F1EA.8000606@alum.mit.edu> Date: Fri, 04 Mar 2005 18:40:26 -0500 From: Jed Clear Organization: Dis User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en,pdf MIME-Version: 1.0 To: freebsd-usb@freebsd.org, freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Belkin PS/2 to USB converter, Not Pointing 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, 04 Mar 2005 23:40:31 -0000 Installing the IOGear GCS1734 USB KVM seems to have made the whole issue go away. Of course installing the KVM took a few tries to find the "right" power cycling and reboot combination to get any functionality. It looked like the whole USB infrastructure of the KVM was DoA, initially. On the other hand, neither mouse, nor keyboard, was working until I moved the KVM USB to the other USB port on the AX5 motherboard. Ah, the joys of old hardware. I'll probably get a new USB keyboard and trackball one of these days. The trackball lost even more functionality under widows with this latch up, than with the old KVM. -Jed