Re: export kernel clock information to user space

2010-10-18 Thread Vincent Guittot
Hi, The goal of the patch is to provide an easy way to find the guilty clocks when we are optimizing the power consumption of a platform. I agree with you that it's not enough for a complete PM and it might be extended to other features (in addition to regulator framework). Such debug interface sh

Re: export kernel clock information to user space

2010-10-17 Thread David Rusling
and the UK!Cheers, Dave Sent from yet another ARM powered mobile device On 17 Oct 2010, at 16:18, Sundar wrote: > On Sun, Oct 17, 2010 at 9:11 AM, Yong Shen wrote: >> BTW, 'cheers' is normally used in Australia and New Zealand. Are you from >> there? Just curious. :) > > Oh really??..I am

Re: export kernel clock information to user space

2010-10-17 Thread Sundar
On Sun, Oct 17, 2010 at 9:11 AM, Yong Shen wrote: > BTW, 'cheers' is normally used in Australia and New Zealand. Are you from > there? Just curious. :) Oh really??..I am not aware of that all.I am from India :). IMO its cool. cheers! ___ linaro-dev ma

Re: export kernel clock information to user space

2010-10-17 Thread Amit Kucheria
Hi Kevin, On Sat, Oct 16, 2010 at 2:55 AM, Kevin Hilman wrote: > Amit Kucheria writes: > >> Adding linaro-dev to cc. Kernel consolidation WG might have comments. >> >> On Tue, Oct 12, 2010 at 9:04 AM, Yong Shen wrote: >>> Hi Amit and Jeremy, >>> >>> This is not a patch review. But patch may bet

Re: export kernel clock information to user space

2010-10-16 Thread Yong Shen
Yes, having a interface which can also control clocks is great. I used to write some code myself to debug clocks, so I have the same feeling with what you said. BTW, 'cheers' is normally used in Australia and New Zealand. Are you from there? Just curious. :) Yong On Sat, Oct 16, 2010 at 1:34 PM,

Re: export kernel clock information to user space

2010-10-16 Thread Yong Shen
Believe me, it is very useful in both BSP development and SOC power management. In the company I am working for, people are keen to have this kind of info. On Sat, Oct 16, 2010 at 7:55 AM, Kevin Hilman wrote: > Amit Kucheria writes: > > > Adding linaro-dev to cc. Kernel consolidation WG might ha

Re: export kernel clock information to user space

2010-10-15 Thread Sundar
On Sat, Oct 16, 2010 at 5:25 AM, Kevin Hilman wrote: > [..] > > That being said, I'm not against $SUBJECT patch, but I question it's > usefulness in terms of PM.  What's more valuable for PM is the statitics > and knobs exported on a per-device level by the runtime PM core (and > AFAICT, already i

Re: export kernel clock information to user space

2010-10-15 Thread Kevin Hilman
Amit Kucheria writes: > Adding linaro-dev to cc. Kernel consolidation WG might have comments. > > On Tue, Oct 12, 2010 at 9:04 AM, Yong Shen wrote: >> Hi Amit and Jeremy, >> >> This is not a patch review. But patch may better present my idea. Basically, >> I want to add some code in common clock

Re: export kernel clock information to user space

2010-10-13 Thread Vincent Guittot
On 13 October 2010 16:14, Amit Kucheria wrote: > On Wed, Oct 13, 2010 at 4:35 PM, Vincent Guittot > wrote: >> Hi, >> >> Exporting the clock tree state is help us to monitor clocks state and >> to find the guilty clocks. But could it be also possible to have a >> write access to the clock tree ? D

Re: export kernel clock information to user space

2010-10-13 Thread Amit Kucheria
On Wed, Oct 13, 2010 at 4:35 PM, Vincent Guittot wrote: > Hi, > > Exporting the clock tree state is help us to monitor clocks state and > to find the guilty clocks. But could it be also possible to have a > write access to the clock tree ? During power consumption optimization That is an interest

Re: export kernel clock information to user space

2010-10-13 Thread Vincent Guittot
Hi, Exporting the clock tree state is help us to monitor clocks state and to find the guilty clocks. But could it be also possible to have a write access to the clock tree ? During power consumption optimization step, we need to identify clock/regulator which should be disable but we also want to

Re: export kernel clock information to user space

2010-10-13 Thread Yong Shen
Thanks for your guys' brainstorm. I will take all the thoughts into account while implementing this. On Wed, Oct 13, 2010 at 2:49 PM, Amit Kucheria wrote: > On 10 Oct 12, Arnd Bergmann wrote: > > On Tuesday 12 October 2010, Amit Kucheria wrote: > > > Adding linaro-dev to cc. Kernel consolidation

Re: export kernel clock information to user space

2010-10-13 Thread Arnd Bergmann
On Wednesday 13 October 2010 08:49:42 Amit Kucheria wrote: > That is something I've been wondering about too. At the moment, tools like > powerdebug have to periodically re-read the entire clock tree to show > updates. AFAIK, sysfs and debugfs don't support inotify/poll/select > mechanisms to > no

Re: export kernel clock information to user space

2010-10-12 Thread Amit Kucheria
On 10 Oct 12, Arnd Bergmann wrote: > On Tuesday 12 October 2010, Amit Kucheria wrote: > > Adding linaro-dev to cc. Kernel consolidation WG might have comments. > > > > On Tue, Oct 12, 2010 at 9:04 AM, Yong Shen wrote: > > > Hi Amit and Jeremy, > > > > > > This is not a patch review. But patch may

Re: export kernel clock information to user space

2010-10-12 Thread Nicolas Pitre
On Tue, 12 Oct 2010, Amit Kucheria wrote: > Adding linaro-dev to cc. Kernel consolidation WG might have comments. > > On Tue, Oct 12, 2010 at 9:04 AM, Yong Shen wrote: > > Hi Amit and Jeremy, > > > > This is not a patch review. But patch may better present my idea. Basically, > > I want to add s

Re: export kernel clock information to user space

2010-10-12 Thread Arnd Bergmann
On Tuesday 12 October 2010, Amit Kucheria wrote: > Adding linaro-dev to cc. Kernel consolidation WG might have comments. > > On Tue, Oct 12, 2010 at 9:04 AM, Yong Shen wrote: > > Hi Amit and Jeremy, > > > > This is not a patch review. But patch may better present my idea. Basically, > > I want to

Re: export kernel clock information to user space

2010-10-12 Thread Amit Kucheria
Adding linaro-dev to cc. Kernel consolidation WG might have comments. On Tue, Oct 12, 2010 at 9:04 AM, Yong Shen wrote: > Hi Amit and Jeremy, > > This is not a patch review. But patch may better present my idea. Basically, > I want to add some code in common clock code to export clock information