From thiemo@gearloose.heim8.tu-clausthal.de  Thu May 18 04:07:09 2000
Return-Path: <thiemo@gearloose.heim8.tu-clausthal.de>
Received: from gearloose.heim8.tu-clausthal.de (gearloose.heim8.tu-clausthal.de [139.174.248.94])
	by hub.freebsd.org (Postfix) with ESMTP id DE18937B5CD
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 May 2000 04:06:25 -0700 (PDT)
	(envelope-from thiemo@gearloose.heim8.tu-clausthal.de)
Received: (from thiemo@localhost)
	by gearloose.heim8.tu-clausthal.de (8.9.3/8.9.3) id NAA00497;
	Thu, 18 May 2000 13:06:08 +0200 (CEST)
	(envelope-from thiemo)
Message-Id: <200005181106.NAA00497@gearloose.heim8.tu-clausthal.de>
Date: Thu, 18 May 2000 13:06:08 +0200 (CEST)
From: Thiemo Nordenholz <nz@thiemo.net>
Sender: thiemo@gearloose.heim8.tu-clausthal.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: panic when enabling linux with emu10k1 driver installed (SMP)
X-Send-Pr-Version: 3.2

>Number:         18650
>Category:       kern
>Synopsis:       panic when enabling linux with emu10k1 driver installed (SMP)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 18 04:10:00 PDT 2000
>Closed-Date:    Sat Jul 21 19:32:01 PDT 2001
>Last-Modified:  Sat Jul 21 19:33:08 PDT 2001
>Originator:     Thiemo Nordenholz <nz@thiemo.net>
>Release:        FreeBSD 4.0-RELEASE i386
>Organization:
University of Technology, Clausthal, Germany
>Environment:

I guess these are the relevant things: ASUS P2B-DS with 2*P-II/400, SMP
enabled in FreeBSD, SB AWE64 sound card, SB Live! sound card. Full dmesg
output can be mailed, if necessary.

>Description:

Today I've added the emu10k1 driver to my kernel after cvsup'ing the sys
collection (as described in freebsd-questions). Before this, the machine was
running perfectly in SMP mode, with linux emulation enabled, and playing
music over the (also installed) AWE64. But now i wanted to have two sound
cards supported.
After booting the new kernel in single-user mode, i could use the SB Live!
to output sound, trying a "mixer" on the AWE64 device gave something like
"device busy" and did nothing. mpg123 worked well with the Live! device,
while the AWE64 remained silent, but the machine stayed alive, so I went
multi-user.
When rc.i386 turned on the linux emulation, the machine went to the kernel
debugger and printed the following messages (which don't really clue me up):
	Fatal trap 12: page fault while in kernel mode
	mp_lock = 01000002; cpuid = 1; lapic.id = 00000000
	fault virtual address = 0x0
	fault code = supervisor read, page not present
	instruction pointer = 0x8:0xc0e85dbb
	stack pointer = 0x10:0xcd23cf0c
	frame pointer = 0x10:0xcd23cf28
	code segment = base 0x0, limit 0xfffff, type 0x1b
	             = DPL 0, pres 1, def32 1, gran 1
	processor eflags = interrupt enable, resume, IOPL=0
	current process = 145 (ldconfig)
	interrupt mask = none <- SMP:XXX
	kernel: type 12 trap, code=0
	Stopped at linux_open+0x23  subl 0(%edx),%eax

>How-To-Repeat:

Only tried this on my machine, as described, I don't know any other computer
with this hardware configuration and FreeBSD 4

>Fix:

Sorry, no clue.



>Release-Note:
>Audit-Trail:

From: Kelly Yancey <kbyanc@posi.net>
To: Thiemo Nordenholz <nz@thiemo.net>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/18650: panic when enabling linux with emu10k1 driver
 installed (SMP)
Date: Thu, 18 May 2000 11:55:59 -0400 (EDT)

 On Thu, 18 May 2000, Thiemo Nordenholz wrote:
 
 > Today I've added the emu10k1 driver to my kernel after cvsup'ing the sys
 > collection (as described in freebsd-questions). Before this, the machine was
 > running perfectly in SMP mode, with linux emulation enabled, and playing
 > music over the (also installed) AWE64. But now i wanted to have two sound
 > cards supported.
 > After booting the new kernel in single-user mode, i could use the SB Live!
 > to output sound, trying a "mixer" on the AWE64 device gave something like
 > "device busy" and did nothing. mpg123 worked well with the Live! device,
 > while the AWE64 remained silent, but the machine stayed alive, so I went
 > multi-user.
 > When rc.i386 turned on the linux emulation, the machine went to the kernel
 > debugger and printed the following messages (which don't really clue me up):
 > 	Fatal trap 12: page fault while in kernel mode
 > 	mp_lock = 01000002; cpuid = 1; lapic.id = 00000000
 > 	fault virtual address = 0x0
 > 	fault code = supervisor read, page not present
 > 	instruction pointer = 0x8:0xc0e85dbb
 > 	stack pointer = 0x10:0xcd23cf0c
 > 	frame pointer = 0x10:0xcd23cf28
 > 	code segment = base 0x0, limit 0xfffff, type 0x1b
 > 	             = DPL 0, pres 1, def32 1, gran 1
 > 	processor eflags = interrupt enable, resume, IOPL=0
 > 	current process = 145 (ldconfig)
 > 	interrupt mask = none <- SMP:XXX
 > 	kernel: type 12 trap, code=0
 > 	Stopped at linux_open+0x23  subl 0(%edx),%eax
 > 
 
   Rebuild your linux module also, I suspect the two are out of sync. Just
 cd /usr/src/modules; make install and you should be all right.
 
   Kelly
 
 --
 Kelly Yancey  -  kbyanc@posi.net  -  Belmont, CA
 System Administrator, eGroups.com                  http://www.egroups.com/
 Maintainer, BSD Driver Database       http://www.posi.net/freebsd/drivers/
 Coordinator, Team FreeBSD        http://www.posi.net/freebsd/Team-FreeBSD/
 
 
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Sat Jul 21 19:32:01 PDT 2001 
State-Changed-Why:  

Appears to be a module/kernel out-of-sync problem. 
Timeout; no response from originator. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18650 
>Unformatted:
