From owner-freebsd-current@FreeBSD.ORG Sun Jun 22 18:24:28 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AEFA37B404 for ; Sun, 22 Jun 2003 18:24:28 -0700 (PDT) Received: from roc-smtp-sun.choiceone.net (roc-smtp-sun.choiceone.net [64.65.208.5]) by mx1.FreeBSD.org (Postfix) with SMTP id 86B5843FCB for ; Sun, 22 Jun 2003 18:24:27 -0700 (PDT) (envelope-from iwaldron@wpi.edu) Received: (qmail 5497 invoked from network); 23 Jun 2003 01:24:26 -0000 Received: from unknown (HELO 192.168.0.39) (216.153.149.107) by smtp.choiceone.net with SMTP; 23 Jun 2003 01:24:26 -0000 From: Isaac Waldron To: current@freebsd.org Date: Sun, 22 Jun 2003 21:23:49 -0400 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306222123.49619.iwaldron@wpi.edu> cc: mobile@freebsd.org Subject: ACPI Patch/DSDT .asl for Dell Inspiron 5000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2003 01:24:28 -0000 I have fixed the "stock" DSDT for my Dell Inspiron 5000 (Model: PPM). It compiles fine using iasl from the acpicatools port, and enabling ACPI no longer causes the LCD to blank on startup. Additionally, I have written a patch for version 1.29 of the sys/dev/acpica/acpi_ec.c. The patch affects the EcWaitEventIntr function to better parallel the functionality of the EcWaitEvent function. In summary, the changes are: 1) Added a call to AcpiOsStall to wait one microsecond before reading the embedded control status for the first time (this is done in EcWaitEvent). 2) Re-wrote the remainder of the function to use a single call to ACPI_MSLEEP that will wait up to 10 ms (again, from EcWaitEvent) for the embedded control status to be updated. I wrote this patch to reduce the frequency of "ACPI-0432: *** Error: Handler for [EmbeddedControl] returned AE_ERROR" errors. The code was written in a way to call tsleep 10 times and wait for only 1 tick each time. This resulted in a wait that was too short on my machine. The patch has cleared up most of the errors by increasing the wait time. Both of the files are available at http://users.wpi.edu/~iwaldron/freebsd/patches/acpi/ Sincerely, Isaac Waldron