From owner-cvs-src@FreeBSD.ORG Tue Feb 27 00:14:20 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F155616A404; Tue, 27 Feb 2007 00:14:20 +0000 (UTC) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id E3D2413C461; Tue, 27 Feb 2007 00:14:20 +0000 (UTC) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l1R0EKwT034232; Tue, 27 Feb 2007 00:14:20 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l1R0EKrp034231; Tue, 27 Feb 2007 00:14:20 GMT (envelope-from njl) Message-Id: <200702270014.l1R0EKrp034231@repoman.freebsd.org> From: Nate Lawson Date: Tue, 27 Feb 2007 00:14:20 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/acpica acpi_ec.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 00:14:21 -0000 njl 2007-02-27 00:14:20 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi_ec.c Log: Rework EC I/O approach. Implement burst mode, including proper handling of case where it asynchronously exits burst mode on its own. Handle different values of hz in sleep loop. Provide more debugging options to tune EC behavior. These tunables/sysctls may be temporary and are not for user access if the EC is working properly. Burst mode is now on by default for testing and the poll interval has been increased from 100 to 500 us and total timeout from 100 to 500 ms. Hopefully this should be the first step of addressing reports of timeout errors during battery or thermal access, especially on HP/Compaq laptops. It is reasonably stable and should not cause a loss of functionality or performance on systems that were previously working. Testing shows an increase of responsiveness by ~75% on one system. PR: kern/98171 Revision Changes Path 1.69 +206 -109 src/sys/dev/acpica/acpi_ec.c