From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 28 20:45:28 2005 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 C303916A41F; Fri, 28 Oct 2005 20:45:28 +0000 (GMT) (envelope-from robert.moore@intel.com) Received: from orsfmr004.jf.intel.com (fmr19.intel.com [134.134.136.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB4CF43D4C; Fri, 28 Oct 2005 20:45:27 +0000 (GMT) (envelope-from robert.moore@intel.com) Received: from orsfmr101.jf.intel.com (orsfmr101.jf.intel.com [10.7.209.17]) by orsfmr004.jf.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j9SKjRwm010869; Fri, 28 Oct 2005 20:45:27 GMT Received: from orsmsxvs040.jf.intel.com (orsmsxvs040.jf.intel.com [192.168.65.206]) by orsfmr101.jf.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j9SKjCNH031095; Fri, 28 Oct 2005 20:45:27 GMT Received: from orsmsx331.amr.corp.intel.com ([192.168.65.56]) by orsmsxvs040.jf.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005102813452730813 ; Fri, 28 Oct 2005 13:45:27 -0700 Received: from orsmsx403.amr.corp.intel.com ([192.168.65.209]) by orsmsx331.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 28 Oct 2005 13:45:26 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 28 Oct 2005 13:45:25 -0700 Message-ID: <971FCB6690CD0E4898387DBF7552B90E033A9B38@orsmsx403.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ACPI errors on amd64 (sempron) thread-index: AcXb/L5A7QI1FcdMSu+SV+9/kXZWXAAA2ykg From: "Moore, Robert" To: "Nate Lawson" X-OriginalArrivalTime: 28 Oct 2005 20:45:26.0955 (UTC) FILETIME=[86CBEFB0:01C5DC00] X-Scanned-By: MIMEDefang 2.52 on 10.7.209.17 Cc: freebsd-acpi@freebsd.org, Jung-uk Kim , Mathieu Prevot Subject: RE: ACPI errors on amd64 (sempron) 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: Fri, 28 Oct 2005 20:45:28 -0000 If you are using ACPI_RESOURCE, then you are probably getting the list from the resource manager (GetCurrentResources, etc.) > -----Original Message----- > From: Nate Lawson [mailto:nate@root.org] > Sent: Friday, October 28, 2005 1:18 PM > To: Moore, Robert > Cc: John Baldwin; Jung-uk Kim; freebsd-acpi@freebsd.org; Mathieu Prevot > Subject: Re: ACPI errors on amd64 (sempron) >=20 > Moore, Robert wrote: > >>>>This looks to me > >>>>like the pci_link code is pointing the interrupt source at the > >>>>wrong part of the resource descriptor. Perhaps it is not > >>>>incrementing the pointer correctly for 64-bit arches. > > > > > > I would be interested in knowing if FreeBSD is using the ACPI CA > > resource manager code, or is parsing the raw AML resource template > > buffers on its own. > > > > One advantage to using the resource manager is that the resources are > > converted to a format that is easier for upper code to analyze (and > > therefore less prone to error.) >=20 > We use our own (acpi_resource.c): > while (curr < last) { > res =3D (ACPI_RESOURCE *)curr; > curr +=3D res->Length; >=20 > /* Handle the individual resource types */ > switch(res->Id) { > case ACPI_RSTYPE_END_TAG: > ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "EndTag\n")); > curr =3D last; > break; > case ACPI_RSTYPE_FIXED_IO: > if (res->Data.FixedIo.RangeLength <=3D 0) > break; > ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "FixedIo 0x%x/%d\n", > res->Data.FixedIo.BaseAddress, > res->Data.FixedIo.RangeLength)); > set->set_ioport(dev, context, > res->Data.FixedIo.BaseAddress, > res->Data.FixedIo.RangeLength); > break; >=20 > I haven't looked at the acpi ca resource manager but it will have to > match the rest of our rman system to be a viable replacement. >=20 > -- > Nate