From nobody@FreeBSD.org  Sun Apr 14 04:51:11 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id B8EA237B405
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Apr 2002 04:51:10 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g3EBpAc59841;
	Sun, 14 Apr 2002 04:51:10 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200204141151.g3EBpAc59841@freefall.freebsd.org>
Date: Sun, 14 Apr 2002 04:51:10 -0700 (PDT)
From: Patrick Dung <dungkaitai@netscape.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: usb mouse with bios legacy support on hangs
X-Send-Pr-Version: www-1.0

>Number:         37056
>Category:       kern
>Synopsis:       usb mouse with bios legacy support on hangs
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    joe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 14 05:00:02 PDT 2002
>Closed-Date:    Sat Nov 08 04:09:42 PST 2003
>Last-Modified:  Sat Nov 08 04:09:42 PST 2003
>Originator:     Patrick Dung
>Release:        FreeBSD 4-Stable (kernel cvs date: 03-24-2002)
>Organization:
>Environment:
can't boot into the machine to run "uname -a"      
>Description:
I've a usb mouse. I set bios legacy support on. My PC is Gigabyte 6VXD7 (Dual PIII Via 694X chipset). Then I boot FreeBSD 4-stable smp kernel (self built). It hangs during the kernel is booting (at the very beginning), I captured some debug message:

Fatal trap 12: page fault while in kernel
mp_lock:00000002; cpuid = 0; lapic_id = 00000000
fault virtual address = 0x5048
fault code = supervisor mode, page not present
instruction pointer = 0x8:0xc38a2cf
stack pointer = 0x10:0xc0562fc8
frame pointer = 0x10:0xc0562fcc
code segment = base 0x0, limit 0xfffff, type 0x16
             = DPL 0, pres 1, def 32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 0 (swapper)
interrupt mask = none <- SMP:XXX
kernel : type 12 trap, code = 0
stopped at: cpu_set_fork_handler:0x13:  movl  %edx,0x8(%eax)
db>

>How-To-Repeat:
In BIOS, set USB on. Then set USB Keyboard and Mouse Legacy support On.
Then boot freebsd 4 stable (smp kernel).
>Fix:
Set Legacy support off.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Mon Jul 14 02:48:57 PDT 2003 
State-Changed-Why:  
Does this problem persist in recent releases?  If so, 
please obtain a debugging traceback as explained in 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37056 
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Jul 17 17:26:48 PDT 2003 
Responsible-Changed-Why:  
Assign to USB maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37056 

From: Ceri Davies <ceri@FreeBSD.org>
To: FreeBSD Gnats Submit <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: kern/37056: usb mouse with bios legacy support on hangs
Date: Sun, 10 Aug 2003 17:58:05 +0100

 Adding to audit trail, from misfiled PR 54489:
 
 Date: Tue, 15 Jul 2003 09:09:05 +0800
 From: Dung Patrick <dkt@digitalme.com>
 Message-Id: <1058231345.c8ce0ce0dkt@digitalme.com>
 Subject: pending/54489: Re:%20kern/37056:%20usb%20mouse%20with%20bios%20legacy%20support%20on%20hangs
 
  Hi,
  
  I'm using FreeBSD 5.1 now and it does not have this problem. I don't have
  time to reinstall FreeBSD 4.x on this machine again. Sorry for that.
  
  Regards
  Patrick
  
 
State-Changed-From-To: feedback->closed 
State-Changed-By: joe 
State-Changed-When: Sat Nov 8 04:08:34 PST 2003 
State-Changed-Why:  
The problem doesn't exist under 5.1 so I believe that it will 
disappear when we MFC the USB stack code from -current to -stable. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37056 
>Unformatted:
