FreeBSD 6.3, OSS 4.0 build 1016, HDA random system crashes

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

FreeBSD 6.3, OSS 4.0 build 1016, HDA random system crashes

Postby muanton » Thu Jul 24, 2008 10:21 am

Sometimes system crashes with kernel panic when OSS is used.
Sometimes system just hangs and system is stalled when OSS is used.

Sometimes I am able to see this, but then I can't get mplayer process killed in any way (kill -9 doesn't work):
Code: Select all
last pid: 53871;  load averages:  0.00,  0.00,  0.03                                                                           up 0+01:30:17  18:06:25
51 processes:  1 running, 49 sleeping, 1 lock
CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
Mem: 93M Active, 291M Inact, 249M Wired, 11M Cache, 110M Buf, 339M Free
Swap: 1998M Total, 56K Used, 1998M Free

  PID USERNAME    THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
2390 root          1 103    0 35440K 20996K *oss   1   8:46  0.00% mplayer
  847 root          1  96    0   308M 45132K select 0   5:14  0.00% Xorg
  896 root          1  96    0 26564K 15572K select 0   0:37  0.00% Terminal
  880 root          4  20    0 20820K 11316K kserel 0   0:03  0.00% xfdesktop
19634 root          1  96    0  2492K  1464K select 0   0:02  0.00% top
  878 root          4  20    0 21196K 11340K kserel 0   0:02  0.00% Thunar
  876 root          1  96    0 19036K  9684K select 0   0:01  0.00% xfce4-menu-plugin
  471 root          1  96    0  1436K   780K select 1   0:01  0.00% moused
  875 root          1  96    0 18532K  7952K select 0   0:01  0.00% xfce4-mixer-plugin
  874 root          1  96    0 19668K 10708K select 1   0:01  0.00% xfce4-panel
  872 root          1  96    0 19456K 10048K select 1   0:01  0.00% xfwm4
  870 root          1  96    0 20748K 10356K select 1   0:00  0.00% xfce-mcs-manager
  722 root          1  96    0  3528K  2060K select 0   0:00  0.00% sendmail
  866 root          1  96    0 12076K  6164K select 1   0:00  0.00% xfce4-session


When using snd_hda FreeBSD module system is very stable, so I think it's OSS problem.

System information:
Code: Select all
%ossinfo
Version info: OSS 4.0 (b1016/200807232235) (0x00040003) BSD
Platform: FreeBSD/i386 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:45:45 UTC 2008     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP (localhost)

Number of audio devices:   10
Number of audio engines:   10
Number of mixer devices:   1


Device objects
0: hdaudio0 Intel HD Audio
    HD Audio controller Intel HD Audio
    Vendor ID    0x808627d8
    Subvendor ID 0x10438290
     Codec  0: ALC662 (0x10ec0662/0x10438290)


Mixer devices
0: High Definition Audio ALC662 (Mixer 0 of device object 0)

