[RFC PATCH] PM / devfreq: Add runtime-pm support

2013-01-07 Thread Rajagopal Venkat
Instead of devfreq device driver explicitly calling devfreq suspend and resume apis perhaps from runtime-pm suspend and resume callbacks, let devfreq core handle it automatically. Attach devfreq core to runtime-pm framework so that, devfreq device driver pm_runtime_suspend() will automatically sus

Re: sched: Consequences of integrating the Per Entity Load Tracking Metric into the Load Balancer

2013-01-07 Thread Preeti U Murthy
On 01/07/2013 09:18 PM, Vincent Guittot wrote: > On 2 January 2013 05:22, Preeti U Murthy wrote: >> Hi everyone, >> I have been looking at how different workloads react when the per entity >> load tracking metric is integrated into the load balancer and what are >> the possible reasons for it. >>

[PATCH 2/3] PM / devfreq: fix stats start time stamp

2013-01-07 Thread Rajagopal Venkat
Mark the stats start time stamp when actual load monitoring is started for accuracy. Signed-off-by: Rajagopal Venkat --- drivers/devfreq/devfreq.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 5782c9b..284

[PATCH 1/3] PM / devfreq: set min/max freq limit from freq table

2013-01-07 Thread Rajagopal Venkat
Set devfreq device min and max frequency limits when device is added to devfreq, provided frequency table is supplied. This helps governors to suggest target frequency with in limits. Signed-off-by: Rajagopal Venkat --- drivers/devfreq/devfreq.c | 24 1 file changed, 2

[PATCH 3/3] PM / devfreq: account suspend/resume for stats

2013-01-07 Thread Rajagopal Venkat
devfreq stats is not taking device suspend and resume into account. Fix it. Signed-off-by: Rajagopal Venkat --- drivers/devfreq/devfreq.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 2843a22..4c

Re: [PATCH V2 Resend 3/4] workqueue: Schedule work on non-idle cpu instead of current one

2013-01-07 Thread Viresh Kumar
Hi Steven, On 8 January 2013 03:59, Steven Rostedt wrote: > On Mon, 2013-01-07 at 23:29 +0530, Viresh Kumar wrote: > >> > By default, I would suggest for cache locality, >> > that we try to keep it on the same CPU. But if there's a better CPU to >> > run on, it runs there. >> >> That would break

Re: [PATCH] cpuidle: fix number of initialized/destroyed states

2013-01-07 Thread Rafael J. Wysocki
On Monday, January 07, 2013 11:56:36 PM Daniel Lezcano wrote: > On 01/07/2013 10:58 PM, Rafael J. Wysocki wrote: > > Hi, > > > > Thanks for the patch! > > > > I'd like Daniel to have a look at it still. > > I agree with this patch. I was about to send exactly the same. > > Thanks Krzysztof for

Re: [PATCH] cpuidle: fix number of initialized/destroyed states

2013-01-07 Thread Daniel Lezcano
On 01/07/2013 10:58 PM, Rafael J. Wysocki wrote: > Hi, > > Thanks for the patch! > > I'd like Daniel to have a look at it still. I agree with this patch. I was about to send exactly the same. Thanks Krzysztof for fixing this. > On Monday, January 07, 2013 08:12:01 PM Krzysztof Mazur wrote: >>

[PATCH 0/2] hw_breakpoint debug over powerdown

2013-01-07 Thread Dietmar Eggemann
This patchset updates OS Save and Restore mechanism for v7 and v7.1 debug for self-hosted debug powerdown support to Linux 3.8-rc2. v7 debug for self-hosted debug tested on Pandaboard (A9) which unfortunately does not support OS Save and Restore. v7.1 debug for self-hosted debug tested on TC2 big

[PATCH 1/2] ARM: hw_breakpoint: Check function for OS Save and Restore mechanism

2013-01-07 Thread Dietmar Eggemann
v7 debug introduced OS Save and Restore mechanism. On a v7 debug SinglePower system, i.e a system without a separate core and debug power domain, which does not support external debug over powerdown, it is implementation defined whether OS Save and Restore is implemented. v7.1 debug requires OS Sav

[PATCH 2/2] ARM: hw_breakpoint: Debug powerdown support for self-hosted debug

2013-01-07 Thread Dietmar Eggemann
This patch introduces debug powerdown support for self-hosted debug for v7 and v7.1 debug architecture for a SinglePower system, i.e. a system without a separate core and debug power domain. On a SinglePower system the OS Lock is lost over a powerdown. If CONFIG_CPU_PM is set the new function pm_i

Re: [PATCH v4 21/24] arm/v2m: initialize arch_timers even if v2m_timer is not present

2013-01-07 Thread Stefano Stabellini
On Mon, 7 Jan 2013, Marc Zyngier wrote: > On 07/01/13 17:21, Stefano Stabellini wrote: > > On Fri, 14 Sep 2012, Stefano Stabellini wrote: > >> On Fri, 14 Sep 2012, Pawel Moll wrote: > >>> On Fri, 2012-09-14 at 12:13 +0100, Stefano Stabellini wrote: > Signed-off-by: Stefano Stabellini > C

Re: When do we plan to move to Linux 3.8?

2013-01-07 Thread John Stultz
On 01/07/2013 07:24 AM, Jon Medhurst (Tixy) wrote: I get this compilation error: arch/arm/mm/cache-l2x0.c: In function 'l2x0_init': arch/arm/mm/cache-l2x0.c:376:3: error: 'cache_id' undeclared (first use in this function) arch/arm/mm/cache-l2x0.c:376:3: note: each undeclared identifier is repor

Re: [PATCH V2 Resend 3/4] workqueue: Schedule work on non-idle cpu instead of current one

2013-01-07 Thread Viresh Kumar
[Removed Suresh and Venki from discussion, they switched their companies probably] On 7 January 2013 20:34, Tejun Heo wrote: > The latter part "not using idle cpu just for processing work" does > apply to homogeneous systems too but as I wrote earlier work items > don't spontaneously happen on an

Re: When do we plan to move to Linux 3.8?

2013-01-07 Thread John Stultz
On 01/07/2013 07:24 AM, Jon Medhurst (Tixy) wrote: On Fri, 2013-01-04 at 14:06 -0800, John Stultz wrote: Instead of doing the full re-base, I just merged the 3.8-rc2+ tree into the linaro-android-3.7-anton-rebase branch, and the collisions were seemingly manageable. I've only compile tested on

Re: [PATCH V2 Resend 3/4] workqueue: Schedule work on non-idle cpu instead of current one

2013-01-07 Thread Viresh Kumar
On 7 January 2013 18:58, Steven Rostedt wrote: > On Mon, 2013-01-07 at 15:28 +0530, Viresh Kumar wrote: >> I have another idea that we can try: >> >> queue_work_on_any_cpu(). > > I think this is a good idea. :) :) >> - the mask of cpus to schedule this work on >> OR >> - Sched Level (SD_LEVEL)

Re: [PATCH v4 21/24] arm/v2m: initialize arch_timers even if v2m_timer is not present

2013-01-07 Thread Marc Zyngier
On 07/01/13 17:21, Stefano Stabellini wrote: > On Fri, 14 Sep 2012, Stefano Stabellini wrote: >> On Fri, 14 Sep 2012, Pawel Moll wrote: >>> On Fri, 2012-09-14 at 12:13 +0100, Stefano Stabellini wrote: Signed-off-by: Stefano Stabellini CC: Russell King CC: Pawel Moll CC: Marc

Re: [PATCH v4 21/24] arm/v2m: initialize arch_timers even if v2m_timer is not present

2013-01-07 Thread Stefano Stabellini
On Fri, 14 Sep 2012, Stefano Stabellini wrote: > On Fri, 14 Sep 2012, Pawel Moll wrote: > > On Fri, 2012-09-14 at 12:13 +0100, Stefano Stabellini wrote: > > > Signed-off-by: Stefano Stabellini > > > CC: Russell King > > > CC: Pawel Moll > > > CC: Marc Zyngier > > > --- > > > arch/arm/mach-vexp

Re: sched: Consequences of integrating the Per Entity Load Tracking Metric into the Load Balancer

