From owner-freebsd-mobile@FreeBSD.ORG Thu Oct 19 22:04:23 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org 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 0A3CE16A407 for ; Thu, 19 Oct 2006 22:04:23 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D89C43D4C for ; Thu, 19 Oct 2006 22:04:20 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k9JM3d86069398; Thu, 19 Oct 2006 18:03:44 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: "Kevin Oberman" Date: Thu, 19 Oct 2006 18:03:48 -0400 User-Agent: KMail/1.9.1 References: <20061019210718.687F145058@ptavv.es.net> In-Reply-To: <20061019210718.687F145058@ptavv.es.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610191803.48741.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, 19 Oct 2006 18:03:44 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/2051/Thu Oct 19 15:27:43 2006 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: freebsd-mobile@freebsd.org Subject: Re: No psm with if_ath on current 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, 19 Oct 2006 22:04:23 -0000 On Thursday 19 October 2006 17:07, Kevin Oberman wrote: > > From: John Baldwin > > Date: Thu, 19 Oct 2006 16:55:51 -0400 > > > > On Thursday 19 October 2006 15:19, Kevin Oberman wrote: > > > > From: John Baldwin > > > > Date: Thu, 19 Oct 2006 13:12:43 -0400 > > > > > > > > On Thursday 19 October 2006 12:50, Kevin Oberman wrote: > > > > > 527,533c548 > > > > > < psmcpnp0: irq 12 on acpi0 > > > > > < psm0: current command byte:0047 > > > > > < psm0: flags 0x2000 irq 12 on atkbdc0 > > > > > < psm0: [GIANT-LOCKED] > > > > > < psm0: model Generic PS/2 mouse, device ID 0-00, 2 buttons > > > > > < psm0: config:00002000, flags:00000008, packet size:3 > > > > > < psm0: syncmask:c0, syncbits:00 > > > > > --- > > > > > > acpi_ibm0: irq 12 on acpi0 > > > > > 549d563 > > > > > < acpi_ibm0: on acpi0 > > > > > > > > This is odd. Do you have your ASL handy, and can you show the > > > > 'devinfo -v' line for acpi_ibm0 for the 2 cases (w/ if_ath and w/o)? > > > > > > The ASL is available at: > > > > > > > > > if_ath loaded before boot. No psm found. > > > acpi_ibm0 pnpinfo _HID=IBM0057 _UID=0 at handle=\_SB_.PCI0.LPC_.MOU_ > > > > > > if_ath loaded after boot. psm available. > > > acpi_ibm0 pnpinfo _HID=IBM0068 _UID=0 at > > handle=\_SB_.PCI0.LPC_.EC__.HKEY > > > > > > If I understand this (and I probably don't) this is really weird. > > > > Yeah, your mouse normally has an ACPI ID of IBM3870, not 0057. That's really > > odd. > > > > Device (MOU) > > { > > Name (_HID, EisaId ("IBM3780")) > > Name (_CID, 0x130FD041) > > Name (_CRS, ResourceTemplate () > > { > > IRQNoFlags () > > {12} > > }) > > Method (MHID, 0, NotSerialized) > > { > > If (\_SB.PCI0.LPC.PADD) > > { > > Store (0x80374D24, _HID) > > } > > Else > > { > > Store (0x57004D24, _HID) > > } > > } > > } > > > > Oh, wait, the MHID thing changes it. Hmm, PADD is some byte (bit?) in > > memory and it's getting changed for some reason. You can sabotage > > your ASL and use a custom DSDT that always forces it to IBM3780. You > > can also maybe hack acpi_ibm to not attach to a device that matches > > the PS/2 mouse device. Or give acpi_ibm a lower priority than the psm > > driver. You can do this it looks like by just changing > > acpi_ibm_probe() to return BUS_PROBE_DEFAULT instead of 0 on success. > > Ah. This all makes sense (and is still weird), but why does having > if_ath loaded trigger the problem? I may be missing something > fundamental, but I don't see the link. Does probing ath cause the probes > to re-order or something? I have no idea on that one. > I'll take a look at hacking acpi_ibm in a bit. I get uncomfortable about > hacking the DSDT, although I have done it in the past for broken cases > (like my old K6-3 system). Yeah, hacking acpi_ibm() is probably better. It's a simple s/0/BUS_DEFAULT_PROBE/. -- John Baldwin