Audio devices
HD Audio play front               /dev/oss/hdaudio0/pcm0  (device index 0)
HD Audio play rear                /dev/oss/hdaudio0/pcm1  (device index 1)
HD Audio play center/LFE          /dev/oss/hdaudio0/pcm2  (device index 2)
HD Audio play spdif-out           /dev/oss/hdaudio0/spdout0  (device index 3)
HD Audio rec mix                  /dev/oss/hdaudio0/pcmin0  (device index 4)
HD Audio rec mix                  /dev/oss/hdaudio0/pcmin1  (device index 5)
HD Audio play front (VMIX0)       /dev/oss/hdaudio0/pcm3  (device index 6)
HD Audio play front (VMIX0)       /dev/oss/hdaudio0/pcm4  (device index 7)
HD Audio play front (VMIX0)       /dev/oss/hdaudio0/pcm5  (device index 8)
HD Audio play front (VMIX0)       /dev/oss/hdaudio0/pcm6  (device index 9)


Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:45:45 UTC 2008
    root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 CPU          6320  @ 1.86GHz (1866.65-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6f6  Stepping = 6
  Features=0xbfebfbff<FPU>
  Features2=0xe3bd<SSE3>
  AMD Features=0x20100000<NX>
  AMD Features2=0x1<LAHF>
  Cores per package: 2
real memory  = 1064960000 (1015 MB)
avail memory = 1028759552 (981 MB)
ACPI APIC Table: <A_M_I_>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1
ioapic0 <Version> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Jan 16 2008 04:43:12)
acpi0: <A_M_I_> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24> port 0x808-0x80b on acpi0
acpi_hpet0: <High> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
cpu0: <ACPI> on acpi0
acpi_throttle0: <ACPI> on cpu0
cpu1: <ACPI> on acpi0
acpi_throttle1: <ACPI> on cpu1
acpi_throttle1: failed to attach P_CNT
device_attach: acpi_throttle1 attach returned 6
pcib0: <ACPI> port 0xcf8-0xcff on acpi0
pci0: <ACPI> on pcib0
agp0: <Intel> port 0x8800-0x8807 mem 0xdfd00000-0xdfd7ffff,0xe0000000-0xefffffff,0xdfd80000-0xdfdbffff irq 16 at device 2.0 on pci0
agp0: detected 7932k stolen memory
agp0: aperture size is 256M
pci0: <multimedia> at device 27.0 (no driver attached)
pcib1: <ACPI> irq 16 at device 28.0 on pci0
pci3: <ACPI> on pcib1
pcib2: <ACPI> irq 17 at device 28.1 on pci0
pci2: <ACPI> on pcib2
pci2: <network> at device 0.0 (no driver attached)
uhci0: <UHCI> port 0x9000-0x901f irq 20 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <UHCI> 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
uhci1: <UHCI> port 0x9400-0x941f irq 17 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <UHCI> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <UHCI> port 0x9800-0x981f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <UHCI> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <UHCI> port 0xa000-0xa01f irq 19 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <UHCI> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <Intel> mem 0xdfdffc00-0xdfdfffff irq 20 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib3: <ACPI> at device 30.0 on pci0
pci1: <ACPI> on pcib3
rl0: <RealTek> port 0xc800-0xc8ff mem 0xdfeffc00-0xdfeffcff irq 17 at device 0.0 on pci1
miibus0: <MII> on rl0
rlphy0: <RealTek> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:08:a1:24:7c:29
isab0: <PCI> at device 31.0 on pci0
isa0: <ISA> on isab0
atapci0: <Intel> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0
ata0: <ATA> on atapci0
ata1: <ATA> on atapci0
atapci1: <Intel> port 0xb800-0xb807,0xb400-0xb403,0xb000-0xb007,0xa800-0xa803,0xa400-0xa40f irq 23 at device 31.2 on pci0
ata2: <ATA> on atapci1
ata3: <ATA> on atapci1
pci0: <serial> at device 31.3 (no driver attached)
acpi_button0: <Power> on acpi0
ppc0: <ECP> port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel> on ppc0
plip0: <PLIP> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel> on ppbus0
atkbdc0: <Keyboard> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <16550A> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
pmtimer0 on isa0
sc0: <System> at flags 0x100 on isa0
sc0: VGA <16>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ums0: Logitech USB Optical Mouse, rev 2.00/43.01, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
ukbd0: BTC USB Multimedia Keyboard, rev 1.10/1.00, addr 3, iclass 3/1
kbd2 at ukbd0
uhid0: BTC USB Multimedia Keyboard, rev 1.10/1.00, addr 3, iclass 3/1
Timecounters tick every 1.000 msec
hptrr: no controller detected.
acd0: DVDR <Optiarc> at ata0-master UDMA66
ad4: 238475MB <WDC> at ata2-master SATA150
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/ad4s1a
WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
drmsub0: <Intel>: (child of agp_i810.c) on agp0
info: [drm] AGP at 0xdfd00000 0MB
info: [drm] Initialized i915 1.5.0 20060119
hdaudio0: <Intel> mem 0xdfdf8000-0xdfdfbfff irq 19 at device 27.0 on pci0


Having random crashes with this one too:

Code: Select all
%ossinfo
Version info: OSS 4.0 (b071011/200802011455) (0x00040003) CDDL
Platform: FreeBSD/i386 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #0: Thu Nov 22 18:35:16 EET 2007     root@localhost:/usr/obj/usr/src/sys/SMP (localhost)

