From owner-freebsd-mobile@FreeBSD.ORG Mon May 26 10:17:08 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF06A37B401 for ; Mon, 26 May 2003 10:17:08 -0700 (PDT) Received: from mail.distalzou.net (203.141.139.231.user.ad.il24.net [203.141.139.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id B228F43FAF for ; Mon, 26 May 2003 10:17:07 -0700 (PDT) (envelope-from devin@spamcop.net) Received: from borosilicate.pun-pun.prv ([192.168.7.29]) by mail.distalzou.net with esmtp (TLSv1:AES256-SHA:256) (Exim 4.20) id 19KLas-000FEI-T5 for freebsd-mobile@freebsd.org; Tue, 27 May 2003 02:17:06 +0900 Date: Tue, 27 May 2003 02:17:06 +0900 (JST) From: Tod McQuillin X-X-Sender: devin@borosilicate.pun-pun.prv To: freebsd-mobile@freebsd.org Message-ID: <20030527020616.J48601@borosilicate.pun-pun.prv> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Orinoco Gold trouble with SMP server X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2003 17:17:09 -0000 I recently set up a new server to replace my old server. The old server, glass, was a DEC Celebris 6200, a Pentium Pro 200MHz machine. The new server, borosilicate, is a Compaq Professional Workstation 5100, a dual CPU Pentium II 300MHz machine. Both machines are running FreeBSD 4-stable. Everything is working fine on the new machine with the exception of the wireless network interface, a Lucent Orinico Gold pcmcia card in the Lucent ISA pcmcia adapter. At boot time, the ISA card is probed: pcic0: at port 0x3e2 iomem 0xd4000 irq 9 on isa0 pcic0: management irq 9 pccard0: on pcic0 pccard1: on pcic0 but when pccardd sees the card, it can't set up the driver properly: wi0 at port 0x240-0x27f irq 10 slot 0 on pccard0 wi0: wi_cmd: busy bit won't clear. wi0: wi_cmd: busy bit won't clear. wi0: init failed wi0: wi_cmd: busy bit won't clear. wi0: wi_cmd: busy bit won't clear. wi0: mac read failed 5 device_probe_and_attach: wi0 attach returned 5 On glass, the server that works, it is probed like this: pcic0: at port 0x3e0 iomem 0xd0000 irq 11 on isa0 pcic0: management irq 11 pccard0: on pcic0 pccard1: on pcic0 wi0 at port 0x240-0x27f irq 15 slot 0 on pccard0 wi0: 802.11 address: 00:02:2d:2b:ab:06 wi0: using Lucent Technologies, WaveLAN/IEEE wi0: Lucent Firmware: Station 8.10.01 Since the hardware works in another machine with exactly the same software, the problem must have something to do with how the two machines are different. The new server is dual CPU (though it fails the same way with a non-SMP kernel), has two pci buses and an isa bus. I gather there is some magic going on with the APIC to get the interrupts routed properly. The new server is faster (300MHz vs. 200MHz) and has more memory (512MB vs. 384MB). I suspect something to do with irq allocation (seems like we aren't getting interrupts from the card) but this is an uninformed opinion. I have been reading the list archives and changing various settings for the past week, with no success so far. Here are some of the things I have tried: * Changed the definition of pcic0 in my kernel config file. I tried both port 0x3e0 iomem 0xd0000 and port 0x3e2 iomem 0xd4000 (this requires changing a jumper on the ISA card). I also tried irq's 9 and 10 as well as polling mode. * Changed settings in /etc/defaults/pccardd.conf. I tried irq's 9, 10 and 12. * Added hw.pcic.intr_path="1" and hw.pcic.init_routing="1" to /boot/loader.conf in varying combinations. * Tried both with and without options PNPBIOS in the kernel config. * Tried a non-SMP kernel. Any suggestions would be most appreciated! Following are the relevant configuration details for the failing server (borosilicate). I have also provided more configuration details on the web at http://distalzou.net/freebsd/ (there is probably too much info there for one email). dmesg output: Copyright (c) 1992-2003 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.8-STABLE #0: Fri May 23 08:24:46 JST 2003 devin@borosilicate.pun-pun.prv:/usr/obj/usr/src/4-stable/src/sys/BOROSILICATE Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (299.94-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x634 Stepping = 4 Features=0x80fbff real memory = 536870912 (524288K bytes) avail memory = 518098944 (505956K bytes) APIC_IO: MP table broken: 8259->APIC entry missing! Programming 24 pins in IOAPIC #0 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 1, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 8, version: 0x00170011, at 0xfec00000 Preloaded elf kernel "kernel" at 0xc042d000. Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #0 intpin 19 -> irq 2 IOAPIC #0 intpin 18 -> irq 11 IOAPIC #0 intpin 17 -> irq 15 pci0: on pcib0 pci0: at 3.0 irq 2 pci0: at 4.0 irq 11 fxp0: port 0x6000-0x601f mem 0xc0200000-0xc02fffff,0xc0480000-0xc0480fff irq 15 at device 5.0 on pci0 fxp0: Ethernet address 00:a0:c9:c8:b6:2f inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto atapci0: port 0x6020-0x602f,0x6054-0x6057,0x6048-0x604f,0x6050-0x6053,0x6040-0x6047 mem 0xc0400000-0xc0403fff irq 16 at device 6.0 on pci0 ata2: at 0x6040 on atapci0 ata3: at 0x6048 on atapci0 isab0: at device 15.0 on pci0 isa0: on isab0 atapci1: port 0x6030-0x603f,0-0x3,0-0x7,0-0x3,0-0x7 irq 15 at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci1 ata1: at 0x170 irq 15 on atapci1 pcib1: on motherboard IOAPIC #0 intpin 23 -> irq 17 IOAPIC #0 intpin 20 -> irq 18 IOAPIC #0 intpin 21 -> irq 19 pci1: on pcib1 ohci0: mem 0xc0000000-0xc0000fff irq 17 at device 10.0 on pci1 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: (0x0e11) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ums0: Logitech USB Receiver, rev 1.10/9.10, addr 2, iclass 3/1 ums0: 5 buttons and Z dir. tl0: port 0x5400-0x540f mem 0xc0180000-0xc018000f irq 18 at device 11.0 on pci1 tl0: Ethernet address: 00:80:5f:9b:03:c6 miibus1: on tl0 nsphy0: on miibus1 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto tlphy0: on miibus1 tlphy0: 10base2/BNC, 10base5/AUI sym0: <875> port 0x5000-0x50ff mem 0xc0080000-0xc0080fff,0xc0100000-0xc01000ff irq 19 at device 12.0 on pci1 sym0: No NVRAM, ID 7, Fast-20, SE, parity checking orm0: