From owner-freebsd-current@FreeBSD.ORG Wed Sep 28 09:45:37 2005 Return-Path: X-Original-To: current@freebsd.org 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 75B6B16A41F; Wed, 28 Sep 2005 09:45:37 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from mail.yazzy.org (mail.yazzy.org [217.8.140.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F91143D49; Wed, 28 Sep 2005 09:45:36 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from 217-13-2-82.dd.nextgentel.com ([217.13.2.82] helo=marcin) by mail.yazzy.org with esmtps (TLSv1:AES256-SHA:256) (YazzY.org) id 1EKYUs-0005Am-Fm; Wed, 28 Sep 2005 11:45:08 +0200 Date: Wed, 28 Sep 2005 11:45:32 +0200 From: Marcin Jessa To: Vladimir Grebenschikov Message-Id: <20050928114532.6ab80f6b.lists@yazzy.org> In-Reply-To: <1127890738.1220.5.camel@localhost> References: <1127801205.1268.9.camel@localhost> <4339D724.3020102@root.org> <1127890738.1220.5.camel@localhost> Organization: YazzY.org X-Mailer: Sylpheed version 2.0.0 (GTK+ 2.6.8; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.8 (-) Cc: acpi@freebsd.org, current@freebsd.org, nate@root.org Subject: Re: Invalid detection CPU frequency ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 28 Sep 2005 09:45:37 -0000 On Wed, 28 Sep 2005 10:58:58 +0400 Vladimir Grebenschikov wrote: > В вт, 27/09/2005 в 16:35 -0700, Nate Lawson пишет: > > Vladimir Grebenschikov wrote: > > > It looks strange but sometimes my notebook start on full-speed > > > (1.7GHz) and sysctls output looks like: > > > > > > dev.cpu.0.freq: 1687 > > > dev.cpu.0.freq_levels: 1687/-1 1476/-1 1265/-1 1054/-1 843/-1 > > > 632/-1 421/-1 210/-1 dev.acpi_throttle.0.%desc: ACPI CPU > > > Throttling > > > > > > 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 > > > > > 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 is normal. > > > > > > Any suggestions ? > > > > It's very simple. You have an old notebook that only supports > > throttling, not SpeedStep or other options. Your BIOS sets the > > initial speed based on AC line status on boot. If you look at your > > CPU announcement at the top of dmesg, it will show 595 Mhz or > > whatever since it uses a simple calibration loop. > > > > I might consider always setting 100% in the attach routine for > > acpi_throttle and p4tcc to get proper probe values. You'll still > > have a 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 ? I compiled it into my kernel which works fine on thinkpad R50e device cpufreq #CPU frequency control framework My entire setup can be found on: http://www.yazzy.org/configs/freebsd/thinkpad/ Cheers, Cheers, Marcin