From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Renninger Subject: Re: [PATCH] Remove p4_clockmode driver Date: Fri, 23 May 2008 13:21:18 +0200 Message-ID: <1211541678.29901.78.camel@queen.suse.de> References: <1209844030.13290.5.camel@linux-2bdv.site> <20080511161934.GI15445@codemonkey.org.uk> <20080522040118.GA28737@anvil.corenet.prv> Reply-To: trenn@suse.de Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080522040118.GA28737@anvil.corenet.prv> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: cpufreq-bounces@lists.linux.org.uk Errors-To: cpufreq-bounces+glkc-cpufreq=m.gmane.org+glkc-cpufreq=m.gmane.org@lists.linux.org.uk To: Dmitry Torokhov Cc: Dave Jones , mzahor@dtech.sk, Dominik Brodowski , cpufreq On Thu, 2008-05-22 at 00:01 -0400, Dmitry Torokhov wrote: > Hi Dave, > > On Sun, May 11, 2008 at 12:19:34PM -0400, Dave Jones wrote: > > On Sat, May 03, 2008 at 09:47:10PM +0200, Thomas Renninger wrote: > > > Remove p4_clockmode driver > > > > > > The driver is doing throttling which is supposed to be done through another > > > ACPI interface. If both interfaces are used, the machine may get very slow. > > > Remove this driver which should never be used. > > > > > > Signed-off-by: Thomas Renninger > > > > I agree this is long overdue being taken out back and shot. > > > > Some thoughts though: > > > > * Should we deprecate this for a release first ? > > I'm torn over this, because I think no matter how long we do this for, > > we're going to get people who claim to be surprised. > > Though given this driver is 99% useless, perhaps just ripping it out > > is for the best. > > > > * Matthew Garrett mentioned something interesting this morning.. > > > > mjg59 | davej: On machines that don't support acpi throttling, I was under the impression that there was supposed to be a hook between the thermal code and cpufreq > > mjg59 | Which would then let p4-clockmod be kicked even if it's below the threshold at which the CPU would throttle itself > > davej | having that code expose T states rather than pretend to be P states is probably for the best. > > mjg59 | Yeah, true > > > > So whilst killing this off is probably the right thing to do, there may be > > some value in parts of it living on in the ACPI code ? > > > > I'll queue up this removal patch for linux-next, and we'll see if anyone screams. > > (I doubt it, given the amount of testing that gets right now. It'll probably > > not really get noticed until after it's in a Linus sanctioned release) > > > > AAAAAAA! > > I am using p4_clockmod in attempt to keep my old P4-based box a bit > cooler. It does not support anything besides C0 (no P-states, no > throttling) so acpi-based driver does not work. P4 CPUs do waste power, it is not designed for power savings. How much do you save with p4-clockmod? But maybe a reimplementation as Matthew suggested it may really be worth it. If it is, someone probably will do it. The cpufreq interface is the wrong place for this driver. If you have a machine that exposes throttling as expected and you make use of it (and there are userspace tools doing this), you are busted. Instead of screaming, better provide suggestions for a proper integration for machines which are capable of throttling, but have a broken BIOS which does not export it (maybe they are just doing this because it's not worth it?). AFAIK there are AMD drivers with static cpufreq tables which were never accepted. People with a BIOS who's CPU is not detected and cpufreq info is not exposed have bad luck and must either poke the vendor or self-compile the out-of-tree static table solution. I would 10 times more support this to be integrated because: - It fits the design and does not slow down other machines as a side effect - It really saves some power I still think it's ok that it did not go mainline, for maintenance and "it's the wrong way" reasons. Please, if you have verified that it really saves power (I'd really like to see some figures here, I never saw any for p4-clockmod) and it's worth having it, help to get this implemented properly, but do not delay a process which is overdue for a long time already. Thomas