Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Sep 2001 17:05:02 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        stable@freebsd.org
Cc:        cg@freebsd.org
Subject:   Solid hangs caused by pcm
Message-ID:  <XFMail.010906170502.jdp@polstra.com>

next in thread | raw e-mail | index | archive | help
This message is in MIME format
--_=XFMail.1.3.p0.FreeBSD:010906170502:303=_
Content-Type: text/plain; charset=us-ascii

I did a binary search through recent kernel space and found the
commit that is causing my -stable system to hang solid.  The commit
that broke it was Cameron's massive MFC of newpcm dated 2001/07/31
20:41:11 PDT (that's 2001/08/01 03:41:11 UTC).

  Log:
  mfc of newpcm state as at june 24.
  
  * untypedef various structs
  * rate conversion feeder
  * vchan support - no automatic creation however
  * many bugfixes

I'll spare you the list of more than 70 files which were changed or
created by this commit.

With a kernel from just before this commit, sound works fine.  With
a kernel containing this commit, I can hang the system reliably and
uninterruptibly.  All I have to do is try to play a RealAudio sound
sample off the web using Linux rvplayer 5.0.  It is still failing the
same way on a -stable kernel from today.

These hangs are utterly solid.  I can't even break into ddb using the
screwdriver-in-the-ISA-slot trick.  We're talking hit the reset button
here.

My kernel config file and dmesg output are attached.

I really think this is something that needs to be fixed before the
release.  Unfortunately, it's very hard to debug it since there's
no way to enter the debugger once it's hung.  Tracking it down is
probably going to require adding a bunch of consistency checks into
the sound code so that it will panic before it hangs.  I know nothing
about this part of the code, but I'll be happy to test patches if they
are provided.

John

--_=XFMail.1.3.p0.FreeBSD:010906170502:303=_
Content-Disposition: attachment; filename="dmesg.boot"
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii; name=dmesg.boot; SizeOnDisk=4190

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 4.4-RC #1: Sat Sep  1 10:41:49 PDT 2001
    jdp@vashon.polstra.com:/usr/src/sys/compile/VASHON
Timecounter "i8254"  frequency 1193043 Hz
Timecounter "TSC"  frequency 400862402 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (400.86-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x651  Stepping = 1
  Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
OV,PAT,PSE36,MMX,FXSR>
real memory  = 134217728 (131072K bytes)
sio1: gdb debugging port
avail memory = 126488576 (123524K bytes)
Preloaded elf kernel "kernel" at 0xc03f1000.
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <Matrox MGA Millennium II 2164WA-B AG graphics accelerator> at 0.0 irq 0
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2
chip1: <Intel 82371AB Power management controller> port 0x440-0x44f at device 7.
3 on pci0
pcib2: <DEC 21152 PCI-PCI bridge> at device 16.0 on pci0
pci2: <PCI bus> on pcib2
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xef40-0xef5f mem 0xfea00000-0xfeaf
ffff,0xfd0ff000-0xfd0fffff irq 11 at device 17.0 on pci0
fxp0: Ethernet address 00:e0:81:10:09:c2
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc0: <Adaptec aic7895 Ultra SCSI adapter> port 0xe400-0xe4ff mem 0xfebfe000-0xf
ebfefff irq 10 at device 18.0 on pci0
aic7895C: Ultra Wide Channel A, SCSI Id=7, 32/255 SCBs
ahc1: <Adaptec aic7895 Ultra SCSI adapter> port 0xe800-0xe8ff mem 0xfebff000-0xf
ebfffff irq 10 at device 18.1 on pci0
aic7895C: Ultra Wide Channel B, SCSI Id=7, 32/255 SCBs
fxp1: <Intel Pro 10/100B/100+ Ethernet> port 0xef80-0xef9f mem 0xfe800000-0xfe8f
ffff,0xfd0fe000-0xfd0fefff irq 9 at device 20.0 on pci0
fxp1: Ethernet address 00:a0:c9:b0:13:df
inphy1: <i82555 10/100 media interface> on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcc7ff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 flags 0x80 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
sbc0: <Creative ViBRA16X> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 
1,3 on isa0
pcm1: <SB16 DSP 4.16 (ViBRA16X)> on sbc0
IPsec: Initialized Security Association Processing.
acd0: CD-RW <PLEXTOR CD-R PX-W1610A> at ata0-master using PIO4
Waiting 2 seconds for SCSI devices to settle
Mounting root from ufs:/dev/da0s1a
da1 at ahc1 bus 0 target 1 lun 0
da1: <IBM DDYS-T18350N S96H> Fixed Direct Access SCSI-3 device 
da1: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da1: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
da0 at ahc0 bus 0 target 0 lun 0
da0: <IBM DNES-309170W SA30> Fixed Direct Access SCSI-3 device 
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da0: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C)
WARNING: / was not properly dismounted

--_=XFMail.1.3.p0.FreeBSD:010906170502:303=_
Content-Disposition: attachment; filename="VASHON"
Content-Type: text/plain; charset=us-ascii; name=VASHON; SizeOnDisk=2426
Content-Transfer-Encoding: 7bit

#
# VASHON config file.
#

machine		i386
cpu		I686_CPU
ident		VASHON
maxusers	128

options		CLK_USE_I8254_CALIBRATION
options		CLK_USE_TSC_CALIBRATION
options		COMPAT_43
options		USER_LDT		# used by WINE
options		SYSVSHM
options		SYSVSEM
options		SYSVMSG
options		DDB
# options		DDB_UNATTENDED
options		KTRACE			#kernel tracing
options		UCONSOLE
options		INET			#Internet communications protocols
options		INET6			#IPv6
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor

pseudo-device	bpf			#Berkeley packet filter
pseudo-device	ether			#Generic Ethernet
pseudo-device	loop			#Network loopback device
pseudo-device	pty			#Pseudo ttys - can go as high as 256
pseudo-device	snp		3	#Snoop device - to look at pty/vty/etc.
pseudo-device	tun			#Tunnel driver (user process ppp)
pseudo-device	vn			#Turns a file into a device

options		IPSEC
options		IPSEC_ESP
pseudo-device	gif		4

options		FFS			#Fast filesystem
options		FFS_ROOT
options		SOFTUPDATES
options		MFS			#Memory filesystem
options		NFS			#Network File System
options		CD9660			#ISO 9660 filesystem
options		EXT2FS
options		MSDOSFS			#MS DOS File System
options		PROCFS			#Process filesystem

options		NSWAPDEV=4

# For ntpd:
options		P1003_1B
options		_KPOSIX_PRIORITY_SCHEDULING

device		pci
device		fxp
device		miibus

device		ahc
options		AHC_ALLOW_MEMIO		#Memory-mapped I/O
device		ahc0
device		ahc1
device		scbus0 at ahc0		#base SCSI code
device		scbus1 at ahc1		#base SCSI code
device		da
device		da0 at scbus0 target 0 unit 0	#SCSI disks
device		da1 at scbus1 target 1 unit 0	#SCSI disks

device		sa			#SCSI tapes
device		cd			#SCSI CD-ROMs
device		pass			#SCSI pass-thru device

device		isa
options		AUTO_EOI_1

# Keyboard, mouse, display.
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1
device		psm0	at atkbdc? irq 12

device		vga0	at isa?

device		sc0	at isa? flags 0x100
pseudo-device	splash

device		npx0	at nexus? port IO_NPX irq 13

device		ata	# PCI device
device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		atadisk
device		atapicd
#options 	ATA_ENABLE_ATAPI_DMA

device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0

device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 flags 0x80 irq 3

device		ppc0	at isa? irq 7
device		ppbus
device		plip

device		pcm0	at isa? port? irq 10 drq 1

device		md

--_=XFMail.1.3.p0.FreeBSD:010906170502:303=_--
End of MIME message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010906170502.jdp>