From owner-freebsd-mobile@FreeBSD.ORG Mon Jul 16 09:17:23 2007 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4549F16A402 for ; Mon, 16 Jul 2007 09:17:23 +0000 (UTC) (envelope-from zhangweiwu@realss.com) Received: from bossdog.realss.com (bossdog.realss.com [211.157.108.128]) by mx1.freebsd.org (Postfix) with ESMTP id 5003B13C467 for ; Mon, 16 Jul 2007 09:17:22 +0000 (UTC) (envelope-from zhangweiwu@realss.com) Received: from localhost (unknown [127.0.0.1]) by bossdog.realss.com (Postfix) with ESMTP id E14441D85B9 for ; Mon, 16 Jul 2007 17:17:38 +0800 (CST) Received: from bossdog.realss.com ([127.0.0.1]) by localhost (bossdog.realss.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10849-18 for ; Mon, 16 Jul 2007 17:17:37 +0800 (CST) Received: from [218.193.55.195] (166.17.61.59.board.xm.fj.dynamic.163data.com.cn [59.61.17.166]) by bossdog.realss.com (Postfix) with ESMTP id A586C1D85B4 for ; Mon, 16 Jul 2007 17:17:36 +0800 (CST) From: Zhang Weiwu To: freebsd-mobile@freebsd.org In-Reply-To: <200707111431.52840.jhb@freebsd.org> References: <1183942480.6901.15.camel@joe.realss.com> <1184115985.13672.1.camel@joe.realss.com> <20070710.205634.756906935.imp@bsdimp.com> <200707111431.52840.jhb@freebsd.org> Content-Type: multipart/mixed; boundary="=-ZX3YJmnOFqUmnf/w0h6n" Organization: Real Softservice Date: Mon, 16 Jul 2007 17:11:30 +0800 Message-Id: <1184577090.2478.12.camel@joe.realss.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 X-Virus-Scanned: amavisd-new at bossdog.realss.com Subject: (resend) Re: unable to map IRQ for my pccard X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 09:17:23 -0000 --=-ZX3YJmnOFqUmnf/w0h6n Content-Type: text/plain Content-Transfer-Encoding: 7bit [I didn't see majordomo send my message back to me, resend in case it's lost. Sorry if you see this message twice.] On Wed, 2007-07-11 at 14:31 -0400, John Baldwin wrote: > No, we only route things once. Look at /sys/i386/pci/pci_pir.c. It keeps > track of which IRQ a link is routed to, and we only use the BIOS call if it > didn't look like the BIOS had already routed it, and we haven't routed it > before. I think we are actually trying to route 0x61 btw, not 0x60 since > it's device 2.1 (and thus probably INTB) that is keeling over. > > You can try using a hint like 'hw.pci0.2.INTB.irq=11' and seeing if it works. Thank you for the insight and suggested solution. After having that setting in /boot/device.hints I still cannot make the second card work, just in case you are interested in this issue too, I have attached the dmesg after used suggested hint. This dmesg is obtained by first insert both cards and then boot. And here is the output of pirtool after I used the hints and both cards: [root@quasimodo /home/zhangweiwu]# pirtool PIRTOOL for FreeBSD (c) 2002 Bruce M. Simpson --------------------------------------------- PCI Interrupt Routing Table at 0x000FB270 ----------------------------------------- 0x00: Signature: $PIR 0x04: Version: 1.0 0x06: Size: 96 bytes (4 entries) 0x08: Device: 0:6:0 0x0a: PCI Exclusive IRQs: 0x00000400 0x0c: Compatible with: 0x00000000 unknown chipset 0x10: Miniport Data: 0x00000000 0x1f: Checksum: 0x4D Entry 0: Device 0:6:0 Slot 0 (on-board) INTA: 60h routable irqs: 3 4 5 6 7 9 10 11 12 14 15 INTB: 00h (not connected) INTC: 00h (not connected) INTD: 63h routable irqs: 3 4 5 6 7 9 10 11 12 14 15 Entry 1: Device 0:2:0 Slot 0 (on-board) INTA: 60h routable irqs: 3 4 5 6 7 9 10 11 12 14 15 INTB: 61h routable irqs: 3 4 5 6 7 9 10 11 12 14 15 INTC: 00h (not connected) INTD: 00h (not connected) Entry 2: Device 0:3:0 Slot 0 (on-board) INTA: 60h routable irqs: 3 4 5 6 7 9 10 11 12 14 15 INTB: 00h (not connected) INTC: 00h (not connected) INTD: 00h (not connected) Entry 3: Device 0:7:0 Slot 0 (on-board) INTA: 60h routable irqs: 3 4 5 6 7 9 10 11 12 14 15 INTB: 61h routable irqs: 3 4 5 6 7 9 10 11 12 14 15 INTC: 00h (not connected) INTD: 00h (not connected) --=-ZX3YJmnOFqUmnf/w0h6n Content-Disposition: attachment; filename=dmesg_with_both_cards Content-Type: text/plain; name=dmesg_with_both_cards; charset=UTF-8 Content-Transfer-Encoding: 7bit Copyright (c) 1992-2006 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 6.1-RELEASE #0: Thu Jul 5 12:26:43 CST 2007 root@quasimodo.realss.com:/usr/obj/usr/src/sys/QUASIMODO Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium/P55C (quarter-micron) (232.11-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x581 Stepping = 1 Features=0x8001bf real memory = 100466688 (95 MB) avail memory = 88723456 (84 MB) Intel Pentium detected, installing workaround for F00F bug kbd1 at kbdmux0 cpu0 on motherboard pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 cbb0: mem 0x20822000-0x20822fff at device 2.0 on pci0 pccard0: <16-bit PCCard bus> on cbb0 cbb1: mem 0x20821000-0x20821fff at device 2.1 on pci0 pccard1: <16-bit PCCard bus> on cbb1 pci0: at device 3.0 (no driver attached) isab0: at device 6.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcf0-0xfcff at device 6.1 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port 0x9000-0x901f irq 10 at device 6.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 6.3 (no driver attached) pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc9fff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: at port 0x3bc-0x3c3 irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode 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=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A sio2: configured irq 5 not in bitmap of probed irqs 0 sio2: port may not be enabled sio3: configured irq 9 not in bitmap of probed irqs 0 sio3: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff 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 (memory) unknown: can't assign resources (port) unknown: can't assign resources (port) pcm0: at port 0x530-0x537,0x388-0x38b,0x220-0x233 irq 5 drq 1,0 on isa0 pcm0: [GIANT-LOCKED] unknown: can't assign resources (port) unknown: can't assign resources (port) ums0: Logitech Optical USB Mouse, rev 2.00/3.40, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. Timecounter "TSC" frequency 232106281 Hz quality 800 Timecounters tick every 1.000 msec ep0: <3Com Corporation 3C589D> at port 0x100-0x10f irq 10 function 0 config 1 on pccard0 ep0: Ethernet address: 00:60:97:92:c0:27 ata2: at port 0x110-0x11f irq 11 function 0 config 1 on pccard1 ad0: 3102MB at ata0-master UDMA33 acd0: CDROM at ata0-slave PIO3 Interrupt storm detected on "irq10:"; throttling interrupt source Trying to mount root from ufs:/dev/ad0s1a arplookup 218.193.55.198 failed: could not allocate llinfo arpresolve: can't allocate route for 218.193.55.198 nfs server emerson:/home/zhangweiwu/public_html: not responding nfs server emerson:/home/zhangweiwu/public_html: not responding nfs server emerson:/home/zhangweiwu/public_html: not responding --=-ZX3YJmnOFqUmnf/w0h6n--