Lock order reversal while playing mp3s

2001-11-21 Thread Simon Dick

I get the following lock order reversal when playing mp3s on my Vaio
PCG-F807K laptop:
lock order reversal
 1st 0xc399a840 pcm0:play:0 @ 
/usr/src/sys/modules/sound/pcm/../../../dev/sound/pcm/dsp.c:936
 2nd 0xc399ad80 pcm0 @ 
/usr/src/sys/modules/sound/pcm/../../../dev/sound/pcm/sound.c:132

simond@laptop:~$ cat /dev/sndstat 
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: Yamaha DS-1E (YMF744) at memory 0xfedf8000 irq 9 (4p/2r/0v channels duplex 
default)

My dmesg is attached.

-- 
Simon Dick  [EMAIL PROTECTED]
Why do I get this urge to go bowling everytime I see Tux?


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 5.0-CURRENT #2: Thu Nov 15 16:31:01 GMT 2001
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/NOT
Preloaded elf kernel /boot/kernel/kernel at 0xc04d5000.
Preloaded elf module /boot/kernel/acpi.ko at 0xc04d50a8.
Timecounter i8254  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (730.81-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x683  Stepping = 3
  
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real memory  = 1073676288 (1048512K bytes)
avail memory = 1040375808 (1015992K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 - irq 0
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): apic id:  0, version: 0x00040011, at 0xfee0
 cpu1 (AP):  apic id:  1, version: 0x00040011, at 0xfee0
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec0
lock order reversal
 1st 0xc03f7760 allproc @ /usr/src/sys/kern/kern_fork.c:343
 2nd 0xc03b87b0 pool mutex @ /usr/src/sys/kern/kern_sx.c:329
lock order reversal
 1st 0xc03f76e0 proctree @ /usr/src/sys/kern/kern_fork.c:573
 2nd 0xc03b8750 pool mutex @ /usr/src/sys/kern/kern_sx.c:329
lock order reversal
 1st 0xc03b77e0 fork list @ /usr/src/sys/kern/kern_fork.c:646
 2nd 0xc03b8810 pool mutex @ /usr/src/sys/kern/kern_sx.c:204
Pentium Pro MTRR support enabled
VESA: v3.0, 32768k memory, flags:0x1, mode table:0xc00c5477 (c0005477)
VESA: Matrox Graphics Inc.
Using $PIR table, 8 entries at 0xc00f7100
apm: Other PM system enabled.
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: AMIINT  on motherboard
acpi0: power button is handled as a fixed feature programming model.
Timecounter ACPI  frequency 3579545 Hz
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
acpi_cpu0: CPU on acpi0
acpi_cpu1: CPU on acpi0
acpi_tz0: thermal zone on acpi0
acpi_button0: Power Button on acpi0
acpi_pcib0: Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: PCI bus on acpi_pcib0
agp0: VIA 82C691 (Apollo Pro) host to PCI bridge mem 0xe000-0xe3ff at device 
0.0 on pci0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: display, VGA at device 0.0 (no driver attached)
isab0: PCI-ISA bridge at device 7.0 on pci0
isa0: ISA bus on isab0
atapci0: VIA 82C686 ATA66 controller port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: VIA 83C572 USB controller port 0xc800-0xc81f irq 9 at device 7.2 on pci0
usb0: VIA 83C572 USB controller on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: VIA 83C572 USB controller port 0xcc00-0xcc1f irq 9 at device 7.3 on pci0
usb1: VIA 83C572 USB controller on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ichsmb0: SMBus controller at device 7.4 on pci0
device_probe_and_attach: ichsmb0 attach returned 6
ahc0: Adaptec 2940A Ultra SCSI adapter port 0xdc00-0xdcff mem 0xd000-0xdfff 
irq 10 at device 9.0 on pci0
aic7860: Ultra Single Channel A, SCSI Id=7, 3/255 SCBs
ed0: NE2000 PCI Ethernet (VIA VT86C926) port 0xd000-0xd01f irq 5 at device 10.0 on 
pci0
ed0: address 08:00:39:01:2b:90, type NE2000 (16 bit) 
pcm0: Creative CT5880-C port 0xd400-0xd43f irq 9 at device 11.0 on pci0
tx0: SMC EtherPower II 10/100 port 0xd800-0xd8ff mem 0xdfffe000-0xdfffefff irq 11 at 
device 12.0 on pci0
miibus0: MII bus on tx0
qsphy0: QS6612 10/100 media interface on miibus0
qsphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tx0: address 00:e0:29:0b:d5:31, type SMC9432TX
acpi_button1: Sleep Button on acpi0
atspeaker0 port 0x61 on acpi0
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
fdc0: NEC 72065B or clone port 0x3f7,0x3f2-0x3f5 irq 6 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5 drive on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A, console
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 on acpi0
ppc0: SMC-like chipset 

Re: Lock order reversal while playing mp3s

2001-11-21 Thread Simon Dick

On Wed, Nov 21, 2001 at 09:37:43AM +, Simon Dick wrote:
 I get the following lock order reversal when playing mp3s on my Vaio
 PCG-F807K laptop:
 lock order reversal
  1st 0xc399a840 pcm0:play:0 @ 
/usr/src/sys/modules/sound/pcm/../../../dev/sound/pcm/dsp.c:936
  2nd 0xc399ad80 pcm0 @ 
/usr/src/sys/modules/sound/pcm/../../../dev/sound/pcm/sound.c:132
 
 simond@laptop:~$ cat /dev/sndstat 
 FreeBSD Audio Driver (newpcm)
 Installed devices:
 pcm0: Yamaha DS-1E (YMF744) at memory 0xfedf8000 irq 9 (4p/2r/0v channels duplex 
default)
 
 My dmesg is attached.

And now my *real* dmesg is attached :)

