From owner-freebsd-mobile@FreeBSD.ORG Tue Apr 15 23:44:34 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 E0FCA37B401 for ; Tue, 15 Apr 2003 23:44:34 -0700 (PDT) Received: from gw.gbch.net (gw.gbch.net [203.143.238.93]) by mx1.FreeBSD.org (Postfix) with SMTP id CD62843FCB for ; Tue, 15 Apr 2003 23:44:30 -0700 (PDT) (envelope-from gjb@gbch.net) Received: (qmail 44318 invoked by uid 1001); 16 Apr 2003 16:44:29 +1000 Message-ID: Date: Wed, 16 Apr 2003 16:44:28 +1000 From: Greg Black To: mobile@FreeBSD.ORG Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="1ddnCX6roxAgyKJ1" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Uptime: 5 days X-Operating-System: FreeBSD 4.2-RELEASE i386 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-PGP-Key-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-Request-PGP: http://www.gbch.net/keys/4B04B7D6.asc Subject: PCcard support still broken in 4.7-R 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: Wed, 16 Apr 2003 06:44:35 -0000 --1ddnCX6roxAgyKJ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In January/February 2002, I posted several messages to the mobile and stable mailing lists detailing problems I had with using wireless network cards in my laptop. It worked (and still works) perfectly under FreeBSD-4.3-Release and both wireless cards that I have just work. With the advent of 4.4, the laptop would no longer boot without the following in /boot/loader.conf: hw.pcic.intr_path="1" hw.pcic.irq="0" At the time of 4.4-R (and the 5.0 of that time), I was greeted on boot by: pccard: card inserted, slot 0 pcic0: Static bug detected, ignoring hardware. And it did indeed ignore the card. BTW, it printed those two lines whether or not a card was inserted. I was asked to supply various extra pieces of information and supplied all that was asked for. And I never heard anything more about it. So I have had to keep using 4.3 on that box. But 4.3 is now too old to continue with and I really want to run an up-to-date version of FreeBSD on this machine. So I have recently tried both 4.7-R and 5.0-R to see what has changed. Neither works, so I'll concentrate on 4.7-R from here on, as I'd rather run 4.x at this stage. For both 4.7-R and 5.0-R, the settings shown above in /boot/loader.conf are still required to prevent a panic on boot. And when it boots, although it correctly detects insertion and removal of the wireless card, it reports an error (wrapped with backslashes for legibility): demon /kernel: pccard: card inserted, slot 0 demon pccardd[44]: Card "Cabletron"("RoamAbout 802.11 DS") \ [Version 01.01] [] matched "Cabletron" ("RoamAbout \ 802.11 DS") [(null)] [(null)] demon pccardd[44]: Failed to allocate IRQ for Cabletron demon /kernel: pccard: card removed, slot 0 So the card is correctly detected, which is a step forward. But it doesn't work. To complete the picture as far as I can, here are the settings reported by sysctl hw.pcic: hw.pcic.irq: 0 hw.pcic.boot_deactivated: 0 hw.pcic.pd6722_vsense: 1 hw.pcic.ignore_function_1: 0 hw.pcic.intr_path: 1 hw.pcic.init_routing: 0 hw.pcic.ignore_pci: 0 hw.pcic.pd6729_intr_path: 1 I have attached three files: 1. A dmesg of a boot that included the panic if the sysctls are not provided at boot. 2. A dmesg of a successful boot with the sysctls in place. 3. The output of "pccardc dumpcis". Is there some other simple magic that I can try to get this to function, or is there some other information that I should supply to make diagnosis easier? Greg -- Greg Black GPG signed mail preferred; further information in headers. --1ddnCX6roxAgyKJ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.panic" 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.7-RELEASE #0: Wed Oct 9 15:08:34 GMT 2002 root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (897.75-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x68a Stepping = 10 Features=0x383f9ff real memory = 259981312 (253888K bytes) avail memory = 247775232 (241968K bytes) Preloaded elf kernel "kernel" at 0xc050f000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 3 entries at 0xc00fe840 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 atapci0: port 0x1100-0x110f,0x374-0x377,0x170-0x173,0x3f4-0x3f7,0x1f0-0x1f3 irq 0 at device 0.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 isab0: at device 1.0 on pci0 isa0: on isab0 ohci0: mem 0x34001000-0x34001fff irq 10 at device 1.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0x34002000-0x34002fff irq 10 at device 1.3 on pci0 usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered pci0: (vendor=0x1039, dev=0x7018) at 1.4 pci0: (vendor=0x1039, dev=0x7013) at 1.6 irq 11 pcib2: at device 2.0 on pci0 pci1: on pcib2 pci1: at 0.0 pci_cfgintr_virgin: using routable interrupt 10 Fatal trap 12: page fault while in kernel mode fault virtual address = 0xeb9b6 fault code = supervisor read, page not present instruction pointer = 0x8:0xc00eb8b1 stack pointer = 0x10:0xc0531d6c frame pointer = 0x10:0xc0531d6c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 0 (swapper) interrupt mask = net tty bio cam trap number = 12 panic: page fault Uptime: 0s Automatic reboot in 15 seconds - press a key on the console to abort --> Press a key on the console to reboot, --> or switch off the system now. Rebooting... 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.7-RELEASE #0: Wed Oct 9 15:08:34 GMT 2002 root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (897.75-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x68a Stepping = 10 Features=0x383f9ff real memory = 259981312 (253888K bytes) avail memory = 247775232 (241968K bytes) Preloaded elf kernel "kernel" at 0xc050f000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 3 entries at 0xc00fe840 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 atapci0: port 0x1100-0x110f,0x374-0x377,0x170-0x173,0x3f4-0x3f7,0x1f0-0x1f3 irq 0 at device 0.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 isab0: at device 1.0 on pci0 isa0: on isab0 ohci0: mem 0x34001000-0x34001fff irq 10 at device 1.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0x34002000-0x34002fff irq 10 at device 1.3 on pci0 usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered pci0: (vendor=0x1039, dev=0x7018) at 1.4 pci0: (vendor=0x1039, dev=0x7013) at 1.6 irq 11 pcib2: at device 2.0 on pci0 pci1: on pcib2 pci1: at 0.0 pcic0: at device 10.0 on pci0 pcic0: PCI Memory allocated: 0x88000000 pcic0: Polling mode pcic0: Warning: O2micro OZ68xx chips may not work pccard0: on pcic0 rl0: port 0x3400-0x34ff mem 0x34004000-0x340040ff irq 11 at device 11.0 on pci0 rl0: Ethernet address: 00:e0:4c:39:03:db miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcib1: on motherboard pci2: on pcib1 orm0: