i386/76840: aureal-kmod locks the STABLE snapshot of 30.01.05

Vasily Korytov deskpot at myrealbox.com
Sat Jan 29 19:00:34 PST 2005


>Number:         76840
>Category:       i386
>Synopsis:       aureal-kmod locks the STABLE snapshot of 30.01.05
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 30 03:00:33 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Vasily Korytov
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
Good morning, Jah!
>Environment:
System: FreeBSD dub.home.local 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Jan 30 05:17:44 MSK 2005 root at dub.home.local:/usr/src/sys/i386/compile/DUB i386

I have a workstation with AMD CPU, NForce motherboard, Radeon video
card, 3Com NIC and and Aureal sound card.

For the sound board I have the aureal-kmod-1.5_4 port installed. Until
now it has been working okay (since 5.2.1). After loading the module,
the kernel prints this:

pcm0: <Aureal Vortex 8830> port 0xc400-0xc407,0xc000-0xc007 mem
0xeb000000-0xeb03ffff irq 10 at device 7.0 on pci1
pcm0: failed: rid 0x14 is ioport, requested 3
pcm0: failed: rid 0x18 is ioport, requested 3

The whole dmesg, shown after boot, is below:

Copyright (c) 1992-2005 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.3-STABLE #0: Sun Jan 30 05:17:44 MSK 2005
    root at dub.home.local:/usr/src/sys/i386/compile/DUB
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Duron(tm) processor (2029.61-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x681  Stepping = 1
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400000<AMIE,DSP,3DNow!>
real memory  = 536805376 (511 MB)
avail memory = 519819264 (495 MB)
mptable_probe: MP Config Table has bad signature: \^O8\^O
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <Nvidia AWRDACPI> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <NVIDIA nForce2 AGP Controller> mem 0xe0000000-0xe7ffffff at
device 0.0 on pci0
pci0: <memory, RAM> at device 0.1 (no driver attached)
pci0: <memory, RAM> at device 0.2 (no driver attached)
pci0: <memory, RAM> at device 0.3 (no driver attached)
pci0: <memory, RAM> at device 0.4 (no driver attached)
pci0: <memory, RAM> at device 0.5 (no driver attached)
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 1.1 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xec000000-0xec000fff irq 11
at devic e 2.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ums0: Logitech Optical USB Mouse, rev 2.00/3.40, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
ohci1: <OHCI (generic) USB controller> mem 0xec001000-0xec001fff irq 3
at device 2.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: SMM does not respond, resetting
usb1: <OHCI (generic) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pci0: <serial bus, USB> at device 2.2 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 8.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <multimedia, audio> at device 7.0 (no driver attached)
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xc800-0xc87f mem
0xeb040000-0xeb04 007f irq 11 at device 8.0 on pci1
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:10:5a:a3:61:97
atapci0: <nVidia nForce2 UDMA133 controller> port
0xf000-0xf00f,0x376,0x170-0x17 7,0x3f6,0x1f0-0x1f7 at device 9.0 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pci2: <display, VGA> at device 0.0 (no driver attached)
pci2: <display> at device 0.1 (no driver attached)
fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
ppc0: <ECP parallel printer port> port 0x778-0x77b,0x378-0x37f irq 7 drq
3 on ac pi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROMs> at iomem 0xd0000-0xd3fff,0xc0000-0xccfff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2029612428 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 114473MB <ST3120026A/8.01> [232581/16/63] at ata0-master UDMA100
cd0 at ata1 bus 0 target 0 lun 0
cd0: <ASUS CD-S520/A4 1.2> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Mounting root from ufs:/dev/ad0s2a
pcm0: <Aureal Vortex 8830> port 0xc400-0xc407,0xc000-0xc007 mem
0xeb000000-0xeb03ffff irq 10 at device 7.0 on pci1
pcm0: failed: rid 0x14 is ioport, requested 3
pcm0: failed: rid 0x18 is ioport, requested 3

>Description:

After loading the module the sound board works OK. But -- only if the
kernel source from 5-STABLE is dated before 2005.01.29.12.00.00, the
snapshot of 2005.01.30 breaks everything.

When the module is loading it pauses for several seconds, no additional
diagnostics are printed on the console or in the syslog. This isn't the
problem. The problem appears after that -- if user wants to play a sound
file -- say, starts a xmms -- the system is immediately locked, without
producing any sound. No additional information is displayed, the display
locks and the machine stops responding to everything. The same is done,
when nothing is played, but the machine is turning over and the
aureal-kmod is unloaded.

>How-To-Repeat:

I don't know, on what hardware is it reproduceable.

Anyway, if you get an Aureal Vortex sound card, try compiling the kernel
of 30 January 05 (or later), reboot, load aureal-kmod and try to unload
it. If you meet the same problem, your computer will lock.

>Fix:

I did try compiling kernels from 25 january to 30 january. The kernel of
12:00 of 29 january doesn't have the lock, the kernel from 30 january
haves it. cvsup output when downgrading src-sys from 30.01 kernel to
29.01 kernel is shown below:

Connected to cvsup4.ru.FreeBSD.org
Updating collection src-sys/cvs
 Edit src/sys/dev/acpica/acpi.c
 Edit src/sys/dev/acpica/acpi_if.m
 Edit src/sys/dev/bge/if_bge.c
 Edit src/sys/dev/lge/if_lge.c
 Edit src/sys/dev/nge/if_nge.c
 Edit src/sys/dev/pci/pci.c
 Edit src/sys/kern/kern_mib.c
 Edit src/sys/kern/kern_mtxpool.c
 Edit src/sys/kern/kern_prot.c
 Edit src/sys/kern/kern_xxx.c
 Edit src/sys/libkern/strvalid.c
 Edit src/sys/net/bridge.c
 Edit src/sys/net/if.h
 Edit src/sys/net/if_sl.c
 Edit src/sys/net/if_vlan.c
 Edit src/sys/netgraph/bluetooth/drivers/h4/ng_h4.c
 Edit src/sys/netgraph/bluetooth/drivers/h4/ng_h4_var.h
 Edit src/sys/netgraph/ng_base.c
 Edit src/sys/netgraph/ng_bridge.c
 Edit src/sys/netgraph/ng_ether.c
 Edit src/sys/netgraph/ng_l2tp.c
 Edit src/sys/netgraph/ng_ppp.c
 Edit src/sys/netgraph/ng_pppoe.c
 Edit src/sys/netgraph/ng_pptpgre.c
 Edit src/sys/netinet/ip_input.c
 Edit src/sys/pci/agp_ali.c
 Edit src/sys/pci/agp_intel.c
 Edit src/sys/pci/if_de.c
 Edit src/sys/security/mac/mac_internal.h
 Edit src/sys/security/mac/mac_label.c
 Edit src/sys/security/mac/mac_vfs.c
 Edit src/sys/security/mac_biba/mac_biba.c
 Edit src/sys/security/mac_bsdextended/mac_bsdextended.c
 Edit src/sys/security/mac_bsdextended/mac_bsdextended.h
 Edit src/sys/security/mac_lomac/mac_lomac.c
 Edit src/sys/security/mac_mls/mac_mls.c
 Edit src/sys/security/mac_stub/mac_stub.c
 Edit src/sys/security/mac_test/mac_test.c
Finished successfully

And I was not able to track this problem further. If there is some
additional diagnostics I can share, I would be glad to help.
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-i386 mailing list