2003-07-15 16:04:54

by Ian Soboroff

[permalink] [raw]
Subject: 2.6.0-test1 - cpu_freg sysfs nodes?


Attachments:
(No filename) (466.00 B)
config-2.6.0-test1 (27.53 kB)
Download all attachments

2003-07-15 16:30:39

by Mattia Dongili

[permalink] [raw]
Subject: Re: 2.6.0-test1 - cpu_freg sysfs nodes?

On Tue, Jul 15, 2003 at 01:12:56PM -0400, [email protected] wrote:
>
> I'm running 2.6.0-test1 on my Fujitsu P-2110 laptop, but the cpufreq
> stuff doesn't seem to be working. Well, this is the symptom, but the
> problem might actually be higher up:
>
> # ls /sys/class/
> input net pcmcia_socket scsi_device scsi_host tty usb usb_host
>
> Note, no 'cpu' class. /proc/cpufreq no longer works (as
> expected)... using the longrun utility to frob the MSR manually works
> fine.

find /sys -iname 'cpu*'

/sys/firmware/acpi/namespace/ACPI/CPU0
/sys/devices/system/cpu
/sys/devices/system/cpu/cpu0
/sys/devices/system/cpu/cpu0/cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq

:)
--
mattia
:wq!

2003-07-15 17:02:41

by Ian Soboroff

[permalink] [raw]
Subject: Re: 2.6.0-test1 - cpu_freg sysfs nodes?

Mattia Dongili <[email protected]> writes:

> find /sys -iname 'cpu*'
>
> /sys/firmware/acpi/namespace/ACPI/CPU0
> /sys/devices/system/cpu
> /sys/devices/system/cpu/cpu0
> /sys/devices/system/cpu/cpu0/cpufreq
> /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
> /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq

If this is the right place to look, the Documentation/cpu-freq needs
some updating.

But this still isn't it...

# find /sys -iname 'cpu*'
/sys/devices/system/cpu
/sys/devices/system/cpu/cpu0
/sys/cdev/major/cpu!cpuid
/sys/cdev/major/cpu!msr

:-(
Ian

2003-07-15 17:36:30

by lkml

[permalink] [raw]
Subject: RE: 2.6.0-test1 - cpu_freg sysfs nodes?

> Mattia Dongili <[email protected]> writes:
>
> > find /sys -iname 'cpu*'
> >
> > /sys/firmware/acpi/namespace/ACPI/CPU0
> > /sys/devices/system/cpu
> > /sys/devices/system/cpu/cpu0
> > /sys/devices/system/cpu/cpu0/cpufreq
> > /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
> > /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
>
> If this is the right place to look, the Documentation/cpu-freq needs
> some updating.
Patch for this is already in davej's queue.

> But this still isn't it...
>
> # find /sys -iname 'cpu*'
> /sys/devices/system/cpu
> /sys/devices/system/cpu/cpu0
> /sys/cdev/major/cpu!cpuid
> /sys/cdev/major/cpu!msr

There is a problem with the proper detection of longrun CPUs, see this
patch please [davej: can you appply this to your tree, too, please?]

http://marc.theaimsgroup.com/?l=linux-kernel&m=105797182628099&w=2

Dominik

2003-07-15 17:39:30

by Dave Jones

[permalink] [raw]
Subject: Re: 2.6.0-test1 - cpu_freg sysfs nodes?

On Tue, Jul 15, 2003 at 02:17:23PM -0400, [email protected] wrote:
> > find /sys -iname 'cpu*'
> >
> > /sys/firmware/acpi/namespace/ACPI/CPU0
> > /sys/devices/system/cpu
> > /sys/devices/system/cpu/cpu0
> > /sys/devices/system/cpu/cpu0/cpufreq
> > /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
> > /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
>
> If this is the right place to look, the Documentation/cpu-freq needs
> some updating.

Already updated in the cpufreq tree. Going to be pushed in the
next day or so.

> But this still isn't it...
>
> # find /sys -iname 'cpu*'
> /sys/devices/system/cpu
> /sys/devices/system/cpu/cpu0

Hmm, for some reason the registration failed.
Are there any cpufreq messages at all in the boot logs ?

Dave

2003-07-15 19:35:41

by Ian Soboroff

[permalink] [raw]
Subject: Re: 2.6.0-test1 - cpu_freg sysfs nodes?

[email protected] writes:

> There is a problem with the proper detection of longrun CPUs, see this
> patch please [davej: can you appply this to your tree, too, please?]
>
> http://marc.theaimsgroup.com/?l=linux-kernel&m=105797182628099&w=2
>
> Dominik

This patch solves it for me. Now I have all the cpufreq nodes in
sysfs, and the old /proc interface works as well (meaning I don't have
to rewrite /etc/sysconfig/apm-scripts/apmcontinue ;-)

Thanks!
Ian