Number of audio devices:   17
Number of audio engines:   17
Number of MIDI devices:      0
Number of mixer devices:   1


Device objects
0: hdaudio0 Intel HD Audio
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086284b
    Subvendor ID 0x80862111
     Codec  2: STAC9227X 0x83847618
1: vmix0 OSS transparent virtual support

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)
0: Intel HD Audio STAC9227X (Mixer 0 of device object 0)

Audio devices
/dev/oss/hdaudio0/pcm0   Intel HD Audio play-front output  (device index 0)
/dev/oss/hdaudio0/pcm1   Intel HD Audio play-center/LFE output  (device index 1)
/dev/oss/hdaudio0/pcm2   Intel HD Audio play-rear output  (device index 2)
/dev/oss/hdaudio0/pcm3   Intel HD Audio play-side output  (device index 3)
/dev/oss/hdaudio0/spdout0   Intel HD Audio spdif-out output  (device index 4)
/dev/oss/hdaudio0/pcmin0   Intel HD Audio rec1 input  (device index 5)
/dev/oss/hdaudio0/pcmin1   Intel HD Audio rec2 input  (device index 6)
/dev/oss/hdaudio0/pcmin2   Intel HD Audio rec3 input  (device index 7)
/dev/oss/hdaudio0/spdin0   Intel HD Audio spdifin input  (device index 8)
/dev/oss/vmix0/pcm0   Intel HD Audio play-front output (VMIX0)  (device index 9)
/dev/oss/vmix0/pcm1   Intel HD Audio play-front output (VMIX0)  (device index 10)
/dev/oss/vmix0/pcm2   Intel HD Audio play-front output (VMIX0)  (device index 11)
/dev/oss/vmix0/pcm3   Intel HD Audio play-front output (VMIX0)  (device index 12)
/dev/oss/vmix0/pcm4   Intel HD Audio play-front output (VMIX0)  (device index 13)
/dev/oss/vmix0/pcm5   Intel HD Audio play-front output (VMIX0)  (device index 14)
/dev/oss/vmix0/pcm6   Intel HD Audio play-front output (VMIX0)  (device index 15)
/dev/oss/vmix0/pcm7   Intel HD Audio play-front output (VMIX0)  (device index 16)


Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE-p8 #0: Thu Nov 22 18:35:16 EET 2007
    root@localhost:/usr/obj/usr/src/sys/SMP
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz (1872.27-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6f2  Stepping = 2
  Features=0xbfebfbff<FPU>
  Features2=0xe3bd<SSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,<b9>,CX16,<b14>,<b15>>
  AMD Features=0x20100000<NX>
  AMD Features2=0x1<LAHF>
  Cores per package: 2
real memory  = 527015936 (502 MB)
avail memory = 497057792 (474 MB)
ACPI APIC Table: <INTEL>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 <Version> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <INTEL> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24> port 0x408-0x40b on acpi0
cpu0: <ACPI> on acpi0
acpi_throttle0: <ACPI> on cpu0
cpu1: <ACPI> on acpi0
acpi_throttle1: <ACPI> on cpu1
acpi_throttle1: failed to attach P_CNT
device_attach: acpi_throttle1 attach returned 6
acpi_button0: <Sleep> on acpi0
pcib0: <ACPI> port 0xcf8-0xcff on acpi0
pci0: <ACPI> on pcib0
pcib1: <ACPI> at device 1.0 on pci0
pci1: <ACPI> on pcib1
nvidia0: <GeForce> mem 0x31000000-0x31ffffff,0x20000000-0x2fffffff,0x30000000-0x30ffffff irq 16 at device 0.0 on pci1
nvidia0: [GIANT-LOCKED]
pci0: <simple> at device 3.0 (no driver attached)
em0: <Intel> port 0x20c0-0x20df mem 0x32200000-0x3221ffff,0x32224000-0x32224fff irq 20 at device 25.0 on pci0
em0: Ethernet address: 00:19:d1:48:3d:06
uhci0: <UHCI> port 0x20a0-0x20bf irq 16 at device 26.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <UHCI> 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
uhci1: <UHCI> port 0x2080-0x209f irq 21 at device 26.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <UHCI> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0: <EHCI> mem 0x32225400-0x322257ff irq 18 at device 26.7 on pci0
ehci0: [GIANT-LOCKED]
usb2: EHCI version 1.0
usb2: companion controllers, 2 ports each: usb0 usb1
usb2: <EHCI> on ehci0
usb2: USB revision 2.0
uhub2: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 4 ports with 4 removable, self powered
pci0: <multimedia> at device 27.0 (no driver attached)
pcib2: <ACPI> at device 28.0 on pci0
pci2: <ACPI> on pcib2
pcib3: <ACPI> at device 28.1 on pci0
pci3: <ACPI> on pcib3
atapci0: <GENERIC> port 0x1018-0x101f,0x1024-0x1027,0x1010-0x1017,0x1020-0x1023,0x1000-0x100f mem 0x32100000-0x321001ff irq 17 at device 0.0 on pci3
ata2: <ATA> on atapci0
ata3: <ATA> on atapci0
pcib4: <ACPI> at device 28.2 on pci0
pci4: <ACPI> on pcib4
pcib5: <ACPI> at device 28.3 on pci0
pci5: <ACPI> on pcib5
pcib6: <ACPI> at device 28.4 on pci0
pci6: <ACPI> on pcib6
uhci2: <UHCI> port 0x2060-0x207f irq 23 at device 29.0 on pci0
uhci2: [GIANT-LOCKED]
usb3: <UHCI> on uhci2
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
uhci3: <UHCI> port 0x2040-0x205f irq 19 at device 29.1 on pci0
uhci3: [GIANT-LOCKED]
usb4: <UHCI> on uhci3
usb4: USB revision 1.0
uhub4: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 2 ports with 2 removable, self powered
uhci4: <UHCI> port 0x2020-0x203f irq 18 at device 29.2 on pci0
uhci4: [GIANT-LOCKED]
usb5: <UHCI> on uhci4
usb5: USB revision 1.0
uhub5: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub5: 2 ports with 2 removable, self powered
ehci1: <EHCI> mem 0x32225000-0x322253ff irq 23 at device 29.7 on pci0
ehci1: [GIANT-LOCKED]
usb6: EHCI version 1.0
usb6: companion controllers, 2 ports each: usb3 usb4 usb5
usb6: <EHCI> on ehci1
usb6: USB revision 2.0
uhub6: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub6: 6 ports with 6 removable, self powered
pcib7: <ACPI> at device 30.0 on pci0
pci7: <ACPI> on pcib7
fwohci0: <Texas> mem 0x32004000-0x320047ff,0x32000000-0x32003fff irq 19 at device 3.0 on pci7
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:90:27:00:01:db:43:ff
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394> on fwohci0
fwe0: <Ethernet> on firewire0
if_fwe0: Fake Ethernet address: 02:90:27:db:43:ff
fwe0: Ethernet address: 02:90:27:db:43:ff
fwe0: if_start running deferred for Giant
sbp0: <SBP> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
isab0: <PCI> at device 31.0 on pci0
isa0: <ISA> on isab0
atapci1: <Intel> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x2410-0x241f,0x2400-0x240f irq 19 at device 31.2 on pci0
ata0: <ATA> on atapci1
ata1: <ATA> on atapci1
pci0: <serial> at device 31.3 (no driver attached)
atapci2: <Intel> port 0x2428-0x242f,0x2444-0x2447,0x2420-0x2427,0x2440-0x2443,0x20f0-0x20ff,0x20e0-0x20ef irq 19 at device 31.5 on pci0
ata4: <ATA> on atapci2
ata5: <ATA> on atapci2
ppc0: <ECP> port 0x378-0x37f,0x778-0x77f irq 7 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel> on ppc0
plip0: <PLIP> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel> on ppbus0
atkbdc0: <Keyboard> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
sio0: <16550A> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
pmtimer0 on isa0
orm0: <ISA> at iomem 0xc0000-0xcefff,0xcf000-0xcffff,0xd0000-0xd0fff on isa0
sc0: <System> at flags 0x100 on isa0
sc0: VGA <16>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
ad0: 152627MB <Seagate> at ata0-master SATA150
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/ad0s1a
hdaudio0: <Intel> mem 0x32220000-0x32223fff irq 22 at device 27.0 on pci0



No problems with this configuration:

Code: Select all
%ossinfo
Version info: OSS 4.0 (b071011/200802011437) (0x00040003) CDDL
Platform: FreeBSD/i386 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #0: Thu Nov 22 18:35:16 EET 2007     root@localhost:/usr/obj/usr/src/sys/SMP (localhost)

Number of audio devices:   15
Number of audio engines:   15
Number of MIDI devices:      0
Number of mixer devices:   1


Device objects
0: hdaudio0 Intel HD Audio
    HD Audio controller Intel HD Audio
    Vendor ID    0x808627d8
    Subvendor ID 0x80860110
     Codec  2: STAC9221 0x83847680
1: vmix0 OSS transparent virtual support

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)
0: Intel HD Audio STAC9221 (Mixer 0 of device object 0)

Audio devices
/dev/oss/hdaudio0/pcm0   Intel HD Audio play-front output  (device index 0)
/dev/oss/hdaudio0/pcm1   Intel HD Audio play-center/LFE output  (device index 1)
/dev/oss/hdaudio0/pcm2   Intel HD Audio play-rear output  (device index 2)
/dev/oss/hdaudio0/spdout0   Intel HD Audio spdif-out output  (device index 3)
/dev/oss/hdaudio0/pcmin0   Intel HD Audio rec1 input  (device index 4)
/dev/oss/hdaudio0/pcmin1   Intel HD Audio rec2 input  (device index 5)
/dev/oss/hdaudio0/spdin0   Intel HD Audio spdif-in input  (device index 6)
/dev/oss/vmix0/pcm0   Intel HD Audio play-front output (VMIX0)  (device index 7)
/dev/oss/vmix0/pcm1   Intel HD Audio play-front output (VMIX0)  (device index 8)
/dev/oss/vmix0/pcm2   Intel HD Audio play-front output (VMIX0)  (device index 9)
/dev/oss/vmix0/pcm3   Intel HD Audio play-front output (VMIX0)  (device index 10)
/dev/oss/vmix0/pcm4   Intel HD Audio play-front output (VMIX0)  (device index 11)
/dev/oss/vmix0/pcm5   Intel HD Audio play-front output (VMIX0)  (device index 12)
/dev/oss/vmix0/pcm6   Intel HD Audio play-front output (VMIX0)  (device index 13)
/dev/oss/vmix0/pcm7   Intel HD Audio play-front output (VMIX0)  (device index 14)

Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE-p8 #0: Thu Nov 22 18:35:16 EET 2007
    root@localhost:/usr/obj/usr/src/sys/SMP
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2805.72-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf47  Stepping = 7
  Features=0xbfebfbff<FPU>
  Features2=0x641d<SSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,<b14>>
  AMD Features=0x20100000<NX>
  Cores per package: 2
