Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 1998 22:31:10 -0700 (PDT)
From:      jl@noether.uoregon.edu
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   kern/8113: no snd0 in kernel implies ed0 gets device timeout
Message-ID:  <199810010531.WAA17031@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         8113
>Category:       kern
>Synopsis:       no snd0 in kernel implies ed0 gets device timeout
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 30 22:40:00 PDT 1998
>Last-Modified:
>Originator:     Joshua Lackey
>Organization:
University of Oregon
>Release:        3.0-BETA (but not a BETA problem)
>Environment:
FreeBSD axis.uoregon.edu 3.0-BETA FreeBSD 3.0-BETA #0: Wed Sep 30 21:34:42 PDT 1998     jl@axis.uoregon.edu:/usr/src/sys/compile/AXIS  i386

>Description:
Summary:

Device ed0 fails with ``device timeout'' unless controller snd0 exists.


Rambling explanation:

Frankly I don't expect anyone to believe this.  I barely believe it myself.

I recently bought my son a computer (so I could use my own now and
again...)  It came with a sound card but no speakers so I just took the
speakers off of my machine and put them on his.  Now I cvsup sources and
rebuild my kernel fairly regularly (mainly for pure hack pleasure) and so
once I didn't have any speakers I figured I might as well comment the
sound support out of my kernel config file.  As you might have guessed
from the above summary, when I reboot --

axis /kernel: ed0: device timeout

Now at first, I thought that somebody must have recently made a bogus
update.  But I checked the date on if_ed.c and it hadn't been changed
since I last made a kernel.  So I did the obvious thing, I put the sound
support back in the kernel, rebooted, bingo I've got ethernet again. 

Frankly I've had problems with my cheap NE2000 clone getting timeouts
before.  But ONLY when I'm booting a kernel without sound support!  i.e. a
fresh install.  This has been happening since, heck, I don't know, version
1.1 as far as I can remember.  Kind of a pain installing without being
able to use the ethernet card, but I've always been able to find a way
around it so I've never really worried about it.  Once the kernel config
option was placed in the install I thought ``Great!  Now I can FTP install
again.'' But even with the correct irq and port it still wouldn't work. 
It never occured to me that the reason I couldn't use ethernet was because
the GENERIC kernel didn't have sound support! 

Well, I'm not sure what anyone can do about this, or even whether anything
should be done.  But it certainly is a bug... 

What I'd really like is for someone to suggest a real nice PCI ethernet
card (and a good on-line place to buy it.) 

I'm including dmesg output and my kernel config in case it matters. 

Joshua Lackey.

--

dmesg output:

Copyright (c) 1992-1998 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 3.0-BETA #0: Wed Sep 30 21:34:42 PDT 1998
    jl@axis.uoregon.edu:/usr/src/sys/compile/AXIS