-- 
Simon Dick  [EMAIL PROTECTED]
Why do I get this urge to go bowling everytime I see Tux?


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 5.0-CURRENT #1: Tue Nov 20 17:30:10 GMT 2001
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/LAPTOP
Preloaded elf kernel /boot/kernel/kernel at 0xc04fe000.
Preloaded elf module /boot/kernel/cd9660.ko at 0xc04fe0a8.
Preloaded elf module /boot/kernel/msdosfs.ko at 0xc04fe154.
Preloaded elf module /boot/kernel/ntfs.ko at 0xc04fe200.
Preloaded elf module /boot/kernel/procfs.ko at 0xc04fe2ac.
Preloaded elf module /boot/kernel/md.ko at 0xc04fe358.
Preloaded elf module /boot/kernel/linux.ko at 0xc04fe400.
Preloaded elf module /boot/kernel/ipfw.ko at 0xc04fe4ac.
Preloaded elf module /boot/kernel/if_wi.ko at 0xc04fe558.
Preloaded elf module /boot/kernel/snd_ds1.ko at 0xc04fe604.
Preloaded elf module /boot/kernel/snd_pcm.ko at 0xc04fe6b0.
Preloaded elf module /boot/kernel/usb.ko at 0xc04fe75c.
Preloaded elf module /boot/kernel/ugen.ko at 0xc04fe804.
Preloaded elf module /boot/kernel/uhid.ko at 0xc04fe8b0.
Preloaded elf module /boot/kernel/ums.ko at 0xc04fe95c.
Preloaded elf module /boot/kernel/umass.ko at 0xc04fea04.
Preloaded elf module /boot/kernel/agp.ko at 0xc04feab0.
Preloaded elf module /boot/kernel/atspeaker.ko at 0xc04feb58.
Preloaded elf module /boot/kernel/nfsclient.ko at 0xc04fec08.
Preloaded elf module /boot/kernel/fdc.ko at 0xc04fecb8.
Preloaded elf module /boot/kernel/if_ed.ko at 0xc04fed60.
Preloaded elf module /boot/kernel/miibus.ko at 0xc04fee0c.
Preloaded elf module /boot/kernel/snp.ko at 0xc04feeb8.
Preloaded elf module /boot/kernel/nmdm.ko at 0xc04fef60.
Preloaded elf module /boot/kernel/acpi.ko at 0xc04ff00c.
Timecounter i8254  frequency 1193182 Hz
Timecounter TSC  frequency 645207024 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (645.21-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x686  Stepping = 6
  
Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real memory  = 268369920 (262080K bytes)
avail memory = 255623168 (249632K bytes)
Pentium Pro MTRR support enabled
VESA: v2.0, 8128k memory, flags:0x0, mode table:0xc0328842 (122)
VESA: ATI MACH64
Using $PIR table, 8 entries at 0xc00fdf40
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: SONY   K2   on motherboard
Timecounter ACPI  frequency 3579545 Hz
acpi_timer0: 24-bit timer at 3.579545MHz port 0x8008-0x800b on acpi0
acpi_cpu0: CPU on acpi0
acpi_tz0: thermal zone on acpi0
acpi_button0: Power Button on acpi0
acpi_pcib0: Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: PCI bus on acpi_pcib0
agp0: Intel 82443BX (440 BX) host to PCI bridge mem 0x4000-0x40ff at device 
0.0 on pci0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: display, VGA at device 0.0 (no driver attached)
isab0: PCI-ISA bridge at device 7.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel PIIX4 ATA33 controller port 0xfc90-0xfc9f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0xfca0-0xfcbf irq 9 at device 
7.2 on pci0
usb0: Intel 82371AB/EB (PIIX4) USB controller on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
intpm0: Intel 82371AB Power management controller port 0x1040-0x104f irq 9 at device 
7.3 on pci0
intpm0: I/O mapped 1040
intpm0: intr IRQ 9 enabled revision 0
smbus0: System Management Bus on intsmb0
smb0: SMBus general purpose I/O on smbus0
intpm0: PM I/O mapped 8000 
pci0: serial bus, FireWire at device 8.0 (no driver attached)
pcm0: Yamaha DS-1E (YMF744) port 0xfc8c-0xfc8f,0xfcc0-0xfcff mem 
0xfedf8000-0xfedf irq 9 at device 9.0 on pci0
pci0: simple comms at device 10.0 (no driver attached)
acpi_pcib0: device is routed to IRQ 9
pcic0: Ricoh RL5C478 PCI-CardBus Bridge irq 9 at device 12.0 on pci0
pcic0: PCI Memory allocated: 0x4400
pccard0: PC Card bus (classic) on pcic0
acpi_pcib0: device is routed to IRQ 9
pcic1: Ricoh RL5C478 PCI-CardBus Bridge irq 9 at device 12.1 on pci0
pcic1: PCI Memory allocated: 0x44001000
pccard1: PC Card bus (classic) on pcic1
atspeaker0