Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Apr 2001 05:13:38 -0500 (CDT)
From:      natedac@kscable.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/26567: Unable to re-start mouse driver after driver failure or disconnect.
Message-ID:  <200104141013.f3EADcD03104@daconcepts.dyndns.org>

next in thread | raw e-mail | index | archive | help

>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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,MMX>
  AMD Features=0xc0400000<AMIE,DSP,3DNow!>
real memory  = 100532224 (98176K bytes)
avail memory = 94580736 (92364K bytes)
Preloaded elf kernel "kernel" at 0xc032f000.
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <AMD-751 host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <AMD-751 PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <S3 Savage 4 graphics accelerator> at 5.0 irq 11
isab0: <PCI to ISA bridge (vendor=1022 device=7408)> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 756 ATA66 controller> port 0xcb00-0xcb0f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
chip1: <PCI to Other bridge (vendor=1022 device=740b)> at device 7.3 on pci0
ohci0: <AMD-756 USB Controller> mem 0xffafe000-0xffafefff irq 10 at device 7.4 on pci0
usb0: OHCI version 1.0, legacy support
usb0: <AMD-756 USB Controller> 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: <NatSemi DP83815 10/100BaseTX> port 0xf800-0xf8ff mem 0xffaff000-0xffafffff irq 11 at device 17.0 on pci0
sis0: Ethernet address: 00:02:e3:09:c0:a4
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <unknown card> (vendor=0x125d, dev=0x1969) at 19.0 irq 9
fdc0: <NEC 72065B or clone> 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: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model NetMouse/NetScroll Optical, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> 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: <Parallel port> 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: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> 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 <Maxtor 92040U6> [39566/16/63] at ata0-master UDMA33
acd0: DVD-ROM <HITACHI DVD-ROM GD-2500> at ata1-master using PIO4
acd1: CD-RW <CD-RW CRX100E> at ata1-slave using PIO4
Mounting root from ufs:/dev/ad0s1a
pcm0: <ESS Solo-1 (unknown vendor)> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104141013.f3EADcD03104>