real memory  = 1072037888 (1022 MB)
avail memory = 1031487488 (983 MB)
ACPI APIC Table: <INTEL>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 <Version> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)


acpi0: <INTEL> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24> port 0x408-0x40b on acpi0
cpu0: <ACPI> on acpi0
cpu1: <ACPI> on acpi0
acpi_button0: <Sleep> on acpi0
pcib0: <ACPI> port 0xcf8-0xcff on acpi0
pci0: <ACPI> on pcib0
pcib1: <PCI> at device 1.0 on pci0
pci1: <PCI> on pcib1
nvidia0: <GeForce> mem 0x51000000-0x51ffffff,0x40000000-0x4fffffff,0x50000000-0x50ffffff irq 16 at device 0.0 on pci1
nvidia0: [GIANT-LOCKED]
pci0: <multimedia> at device 27.0 (no driver attached)
pcib2: <ACPI> at device 28.0 on pci0
pci2: <ACPI> on pcib2
pcib3: <ACPI> at device 28.2 on pci0
pci3: <ACPI> on pcib3
pcib4: <ACPI> at device 28.3 on pci0
pci4: <ACPI> on pcib4
uhci0: <UHCI> port 0x2080-0x209f irq 23 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <UHCI> 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
uhci1: <UHCI> port 0x2060-0x207f irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <UHCI> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <UHCI> port 0x2040-0x205f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <UHCI> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <UHCI> port 0x2020-0x203f irq 16 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <UHCI> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <Intel> mem 0x52104000-0x521043ff irq 23 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib5: <ACPI> at device 30.0 on pci0
pci5: <ACPI> on pcib5
fxp0: <Intel> port 0x1000-0x103f mem 0x52000000-0x52000fff irq 20 at device 8.0 on pci5
miibus0: <MII> on fxp0
inphy0: <i82562ET> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:16:76:7e:74:36
isab0: <PCI> at device 31.0 on pci0
isa0: <ISA> on isab0
atapci0: <Intel> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x20b0-0x20bf irq 18 at device 31.1 on pci0
ata0: <ATA> on atapci0
ata1: <ATA> on atapci0
atapci1: <Intel> port 0x20c8-0x20cf,0x20e4-0x20e7,0x20c0-0x20c7,0x20e0-0x20e3,0x20a0-0x20af irq 19 at device 31.2 on pci0
ata2: <ATA> on atapci1
ata3: <ATA> on atapci1
pci0: <serial> at device 31.3 (no driver attached)
ppc0: <ECP> port 0x378-0x37f,0x778-0x77f irq 7 on acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel> on ppc0
plip0: <PLIP> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel> on ppbus0
atkbdc0: <Keyboard> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
sio0: <16550A> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
pmtimer0 on isa0
orm0: <ISA> at iomem 0xc0000-0xcefff,0xcf000-0xd07ff,0xd0800-0xd17ff on isa0
sc0: <System> at flags 0x100 on isa0
sc0: VGA <16>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
acd0: CDRW <LITE> at ata0-master UDMA40
ad6: 152627MB <SAMSUNG> at ata3-master SATA150
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/ad6s1a
WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
hdaudio0: <Intel> mem 0x52100000-0x52103fff irq 22 at device 27.0 on pci0


