Bug 18650

Summary: panic when enabling linux with emu10k1 driver installed (SMP)
Product: Base System Reporter: Thiemo Nordenholz <nz>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-RELEASE   
Hardware: Any   
OS: Any   

Description Thiemo Nordenholz 2000-05-18 12:10:00 UTC
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 rx0, 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

Fix: 

Sorry, no clue.
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
Comment 1 kbyanc 2000-05-18 16:55:59 UTC
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 rx0, 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/
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2001-07-22 03:32:01 UTC
State Changed
From-To: open->closed


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