From owner-freebsd-bugs Sat Apr 14 3:30:24 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B5B5B37B43E for ; Sat, 14 Apr 2001 03:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3EAU2a97934; Sat, 14 Apr 2001 03:30:02 -0700 (PDT) (envelope-from gnats) Received: from daconcepts.dyndns.org (wks-166-129-114.kscable.com [24.166.129.114]) by hub.freebsd.org (Postfix) with ESMTP id AB75C37B446 for ; Sat, 14 Apr 2001 03:20:53 -0700 (PDT) (envelope-from natedac@daconcepts.dyndns.org) Received: (from natedac@localhost) by daconcepts.dyndns.org (8.11.3/8.11.3) id f3EADcD03104; Sat, 14 Apr 2001 05:13:38 -0500 (CDT) (envelope-from natedac) Message-Id: <200104141013.f3EADcD03104@daconcepts.dyndns.org> Date: Sat, 14 Apr 2001 05:13:38 -0500 (CDT) From: natedac@kscable.com Reply-To: natedac@kscable.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: kern/26567: Unable to re-start mouse driver after driver failure or disconnect. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26567 >Category: kern >Synopsis: Mouse driver will not properly restart if it dies or the mouse gets unplugged. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 14 03:30:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Nate Dannenberg >Release: FreeBSD 4.3-RC i386 >Organization: N/A >Environment: System: FreeBSD daconcepts.dyndns.org 4.3-RC FreeBSD 4.3-RC #4: Wed Apr 4 13:36:26 CDT 2001 natedac@daconcepts.dyndns.org:/usr/src/sys/compile/PICCOLO i386 Machine type is irrelevant - this has occurred since at least 4.1-Release, and has happened on at least three completely different machines with three different mice. They are: 1) A Compaq Presario 425 (with a 486 DX/4 upgrade processor), 16MB RAM, stock Compaq mouse. Machine is temporarily available, running 4.2-Release GENERIC kernel. Dmesg output not avilable. 2) A Compaq Presario 4764 - P166 with 24 MB RAM and IBM mouse. Machine ran 4-Stable, but has been taken out of FreeBSD service (runs Windows now, no problems with the mouse there). 3) IBM Aptiva - 550 MHz Athlon with 96 MB RAM and Fellowes GelMouse (also occurs using the stock IBM mouse). This machine is the only one in service, but when it ran Windows 98, there were no mouse problems. Dmesg output from this machine: Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.3-RC #4: Wed Apr 4 13:36:26 CDT 2001 natedac@daconcepts.dyndns.org:/usr/src/sys/compile/PICCOLO Timecounter "i8254" frequency 1193182 Hz CPU: AMD-K7(tm) Processor (548.94-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x612 Stepping = 2 Features=0x81f9ff AMD Features=0xc0400000 real memory = 100532224 (98176K bytes) avail memory = 94580736 (92364K bytes) Preloaded elf kernel "kernel" at 0xc032f000. md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 5.0 irq 11 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xcb00-0xcb0f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 chip1: at device 7.3 on pci0 ohci0: mem 0xffafe000-0xffafefff irq 10 at device 7.4 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered sis0: port 0xf800-0xf8ff mem 0xffaff000-0xffafffff irq 11 at device 17.0 on pci0 sis0: Ethernet address: 00:02:e3:09:c0:a4 miibus0: on sis0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: (vendor=0x125d, dev=0x1969) at 19.0 irq 9 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model NetMouse/NetScroll Optical, device ID 0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 IP packet filtering initialized, divert enabled, rule-based forwarding disabled, default to deny, logging disabled IPv6 packet filtering initialized, logging disabled ata0-master: DMA limited to UDMA33, non-ATA66 compliant cable ad0: 19473MB [39566/16/63] at ata0-master UDMA33 acd0: DVD-ROM at ata1-master using PIO4 acd1: CD-RW at ata1-slave using PIO4 Mounting root from ufs:/dev/ad0s1a pcm0: port 0xffe4-0xffe7,0xfff0-0xfff3,0xff90-0xff9f,0xffa0-0xffaf,0xff00-0xff3f irq 9 at device 19.0 on pci0 >Description: ******* * This PR is very closely related to another PR: * * "Mouse driver will die if you move mouse and hold a key (e.g. ALT)" * * These two PR's were prepared at the same time, hence the lack of reference * numbers. ******* Attempting to restart moused either by a kill -HUP or by kill -TERM and restarting manually causes the mouse to be incorrectly initialized, resulting in completely erratic pointer movements. The driver responds to mouse activity, but nowhere close to what it should be doing. This has happened since 4.0-Release, as tested on the above Presario 425. The Presario 4764 first ran 4.1-Release, if I remember correctly, and the problem existed there as well. >How-To-Repeat: Unplug your mouse and reconnect it while moused is running. A Reboot is required to get the mouse working again. Attempting to restart the mouse driver either with a sigHUP or by killing it and manually restarting it does not work on any of the machines and mice tested. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message