From owner-freebsd-acpi@FreeBSD.ORG Sun Jun 29 23:08:17 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 5C9E9106567A for ; Sun, 29 Jun 2008 23:08:17 +0000 (UTC) (envelope-from gaijin.k@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 104108FC15 for ; Sun, 29 Jun 2008 23:08:16 +0000 (UTC) (envelope-from gaijin.k@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so552975ywe.13 for ; Sun, 29 Jun 2008 16:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=gtjAV5IL67CL+x3xRCv6p5KMylgi1VUy4aCYDKTlrJ8=; b=XYEUFP57Ey0RrOoSTfhFYbhaFuDaCFvIlv4/JcsyMGRhOvzipw0fZRmIwyZE8wzzyY u+tXj7gfH2ZT0ZJdSJUcQzYTW9HfmRN3g6rShf1J2e2uh/fIFbnxWadLh3wZdQABEA7N vvMp4NH1FsX9oUVW35dQ5i/Rs89OcWUmdM5pc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=bALRjf3TNma8ovHtC9LwCyl7ST0LjvT6yrdLZ4pcZpmAHOtuc7PjWDD5wmW34M9H5m Z9ygolNf+LJbAmCsjtODNLbE0y93aOgpho4GLqtUqS9JTLZS0k8Qe1q+ymu8M77YpvmP tFUzG5YEAoCluA0qTmWWfKlO5jsd1XqEsU2FA= Received: by 10.151.49.8 with SMTP id b8mr7096954ybk.241.1214779420566; Sun, 29 Jun 2008 15:43:40 -0700 (PDT) Received: from ?10.0.3.231? ( [70.111.175.14]) by mx.google.com with ESMTPS id 30sm652826yxk.4.2008.06.29.15.43.38 (version=SSLv3 cipher=RC4-MD5); Sun, 29 Jun 2008 15:43:39 -0700 (PDT) From: "Alexandre \"Sunny\" Kovalenko" To: David Wolfskill In-Reply-To: <20080629185738.GG13924@bunrab.catwhisker.org> References: <200806281738.40672.jhb@freebsd.org> <20080629003216.3AA074500E@ptavv.es.net> <20080629185738.GG13924@bunrab.catwhisker.org> Content-Type: text/plain; charset=utf-8 Date: Sun, 29 Jun 2008 18:43:36 -0400 Message-Id: <1214779416.925.17.camel@RabbitsDen> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: freebsd-acpi@freebsd.org Subject: Re: How/why would dev.cpu.0.freq_levels change??!? 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: Sun, 29 Jun 2008 23:08:17 -0000 I am coming in late in the thread, so if I have misunderstood your problem, I do apologize. On Sun, 2008-06-29 at 11:57 -0700, David Wolfskill wrote: > OK; I've managed to demonstrate a few things: > > * Stopping powerd before the phenomenon occurs does not prevent > dev.cpu.0.freq_levels from changing, though it does appear to prevent > dev.cpu.0.freq from changing: > g1-60(6.3-S)[1] sysctl dev.cpu.0.freq_levels dev.cpu.0.freq > dev.cpu.0.freq_levels: 1200/0 1050/0 900/0 750/0 600/0 450/0 300/0 150/0 > dev.cpu.0.freq: 2400 > g1-60(6.3-S)[2] > > * As you can see, this can lead to the "interesting" situation that the > current CPU frequency is higher than the maximum "available." >From my (somewhat limited) understanding of the ACPI spec, BIOS can change _PSS object (one containing available clock frequencies) and issue notification to the OS to reevaluate said object. There is no requirement that BIOS change current CPU frequency while doing that. You can try to dump your ASL and see if anything there messes up with _PSS and then issues Notify (xxx.CPU0, 0x80) on the same breath. Killing that piece of ASL dead should ensure constant CPU frequencies set. You can post your ASL someplace where I can get to it, I just could not promise that I'll understand it much better than you. > > * The phenomenon is not limited to when I run RELENG_6; in an effort to > avoid the continuous fan whine, I tried running RELENG_7 for a while, > and encountered a recurrence rather quickly. :-( If it is the mechanism, I have described above, I would expect it to behave similarly under RELENG_6 and RELENG_7. > > * I tried firing up the Dell diagnostics; they reported OK for each of > the CPU & motherboard fans at high speed, but when the diags tried to > switch to low speed, they reported that the fans only went down (from > 10-11K RPM) to about 7K RPM instead of 5K RPM. I just emptied can of compressed air into all of the orifices of my ThinkPad X60 with the end result of average running temperature dropping about 7C and fan speed reduced appropriately. I am surprised no one suggested this yet. > > I still don't know what the problems are, but it's apparent that > something outside FreeBSD's control is misbehaving. Given that, I > suppose it would be unreasonable to expect FreeBSD to compensate > in an attempt to enforce rationality. :-( Why not -- I had powerd patch (now obsolete) to compensate for the excess of the thermal paste under the CPU heatsink -- the sky is the limit. > > Which still leaves me wondering what type(s) of evasive actions > make sense: I've become rather accustomed to using a laptop with a > 1600x1200 screen, and finding another laptop similarly-equipped > (but newer) at a reasoonable price that will run FreeBSD well appears > to be somewhat of a challenge. I'm open to suggestions. If you are looking for suggestion on the replacement laptop model -- ThinkPad T42p (aftermarket) should fit the bill nicely, otherwise, see above. > Maybe I should just see if the local laptop repair place can fix it. :-( ... or start with the canned air. > > Peace, > david -- Alexandre "Sunny" Kovalenko (Олександр Коваленко)