Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Apr 1999 13:15:29 -0400 (EDT)
From:      Brian Feldman <green@unixhelp.org>
To:        Peter Wemm <peter@netplex.com.au>
Cc:        current@FreeBSD.ORG
Subject:   Re: new-bus breaks both sound drivers 
Message-ID:  <Pine.BSF.4.10.9904171313050.21249-100000@janus.syracuse.net>
In-Reply-To: <19990417072558.578211F69@spinner.netplex.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 17 Apr 1999, Peter Wemm wrote:

> Chris Piazza wrote:
> > On 17-Apr-99 Brian Feldman wrote:
> > > Both sound drivers are broken with the new-bus code. My SB16, in the old
> > > driver, now gets recognized but sbxvi is never looked for. pcm0, the new
> > > driver, never initializes with the new code :(
> > > 
> > > device pcm0 at isa? port? tty irq 5 drq 1 flags 0x16
> > > 
> > 
> > The pcm0 sounddriver works for me.  In fact, the only problem I had with new
> > bus was it is now pcm0 instead of pcm1 ;-).
> > 
> > es0: <AudioPCI ES1370> at device 9.0 on pci0
> > pcm0: using I/O space register mapping at 0xd800
> > es0: interrupting at irq 4
> > 
> > device          pcm0
> 
> On two different systems it works for me using pcm0..
> 
> This is an ESS clone card:
> 
> Probing for PnP devices:
> CSN 1 Vendor ID: ESS1868 [0x68187316] Serial 0xffffffff Comp ID: PNPb02f [0x2fb0
> d041]
> ESS1868 (rev 11)
> pcm1 (ESS1868 <ESS1868> sn 0xffffffff) at 0x220-0x22f irq 5 drq 1 on isa
> 
> This is an on-board Crystal SB-like PnP device:
> 
> Probing for PnP devices:
> CSN 1 Vendor ID: CSC0b36 [0x360b630e] Serial 0xffffffff Comp ID: @@@0000 [0x0000
> 0000]
> mss_attach <CS4236>1 at 0x530 irq 5 dma 1:0 flags 0x10
> pcm1 (CS423x/Yamaha/AD1816 <CS4236> sn 0xffffffff) at 0x530-0x537 irq 5 drq 1 fl
> ags 0x10 on isa
> 
> For what it's worth, PnP has for the most part not been changed under
> new-bus and is using the old mechanisms.  The only significant risk is that
> the attach code doesn't like what I've done with the emulation of
> isa_device->id_id for "unit numbers".
> 
> I'm sorry, you're going to need to have a bit of a look around and turning
> on or inserting some debug code to see what's happening.
> 
> Cheers,
> -Peter
> 
> 
> 

Here's what's going on with the pcm code. I've got an on-board audio device
that should probably eventually be supported, is PnP and detected, but
not recognized by the pcm driver. However, my SB16 ALSO fails to be attached.
My SB16 is a nice pre-PnP one, which used to work fine with either audio
driver. I'll paste my current config and dmesg.

#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
# For more information read the handbook part System Administration -> 
# Configuring the FreeBSD Kernel -> The Configuration File. 
# The handbook is available in /usr/share/doc/handbook or online as
# latest version from the FreeBSD World Wide Web server 
# <URL:http://www.FreeBSD.ORG/>;
#
# An exhaustive list of options and more detailed explanations of the 
# device lines is present in the ./LINT configuration file. If you are 
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
#	$Id: GENERIC,v 1.102 1998/01/11 02:16:38 jkh Exp $

machine		"i386"
cpu			"I586_CPU"
ident		"CUSTOM"	
maxusers	128
makeoptions	DEBUG="-g"

options		"MATH_EMULATE"          #Support for x87 emulation
options		"INET"			#InterNETworking
options		"FFS"			#Berkeley Fast Filesystem
options		"FFS_ROOT"		#FFS usable as root device [keep this!] 
options		"CD9660"		#ISO 9660 Filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options		"UCONSOLE"		#Allow users to grab the console
options		"FAILSAFE"		#Be conservative
options		"USERCONFIG"		#boot -c editor
options		"VISUAL_USERCONFIG"	#visual boot -c editor
options		"NO_F00F_HACK"
options		"IPFIREWALL"
options		"IPFIREWALL_DEFAULT_TO_ACCEPT"
options		"IPFIREWALL_FORWARD"      #enable xparent proxy support
options		"IPDIVERT"
options		"IPSTEALTH"
options		"DUMMYNET"
options		"DDB"
options		"DDB_UNATTENDED"
options		"VM86"
options		"SOFTUPDATES"
options		"PQ_HUGECACHE"           # color for 1024k cache
options		"ICMP_BANDLIM"                                                  
options		"MSGBUF_SIZE=16384"                                             
options		"VESA"
options		"INVARIANTS"
options		"INVARIANT_SUPPORT"
options		"CLK_USE_TSC_CALIBRATION"

