Panic within sound driver

2001-04-10 Thread Ollivier Robert

I systematically get the following panic since the end of March at boot
time:

Kernel trap 12 with interrupt disabled

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x65656e48XXX een8 XXX
fault code  = supervisor read, page not present
instruction pointer = 0x8:0xc01aba3a
stack pointer   = 0x10:0xc03d66ac
frame pointer   = 0x10:0xc03d66b8
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= resume, IOPL = 0
current process = 0 (swapper)
Kernel: type 12 trap, code = 0

Stopped at _mtx_lock_sleep+0x2e2: movb  0x1d5(%edx),%al
_mtx_lock_sleep
snd_mtxlock
ad1816_lock
ad1816mix_set
mixer_set
ad1816_attach
device_probe_and_attach
isa_probe_children
configure
mi_startup

Any idea?

Source from a few hours ago.

#
# CAERDONN
#
#   $Id: //depot/caerdonn/kernel/CAERDONN#14 $

machine i386
cpu I686_CPU
ident   CAERDONN
maxusers48

makeoptions DEBUG="-g"

options INET#InterNETworking
options FFS #Berkeley Fast Filesystem
options PROCFS
options COMPAT_43   #Compatible with BSD 4.3 [KEEP THIS!]
options UCONSOLE#Allow users to grab the console

options CLK_USE_TSC_CALIBRATION

options SYSVSHM
options SYSVSEM
options SYSVMSG
options SHMMAXPGS=2048

options DEVFS
options DDB
options INVARIANTS
options INVARIANT_SUPPORT

options KTRACE

options IPSEC
options IPSEC_ESP

options SOFTUPDATES

options P1003_1B
options _KPOSIX_PRIORITY_SCHEDULING
options _KPOSIX_VERSION=199309L

device  isa
device  pci

device miibus
device fxp

device  fdc

device  ata
device  atapicd

# A single entry for any of these controllers (ncr, ahb, ahc) is sufficient
# for any number of installed devices.

device  ahc

device  scbus
device  da
device  sa
device  cd   
device  pass   #CAM passthrough driver

device  atkbdc  1
device  atkbd
device  psm
device  vga
device  sc  1

device  splash

device  random

device  npx

device  sio

device  ppc
device  ppbus
device  lpt
device  ppi

device pcm

device  loop
device  ether
device  tun 2
device  pty
device  gzip# Exec gzipped a.out's
device  bpf 4
device  snp 4

-- 
Ollivier ROBERT  -=-  Eurocontrol EEC/ITM  -=-  [EMAIL PROTECTED]
FreeBSD caerdonn.eurocontrol.fr 5.0-CURRENT #46: Wed Jan  3 15:52:00 CET 2001

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Panic within sound driver

2001-04-10 Thread George Reid

On Tue, 10 Apr 2001, Ollivier Robert wrote:

 Stopped at _mtx_lock_sleep+0x2e2: movb  0x1d5(%edx),%al
 _mtx_lock_sleep
 snd_mtxlock
 ad1816_lock

Following patch should fix, I'll commit this to -current later.

 - greid

Index: ad1816.c
===
RCS file: /usr/home/ncvs/src/sys/dev/sound/isa/ad1816.c,v
retrieving revision 1.17
diff -u -r1.17 ad1816.c
--- ad1816.c2001/03/24 23:10:25 1.17
+++ ad1816.c2001/04/10 13:47:55
@@ -88,13 +88,13 @@
 static void
 ad1816_lock(struct ad1816_info *ad1816)
 {
-   snd_mtxlock(ad1816);
+   snd_mtxlock(ad1816-lock);
 }
 
 static void
 ad1816_unlock(struct ad1816_info *ad1816)
 {
-   snd_mtxunlock(ad1816);
+   snd_mtxunlock(ad1816-lock);
 }
 
 static int


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Panic within sound driver

2001-04-10 Thread Cameron Grant


 Stopped at _mtx_lock_sleep+0x2e2: movb  0x1d5(%edx),%al
 _mtx_lock_sleep
 snd_mtxlock
 ad1816_lock

fix just committed, sys/dev/sound/isa/ad1816.c rev 1.18.

you must be the only freebsd user on the planet with an ad1816. :)

-cg



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Panic within sound driver

2001-04-10 Thread Ollivier Robert

According to Cameron Grant:
 fix just committed, sys/dev/sound/isa/ad1816.c rev 1.18.
 
 you must be the only freebsd user on the planet with an ad1816. :)

That's what I was thinking :)

Thanks, I'll just reboot now to test the patch.
-- 
Ollivier ROBERT  -=-  Eurocontrol EEC/ITM  -=-  [EMAIL PROTECTED]
FreeBSD caerdonn.eurocontrol.fr 5.0-CURRENT #46: Wed Jan  3 15:52:00 CET 2001

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Panic within sound driver

2001-04-10 Thread Ollivier Robert

According to Cameron Grant:
 fix just committed, sys/dev/sound/isa/ad1816.c rev 1.18.
 
 you must be the only freebsd user on the planet with an ad1816. :)

Works fine BTW, thanks to you two.
-- 
Ollivier ROBERT  -=-  Eurocontrol EEC/ITM  -=-  [EMAIL PROTECTED]
FreeBSD caerdonn.eurocontrol.fr 5.0-CURRENT #46: Wed Jan  3 15:52:00 CET 2001

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message