Re: exposing FSB clock speed in /sys

2007-04-02 Thread Stephane Eranian
Len, On Mon, Apr 02, 2007 at 12:14:43PM -0400, Lennart Sorensen wrote: > On Sat, Mar 31, 2007 at 12:18:32AM -0800, Stephane Eranian wrote: > > Well, I am talking about the bus that connects the processor socket to the > > chipset on Intel machines. On Intel Core 2 Duo (aka Woodcrest), you have >

Re: exposing FSB clock speed in /sys

2007-04-02 Thread Lennart Sorensen
On Sat, Mar 31, 2007 at 12:18:32AM -0800, Stephane Eranian wrote: > Well, I am talking about the bus that connects the processor socket to the > chipset on Intel machines. On Intel Core 2 Duo (aka Woodcrest), you have > 2 sockets, thus two buses connecting to the chipset which then connects > to t

Re: exposing FSB clock speed in /sys

2007-03-31 Thread Andi Kleen
> I am not interested in older processors, but I think for all recent Intel > processors, there is a fairly simple algorithm to get the frequency using > a couple of MSRs (including MSR_IA32_EBL_CR_POWERON or MSR_FSB_FREQ). Hmm, maybe make it an own driver that creates the sysfs entries somewhere

Re: exposing FSB clock speed in /sys

2007-03-31 Thread Stephane Eranian
Andi, On Sat, Mar 31, 2007 at 04:31:29AM +0200, Andi Kleen wrote: > Stephane Eranian <[EMAIL PROTECTED]> writes: > > > It seems that the kernel does not expose the Front-Side Bus (FSN) Clock > > speed to user applications. > > You mean the APIC timer frequency which happens to match the FSB >

Re: exposing FSB clock speed in /sys

2007-03-30 Thread Andi Kleen
Stephane Eranian <[EMAIL PROTECTED]> writes: > It seems that the kernel does not expose the Front-Side Bus (FSN) Clock > speed to user applications. You mean the APIC timer frequency which happens to match the FSB on some CPUs? > Knowledge the the FSB speed is very useful to monitoring tools

Re: exposing FSB clock speed in /sys

2007-03-30 Thread Alan Cox
> Looking at the code, it seems that there is no standard way of extracting > the FSB speed. For each processor model, you have different MSRs. I would > think that the routines in the cpufreq code could be moved out and used > as the basis to expose the information somewhere in /sys. It's well un

Re: exposing FSB clock speed in /sys

2007-03-30 Thread Arjan van de Ven
On Fri, 2007-03-30 at 07:39 -0800, Stephane Eranian wrote: > Hello, > > It seems that the kernel does not expose the Front-Side Bus (FSN) Clock > speed to user applications and that is a good thing ;) > Knowledge the the FSB speed is very useful to monitoring tools. It is used > to compute cer