[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
kernel/1814: yds device causes panic when used after suspend
- To: gnats@openbsd.org
- Subject: kernel/1814: yds device causes panic when used after suspend
- From: danimal@danimal.org
- Date: Mon, 7 May 2001 11:34:06 -0400
- Resent-Date: Mon, 7 May 2001 09:40:02 -0600 (MDT)
- Resent-From: gnats@cvs.openbsd.org (GNATS Management)
- Resent-Message-Id: <200105071540.f47Fe2d10387@cvs.openbsd.org>
- Resent-Reply-To: gnats@cvs.openbsd.org, danimal@danimal.org
- Resent-To: bugs@cvs.openbsd.org
>Number: 1814
>Category: kernel
>Synopsis: yds device causes panic when used after suspend
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bugs
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 7 09:40:01 MDT 2001
>Last-Modified:
>Originator: Dan Weeks
>Organization:
danimal.org
>Release: 2.9-current
>Environment:
System : OpenBSD 2.9
Architecture: OpenBSD.i386
Machine : i386
>Description:
playing audio via the yds0 device on a Sony Vaio Z5050JE is normally
without problems. after a suspend and then playing audio the kernel drops to
the debugger with a panic. This is very repeatable and happens with both
GENERIC and custom kernels
here is the output of 'trace' and 'ps' at the ddb> prompt (as copied by hand,
there may be errors, if so contact me and i will do it again):
panic: yds0: invalid play slot ctrldata -21598 120
stopped at _Debugger+0x4: movl %ebp,%esp
Run at least 'trace' and 'ps' and include the output when reporting this panic.
ddb> trace
_Debugger(e076f000,e07644f0,e07644a4,1,10002,1eed,ec202cc8,e02a48f1,e02a47ec,e0764614,ffffaba2,78,e0764400,0,e07644a4,1,ac44,6,10,2,0,e074da80,ec202d08,e011dfe0,e764600,e76f000,e077e110,2270,e011028,e0764400,e07644f0,e0236381,0,4000,e07644a4,ec1e288c,0,ec1e288c,ec202d58,e011d7b4,e0764400,0,ec202ed8,2,e0764400,ec1e188c,ec1c1ea0,ec1e288c,ec202dbc,1eed,ec202d58,e0236381,1,0,0,e0773000,e076f000,e0764400,ec202d88,e011c349,2a80) at _Debugger+0x4
_panic(e02a47ec,e0764614,ffffaba2,78,e0764400) at _panic+0x81
_yds_trigger_output(e0764600,e076f000,e077e110,2270,e011e028) at _yds_trigger_output+0xd5
_audiostartp(e0764400,0,ec202ed8,2,e0764400) at _audiostartp+0x58
_audio_write(2a80,ec202ed8,1,49cceb60,ec202e44) at _audio_write+0x32c
_audiowrite(2a80,ec202ed8,1,e01781a3,ec1c1ea0) at _audiowrite+0x91
_spec_write(ec202e44,e0916340,e030c800,ec1c1ea0,20042) at _spec_write+0xaf
_ufsspec_write(ec202e44,30042,ec1e288c,e0139a58,4000) at _ufsspec_write+0x2a
_VOP_WRITE(ec1c1ea0,ec202ed8,1,e090a900,ec202f88) at _VOP_WRITE+0x3b
_vn_write(e0916340,e091635c,ec202ed8,e090a900,ec202f88) at _vm_write+0x95
_dofilewrite(ec1e288c,4,e0916340,3f000,4000) at _dofilewrite+0x84
_sys_write(ec1e288c,ec202f88,ec202f80,24,0) at _sys_write+0x4b
_syscall() at _syscall+0x24e
--- syscall (number 4) ---
0x400bf0c3:
ddb> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
* 7917 22097 7917 1000 2 0x4006 mpg123
7275 1 7275 0 3 0x4086 ttyin getty
6000 1 6000 0 3 0x4086 ttyin getty
7275 1 1193 0 3 0x4086 ttyin getty
28213 1 28213 0 3 0x4086 ttyin getty
22097 1 22097 1000 3 0x4086 pause tcsh
3534 1 3534 0 3 0x84 nanosleep cron
11011 1 11011 0 3 0x84 select apmd
4714 1 4714 32767 3 0x4086 netcon junkbuster
11751 1 11751 0 3 0x84 select sshd
27681 1 14412 0 3 0x44186 select sendmail
11044 1 11044 0 2 0x84 syslogd
18502 1 18502 0 3 0x84 mfsidl mount_mfs
8 0 0 0 3 0x100204 cardslote cardslot0
7 0 0 0 3 0x100204 usbevt usb0
6 0 0 0 3 0x100204 apmev apm0
5 0 0 0 3 0x100204 crypto_wa crypto
4 0 0 0 3 0x100204 syncer update
3 0 0 0 3 0x100204 reaper reaper
2 0 0 0 3 0x100204 daemon_sl pagedaemon
1 0 1 0 3 0x4084 wait init
0 -1 0 0 3 0x80204 scheduler swapper
here is the output of dmesg for a GENERIC kernel:
OpenBSD 2.9 (GENERIC) #1: Sat May 5 09:16:50 EDT 2001
root@banky:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (Coppermine) ("GenuineIntel" 686-class) 496 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SIMD
real mem = 200847360 (196140K)
avail mem = 181166080 (176920K)
using 2477 buffers containing 10145792 bytes (9908K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(f6) BIOS, date 05/11/00, BIOS32 rev. 0 @ 0xfd890
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high, charging
pcibios0 at bios0: rev. 2.1 @ 0xfd890/0x770
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfdf50/144 (7 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB PCI-ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
WARNING: can't reserve area for I/O APIC.
bios0: ROM list: 0xc0000/0xc000 0xdc000/0x4000!
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX PCI-AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Neomagic MagicMedia 256AV+" rev 0x30
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <IBM-DARA-209000>
wd0: 16-sector PIO, LBA, 8623MB, 16383 cyl, 16 head, 63 sec, 17660160 sectors
pciide0: channel 0 interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power Management" rev 0x03 at pci0 dev 7 function 3 not configured
"Sony CXD3222 FireWire" rev 0x02 at pci0 dev 8 function 0 not configured
yds0 at pci0 dev 9 function 0 "Yamaha 744" rev 0x02: irq 9
ac97: codec id 0x414b4d02 (Asahi Kasei AK4543)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, AZTECH 3D
audio0 at yds0
"Conexant SoftK56 PCI" rev 0x01 at pci0 dev 10 function 0 not configured
fxp0 at pci0 dev 11 function 0 "Intel 82557" rev 0x08: irq 9, address 08:00:46:07:00:5d
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
cbb0 at pci0 dev 12 function 0 "Ricoh 5C475 PCI-CardBus" rev 0x80: irq 9
"Sony Memory Stick Slot" rev 0x01 at pci0 dev 13 function 0 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
opl0 at yds0: model OPL3
midi1 at opl0: <DS-1 integrated Yamaha OPL3>
mpu at yds0 not configured
mpu at yds0 not configured
mpu at yds0 not configured
mpu at yds0 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
biomask 4200 netmask 4200 ttymask 5282
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted
and here is the dmesg for my custom kernel:
OpenBSD 2.9 (BANKY) #23: Thu May 3 20:59:33 EDT 2001
root@banky:/usr/src/sys/arch/i386/compile/BANKY
cpu0: Intel Pentium III (Coppermine) ("GenuineIntel" 686-class) 496 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SIMD
real mem = 200847360 (196140K)
avail mem = 183275520 (178980K)
using 2477 buffers containing 10145792 bytes (9908K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(f6) BIOS, date 05/11/00, BIOS32 rev. 0 @ 0xfd890
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high, charging
pcibios0 at bios0: rev. 2.1 @ 0xfd890/0x770
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfdf50/144 (7 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB PCI-ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
WARNING: can't reserve area for I/O APIC.
bios0: ROM list: 0xc0000/0xc000 0xdc000/0x4000!
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX PCI-AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga0 at pci1 dev 0 function 0 "Neomagic MagicMedia 256AV+" rev 0x30
wsdisplay0 at vga0: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <IBM-DARA-209000>
wd0: 16-sector PIO, LBA, 8623MB, 16383 cyl, 16 head, 63 sec, 17660160 sectors
pciide0: channel 0 interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power Management" rev 0x03 at pci0 dev 7 function 3 not configured
"Sony CXD3222 FireWire" rev 0x02 at pci0 dev 8 function 0 not configured
yds0 at pci0 dev 9 function 0 "Yamaha 744" rev 0x02: irq 9
ac97: codec id 0x414b4d02 (Asahi Kasei AK4543)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, AZTECH 3D
audio0 at yds0
"Conexant SoftK56 PCI" rev 0x01 at pci0 dev 10 function 0 not configured
fxp0 at pci0 dev 11 function 0 "Intel 82557" rev 0x08: irq 9, address 08:00:46:07:00:5d
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
cbb0 at pci0 dev 12 function 0 "Ricoh 5C475 PCI-CardBus" rev 0x80: irq 9
"Sony Memory Stick Slot" rev 0x01 at pci0 dev 13 function 0 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
opl0 at yds0: model OPL3
midi at opl0 not configured
mpu at yds0 not configured
mpu at yds0 not configured
mpu at yds0 not configured
mpu at yds0 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
biomask 4200 netmask 4200 ttymask 5282
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted
>How-To-Repeat:
suspend and then resume. try to play mp3's with mpg123
>Fix:
unknown at this point. willing to test any potential fixes.
>Audit-Trail:
>Unformatted: