From owner-freebsd-acpi@FreeBSD.ORG Tue Oct 31 23:47:40 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA60C16A412; Tue, 31 Oct 2006 23:47:40 +0000 (UTC) (envelope-from john@utzweb.net) Received: from marley.grokthis.net (marley.grokthis.net [69.93.78.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67C3843D60; Tue, 31 Oct 2006 23:47:40 +0000 (GMT) (envelope-from john@utzweb.net) Received: from utzweb.net (marley.grokthis.net [127.0.0.1]) by marley.grokthis.net (Postfix) with ESMTP id 8A1E0F101E; Tue, 31 Oct 2006 18:47:40 -0500 (EST) Received: from 69.93.78.27 (proxying for 199.201.237.2) (SquirrelMail authenticated user john-utzweb-net); by utzweb.net with HTTP; Tue, 31 Oct 2006 18:47:44 -0500 (EST) Message-ID: <51211.69.93.78.27.1162338464.squirrel@69.93.78.27> In-Reply-To: <200610301519.24918.jhb@freebsd.org> References: <4541254E.5020108@root.org> <28D1F57D-B976-4EC3-927A-40F09C4465E6@utzweb.net> <200610301519.24918.jhb@freebsd.org> Date: Tue, 31 Oct 2006 18:47:44 -0500 (EST) From: john@utzweb.net To: "John Baldwin" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-acpi@freebsd.org Subject: Re: Serious Progess Re: smbios.ko probes successfully if i disable acpi sysresource, fails if i do not X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Oct 2006 23:47:40 -0000 > On Thursday 26 October 2006 22:19, John Utz wrote: >> >> On Oct 26, 2006, at 2:14 PM, Nate Lawson wrote: >> >> > John Baldwin wrote: >> >> On Thursday 26 October 2006 12:28, Nate Lawson wrote: >> >>>> note that startaddr for smbios is 0xf000, bios.c looks for >> >>>> pnpbios and pcibios starting at 0xe000 and completely ignores >> >>>> smbios. >> >>> Are you using bus_alloc_resource() or the equivalent to get the >> >>> resources in your driver? >> >> this was the us$64K question, thankyou for answering it! >> >> man bus_alloc_resource sez 'dont use this any earlier than attach, >> and smbios.c (and several other things) are using it in probe(). >> >> once i yanked that out of probe, then it cohabitates with acpi > > They should likely use pmap_mapbios() (pmap_mapdev() on 6.x) to locate and > map > tables instead. So i actually do use pmap_mapdev to get a handle to the table, but i dont do that in smbios_attach, i do it in a function written to walk the table. but, as i alluded to previously, the original author used bus_alloc_resource() in smbios_attach() are you saying that i should use pmap_mapdev() in smbios_attach *instead* of bus_alloc_resource()? or am i missing the plot and there shouldnt even be an smbios_attach() ?? tnx! johnu > -- > John Baldwin > >