From owner-freebsd-mobile@FreeBSD.ORG Mon Jul 21 20:38:51 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 E880A37B401 for ; Mon, 21 Jul 2003 20:38:51 -0700 (PDT) Received: from naru.wsyntax.com (66-214-183-33.la-cbi.charterpipeline.net [66.214.183.33]) by mx1.FreeBSD.org (Postfix) with SMTP id 3234043F75 for ; Mon, 21 Jul 2003 20:38:51 -0700 (PDT) (envelope-from raymond@naru.wsyntax.com) Received: (qmail 32595 invoked from network); 22 Jul 2003 03:38:50 -0000 Received: from mitsuki.wsyntax.com (HELO naru.wsyntax.com) (raymond@192.168.2.9) by naru.wsyntax.com with SMTP; 22 Jul 2003 03:38:50 -0000 Message-ID: <3F1CB1CA.2020802@naru.wsyntax.com> Date: Mon, 21 Jul 2003 20:38:50 -0700 From: Raymond Jimenez User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030619 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Toshiba Laptop Page Fault in pccard_scan_cis 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: Tue, 22 Jul 2003 03:38:52 -0000 I have an old Toshiba laptop (225 CDS) that's been working fine with PCMCIA cards until I upgraded to -CURRENT. In 4.8-RELEASE, FreeBSD recognized the slots fine, and detected the cards as well. However, in -CURRENT, it doesn't detect the cards or the slots. In 4.8, the cards were in the mode "PCIC-Compatible" in the BIOS. This mode didn't work with -CURRENT, and so I turned it to "CardBus/16-Bit". -CURRENT recognizes the slots, but whenever a card is present on bootup or when one is inserted (after loading the modules) I get the following page fault: shirayuki# kldload cardbus shirayuki# kldload pccard shirayuki# kldload cbb cbb0: irq 11 at device 2.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb1: irq 11 at device 2.1 on pci0 cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 Fatal trap 12: page fault while in kernel mode fault virtual address = 0xc64cb000 fault code = supervisor read, page not present instruction pointer = 0x8:0xc15f36b5 stack pointer = 0x10:0xc61d694c frame pointer = 0x10:0xc61d6b64 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 = 502 (cbb0) kernel: type 12 trap, code=0 Stopped at pccard_scan_cis+0x175: movzbl 0(%eax,%edx,1),%eax db> output of dmesg: 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 5.1-CURRENT #0: Sun Jul 20 20:45:11 PDT 2003 raymond@shirayuki.wsyntax.com:/usr/obj/usr/src/sys/SHIRAYUKI Preloaded elf kernel "/boot/kernel/kernel" at 0xc05c2000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc05c21cc. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 132632637 Hz CPU: Pentium/P54C (132.63-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping = 12 Features=0x1bf real memory = 67239936 (64 MB) avail memory = 59207680 (56 MB) Intel Pentium detected, installing workaround for F00F bug VESA: v2.0, 2048k memory, flags:0x0, mode table:0xc051d660 (1000040) VESA: CHIPS 6x554 Super VGA npx0: on motherboard npx0: INT 16 interface pcibios: BIOS version 2.10 Using $PIR table, 3 entries at 0xc00f97e0 pcib0: at pcibus 0 on motherboard pci0: on pcib0 pci_cfgintr: 0:2 INTA BIOS irq 11 pci_cfgintr: 0:2 INTB BIOS irq 11 pci_cfgintr: 0:11 INTA BIOS irq 11 pci0: at device 2.0 (no driver attached) pci0: at device 2.1 (no driver attached) pci0: at device 4.0 (no driver attached) ohci0: mem 0xfdfff000-0xfdffffff irq 11 at device 11.0 on pci0 usb0: OHCI version 1.0 usb0: on ohci0 usb0: USB revision 1.0 uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered isa0: on motherboard pmtimer0 on isa0 ata0 at port 0x3f6,0x1f0-0x1f7 irq 14 on isa0 ata1 at port 0x376,0x170-0x177 irq 15 on isa0 atkbdc0: at port 0x64,0x60 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 fdc0: at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x100> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A, console sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 pca0: at port 0x61 on isa0 unknown: can't assign resources (port) unknown: can't assign resources (irq) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) pcm0: at port 0x370-0x371,0x330-0x331,0x388-0x38b,0x530-0x537,0x220-0x22f irq 5 drq 0,1 on isa0 Timecounters tick every 10.000 msec IPsec: Initialized Security Association Processing. IP Filter: v3.4.31 initialized. Default = block all, Logging = enabled ad0: 7815MB [15880/16/63] at ata0-master PIO4 acd0: CDROM at ata1-master PIO4 Mounting root from ufs:/dev/ad0s1a output of uname -a: FreeBSD shirayuki.wsyntax.com 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sun Jul 20 20:45:11 PDT 2003 raymond@shirayuki.wsyntax.com:/usr/obj/usr/src/sys/SHIRAYUKI i386 I've looked on Google and found a few threads detailing this discussion, but the thread ended with "Oh, with some card/bridge combinations, we don't map the CIS address space correctly." The man pages don't say anything about this. Any help would be greatly appreciated. -Raymond -- Raymond Jimenez ("Cyanoacry") http://chikage.wsyntax.com <> cyanoacry@rakka.irc.wsyntax.com