From owner-freebsd-acpi@FreeBSD.ORG Fri Jul 4 16:47:45 2008 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9ACB106567A for ; Fri, 4 Jul 2008 16:47:45 +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 8C9C58FC1F for ; Fri, 4 Jul 2008 16:47:45 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 37949 invoked from network); 4 Jul 2008 16:21:04 -0000 Received: from ppp-71-139-33-139.dsl.snfc21.pacbell.net (HELO ?10.0.5.18?) (nate-mail@71.139.33.139) by root.org with ESMTPA; 4 Jul 2008 16:21:04 -0000 Message-ID: <486E4DE7.60807@root.org> Date: Fri, 04 Jul 2008 09:20:55 -0700 From: Nate Lawson User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Bruce Evans References: <20080702191827.GK1469@uriah.heep.sax.de> <20080703145049.S6189@delplex.bde.org> In-Reply-To: <20080703145049.S6189@delplex.bde.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Joerg Wunsch , freebsd-acpi@freebsd.org Subject: Re: HP/Compaq nx6325 clock "jumping around" 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, 04 Jul 2008 16:47:45 -0000 Bruce Evans wrote: > On Wed, 2 Jul 2008, Joerg Wunsch wrote: > >> On a nx6325 running 6-stable (because I couldn't get 7.x to work with >> ACPI at all so far), the main clock is frequently "jumping", up to a >> level where ntpd eventually gives up: > > I know of the following bugs in time on nx6325: > - pressing the lid switch to turn the screen off makes the time jump by > almost precisely 1 second using any timecounter. The system appears > to spend the 1 second in something like SMM mode with all interrupts > and all timecounters stopped. More precisely, the jump is: > ACPI-fast and TSC: -1.000000 +- 10 uS > i8254: -1.043000 +- 1 mS I'm not sure how to do anything about this. Sounds like a BIOS bug. > - dynamic recalibration of cpu_tick_frequency has never worked. This > is a MI bug, and only affects process times. cpu_tick_frequency is > never adjusted downwards (except for a full recalibration). Thus > any glitches in the cpu_tick clock (TSC on nx6325), e.g., from the > SMM bug or entering ddb) cause cpu_tick_frequency to creep or jump > upwards and never come down. This reminds me -- the algorithm for estimating the cpu frequency needs improvement. You had a patch you sent me that reduced its error by a lot. Would you commit it? > dev.cpu.0.freq: 1985 > dev.cpu.0.freq_levels: 1985/-1 1736/-1 1488/-1 1240/-1 992/-1 744/-1 > 496/-1 248/-1 > > Once I used some performance/power-reduction config and got a list like > yours. > > 1985 actually gives 1995 MHz. Your freq estimation patch does better than this. -- Nate