From owner-freebsd-acpi@FreeBSD.ORG Thu Oct 26 16:29:23 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 56DBA16A403 for ; Thu, 26 Oct 2006 16:29:23 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BD4E43D99 for ; Thu, 26 Oct 2006 16:29:11 +0000 (GMT) (envelope-from nate@root.org) Received: (qmail 6088 invoked from network); 26 Oct 2006 16:30:04 -0000 Received: from ppp-71-139-31-204.dsl.snfc21.pacbell.net (HELO ?10.0.5.59?) (nate-mail@71.139.31.204) by root.org with ESMTPA; 26 Oct 2006 16:30:04 -0000 Message-ID: <4540E242.8080100@root.org> Date: Thu, 26 Oct 2006 09:28:50 -0700 From: Nate Lawson User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: John Utz References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: 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: Thu, 26 Oct 2006 16:29:23 -0000 John Utz wrote: > Hello; > > as you may know i am attempting to use fbsd's smbios functionality to > support porting the linux i8k-utils dell smbios keyboard and fan stuff. > > i just discovered today that disabling sysresource allows the module to > attach. > > so, here's the part that i'd love some help with understanding: > > 1. with acpi enabled, is smbios.ko supposed to be asking acpi for a > resource handle or something? > > 2. is acpi_resource.c behaving in error? should it not be consuming the > smbios startaddr? > > note that startaddr for smbios is 0xf000, bios.c looks for pnpbios and > pcibios starting at 0xe000 and completely ignores smbios. > > it seems to me that either statement 1 or 2 is correct, but not both. > > of course, i could be totally wrong, can anybody enlighten me? ACPI reserves sysresource objects for downstream devices. Then, those devices get the resources they request via ACPI. Anyway, all this should be transparent to the downstream devices. They shouldn't care if they're getting their resources from nexus (top, pseudo-device) or acpi. Are you using bus_alloc_resource() or the equivalent to get the resources in your driver? It transparently maps resource requests to upstream devices. Please send the output of devinfo -rv with your driver installed, both with and without sysresource enabled in ACPI. -- Nate