From owner-freebsd-stable@FreeBSD.ORG Thu Sep 11 17:56:51 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0281C10656C4; Thu, 11 Sep 2008 17:56:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 796CC8FC22; Thu, 11 Sep 2008 17:56:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m8BHuVYQ035323; Thu, 11 Sep 2008 13:56:44 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Bruce M Simpson Date: Thu, 11 Sep 2008 10:43:18 -0400 User-Agent: KMail/1.9.7 References: <48C8F684.8090409@incunabulum.net> <20080911110407.GC25493@icarus.home.lan> <48C927D6.5020800@incunabulum.net> In-Reply-To: <48C927D6.5020800@incunabulum.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809111043.18265.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Thu, 11 Sep 2008 13:56:44 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8219/Thu Sep 11 11:02:39 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.3 required=4.2 tests=AWL,BAYES_00, DATE_IN_PAST_03_06,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Jeremy Chadwick , FreeBSD stable Subject: Re: alpm(4) I/O range is claimed by ACPI X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2008 17:56:51 -0000 On Thursday 11 September 2008 10:14:46 am Bruce M Simpson wrote: > Jeremy Chadwick wrote: > > ... > > Might mention this to jhb@ to see if it's related to the SMBus changes > > made 1.5 years ago: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/alpm.c > > > > Thanks for the pointers. The other reports sound like duplicate reports > of the same issue. > > I'm not sure that backing out the last change is going to help. The BIOS > has generally set up the I/O resource before FreeBSD boots; the > bus_set_resource() call might only be useful in those cases where that > hasn't happened. > In any event, in alpm_attach(), the rman is going to notice that the bus > space is already allocated by acpi(4), and will balk. > > I'm sure there has been some kind of override mechanism in place for > certain other drivers; but they seem to boil down to using an ACPI > attachment of some kind, which won't work here as alpm(4) is a PCI > function and needs to attach to the pcib parent. > > It would be really, really useful to have working SMBus drivers right > now on a machine I can actually touch... Umm, ACPI will allow children devices to allocate their resources out of the "sysresource" pool. IPMI has to do this on some systems where ACPI claims the IPMI I/O ports as a system resource. That's what this chunk of code in acpi_alloc_resource() does: /* * If this is an allocation of a specific range, see if we can satisfy * the request from our system resource regions. If we can't, pass the * request up to the parent. */ if (start + count - 1 == end && rm != NULL) res = rman_reserve_resource(rm, start, end, count, flags & ~RF_ACTIVE, child); I'm not sure why you are having issues with SMBus. I know I've been able to use IPMI over SSIF (IPMI over SMBus) using ichsmb0 on some Intel boxes that were new about 2 years ago. -- John Baldwin