#options	"ICMP_BANDLIM_SILENT"
#options	"CPU_WT_ALLOC"
#options	"NO_MEMORY_HOLE"

config		kernel	root on wd0

controller	pci0	at nexus?
controller	isa0	at nexus?
controller	pnp0

# Luigi's snd code.
# You may also wish to enable the pnp controller with this, for pnp
# sound cards.
#
device pcm0
device pcm1 at isa? port? tty irq 5 drq 1 flags 0x16

#controller      snd0
#device sb0      at isa? port 0x220 irq 5 drq 1
#device sbxvi0   at isa? drq 6 
#device sbmidi0  at isa? port 0x330
#device opl0     at isa? port 0x388
device          joy0    at isa? port "IO_GAME"

#controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2
#disk		fd0	at fdc0 drive 0
#disk		fd1	at fdc0 drive 1

# for a PCI only system (most modern machines)
#controller      ata0
#device          atadisk0        # ATA disks
#device          atapicd0        # ATAPI CDROM's
#device          atapist0        # ATAPI tapes
#device			atapifd0
#options			"ATA_STATIC_ID"

controller	wdc0	at isa? port "IO_WD1" bio irq 14 flags 0xa0ffa0ff
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1
controller	wdc1	at isa? port "IO_WD2" bio irq 15 flags 0xa0ffa0ff
disk		wd2	at wdc1 drive 0
disk		wd3	at wdc1 drive 1
#options		"ATAPI"		#Enable ATAPI support for IDE bus
#options		"ATAPI_STATIC"	#Don't do it as an LKM
device		wcd0	#IDE CD-ROM
device		wfd0
options		"IDE_DELAY=2000"

# The keyboard controller; it controlls the keyboard and the PS/2 mouse.
controller      atkbdc0 at isa? port IO_KBD

# The AT keyboard
device          atkbd0  at atkbdc? tty irq 1

# PS/2 mouse
device          psm0    at atkbdc? tty irq 12

# The video card driver.
device          vga0    at isa? port ? conflicts

# The syscons console driver (sco color console compatible).
device          sc0     at isa? tty

device		npx0	at nexus? port "IO_NPX" irq 13

#
# Laptop support (see LINT for more options)
#
device		apm0    at nexus? conflicts # Advanced Power Management

# System Management Bus!

controller smbus0
controller alpm0
device smb0 at smbus?

device		sio0	at isa? port "IO_COM1" flags 0x10 tty irq 4
device		sio1	at isa? port "IO_COM2" tty irq 3
device		sio2	at isa? disable port "IO_COM3" tty irq 5
device		sio3	at isa? disable port "IO_COM4" tty irq 3

controller      ppbus0
device          lpt0   at ppbus?
device          plip0   at ppbus?
device          ppi0    at ppbus?
device          pps0    at ppbus?

controller      ppc0    at isa? port ? tty irq 7 drq 3

# USB support
#controller    uhci0 
controller    usb0
controller    ohci0
#
# for the moment we have to specify the priorities of the device
# drivers explicitly by the ordering in the list below. This will
# be changed in the future.
#
device        ums0
device        ukbd0
device        ulpt0
device        ucom0
device        umodem0
device        hid0
device        ugen0

#
#options       USB_DEBUG
#options       USBVERBOSE

pseudo-device	loop
pseudo-device	ether
#pseudo-device	sl	4
#pseudo-device	ppp	4
#pseudo-device	tun	4
pseudo-device	pty	256
pseudo-device	gzip		# Exec gzipped a.out's
pseudo-device   speaker
pseudo-device	snp	4	
pseudo-device   bpfilter        4       #Berkeley packet filter
pseudo-device	splash

# KTRACE enables the system-call tracing facility ktrace(2).
# This adds 4 KB bloat to your kernel, and slightly increases
# the costs of each syscall.
options		"KTRACE"		#kernel tracing