From my testing I can see that OSS build 1008 is much more stable than newer versions.

Any suggestions would be great... Thank you!
Last edited by muanton on Fri Jul 25, 2008 9:49 am, edited 1 time in total.
muanton
New Member
 
Posts: 7
Joined: Wed Jul 23, 2008 1:17 pm

Postby cesium » Thu Jul 24, 2008 11:47 am

You're not the first to report this. There are several things you can try:
A. Does the version from the mercurial repository work? See here for how to build it.
B. If you can pinpoint where the regression exactly took place, it would be really helpful. I've made tarballs of the source of previous versions available. If you can test these, we may find out where the regression took place. Note that freebsd ports includes patches, which you may wish to apply to the source. (Most of these patches have been also applied to mercurial tip, except for the GETBLKSIZE one, which you may want to apply there too).
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby cesium » Thu Jul 24, 2008 12:21 pm

You can also try commenting out USE_SX_LOCK, though that didn't work in the previous thread.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby muanton » Thu Jul 24, 2008 1:45 pm

Version from mercurial repository do not work too. Just tested it.

I've found easier way to reproduce *oss STATE hang - ossmix hangs when launched a few times without any parameters (when adjusting sound levels - it doesn't hang). Maybe this could help debugging and finding the problem...

I'm using OSS on more than 20 computers which are used to display video ads on TV screens. As far as I remember the last stable version was b1008. Had stability problems with b1012.

I'm going to test b1011 in a few hours...
muanton
New Member
 
Posts: 7
Joined: Wed Jul 23, 2008 1:17 pm

Postby cesium » Thu Jul 24, 2008 2:30 pm

I diffed versions 1008, 1011 and 1012. It turns out there are no BSD-specific difference I could find between 1008 and 1011. There were quite a few between 1011 and 1012. I noticed you're using FreeBSD v6, so assuming the check
Code: Select all
#if __FreeBSD_version >= 700031
#define USE_SX_LOCK    1
#endif
is correct, I removed all diffs regarding the SX lock. All that's left is at http://oss.pastebin.com/m53484b99 . Another option, is that FreeBSD's ports had a patch for 1008 build which was removed, which happened to fix the issue. I found a candidate at: http://www.freebsd.org/cgi/cvsweb.cgi/p ... ideattic=0 . I suspect either of these two diffs contains the solution somewhere. Can you see any error? Does applying the msleep_spin diff help?
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby muanton » Thu Jul 24, 2008 3:16 pm