Timecounter "i8254"  frequency 1193182 Hz  cost 3191 ns
Timecounter "TSC"  frequency 199310326 Hz  cost 242 ns
CPU: Pentium Pro (199.31-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x619  Stepping=9
  Features=0xf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV>
real memory  = 67108864 (65536K bytes)
avail memory = 63037440 (61560K bytes)
Probing for devices on PCI bus 0:
chip0: <Intel 82440FX (Natoma) PCI and memory controller> rev 0x02 on pci0.0.0
chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.7.0
ide_pci0: <Intel PIIX3 Bus-master IDE controller> rev 0x00 on pci0.7.1
vga0: <ATI Mach64-GX graphics accelerator> rev 0x03 on pci0.10.0
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 at 0x300-0x31f irq 5 on isa
ed0: address 00:40:95:15:53:e8, type NE2000 (16 bit) 
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
wdc0: unit 0 (wd0): <QUANTUM FIREBALL SE4.3A>, DMA, 32-bit, multi-block-16
wd0: 4110MB (8418816 sectors), 14848 cyls, 9 heads, 63 S/T, 512 B/S
wdc0: unit 1 (wd1): <WDC AC21600H>, DMA, 32-bit, multi-block-16
wd1: 1549MB (3173184 sectors), 3148 cyls, 16 heads, 63 S/T, 512 B/S
wdc1 at 0x170-0x177 irq 15 flags 0xa0ffa0ff on isa
wdc1: unit 0 (atapi): <CD-532E/1.0A>, removable, accel, ovlap, dma, iordis
wcd0: 5512Kb/sec, 128Kb cache, audio play, 16 volume levels, ejectable tray
wcd0: no disc inside, unlocked
npx0 on motherboard
npx0: INT 16 interface
sb0 at 0x220 irq 7 drq 1 on isa
snd0: <SoundBlaster 16 4.13> 
sbxvi0 at ? drq 5 on isa
snd0: <SoundBlaster 16 4.13> 
sbmidi0 at 0x330 on isa
snd0: <SoundBlaster MPU-401> 
opl0 at 0x388 on isa
snd0: <Yamaha OPL3 FM> 
IP packet filtering initialized, divert disabled, rule-based forwarding disabled
, unlimited logging
changing root device to wd0s1a
ffs_mountfs: superblock updated
ffs_mountfs: superblock updated
ffs_mountfs: superblock updated

--

config file:


machine         "i386"
cpu             "I686_CPU"
ident           AXIS
maxusers        10

options         INET                    #InterNETworking
options         FFS                     #Berkeley Fast Filesystem
options         NFS                     #Network Filesystem
options         MSDOSFS                 #MSDOS Filesystem
options         "CD9660"                #ISO 9660 Filesystem
options         PROCFS                  #Process filesystem
options         MFS
options         "COMPAT_43"             #Compatible with BSD 4.3 [KEEP THIS!]
options         UCONSOLE                #Allow users to grab the console
options         SYSVSHM
options         SYSVSEM
options         SYSVMSG
options         "MD5"
options         PERFMON
options         IPFIREWALL
options         IPFIREWALL_VERBOSE
#options                IPFILTER
#options                IPFILTER_LOG
options         ATAPI
options         ATAPI_STATIC
options         KTRACE
options         VISUAL_USERCONFIG
options         PQ_LARGECACHE
options         SC_HISTORY_SIZE=2048
options         SOFTUPDATES

config          kernel  root on wd0

controller      isa0
controller      pci0

controller      fdc0    at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk            fd0     at fdc0 drive 0

controller      wdc0    at isa? port "IO_WD1" bio irq 14 flags 0xa0ffa0ff vector
 wdintr
disk            wd0     at wdc0 drive 0
disk            wd1     at wdc0 drive 1

controller      wdc1    at isa? port "IO_WD2" bio irq 15 flags 0xa0ffa0ff vector
 wdintr
disk            wd2     at wdc1 drive 0
disk            wd3     at wdc1 drive 1

device          wcd0    #IDE CD-ROM

device          sc0     at isa? port "IO_KBD" tty irq 1 vector scintr

device          npx0    at isa? port "IO_NPX" iosiz 0x0 flags 0x0 irq 13 vector npxintr

device          sio0    at isa? port "IO_COM1" tty irq 4 vector siointr
device          sio1    at isa? port "IO_COM2" tty irq 3 vector siointr

device ed0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector edintr

controller      snd0
device          sb0     at isa? port 0x220 irq 7 drq 1 vector sbintr
device          sbxvi0  at isa? drq 5
device          sbmidi0 at isa? port 0x330
device          opl0    at isa? port 0x388

#controller     pnp0

pseudo-device   loop
pseudo-device   ether
pseudo-device   pty             32
pseudo-device   bpfilter        4
pseudo-device   snp             4

>How-To-Repeat:
I'm not sure.  It may only be reproduceable if you have a cheap NE2000
clone.
>Fix:
Hehehe.  Include ``controller snd0'' in your kernel config file.
>Audit-Trail:
>Unformatted:

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



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