# This provides support for System V shared memory.
#
options         "SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)"
options         "SHMMAXPGS=4100"
options			"SYSVSHM"
options         "SYSVSEM"
options         "SYSVMSG"
options         "USER_LDT"                #allow user-level control of i386 ldt
options         "P1003_1B"
options         "_KPOSIX_PRIORITY_SCHEDULING"
options         "_KPOSIX_VERSION=199309L"


Copyright (c) 1992-1999 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #0: Sat Apr 17 12:01:48 EDT 1999
    green@green.dyn.ez-ip.net:/usr/src/sys/compile/GREEN
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD-K6(tm) 3D processor (300.69-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x58c  Stepping=12
  Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
real memory  = 67108864 (65536K bytes)
avail memory = 62316544 (60856K bytes)
Bad DMI table checksum!
Preloaded elf kernel "kernel" at 0xc02a6000.
Probing for PnP devices:
CSN 1 Vendor ID: CMI0001 [0x0100a90d] Serial 0x01000100 Comp ID: @@@0000 [0x00000000]
npx0: <math processor> on motherboard
npx0: INT 16 interface
apm0: <APM BIOS> on motherboard
apm: found APM BIOS version 1.2
pcib0: <PCI host bus adapter> on motherboard
pci0: <PCI bus> on pcib0
chip0: <AcerLabs M1541 (Aladdin-V) PCI host bridge> at device 0.0 on pci0
pcib1: <AcerLabs M5243 PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
ohci0: <AcerLabs M5237 (Aladdin-V) USB Host Controller> at device 2.0 on pci0
ohci0: interrupting at irq 10
usb0: OHCI version 1.0, legacy support
usb0: <AcerLabs M5237 (Aladdin-V) USB Host Controller> on ohci0
uhub0 at usb0
uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
chip1: <PCI to 0x80 bridge (vendor=10b9 device=7101)> at device 3.0 on pci0
isab0: <AcerLabs M1533 portable PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
ide_pci0: <Acer Aladdin IV/V (M5229) Bus-master IDE controller> at device 15.0 on pci0
joy0 at port 0x201 on isa0
joy0: joystick
wdc0 at port 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa0
wdc0: unit 0 (wd0): <Maxtor 71626 AP>, DMA, 32-bit, multi-block-32
wd0: 1554MB (3183264 sectors), 3158 cyls, 16 heads, 63 S/T, 512 B/S
wdc0: unit 1 (atapi): <NEC                 CD-ROM DRIVE:285/3.04>, removable, dma, iordy
wcd0: drive speed 2067KB/sec, 128KB cache
wcd0: supported read types: CD-R, CD-DA
wcd0: Audio: play, 16 volume levels
wcd0: Mechanism: ejectable tray
wcd0: Medium: no/blank disc inside, unlocked
wdc0: interrupting at irq 14
wdc1 at port 0x170-0x177 irq 15 flags 0xa0ffa0ff on isa0
wdc1: unit 1 (wd3): <Maxtor 71626 AP>, DMA, 32-bit, multi-block-32
wd3: 1554MB (3183264 sectors), 3158 cyls, 16 heads, 63 S/T, 512 B/S
wdc1: unit 0 (atapi): <LS-120 COSM   02              UHD Floppy/0271C09T>, removable, iordy
wfd0: medium type unknown (no disk)
wdc1: interrupting at irq 15
atkbdc0: <keyboard controller (i8042)> at port 0x60 on isa0
atkbd0: <AT Keyboard> on atkbdc0
atkbd0: interrupting at irq 1
psm0: <PS/2 Mouse> on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
psm0: interrupting at irq 12
vga0: <Generic ISA VGA> on isa0
sc0: <System console> on isa0
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio0: interrupting at irq 4
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio1: interrupting at irq 3
sio2: not probed (disabled)
sio3: not probed (disabled)
ppc0 at port 0x378 irq 7 drq 3 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus 0
lpt0: <generic printer> on ppbus 0
lpt0: Interrupt-driven port
ppi0: <generic parallel i/o> on ppbus 0
lppps0: <Pulse per second Timing Interface> on ppbus 0
ppc0: interrupting at irq 7
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to accept, logging disabled
DUMMYNET initialized (990326) -- size dn_pkt 48
changing root device to wd0s1a
ffs_mountfs: superblock updated for soft updates
ffs_mountfs: superblock updated for soft updates
ffs_mountfs: superblock updated for soft updates



 Brian Feldman                _ __ ___ ____  ___ ___ ___  
 green@unixhelp.org                _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!      _ __ | _ __ \ |) |
         http://www.freebsd.org           _ |___/___/___/ 



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9904171313050.21249-100000>