I was trying to install (make install) b1011 and got his error:

Code: Select all
Compiling module oss_ali5455
Compiling module oss_ali5455 failed
Warning: Object directory not changed from original /usr/lib/oss/build
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
make: don't know how to make oss_ali5455.c. Stop
*** Error code 2

Stop in /usr/home/muanton/oss.


Any workaround?

msleep_spin diff/change didn't help with the version from mercurial repository.
muanton
New Member
 
Posts: 7
Joined: Wed Jul 23, 2008 1:17 pm

Postby cesium » Thu Jul 24, 2008 3:24 pm

I think the files got mixed up somehow.. The mercurial/4.1 version uses "oss_*" driver names, while 4.0 didn't have a prefix. The 4.1 files remained, and make is trying to compile these too... To try b1011, remove the previous /usr/lib/oss/build and do "make install" again.

Another thing we can try, is to undo part of the os_freebsd.h 1011->1012 diff in the mercurial version, by restoring the old definitions to the !USE_SX_LOCK #else. i.e.

Code: Select all
#else  /* !USE_SX_LOCK */
struct mtx;
#define MUTEX_INIT(osdev, mutex, hier)  \
{ \
       mutex = malloc(sizeof (*mutex), M_DEVBUF, M_NOWAIT|M_ZERO); \
       mtx_init(mutex, "oss", NULL, MTX_RECURSE|MTX_SPIN); \
}
#define MUTEX_CLEANUP(mutex) { mtx_destroy (mutex); free(mutex, M_DEVBUF); }
#define MUTEX_ENTER_IRQDISABLE(mutex, flags) mtx_lock_spin_flags(mutex, flags)
#define MUTEX_ENTER(mutex, flags) mtx_lock_spin(mutex)
#define MUTEX_EXIT_IRQRESTORE(mutex, flags) mtx_unlock_spin_flags(mutex, flags)
#define MUTEX_EXIT(mutex, flags) mtx_unlock_spin (mutex)
#endif
instead of the previous #else part in os_freebsd.h (recompile neccesary in that case).
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby muanton » Thu Jul 24, 2008 3:48 pm

Tried removing build directory - I was getting other errors before removing it. It didn't help anyway...

I was comparing os_freebsd.h from b1008 with dev version and decided to replace
Code: Select all
struct mtx;
#define MUTEX_INIT(osdev, mutex, hier) \
do { \
        mutex = malloc(sizeof(*mutex), M_DEVBUF, M_WAITOK | M_ZERO); \
        mtx_init(mutex, "oss", NULL, MTX_RECURSE); \
} while (0)
#define MUTEX_CLEANUP(mutex) \
do { \
        mtx_destroy(mutex); \
        free(mutex, M_DEVBUF); \
} while (0)
#define MUTEX_ENTER_IRQDISABLE(mutex, flags)    mtx_lock(mutex)
#define MUTEX_ENTER(mutex, flags)               mtx_lock(mutex)
#define MUTEX_EXIT_IRQRESTORE(mutex, flags)     mtx_unlock(mutex)
#define MUTEX_EXIT(mutex, flags)                mtx_unlock(mutex)


with this one (as you suggested):

Code: Select all
struct mtx;

#define MUTEX_INIT(osdev, mutex, hier)  \
{ \
        mutex = malloc(sizeof (*mutex), M_DEVBUF, M_NOWAIT|M_ZERO); \
        mtx_init(mutex, "oss", NULL, MTX_RECURSE|MTX_SPIN); \
}
#define MUTEX_CLEANUP(mutex) { mtx_destroy (mutex); free(mutex, M_DEVBUF); }
#define MUTEX_ENTER_IRQDISABLE(mutex, flags) mtx_lock_spin_flags(mutex, flags)
#define MUTEX_ENTER(mutex, flags) mtx_lock_spin(mutex)
#define MUTEX_EXIT_IRQRESTORE(mutex, flags) mtx_unlock_spin_flags(mutex, flags)
#define MUTEX_EXIT(mutex, flags) mtx_unlock_spin (mutex)


