From owner-freebsd-mobile@FreeBSD.ORG Thu Oct 25 17:39:25 2007 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22D3316A5D9 for ; Thu, 25 Oct 2007 17:39:25 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id B18ED13C4B6 for ; Thu, 25 Oct 2007 17:39:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8p) with ESMTP id 216063953-1834499 for multiple; Thu, 25 Oct 2007 13:41:58 -0400 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l9PHdLgY023767; Thu, 25 Oct 2007 13:39:21 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-mobile@freebsd.org Date: Thu, 25 Oct 2007 13:39:15 -0400 User-Agent: KMail/1.9.6 References: <20071024234927.5DE354500E@ptavv.es.net> <472051E1.6020108@tomjudge.com> In-Reply-To: <472051E1.6020108@tomjudge.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710251339.16232.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 25 Oct 2007 13:39:21 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Tom Judge Subject: Re: ACPI Attach (acpi_ibm) stops mouse from working 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: Thu, 25 Oct 2007 17:39:25 -0000 On Thursday 25 October 2007 04:20:49 am Tom Judge wrote: > Kevin Oberman wrote: > >> Date: Mon, 22 Oct 2007 17:04:52 +0100 > >> From: Tom Judge > >> Sender: owner-freebsd-mobile@freebsd.org > >> > >> Hi, > >> > >> > >> I have recently setup an IBM/Lenovo T43 with RELENG_7 as of mid last > >> week, however I have a problem with the acpi_ibm module. > >> > >> If I add acpi_ibm_load="YES" to loader.conf I get the following message > >> during boot: > >> > >> psm0: unable to allocate IRQ > >> > >> This is followed by a message stating that the acpi_ibm module has > >> attached to IRQ 12. > >> > >> If I remove this module from loader.conf and boot the system the mouse > >> attaches and works as expected. If I then kldload acpi_ibm the module > >> attaches to acpi0. > >> > >> > >> Is there any way to make this work without loading the acpi module after > >> boot? > > > > I have a T43 and see the same thing if I load drivers in > > /boot/loader.conf. I have seen it with both umass and it's USB brethren, > > and if_ath. If I build them into the kernel or load them after the > > system boots, there is no problem. Otherwise, no IRQ for the mouse (and > > no mouse). > > > > But you don't have to explicitly load ACPI. It's "magic" and > > automatically loads if you don't disable it in hints. If it loads that > > way, I have never had problems with the mouse. > > > > jhb had some ideas of what caused the problem, but I have never had > > time to pursue it and it is pretty rare. > > > > Try removing the load from /boot/loader.conf and see if it works and if > > you still get ACPI. > > If I remove acpi_ibm_load="YES" from loader.conf I do indeed still get > acpi. But what I don't get are access to the IBM acpi extensions such > as being able to use the access button to launch applications. It all > seems to be related to the order in which the modules are loaded. If > acpi_ibm is loaded last then all is well, if not then it attaches to irq > 12 clobbering the ps2 port for the mouse. I just committed a fix. You can fix it locally by removing the IBM0057 ID from acpi_ibm.c. -- John Baldwin