Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 25 Feb 2003 14:18:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 25 Feb 2003 14:18:30 -0500 Received: from donna.siteprotect.com ([64.41.120.44]:12769 "EHLO donna.siteprotect.com") by vger.kernel.org with ESMTP id ; Tue, 25 Feb 2003 14:18:27 -0500 Date: Tue, 25 Feb 2003 14:28:29 -0500 (EST) From: John Clemens X-X-Sender: john@pianoman.cluster.toy To: Pavel Machek cc: Dominik Brodowski , , kernel list Subject: Re: cpufreq: allow user to specify voltage In-Reply-To: <20030225190949.GM12028@atrey.karlin.mff.cuni.cz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2264 Lines: 57 On Tue, 25 Feb 2003, Pavel Machek wrote: > Hi! > > > > But I agree that hacking proc_intf is not the right thing to do. I did > > > not see that sysfs access. Where is it? > > > > kernel/cpufreq.c > > Okay, I see. > > > > > - selecting the voltage manually is something which is only valid for some > > > > very few drivers - so let's only export one sysfs file[*] for these > > > > drivers. > > > > > > Very few drivers? It should be common for at least Intel and AMD, no? > > No. Intel doesn't let you select the exact voltage. IIRC, only vew > > VIA/Cyrix-longhaul-capable processors and, of course, powernow-k7 are vaild > > targets for such a patch. > > So I guess adding /sys/bus/system/devices/cpu0/voltage? Should code to > do that be in kernel/cpufreq.c or is it possible to do sysfs from > powernow-k7 [it does not seem easy]? Pavel I agree, there shoul dbe a way to add sysfs files from a cpufreq driver module. I told dave I was looking into overriding the powernow tables, but I can't seem to get enough time away from my day job right now. for the powernow driver, and the userspace governor, I'd like to export a file "current_setting" or something that contains: A write to this file of one, two, or three values would result in changing the frequency to the closest standard table match we have. Unless, the user specifies an "override" flag as a module parameter. If the override flag is set, then writing to that file will set the speed and voltage to exactly what you specify (within the min/max hardware limits), and basically ignore the standard BIOS table. simple, elegant, gives standard default behavior....but allows one to override the tables if they -swear- they know better. But it's really tough to do without a way to add sysfs files from the driver itself. john.c -- John Clemens http://www.deater.net/john john@deater.net ICQ: 7175925, IM: PianoManO8 "I Hate Quotes" -- Samuel L. Clemens - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/