ossmix doesn't hang with *oss lock anymore... Started tests with mplayer... Let's see if it hangs..
muanton
New Member
 
Posts: 7
Joined: Wed Jul 23, 2008 1:17 pm

Postby muanton » Thu Jul 24, 2008 4:27 pm

btw, I've stated in my first post that " OSS build 1008 is much more stable than newer versions"... We are running OSS b1008 on 20 computers, 5 of them hangs randomly while mplayer is playing video. It happens 2-4 times a month. But I think it's motherboard or OS issue, not OSS. But everything was ok while we were using winxp...
muanton
New Member
 
Posts: 7
Joined: Wed Jul 23, 2008 1:17 pm

Postby cesium » Thu Jul 24, 2008 4:32 pm

You didn't state if mplayer works now. Assuming that it does, and we are somewhere near the cause, I'd like you to test this change: (To previous block)

Code: Select all
#define MUTEX_INIT(osdev, mutex, hier)  \
do { \
       mutex = malloc(sizeof (*mutex), M_DEVBUF, M_WAITOK|M_ZERO); \
       mtx_init(mutex, "oss", NULL, MTX_RECURSE|MTX_SPIN); \
} while (0)
#define MUTEX_CLEANUP(mutex) \
do { \
  mtx_destroy (mutex); \
  free(mutex, M_DEVBUF); \
} while (0)
#define MUTEX_ENTER_IRQDISABLE(mutex, flags) mtx_lock_spin_flags(mutex, flags)
#define MUTEX_ENTER(mutex, flags) mtx_lock_spin(mutex)
#define MUTEX_EXIT_IRQRESTORE(mutex, flags) mtx_unlock_spin_flags(mutex, flags)
#define MUTEX_EXIT(mutex, flags) mtx_unlock_spin (mutex)
#endif


And in os_freebsd.c replace
Code: Select all
flag = msleep (wq, *mutex, PRIBIO | PCATCH, "oss", ticks);
with:
Code: Select all
flag = mtx_sleep (wq, *mutex, PRIBIO | PCATCH, "oss", ticks);


re: other crashes... I don't know. There could be quite a few possibilities regardless of OSS. Is there anything in common between these computers?
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby muanton » Thu Jul 24, 2008 5:49 pm

there no more crashes/hangs with mplayer

After changing msleep to mtx_sleep:
Code: Select all
link_elf: symbol mtx_sleep undefined
kldload: can't load /usr/lib/oss/modules/osscore.ko: No such file or directory
Loading the osscore module failed


I've changed os_freebsd.h as you asked, but in os_freebsd.c I've left this one:
Code: Select all
flag = msleep_spin (wq, *mutex, "oss", ticks);


This one is from FreeBSD port patch. I was using it all the time during my last tests...

With this modification ossmix doesn't hang. mplayer seems to work fine too.. I'm going to leave it playing through the night. Will post results tomorrow.
muanton
New Member
 
Posts: 7
Joined: Wed Jul 23, 2008 1:17 pm

Postby dev » Thu Jul 24, 2008 9:36 pm

Does this also affect FreeBSD 7?. I thought freebsd7 was stable now.


regards
Dev
dev
Developer
 
Posts: 577
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby cesium » Thu Jul 24, 2008 9:43 pm

There's a thread with a very similar issue on FreeBSD 7.0-STABLE and there's another post with a panic on 8.0-CURRENT (See also report).
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby muanton » Fri Jul 25, 2008 9:48 am

mplayer was looping video all the night. Everything works fine and no hangs :)

I have one FreeBSD 7 machine which I can use it for testing OSS.
muanton
New Member
 
Posts: 7
Joined: Wed Jul 23, 2008 1:17 pm

Postby dev » Fri Jul 25, 2008 5:59 pm

muanton wrote:mplayer was looping video all the night. Everything works fine and no hangs :)

I have one FreeBSD 7 machine which I can use it for testing OSS.



OK, kindly provide a patch to Hannu (hannu@opensound.com) so that he can include it in the HG version.



regards
Dev Mazumdar
dev
Developer
 
Posts: 577
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Next

Return to BSD

Who is online

Users browsing this forum: No registered users and 1 guest