From owner-freebsd-multimedia Sat Aug 31 21:10:30 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 372B337B407; Sat, 31 Aug 2002 21:10:07 -0700 (PDT) Received: from ns.live.com (ns.live.com [66.80.62.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2A8B43E3B; Sat, 31 Aug 2002 21:09:50 -0700 (PDT) (envelope-from rsf@ns.live.com) Received: from ns.live.com (localhost.live.com [127.0.0.1]) by ns.live.com (8.12.5/8.12.5) with ESMTP id g8149Y5Z006048; Sat, 31 Aug 2002 21:09:38 -0700 (PDT) (envelope-from rsf@ns.live.com) Received: (from rsf@localhost) by ns.live.com (8.12.5/8.12.3/Submit) id g8149TiV006032; Sat, 31 Aug 2002 21:09:29 -0700 (PDT) Message-Id: <4.3.1.1.20020831205101.00bcbd30@laptop-localhost> X-Sender: rsf@laptop-localhost X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Sat, 31 Aug 2002 21:09:19 -0700 To: "M. Warner Losh" From: Ross Finlayson Subject: Re: Problem enabling ESS sound card with PCI<->PCMCIA adaptor Cc: freebsd-mobile@FreeBSD.ORG, freebsd-multimedia@FreeBSD.ORG 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At 05:50 PM 8/31/02, M. Warner Losh wrote: >In message: <4.3.1.1.20020831125707.00bd0140@laptop-localhost> > Ross Finlayson 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: 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 AMD Features=0x80000800 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: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 3 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1480-0x148f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0x1440-0x145f irq 11 at device 7.2 on pci0 usb0: 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: port 0x1460-0x147f irq 11 at device 7.3 on pci0 usb1: 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: (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: on dc0 ukphy0: 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: irq 3 at device 9.0 on pci0 pcic0: PCI Memory allocated: 0x88000000 pcic0: TI12XX PCI Config Reg: [pwr save][pci only] pccard0: on pcic0 chip1: at device 9.1 on pci0 bktr0: 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: (vendor=0x109e, dev=0x0878) at 10.1 irq 10 pci0: (vendor=0x125d, dev=0x1988) at 13.0 irq 5 orm0: