[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090210045803.GA31755@kamineko.org>
Date: Tue, 10 Feb 2009 13:58:04 +0900
From: Mattia Dongili <malattia@...ux.it>
To: Guilherme Malschitzky Schroeder <guilherme.m.schroeder@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: ACPI regression in 2.6.29 - cpufreq_performance doesn't work
On Tue, Feb 10, 2009 at 01:53:13AM -0200, Guilherme Malschitzky Schroeder wrote:
> Hi,
>
> If i set performance for scaling_governor using 2.6.29-rc4-git2,
> ondemand stills control my CPU.
> I get just 800MHz instead of 2268MHz.
>
> dub:/sys/devices/system/cpu/cpu0/cpufreq# cat cpuinfo_cur_freq
> 800000
> dub:/sys/devices/system/cpu/cpu0/cpufreq# echo performance > scaling_governor
> dub:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_governor
> performance
> dub:/sys/devices/system/cpu/cpu0/cpufreq# cat cpuinfo_cur_freq
> 2267000
>
> But, /proc/cpuinfo still shows 800MHz:
>
> model name : Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz
> stepping : 6
> cpu MHz : 800.000
>
> And i cannot remove the ondemand module, that is not used anymore:
>
> dub:/sys/devices/system/cpu/cpu0/cpufreq# rmmod cpufreq_ondemand
> ERROR: Module cpufreq_ondemand is in use
yes, I guess it is used by cpu1, you should repeat the above commands
for /sys/devices/system/cpu/cpu1/cpufreq too.
...
> I've git bisect from 2.6.28.4 (which was working) to 2.6.29-rc4-git2
> and i get into this:
>
> alemao@dub:~/linux-2.6$ git bisect good
> d96f94c604453f87fe24154b87e1e9a3a72511f8 is first bad commit
> commit d96f94c604453f87fe24154b87e1e9a3a72511f8
> Author: Pallipadi, Venkatesh <venkatesh.pallipadi@...el.com>
> Date: Mon Feb 2 11:57:18 2009 -0800
>
> ACPI: Enable bit 11 in _PDC to advertise hw coord
>
> Bit 11 in intel PDC definitions is meant for OS capability to handle
> hardware coordination of P-states. In Linux we have always supported
> hwardware coordination of P-states. Just let the BIOSes know that we
> support it, by setting this bit.
>
> Some BIOSes use this bit to choose between hardware or software coordination
> and without this change below, BIOSes switch to software coordination, which
> is not very optimal in terms of power consumption and extra
> wakeups from idle.
>
> Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@...el.com>
> Signed-off-by: Len Brown <len.brown@...el.com>
the "coordination of P-states" is required when you have an SMP system
that cannot scale cpu voltage independently on each cpu, so the best
voltage/frequency have to be selected mediating between all the applied
policies.
The commit you found above just makes use hw coordination instead of sw
and the message explains why.
If you make sure you change *all* of the cpu policies you won't see the
behaviour you describe.
hth
--
mattia
:wq
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists