Mattia Dongili | 11 Feb 2009 06:10
Picon
Favicon

Re: ACPI regression in 2.6.29 - cpufreq_performance doesn't work

On Wed, Feb 11, 2009 at 12:15:35AM -0200, Guilherme Malschitzky Schroeder wrote:
> On Tue, Feb 10, 2009 at 9:08 AM, Mattia Dongili <malattia <at> linux.it> wrote:
> > A: Because it messes up the order in which people normally read text.
> > Q: Why is top-posting such a bad thing?
> > A: Top-posting.
> > Q: What is the most annoying thing in e-mail?
> >
> > On Tue, Feb 10, 2009 at 04:15:00AM -0200, Guilherme Malschitzky Schroeder wrote:
> >> yeah mattia, you were right about ondemand module was being used on
> >> cpu1, so i couldn't remove it.
> >> with this commited patch, both cpu's can now have different speeds.
> >
> > afair this has always been the case. the only difference the patch
> > introduces is telling the BIOS where the coordination is actually done.
> >> i was just comparing cat /proc/cpuinfo and didn't notice that cpu0 was
> >> at 2268MHz.
> >> cpufrequtils will need an update do deal with this change.
> >
> > why? what's wrong with cpufrequtils?
> 
> The thing i said about changing cpufrequtils it's because cpufreq-set
> just set cpu0 governor.
> With 2.6.29, it'll need to change cpu1 too from what i have understood right?
> 
> 2.6.28:
> 
> # cat /sys/devices/system/cpu/cpu{0,1}/cpufreq/scaling_governor
> ondemand
> ondemand
> # cpufreq-set -g performance
(Continue reading)

Picon

Re: ACPI regression in 2.6.29 - cpufreq_performance doesn't work

On Wed, Feb 11, 2009 at 3:10 AM, Mattia Dongili <malattia <at> linux.it> wrote:
> On Wed, Feb 11, 2009 at 12:15:35AM -0200, Guilherme Malschitzky Schroeder wrote:
>> On Tue, Feb 10, 2009 at 9:08 AM, Mattia Dongili <malattia <at> linux.it> wrote:
>> > A: Because it messes up the order in which people normally read text.
>> > Q: Why is top-posting such a bad thing?
>> > A: Top-posting.
>> > Q: What is the most annoying thing in e-mail?
>> >
>> > On Tue, Feb 10, 2009 at 04:15:00AM -0200, Guilherme Malschitzky Schroeder wrote:
>> >> yeah mattia, you were right about ondemand module was being used on
>> >> cpu1, so i couldn't remove it.
>> >> with this commited patch, both cpu's can now have different speeds.
>> >
>> > afair this has always been the case. the only difference the patch
>> > introduces is telling the BIOS where the coordination is actually done.
>> >> i was just comparing cat /proc/cpuinfo and didn't notice that cpu0 was
>> >> at 2268MHz.
>> >> cpufrequtils will need an update do deal with this change.
>> >
>> > why? what's wrong with cpufrequtils?
>>
>> The thing i said about changing cpufrequtils it's because cpufreq-set
>> just set cpu0 governor.
>> With 2.6.29, it'll need to change cpu1 too from what i have understood right?
>>
>> 2.6.28:
>>
>> # cat /sys/devices/system/cpu/cpu{0,1}/cpufreq/scaling_governor
>> ondemand
>> ondemand
(Continue reading)

Mattia Dongili | 11 Feb 2009 07:42
Picon
Favicon

Re: ACPI regression in 2.6.29 - cpufreq_performance doesn't work

On Wed, Feb 11, 2009 at 03:58:07AM -0200, Guilherme Malschitzky Schroeder wrote:
> On Wed, Feb 11, 2009 at 3:10 AM, Mattia Dongili <malattia <at> linux.it> wrote:
> > On Wed, Feb 11, 2009 at 12:15:35AM -0200, Guilherme Malschitzky Schroeder wrote:
...
> > Ha! can you check the value for
> > /sys/devices/system/cpu/cpu{0,1}/cpufreq/related_cpus
> > ?

errr... sorry, I meant to say
/sys/devices/system/cpu/cpu{0,1}/cpufreq/affected_cpus

> > or even include the full output of cpufreq-info with both kernels.

anyway from this you can see that there is actually a change
(cpufreq-info reads from affected_cpus and in 2.6.28
sys/.../cpu1/cpufreq should be a link to ../cpu0/cpufreq):

> Here it's:
> 
> 2.6.28.4
...
> # cpufreq-info
> cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006
> Report errors and bugs to cpufreq <at> lists.linux.org.uk, please.
> analyzing CPU 0:
>   driver: acpi-cpufreq
>   CPUs which need to switch frequency at the same time: 0 1
...
> 2.6.29-rc4
...
(Continue reading)

Frans Pop | 20 Feb 2009 03:52
Picon

Re: cpuinfo shows wrong MHz value

On Thursday 19 February 2009, Joerg Platte wrote:
> Am Mittwoch, 18. Februar 2009 schrieb Frans Pop:
> > commit ed9cbcd40004904dbe61ccc16d6106a7de38c998
> > Author: Zhao Yakui <yakui.zhao <at> intel.com>
> > Date:   Tue Nov 20 14:20:21 2007 -0500
> >     Revert "speedstep-lib.c: fix frequency multiplier for Pentium4
> > models 0&1"
> >
> > That would exactly explain the factor 8 of the error.
>
> Yes, looks like thats the reason.

It looks as if http://bugzilla.kernel.org/10968 has a fix for this issue, 
but that that patch never got included in the kernel.

For start of current thread, see: 
http://www.gossamer-threads.com/lists/linux/kernel/1034291?page=last
Joerg Platte | 20 Feb 2009 19:42

Re: cpuinfo shows wrong MHz value

Am Freitag, 20. Februar 2009 schrieb Frans Pop:

> It looks as if http://bugzilla.kernel.org/10968 has a fix for this issue,
> but that that patch never got included in the kernel.

Yes, this patch fixes the issue and the patch still applies to kernel 
2.6.28.6. Please push it into mainline.

regards and many thanks for providing this patch,
Jörg

Gmane