From owner-freebsd-bugs Sat Apr 14 3:30:19 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 D1BE437B624 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 f3EAU2N97943; 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 43A8B37B509 for ; Sat, 14 Apr 2001 03:22:31 -0700 (PDT) (envelope-from natedac@daconcepts.dyndns.org) Received: (from natedac@localhost) by daconcepts.dyndns.org (8.11.3/8.11.3) id f3EAFGh03142; Sat, 14 Apr 2001 05:15:16 -0500 (CDT) (envelope-from natedac) Message-Id: <200104141015.f3EAFGh03142@daconcepts.dyndns.org> Date: Sat, 14 Apr 2001 05:15:16 -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/26568: Mouse failure under 4.2-Release and 4-Stable Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26568 >Category: kern >Synopsis: Mouse driver will die if you move mouse and hold a key (e.g. ALT) >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 IBM Aptiva - 550 MHz Athlon, 96 MB Ram, Fellowes "GelMouse". Dmesg output from this machine is available: 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 closely related to another PR: * * "Mouse driver will not properly restart if it dies or the mouse gets unplugged." * * These two PR's were prepared at the same time, hence the lack of reference * numbers. ******* Holding ALT, Shift, or probably any other key while moving the mouse around will cause the pointer to freeze, and the driver will stop working. This happens at the console, as well as under X 4.0.3 (but *not* 3.3.6) Once the driver stops, both X and the console are affected. I can narrow this down to post-4.2-Release at least. This problem did NOT occur with 4.2-Release if I remember right, and definitely doesn't occur prior to that. In fact, another machine I have available, a Compaq Presario 425 (486 DX/4 at 132 MHz, 16 MB RAM, stock Compaq mouse) which runs a GENERIC 4.2-Release (with only a few config tweaks, no recompiles), does not seem to be affected by this problem. >How-To-Repeat: Move the mouse around, either under X 4.0.3, or in the console, while holding another key such as ALT or SHIFT. The driver should die fairly quickly. Specifically, try ALT + Button 3 + move around. This is a common binding to move a window around (fvwm 1.54 default, I set sawfish to mimic it) and is where I first noticed the problem within X, when I was trying to move a window from one viewport to another, adjacent viewport. Simple mouse clicks with keys pressed don't seem to cause a problem, In the case of the console, I noticed it because of a habit of holding shift while selecting text for cut & paste (in an Xterm, Links and Pine need Shift + Button1 + Move to select text) In the case of X 3.3.6, the problem doesn't seem to happen when X is visible, only when the FreeBSD console is visible. Once the bug occurs, however, X is also affected - the pointer freezes and the mouse driver dies. A Reboot is required to regain mouse operation. Attempting to sigHUP moused, or completely terminate and restart it, does not work. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message