From owner-freebsd-acpi@FreeBSD.ORG Wed Sep 28 09:32:06 2005 Return-Path: X-Original-To: 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 AE81916A41F; Wed, 28 Sep 2005 09:32:06 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vbook.fbsd.ru (swsoft-mipt-nat.sw.ru [195.214.233.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12AE343D58; Wed, 28 Sep 2005 09:32:05 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.52 (FreeBSD)) id 1EKVu7-0000Ku-Sm; Wed, 28 Sep 2005 10:58:59 +0400 From: Vladimir Grebenschikov To: Nate Lawson In-Reply-To: <4339D724.3020102@root.org> References: <1127801205.1268.9.camel@localhost> <4339D724.3020102@root.org> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Wed, 28 Sep 2005 10:58:58 +0400 Message-Id: <1127890738.1220.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.0 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: acpi@freebsd.org, current Subject: Re: Invalid detection CPU frequency ? 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: Wed, 28 Sep 2005 09:32:06 -0000 =F7 =D7=D4, 27/09/2005 =D7 16:35 -0700, Nate Lawson =D0=C9=DB=C5=D4: > Vladimir Grebenschikov wrote: > > It looks strange but sometimes my notebook start on full-speed (1.7GHz) > > and sysctls output looks like: > >=20 > > dev.cpu.0.freq: 1687 > > dev.cpu.0.freq_levels: 1687/-1 1476/-1 1265/-1 1054/-1 843/-1 632/-1 42= 1/-1 210/-1 > > dev.acpi_throttle.0.%desc: ACPI CPU Throttling > >=20 > > And sometimes it starts on low speed (~500 Mhz) > > dev.cpu.0.freq: 595 > > dev.cpu.0.freq_levels: 595/-1 520/-1 446/-1 371/-1 297/-1 223/-1 148/-1= 74/-1 > > dev.acpi_throttle.0.%desc: ACPI CPU Throttling >=20 > > And speed can't be raised by powerd or other. > > Looks like it happens when notebook stats or shutdowns on batteries. > > Rebooting on AC power cures situation. But anyway - I do not think it i= s normal. > >=20 > > Any suggestions ?=20 >=20 > It's very simple. You have an old notebook that only supports=20 > throttling, not SpeedStep or other options. Your BIOS sets the initial=20 > speed based on AC line status on boot. If you look at your CPU=20 > announcement at the top of dmesg, it will show 595 Mhz or whatever since=20 > it uses a simple calibration loop. >=20 > I might consider always setting 100% in the attach routine for=20 > acpi_throttle and p4tcc to get proper probe values. You'll still have a=20 > problem if you use the TSC timecounter since it's only calibrated at boot= . Nate, thanks for explanation, is loading cpufreq.ko from loader is good solution ? Or I will still have TSC problems ?=20 --=20 Vladimir B. Grebenschikov SWsoft Inc. vova@swsoft.com