Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Aug 2002 21:09:19 -0700
From:      Ross Finlayson <finlayson@live.com>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-mobile@FreeBSD.ORG, freebsd-multimedia@FreeBSD.ORG
Subject:   Re: Problem enabling ESS sound card with PCI<->PCMCIA adaptor
Message-ID:  <4.3.1.1.20020831205101.00bcbd30@laptop-localhost>
In-Reply-To: <20020831.185039.58828118.imp@bsdimp.com>
References:  <4.3.1.1.20020831125707.00bd0140@laptop-localhost> <4.3.1.1.20020831125707.00bd0140@laptop-localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
At 05:50 PM 8/31/02, M. Warner Losh wrote:
>In message: <4.3.1.1.20020831125707.00bd0140@laptop-localhost>
>             Ross Finlayson <finlayson@live.com> writes:
>: In The Beginning, I had a Lucent Orinoco PCI<->PCMCIA (for a "wi" device)
>: installed in my PC running FreeBSD 4.6-STABLE.  God (Warner Losh) had told
>: me to put
>:       hw.pcic.ignore_function_1=1
>: in my "/boot/loader.conf" file, to stop the kernel from hanging.
>
>Actually, with a new enough 4.6-stable, verily the code has changed
>and in this change much goodness issues forth from every byte.  The
>hang has gone away and the bugs have been banished.

How new is "new enough"?  With a 4.6-STABLE built on August 26th, I find 
that I still need to have
         hw.pcic.ignore_function_1=1
otherwise the kernel locks hard upon initializing wi0.  (By "locks hard", I 
mean that even my PC's reset button doesn't work; I need to power cycle at 
the wall switch!)


>: Andy Sparrow then suggested that I *also* add
>:       hw.pcic.intr_path=1
>:       hw.pcic.irq=0
>
>This is bad.  For a pci card this cannot work, unless you've hacked
>the pci card to funnel the serial interrupt line to your
>south-bridge's serial interrupt line.  You must use intr_path of 2.

OK, good - this is progress.  If I change my "/boot/loader.conf" to:
         hw.pcic.ignore_function_1=1
         hw.pcic.intr_path=2
         hw.pcic.irq=0
I find that I "wi0" now gets enabled OK.

*However*, with this change, the kernel wedges if I try to enable the ESS 
sound card.  I.e., if I run
         kldload snd_maestro3
the console prints out
         pcm0: <ESS Technology Allegro-1> port 0x1000-0x10ff irq 5 at 
device 13.0 on pci0
and then the kernel promptly hangs.  Similarly, if I put
         snd_maestro3_load="YES"
in "/boot/loader.conf", the kernel hangs on booting, at the point that I've 
marked ">>>>>>" in the "dmesg" output below.


>: So, any ideas for what I can do to make both my "wi0" device, and my ESS
>: sound card, work??
>
>I'm not sure what is causing the deadly embrace between the two.  Are
>they sharing the same interrupt?

Not as far as I can tell.  Here's the "dmesg" output, FYI:

Copyright (c) 1992-2002 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.6-STABLE #16: Mon Aug 26 12:40:22 PDT 2002
     rsf@ns.live.com:/usr/obj/usr/src/sys/LIVE.COM
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD-K6(tm) 3D processor (500.02-MHz 586-class CPU)
   Origin = "AuthenticAMD"  Id = 0x58c  Stepping = 12
   Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
   AMD Features=0x80000800<SYSCALL,3DNow!>
real memory  = 58720256 (57344K bytes)
avail memory = 52617216 (51384K bytes)
Preloaded elf kernel "kernel" at 0xc0479000.
K6-family MTRR support enabled (2 registers)
md0: Malloc disk
Using $PIR table, 9 entries at 0xc00fa040
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <PCI to PCI bridge (vendor=1106 device=8501)> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <Trident model 8400 VGA-compatible display device> at 0.0 irq 3
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA66 controller> port 0x1480-0x148f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0x1440-0x145f irq 11 at device 7.2 
on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0x1460-0x147f irq 11 at device 7.3 
on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci0: <unknown card> (vendor=0x1106, dev=0x3057) at 7.4
dc0: <82c169 PNIC 10/100BaseTX> port 0x1800-0x18ff mem 
0x41100000-0x411000ff irq 3 at device 8.0 on pci0
dc0: Ethernet address: 00:a0:cc:63:0e:3a
miibus0: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci_cfgintr_search: linked (2) to configured irq 3 at 0:8:0
pci_cfgintr: 0:9 INTA routed to irq 3
pcic0: <TI PCI-1225 PCI-CardBus Bridge> irq 3 at device 9.0 on pci0
pcic0: PCI Memory allocated: 0x88000000
pcic0: TI12XX PCI Config Reg: [pwr save][pci only]
pccard0: <PC Card bus (classic)> on pcic0
chip1: <Texas Instruments PCI1225 CardBus controller> at device 9.1 on pci0
bktr0: <BrookTree 878> mem 0x41200000-0x41200fff irq 10 at device 10.0 on pci0
bktr0: Hauppauge Model 44811 C133
bktr0: Warning - Unknown Hauppauge Tuner 0x21
bktr0: Hauppauge WinCast/TV, Philips NTSC tuner.
pci0: <unknown card> (vendor=0x109e, dev=0x0878) at 10.1 irq 10
pci0: <unknown card> (vendor=0x125d, dev=0x1988) at 13.0 irq 5
orm0: <Option ROMs> at iomem 
0xc0000-0xcffff,0xe9000-0xebfff,0xec000-0xeffff on isa0
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
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
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>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
 >>>>>> HERE'S WHERE THE KERNEL HANGS IF I ADD
 >>>>>> snd_maestro3_load="YES"
 >>>>>> to "/boot/loader.conf/
DUMMYNET initialized (011031)
IP packet filtering initialized, divert disabled, rule-based forwarding 
enabled, default to accept, unlimited logging
ad0: 9541MB <QUANTUM FIREBALLlct10 10> [19386/16/63] at ata0-master UDMA66
acd0: CDROM <LTN403> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
ad0: UDMA ICRC error reading fsbn 0 (ad0 bn 0; cn 0 tn 0 sn 0) retrying
ad0: UDMA ICRC error reading fsbn 0 (ad0 bn 0; cn 0 tn 0 sn 0) retrying
ad0: UDMA ICRC error reading fsbn 0 (ad0 bn 0; cn 0 tn 0 sn 0) retrying
ad0: UDMA ICRC error reading fsbn 0 (ad0 bn 0; cn 0 tn 0 sn 0) falling back 
to PIO mode
pccard: card inserted, slot 0
pccard: card removed, slot 0
pccard: card inserted, slot 0
wi0 at port 0x240-0x27f irq 3 slot 0 on pccard0
wi0: 802.11 address: 00:60:1d:f1:36:3e
wi0: using Lucent Technologies, WaveLAN/IEEE
wi0: Lucent Firmware: Station 7.52.01


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




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