From owner-freebsd-hardware Fri May 21 2:36:47 1999 Delivered-To: freebsd-hardware@freebsd.org Received: from mercury.gfit.net (ns.gfit.net [209.41.124.90]) by hub.freebsd.org (Postfix) with ESMTP id 5FC9D14BCD for ; Fri, 21 May 1999 02:36:40 -0700 (PDT) (envelope-from tom@embt.com) Received: from paranor.embt.net (timembt.iinc.com [206.67.169.229]) by mercury.gfit.net (8.8.8/8.8.8) with SMTP id EAA06186; Fri, 21 May 1999 04:31:22 -0500 (CDT) (envelope-from tom@embt.com) Message-Id: <3.0.3.32.19990521053630.00b5402c@mail.embt.com> X-Sender: tembt@mail.embt.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Fri, 21 May 1999 05:36:30 -0400 To: freebsd-hardware@freebsd.org From: Tom Embt Subject: Re: How to get AWE64 ISA PnP working? Cc: "Donald J . Maddox" In-Reply-To: <19990520193042.A1385@dmaddox.conterra.com> References: <3.0.3.32.19990520054937.00a98514@mail.embt.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >> controller pnp0 >> device pcm0 at isa? port ? tty irq 10 drq 1 flags 0x0 > >This is bad advice, as the feature that makes an AWE an AWE (wavetable >synthesis) is not supported by the pcm device at all. > Thought so, it mentioned something like that on the AWEPnP webpage... >To the original poster: > >I have an AWE64GOLD that works perfectly, in a configuration similar to >yours. You may have another device that conflicts with the AWE, or the >IRQ/DMA setup you specified in your kernel.conf may not match what your >PnP BIOS is actually assigning your card. You need to post _complete_, >unabridged dmesg output, and preferably, also the output from the >'pnpinfo' command, if you want us to be able to puzzle out the source >of your problems... > I'd be more than happy to - here goes: ------- |dmesg| ------- Copyright (c) 1992-1999 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.2-STABLE #0: Fri May 21 04:57:40 EDT 1999 root@paranor.embt.net:/usr/src/sys/compile/PARANOR-052199a Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 167046000 Hz CPU: Pentium/P55C (167.05-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x543 Stepping=3 Features=0x8001bf real memory = 100663296 (98304K bytes) config> pnp 1 0 os enable irq0 5 drq0 1 drq1 5 port0 0x220 port1 0x330 port2 0x388 config> pnp 1 1 os disable config> pnp 1 2 os port0 0x620 port1 0xa20 port2 0xe20 config> pnp 1 3 os disable config> quit avail memory = 94973952 (92748K bytes) Preloaded elf kernel "kernel" at 0xc02b6000. Preloaded userconfig_script "/kernel.config" at 0xc02b609c. Probing for devices on PCI bus 0: chip0: rev 0x01 on pci0.0.0 chip1: rev 0x01 on pci0.7.0 ide_pci0: rev 0x01 on pci0.7.1 chip2: rev 0x01 on pci0.7.3 vga0: rev 0x05 int a irq 9 on pci0.9.0 pn0: <82c169 PNIC 10/100BaseTX> rev 0x20 int a irq 10 on pci0.11.0 pn0: Ethernet address: 00:c0:f0:2d:ec:69 pn0: autoneg complete, link status good (half-duplex, 10Mbps) Probing for PnP devices: CSN 1 Vendor ID: CTL00c5 [0xc5008c0e] Serial 0x157aac6a Comp ID: PNPb02f [0x2fb0d041] Probing for devices on the ISA bus: sc0 on isa sc0: VGA color <16 virtual consoles, flags=0x0> atkbdc0 at 0x60-0x6f on motherboard atkbd0 irq 1 on isa psm0 not found sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A ppc0 at 0x378 irq 7 on isa ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold lpt0: on ppbus 0 lpt0: Interrupt-driven port lpt0: on ppbus 0 lpt0: Interrupt-driven port 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 on isa wdc0: unit 0 (wd0): wd0: 9671MB (19807200 sectors), 19650 cyls, 16 heads, 63 S/T, 512 B/S wdc1 at 0x170-0x177 irq 15 on isa wdc1: unit 0 (atapi): , removable, accel, dma, iordy acd0: drive speed 344KB/sec, 256KB cache acd0: supported read types: CD-DA acd0: Audio: play, 256 volume levels acd0: Mechanism: ejectable tray acd0: Medium: CD-ROM unknown medium, unlocked vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa npx0 on motherboard npx0: INT 16 interface sb0 at 0x220 irq 5 drq 1 on isa snd0: sbxvi0 at drq 5 on isa snd0: sbmidi0 at 0x330 on isa snd0: opl0 at 0x388 on isa snd0: awe0 at 0x620 on isa AWE32: not detected Intel Pentium detected, installing workaround for F00F bug changing root device to wd0s1a cd9660: Joliet Extension --------- |pnpinfo| --------- Checking for Plug-n-Play devices... Card assigned CSN #1 Vendor ID CTL00c5 (0xc5008c0e), Serial Number 0x157aac6a PnP Version 1.0, Vendor Version 16 Device Description: Creative SB AWE64 PnP *** Small Vendor Tag Detected Logical Device ID: CTL0045 0x45008c0e #0 Device Description: Audio TAG Start DF Good Configuration IRQ: 5 - only one type (true/edge) DMA: channel(s) 1 8-bit, not a bus master, count by byte, , Compatibility mode DMA: channel(s) 5 16-bit, not a bus master, , count by word, Compatibility mode I/O Range 0x220 .. 0x220, alignment 0x1, len 0x10 [16-bit addr] I/O Range 0x330 .. 0x330, alignment 0x1, len 0x2 [16-bit addr] I/O Range 0x388 .. 0x388, alignment 0x1, len 0x4 [16-bit addr] TAG Start DF Acceptable Configuration IRQ: 5 7 9 10 - only one type (true/edge) DMA: channel(s) 0 1 3 8-bit, not a bus master, count by byte, , Compatibility mode DMA: channel(s) 5 6 7 16-bit, not a bus master, , count by word, Compatibility mode I/O Range 0x220 .. 0x280, alignment 0x20, len 0x10 [16-bit addr] I/O Range 0x300 .. 0x330, alignment 0x30, len 0x2 [16-bit addr] I/O Range 0x388 .. 0x388, alignment 0x1, len 0x4 [16-bit addr] TAG Start DF Acceptable Configuration IRQ: 5 7 9 10 - only one type (true/edge) DMA: channel(s) 0 1 3 8-bit, not a bus master, count by byte, , Compatibility mode DMA: channel(s) 5 6 7 16-bit, not a bus master, , count by word, Compatibility mode I/O Range 0x220 .. 0x280, alignment 0x20, len 0x10 [16-bit addr] I/O Range 0x300 .. 0x330, alignment 0x30, len 0x2 [16-bit addr] TAG Start DF Acceptable Configuration IRQ: 5 7 9 10 - only one type (true/edge) DMA: channel(s) 0 1 3 8-bit, not a bus master, count by byte, , Compatibility mode DMA: channel(s) 5 6 7 16-bit, not a bus master, , count by word, Compatibility mode I/O Range 0x220 .. 0x280, alignment 0x20, len 0x10 [16-bit addr] TAG Start DF Acceptable Configuration IRQ: 5 7 9 10 - only one type (true/edge) DMA: channel(s) 0 1 3 8-bit, not a bus master, count by byte, , Compatibility mode I/O Range 0x220 .. 0x280, alignment 0x20, len 0x10 [16-bit addr] I/O Range 0x300 .. 0x330, alignment 0x30, len 0x2 [16-bit addr] I/O Range 0x388 .. 0x388, alignment 0x1, len 0x4 [16-bit addr] TAG Start DF Acceptable Configuration IRQ: 5 7 9 10 - only one type (true/edge) DMA: channel(s) 0 1 3 8-bit, not a bus master, count by byte, , Compatibility mode I/O Range 0x220 .. 0x280, alignment 0x20, len 0x10 [16-bit addr] I/O Range 0x300 .. 0x330, alignment 0x30, len 0x2 [16-bit addr] TAG Start DF Acceptable Configuration IRQ: 5 7 9 10 - only one type (true/edge) DMA: channel(s) 0 1 3 8-bit, not a bus master, count by byte, , Compatibility mode I/O Range 0x220 .. 0x280, alignment 0x20, len 0x10 [16-bit addr] TAG Start DF Sub-optimal Configuration IRQ: 5 7 9 10 - only one type (true/edge) DMA: channel(s) 0 1 3 8-bit, not a bus master, count by byte, , Compatibility mode DMA: channel(s) 5 6 7 16-bit, not a bus master, , count by word, Compatibility mode I/O Range 0x220 .. 0x280, alignment 0x20, len 0x10 [16-bit addr] I/O Range 0x300 .. 0x330, alignment 0x10, len 0x2 [16-bit addr] I/O Range 0x388 .. 0x394, alignment 0x4, len 0x4 [16-bit addr] TAG End DF Logical Device ID: CTL7002 0x02708c0e #1 Compatible Device ID: PNPb02f (2fb0d041) Device Description: Game TAG Start DF Good Configuration I/O Range 0x200 .. 0x200, alignment 0x1, len 0x8 [16-bit addr] TAG Start DF Acceptable Configuration I/O Range 0x200 .. 0x208, alignment 0x8, len 0x8 [16-bit addr] TAG End DF Logical Device ID: CTL0022 0x22008c0e #2 Device Description: WaveTable TAG Start DF Good Configuration I/O Range 0x620 .. 0x620, alignment 0x1, len 0x4 [16-bit addr] TAG Start DF Acceptable Configuration I/O Range 0x620 .. 0x680, alignment 0x20, len 0x4 [16-bit addr] TAG End DF *** Small Vendor Tag Detected End Tag Successfully got 69 resources, 3 logical fdevs -- card select # 0x0001 CSN CTL00c5 (0xc5008c0e), Serial Number 0x157aac6a Logical device #0 IO: 0x0220 0x0330 0x0388 0x0000 0x0000 0x0000 0x0000 0x0000 IRQ 5 0 DMA 1 5 IO range check 0x00 activate 0x01 Logical device #1 IO: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 IRQ 0 0 DMA 4 4 IO range check 0x00 activate 0x00 Logical device #2 IO: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 IRQ 0 0 DMA 4 4 IO range check 0x00 activate 0x00 ----------------- |/boot/loader.rc| ----------------- load kernel load -t userconfig_script /kernel.config boot ---------------- |/kernel.config| ---------------- pnp 1 0 os enable irq0 5 drq0 1 drq1 5 port0 0x220 port1 0x330 port2 0x388 pnp 1 1 os disable pnp 1 2 os port0 0x620 port1 0xa20 port2 0xe20 pnp 1 3 os disable quit ---------------------------------------- |excerpt from kernel configuration file| | (the whole thing is pretty long) | ---------------------------------------- controller pnp0 controller snd0 device sb0 at isa? port 0x220 irq 5 drq 1 device sbxvi0 at isa? drq 5 device sbmidi0 at isa? port 0x330 device opl0 at isa? port 0x388 device awe0 at isa? port 0x620 ---------- |uname -v| ---------- FreeBSD 3.2-STABLE #0: Fri May 21 04:57:40 EDT 1999 root@paranor.embt.net:/usr/src/sys/compile/PARANOR-052199a ------------------------------------------ Was I incorrect in putting the 'load -t userconfig_script /kernel.config' line in /boot/loader.rc? That is about the only thing that I didn't follow the instructions exactly on. Also, FWIW, this machine is a dual-boot and in Win95 the AWE card uses all the standard addresses (IRQ 5 ; DMA 1,5 ; ports 0x220 0x330 0x388 0x620). The only other cards in the machine are a PCI S3-ViRGE video, PCI Voodoo 2, and a PCI Kinston PNIC network card (pn0). IIRC, BIOS is giving IRQ 5 to "ISA/PCI PnP" or something like that, and I think "PNP OS" is enabled 'cause of Windoze. I'd have to reboot to be sure. Tom Embt tom@embt.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message