2013-01-07 Thread Vincent Guittot
On 2 January 2013 05:22, Preeti U Murthy wrote: > Hi everyone, > I have been looking at how different workloads react when the per entity > load tracking metric is integrated into the load balancer and what are > the possible reasons for it. > > I had posted the integration patch earlier: > https:

Re: [PATCH V2 Resend 3/4] workqueue: Schedule work on non-idle cpu instead of current one

2013-01-07 Thread Amit Kucheria
On Mon, Jan 7, 2013 at 8:34 PM, Tejun Heo wrote: > Hello, Viresh. > > On Mon, Jan 07, 2013 at 03:28:33PM +0530, Viresh Kumar wrote: >> Firstly the root cause of this patchset. >> >> Myself and some others in Linaro are working on ARM future cores: >> big.LITTLE systems. >> Here we have few very po

Re: When do we plan to move to Linux 3.8?

2013-01-07 Thread Jon Medhurst (Tixy)
On Fri, 2013-01-04 at 14:06 -0800, John Stultz wrote: > Ok, I've got a first-pass branch here: > git://git.linaro.org/people/jstultz/android.git > linaro-android-3.8-jstultz-test Thanks for that. > Instead of doing the full re-base, I just merged the 3.8-rc2+ tree into > the linaro-android

Re: [PATCH V2 Resend 3/4] workqueue: Schedule work on non-idle cpu instead of current one

2013-01-07 Thread Tejun Heo
Hello, Viresh. On Mon, Jan 07, 2013 at 03:28:33PM +0530, Viresh Kumar wrote: > Firstly the root cause of this patchset. > > Myself and some others in Linaro are working on ARM future cores: > big.LITTLE systems. > Here we have few very powerful, high power consuming cores (big, > currently A15's)

Re: [kvmarm] [PATCH] bootwrapper: CPU hotplug aware boot protocol

2013-01-07 Thread Jon Medhurst (Tixy)
On Mon, 2013-01-07 at 13:47 +, Dave Martin wrote: > (Minor point: you can merge the "b start" with the first entry of > the vectors, because this slot is never used for any other purpose in > any vector table. The code works anyway, though.) I considered that when I wrote the patch but though

Re: [kvmarm] [PATCH] bootwrapper: CPU hotplug aware boot protocol

2013-01-07 Thread Jon Medhurst (Tixy)
On Mon, 2013-01-07 at 13:59 +, Peter Maydell wrote: > On 7 January 2013 13:47, Dave Martin wrote: > > On Thu, Dec 20, 2012 at 12:23:48PM +, Jon Medhurst (Tixy) wrote: > >> Does anyone have any further outstanding concerns or comments about my > >> proposed patch? > > > > Since this doesn't

Re: [kvmarm] [PATCH] bootwrapper: CPU hotplug aware boot protocol

2013-01-07 Thread Peter Maydell
On 7 January 2013 13:47, Dave Martin wrote: > On Thu, Dec 20, 2012 at 12:23:48PM +, Jon Medhurst (Tixy) wrote: >> Does anyone have any further outstanding concerns or comments about my >> proposed patch? > > Since this doesn't seem to be merged yet, I'll just comment that this > all looks sens

Re: [kvmarm] [PATCH] bootwrapper: CPU hotplug aware boot protocol

2013-01-07 Thread Dave Martin
On Thu, Dec 20, 2012 at 12:23:48PM +, Jon Medhurst (Tixy) wrote: > On Fri, 2012-12-14 at 15:54 +, Jon Medhurst (Tixy) wrote: > > On Fri, 2012-12-14 at 10:10 -0500, Christoffer Dall wrote: > > > On Fri, Dec 14, 2012 at 3:49 AM, Jon Medhurst (Tixy) > > > wrote: > > > > On Thu, 2012-12-13 at

Re: [PATCH V2 Resend 3/4] workqueue: Schedule work on non-idle cpu instead of current one

2013-01-07 Thread Viresh Kumar
Hi Tejun, On 4 January 2013 20:39, Tejun Heo wrote: > I don't know either. Changing behavior subtly like this is hard. I > usually try to spot some problem cases and try to identify patterns > there. Once you identify a few of them, understanding and detecting > other problem cases get a lot e