From owner-freebsd-mobile@FreeBSD.ORG Sat Jul 7 12:51:26 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 C88F416A41F for ; Sat, 7 Jul 2007 12:51:26 +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 569EC13C44C for ; Sat, 7 Jul 2007 12:51:26 +0000 (UTC) (envelope-from zhangweiwu@realss.com) Received: from localhost (unknown [127.0.0.1]) by bossdog.realss.com (Postfix) with ESMTP id E97171C0006 for ; Sat, 7 Jul 2007 20:51:50 +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 05317-08 for ; Sat, 7 Jul 2007 20:51:48 +0800 (CST) Received: from [218.193.55.195] (unknown [125.77.224.188]) by bossdog.realss.com (Postfix) with ESMTP id 94B3D1C0005 for ; Sat, 7 Jul 2007 20:51:48 +0800 (CST) From: Zhang Weiwu To: freebsd-mobile@freebsd.org Content-Type: text/plain Organization: Real Softservice Date: Sat, 07 Jul 2007 20:46:27 +0800 Message-Id: <1183812387.7741.32.camel@joe.realss.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at bossdog.realss.com Subject: 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: Sat, 07 Jul 2007 12:51:26 -0000 Dear list My notebook has two 16-bit PCMCIA slots, the card in the second slot always doesn't work, it was until after a week I start to notice dmesg showed useful information: 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 $PIR: ROUTE_INTERRUPT failed. cbb: Unable to map IRQ... device_attach: cbb1 attach returned 12 [snip] ep0: <3Com Corporation 3C589D> at port 0x100-0x10f irq 11 function 0 config 1 on pccard0 ep0: Ethernet address: 00:60:97:92:c0:27 I have checked my IRQ usage (by using dmesg | grep irq) and found IRQ 3, 8, 9, 10 are not used. atkbd0 irq 1 ... irq 2 [empty] irq 3 <-- I disabled COM1 in kernel because hardware broken. sio4 irq 4 <-- infrared ray pcm0 irq 5 fdc0 irq 6 ppc0 irq 7 [empty] irq 8 <-- not used in dmesg but some articles I read says it's for Real time clock [empty] irq 9 [empty] irq 10 uhci0 irq 11 ep0 irq 11 <-- this is the device on first PCMCIA slot psm0 irq 12 ata4 irq ? <-- this is the (unusable) device on second PCMCIA slot [empty] irq 13 <-- I don't think I have coprocessor on my thinkpad [empty] irq 14 <-- not shown in dmesg but I do have atapci0 that might use it [empty] irq 15 <-- probably not used because I don't have atapci1 I am not sure how to solve "ROUTE_INTERRUPT failed." problem, but since I have enough free IRQ for the devices, I guess I can simply turn off IRQ sharing or simply assign an unused IRQ number to the second device. The free IRQ number I filled in /etc/pccard.conf seems to be completely ignored (you can set to anything but it will always use irq 11), this is strange. As manual suggests this is the right place to configure IRQ for pccards. Best regards -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112