From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 24 23:46:23 2007 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 213A616A417 for ; Mon, 24 Dec 2007 23:46:23 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id A484013C448 for ; Mon, 24 Dec 2007 23:46:22 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so1598208uge.37 for ; Mon, 24 Dec 2007 15:46:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:message-id:from:to:cc:subject:in-reply-to:references:user-agent:mime-version:content-type:sender; bh=FF5ZywuCTHzDsPFOQc/i6N03ObcVeYgWlmtyBRj0tGo=; b=x2GKE/seeK9HCgtRFzwiuPyalf/kyc+nH+0UCQNGxzIUjCBINICHOin5KWIBkldZ2d2k4WBOf0E8d+Vh2Tyr+HrrOkhjFOa0sdoIrCJJw/mrPcqgAyvcLToSChXR2wQF/H3HgQ8E/bybA4qKLr5+wLVUDhouleHoKwLAc4xCXzI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:from:to:cc:subject:in-reply-to:references:user-agent:mime-version:content-type:sender; b=EpfoKfjriEG3tSq0rFQSV3Kvbw/LjABoK3qj5n2vS9ehQD5tSLRNanPbfNBB0PMVP11zprjGPVWLx4GwWtrWcY/R9VnWZNBEqh0d+WYoFPzPXmpPXA2xzZ/ghSvndegVeXsP5VUIwi1V92FSdn3QFp9cbC2T/AlbVn36ssrC0Kw= Received: by 10.67.30.6 with SMTP id h6mr3783886ugj.6.1198539981220; Mon, 24 Dec 2007 15:46:21 -0800 (PST) Received: from epsilon.local.gmail.com ( [83.144.140.64]) by mx.google.com with ESMTPS id c22sm7481655ika.3.2007.12.24.15.46.19 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Dec 2007 15:46:20 -0800 (PST) Date: Mon, 24 Dec 2007 23:45:46 +0000 Message-ID: <863atrfyhh.wl%rpaulo@fnop.net> From: Rui Paulo To: Aragon Gouveia In-Reply-To: <20071224211654.GA64050@phat.za.net> References: <476E8674.5000303@gmail.com> <20071224091511.GA25786@phat.za.net> <86hci8mffc.wl%rpaulo@fnop.net> <20071224211654.GA64050@phat.za.net> User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.1 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: Rui Cc: Rui Paulo , freebsd-acpi@FreeBSD.org Subject: Re: powerd doesn't decrease CPU frequency in some cases 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: Mon, 24 Dec 2007 23:46:23 -0000 At Mon, 24 Dec 2007 23:16:54 +0200, Aragon Gouveia wrote: > > Hi, > > | By Rui Paulo > | [ 2007-12-24 14:43 +0200 ] > > Isn't it better to teach est(4) to ignore values that differ in, say, > > +/- 5Mhz ? > > I agree my patch isn't ideal. I was thinking about it today and it might > be useful to implement something that ignores frequencies whose power > ratings don't differ by more than X mW. In my case, both 2201 and 2200 are > rated to draw 35000 mW. The question is, in these cases which one of the > two should be ignored? Can't ignore both... I think you can ignore one of them, which one doesn't really matter because the power levels are the same. I suspect that, in these cases, the 2001 comes after 2000 in the EST table, so if we ignore a value already present, 2000 will remain and 2001 will be ignored. > Sorry Andrey, I missed your patch. Was a bit overly excited when I saw > someone else finally experiencing the same problem as me after receiving > zero response a month ago when I posted about it. :) > > Something I asked in my post a month ago was where does > dev.cpu.X.freq_levels get its data? I was thinking it might be something > that can be addressed with a patched ACPI DSDT? dev.cpu.0.freq_levels is the combiation of several power/speed throttling sources, namely, est(4), acpi_throttle(4), etc. The API that deals with this is cpufreq(8). Regards. -- Rui Paulo