From owner-freebsd-mobile@FreeBSD.ORG Tue Jul 10 22:44:35 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 5E72316A468; Tue, 10 Jul 2007 22:44:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1A95F13C447; Tue, 10 Jul 2007 22:44:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6AMgTUI019787; Tue, 10 Jul 2007 16:42:29 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 10 Jul 2007 16:42:29 -0600 (MDT) Message-Id: <20070710.164229.763346042.imp@bsdimp.com> To: jhb@freebsd.org From: "M. Warner Losh" In-Reply-To: <200707101518.59366.jhb@freebsd.org> References: <1183942480.6901.15.camel@joe.realss.com> <200707101518.59366.jhb@freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 10 Jul 2007 16:42:31 -0600 (MDT) Cc: zhangweiwu@realss.com, smithi@nimnet.asn.au, freebsd-mobile@freebsd.org Subject: 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: Tue, 10 Jul 2007 22:44:35 -0000 In message: <200707101518.59366.jhb@freebsd.org> John Baldwin writes: : On Sunday 08 July 2007 08:54:40 pm Zhang Weiwu wrote: : > > > 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 : : We tried to set the IRQ for your device and the BIOS choked. Can you get the : output from /usr/src/tools/tools/pirtool for your machine? Once upon a time, I encountered many BIOSes that would happily map the first interrupt on an interrupt pin at the PIC. Further ones would result in an error, so I made the code ignore errors all the time. Looks like they are no longer ignored. I never found out if ignoring the error was OK or not, since the documentation was a bit thin in that area. Warner