cpufreq cleanups - .30 vs .31

2009-07-06 Thread Thomas Renninger
Hi Dave, this is about Venki's and Mathieu's recently sent cleanups. I'd like to summarize this to help finding a solution: IMO Venki's approach (making .governor() always be called with rwsem held) is the cleaner one and this should be the way to go for .31 and future. This better separates

Re: [patch 1/4] cpufreq: Eliminate the recent lockdep warnings in cpufreq

2009-07-06 Thread Thomas Renninger
On Friday 03 July 2009 16:28:43 Pallipadi, Venkatesh wrote: ... I still do not see the need of dbs_mutex protects data in dbs_tuners_ins from concurrent changes, though. If someone enlightens me, that would be appreciated. OK. Consider these two happening in parallel. echo 0

Re: [PATCH 1/2] CPUFREQ: Remove unneeded dbs_mutexes from ondemand and conservative governors

2009-07-03 Thread Thomas Renninger
Hi Pavel, On Tuesday 30 June 2009 08:33:39 Pavel Machek wrote: On Thu 2009-06-25 16:01:24, Thomas Renninger wrote: Comment from Venkatesh: ... This mutex is just serializing the changes to those variables. I could't think of any functionality issues of not having the lock

Re: [patch 1/4] cpufreq: Eliminate the recent lockdep warnings in cpufreq

2009-07-03 Thread Thomas Renninger
On Friday 03 July 2009 02:08:30 venkatesh.pallip...@intel.com wrote: Commit b14893a62c73af0eca414cfed505b8c09efc613c although it was very much needed to properly cleanup ondemand timer, opened-up a can of worms related to locking dependencies in cpufreq. Patch here defines the need for

[Announce] cpufreq-bench

2009-07-03 Thread Thomas Renninger
Hi, inspired by Rafaels talk about covering kernel code for regression testing and the need to be able to debug tunables in the ondemand governor, Christian produced this IMO excellent micro code benchmark. What is this benchmark for: - Identify worst case performance loss when doing dynamic

[Announce] cpufreq-bench

2009-07-03 Thread Thomas Renninger
Oh dear, again with the correct lkml list address in CC, please do not answer on the previous mail... Hi, inspired by Rafaels talk about covering kernel code for regression testing and the need to be able to debug tunables in the ondemand governor, Christian produced this IMO excellent micro

Re: [stable] [PATCH 1/2] CPUFREQ: Remove unneeded dbs_mutexes from ondemand and conservative governors

2009-07-01 Thread Thomas Renninger
On Wednesday 01 July 2009 01:39:12 Greg KH wrote: On Tue, Jun 30, 2009 at 07:14:52PM -0400, Mathieu Desnoyers wrote: * Greg KH (g...@kroah.com) wrote: I don't see the patch below in Linus's tree. If it's there, what is the git commit id? As I pointed out in an earlier reply,

Fix dead lock in cpufreq for CPU hotplug and suspend for 2.6.30.stable

2009-06-25 Thread Thomas Renninger
This is about the dead locks happening since cancel_delayed_work_sync() got added to the ondemand/conservative governors. I truncated a bit the CC list to most important people and mailing lists. The patch is intended for 2.6.30 stable, but both patches together did not get tested yet. If

[PATCH 1/2] CPUFREQ: Remove unneeded dbs_mutexes from ondemand and conservative governors

2009-06-25 Thread Thomas Renninger
Comment from Venkatesh: ... This mutex is just serializing the changes to those variables. I could't think of any functionality issues of not having the lock as such. - rip it out. CC: Venkatesh Pallipadi venkatesh.pallip...@intel.com Signed-off-by: Thomas Renninger tr...@suse.de --- drivers

[PATCH 2/2] remove rwsem lock from CPUFREQ_GOV_STOP call (second call site)

2009-06-25 Thread Thomas Renninger
lock. Note that all callers to __cpufreq_set_policy are taking the rwsem. All sysfs callers (writers) hold the write rwsem at the earliest sysfs calling stage. However, the rwlock write-lock is not needed upon governor stop. Signed-off-by: Thomas Renninger tr...@suse.de Acked-by: Venkatesh

Re: Fix dead lock in cpufreq for CPU hotplug and suspend for 2.6.30.stable

2009-06-25 Thread Thomas Renninger
On Thursday 25 June 2009 16:01:23 Thomas Renninger wrote: ... Arggh. I mixed up ker...@stable.org with sta...@kernel.org. I bounced them there, please correct the address if you answer... Thomas -- To unsubscribe from this list: send the line unsubscribe kernel-testers in the body

Re: [PATCH 1/2] CPUFREQ: Remove unneeded dbs_mutexes from ondemand and conservative governors

2009-06-25 Thread Thomas Renninger
On Thursday 25 June 2009 04:25:52 pm Mathieu Desnoyers wrote: * Thomas Renninger (tr...@suse.de) wrote: Comment from Venkatesh: ... This mutex is just serializing the changes to those variables. I could't think of any functionality issues of not having the lock as such. - rip it out

Re: [PATCH 1/2] CPUFREQ: Remove unneeded dbs_mutexes from ondemand and conservative governors

2009-06-25 Thread Thomas Renninger
On Friday 26 June 2009 12:17:09 am Thomas Renninger wrote: On Thursday 25 June 2009 04:25:52 pm Mathieu Desnoyers wrote: * Thomas Renninger (tr...@suse.de) wrote: Comment from Venkatesh: ... This mutex is just serializing the changes to those variables. I could't think of any

Re: [Bug #13475] suspend/hibernate lockdep warning

2009-06-17 Thread Thomas Renninger
userspace modifications will be overriden by re-initializing the general variables). This should already be the case. Signed-off-by: Thomas Renninger tr...@suse.de --- drivers/cpufreq/cpufreq_ondemand.c | 64 +++-- 1 file changed, 13 insertions(+), 51 deletions