Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-17 Thread viresh kumar
On Thu, Feb 16, 2012 at 9:48 AM, Catalin Marinas wrote: > The DMA API implementation on ARM takes care of the cache cleaning and > invalidating. > I believe that this is the reason why we have cache re-invalidation (we invalidated it in dma_map_*() earlier) in dma_unmap_*() calls for ARMv6+ for D

Query: Multiple Mappings to Mem and ARMV6+

2012-02-17 Thread viresh kumar
Hi Guys, Sorry for starting the long old thread again, but i have to start it as i was a bit confused. :( We know that we can't have multiple mappings with different attributes to the same physical memory on ARMv6+ machines due to speculative prefetch. So, we have following kind of mappings in k

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-17 Thread viresh kumar
On Thu, Feb 16, 2012 at 9:15 AM, Catalin Marinas wrote: > To summarise, if you mix Normal with Device or SO memory, you only get > the guarantees of the Normal memory (e.g. early write acknowledgement, > write buffer gathering, speculative accesses), so it's not recommended. > If you mix Normal Ca

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-20 Thread viresh kumar
On Feb 20, 2012 11:27 PM, "Russell King - ARM Linux" wrote: > > I hope it's now clear why we need to run over the buffer twice. Thanks Russell. Got it now. -- Viresh ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailma

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-20 Thread viresh kumar
On Feb 20, 2012 4:31 PM, "Catalin Marinas" wrote: > > On 16 February 2012 18:14, viresh kumar wrote: > > On Thu, Feb 16, 2012 at 9:48 AM, Catalin Marinas > > wrote: > >> The DMA API implementation on ARM takes care of the cache cleaning and > >> in

Re: [PATCH 02/13] clk: core: remove dead code paths

2012-04-12 Thread Viresh Kumar
On 4/12/2012 6:32 AM, Mike Turquette wrote: > diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c > index 3ed36d3..4daacf5 100644 > --- a/drivers/clk/clk.c > +++ b/drivers/clk/clk.c > @@ -194,7 +194,7 @@ static int __init clk_debug_init(void) > late_initcall(clk_debug_init); > #else > static inli

Re: [PATCH 07/13] clk: add "const" for clk_ops of basic clks

2012-04-12 Thread Viresh Kumar
Cc: Arnd Bergman > Cc: Olof Johansson > Cc: Russell King > Cc: Sascha Hauer > Cc: Richard Zhao > Cc: Saravana Kannan > Cc: Mark Brown > Cc: Andrew Lunn > Cc: Rajendra Nayak > Cc: Viresh Kumar > --- > drivers/clk/clk-divider.c|2 +- > drivers/clk/clk

Re: [PATCH 01/13] clk: core: correct clk_set_rate kerneldoc

2012-04-12 Thread Viresh Kumar
On 4/12/2012 6:32 AM, Mike Turquette wrote: > - * If clk has the CLK_SET_RATE_GATE flag set and it is enabled this call > - * will fail; only when the clk is disabled will it be able to change > - * its rate. Why is CLK_SET_RATE_GATE removed? I already sent a patch to fix clk_set_rate() for this.

Re: [PATCH 08/13] clk: declare clk_ops of basic clks in clk-provider.h

2012-04-12 Thread Viresh Kumar
Cc: Sascha Hauer > Cc: Richard Zhao > Cc: Saravana Kannan > Cc: Mark Brown > Cc: Andrew Lunn > Cc: Rajendra Nayak > Cc: Viresh Kumar > --- > include/linux/clk-private.h |8 > include/linux/clk-provider.h |4 > 2 files changed, 4 insertions

Re: [PATCH 04/13] clk: core: enforce clk_ops consistency

2012-04-12 Thread Viresh Kumar
Turquette > Cc: Arnd Bergman > Cc: Olof Johansson > Cc: Russell King > Cc: Sascha Hauer > Cc: Shawn Guo > Cc: Richard Zhao > Cc: Saravana Kannan > Cc: Mark Brown > Cc: Andrew Lunn > Cc: Rajendra Nayak > Cc: Viresh Kumar > --- > drivers/clk/clk.c | 14

Re: [PATCH 05/13] clk: use kzalloc in clk_register_mux

2012-04-12 Thread Viresh Kumar
hansson > Cc: Russell King > Cc: Sascha Hauer > Cc: Richard Zhao > Cc: Saravana Kannan > Cc: Mark Brown > Cc: Andrew Lunn > Cc: Rajendra Nayak > Cc: Viresh Kumar > --- > drivers/clk/clk-mux.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) >

Re: [PATCH 06/13] clk: remove unnecessary EXPORT_SYMBOL_GPL

2012-04-12 Thread Viresh Kumar
scha Hauer > Cc: Richard Zhao > Cc: Saravana Kannan > Cc: Mark Brown > Cc: Andrew Lunn > Cc: Rajendra Nayak > Cc: Viresh Kumar > --- > drivers/clk/clk-divider.c|3 --- > drivers/clk/clk-fixed-rate.c |1 - > drivers/clk/clk-gate.c |3 --- >

Re: [PATCH 09/13] clk: Make clk_get_rate() return 0 on error

2012-04-12 Thread Viresh Kumar
clk whose rate is being returned > * > * Simply returns the cached rate of the clk. Does not query the hardware. > If > - * clk is NULL then returns -EINVAL. > + * clk is NULL then returns 0. > */ > unsigned long clk_get_rate(struct clk *clk) > { Reviewed-by: Viresh Kumar -- viresh ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev

Re: Experimental big.LITTLE MP tree

2012-07-11 Thread Viresh Kumar
req_power function ARM: topology: factorize the update of sibling masks ARM: topology: Update cpu_power according to DT information sched: cpu_power: enable ARCH_POWER Viresh Kumar (3): configs: Add config fragments for big LITTLE MP linaro/configs: Update big LITTLE

Re: Experimental big.LITTLE MP tree

2012-07-11 Thread Viresh Kumar
On 11 July 2012 14:32, Jon Medhurst (Tixy) wrote: > On Wed, 2012-07-11 at 10:57 +0100, Viresh Kumar wrote: > There's going to be an 'interesting' merge with our TC2 enablement > branch. > > In arch/arm/kernel/topology.c both branches factor out > update_siblings

Build failure for Omap

2012-07-12 Thread Viresh Kumar
Hi, Sorry if I am missing something very obvious, I am building OMAP for the first time. I fetched latest kernel from: http://git.linaro.org/gitweb?p=kernel/linux-linaro-tracking.git;a=shortlog;h=refs/heads/linux-linaro tried to do following: make ARCH=arm O=../panda omap2plus_defconfig (After

Re: Build failure for Omap

2012-07-12 Thread Viresh Kumar
On 12 July 2012 16:19, Andrey Konovalov wrote: > make ARCH=arm O=../panda omap2plus_defconfig (After this, OMAP 2/3/4 >> none is selected in .config) >> make ARCH=arm O=../panda uImage >> >>LD init/built-in.o >> arch/arm/mach-vexpress/built-**in.o: In function `v2m_dt_timer_init': >> /ro

Re: Build failure for Omap

2012-07-13 Thread Viresh Kumar
On 12 July 2012 16:59, Scott Bambrough wrote: > Try the omap4plus_defconfig. > There is no such defconfig, only following are present: omap1_defconfig omap2plus_defconfig -- viresh ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.

[GIT PULL] big-LITTLE-MP-V3

2012-07-16 Thread Viresh Kumar
information sched: cpu_power: enable ARCH_POWER Viresh Kumar (1): Merge branches 'arm-asymmetric-support-v3', 'cpuidle-next-v4', 'per-cpu-thread-hotplug-v3', 'task-placement-v1' and 'config-fragments' into big-LITTLE-MP-v3 arch/arm/Kconfi

[GIT PULL] bit-LITTLE-MP-v4

2012-07-25 Thread Viresh Kumar
e of sibling masks ARM: topology: Update cpu_power according to DT information sched: cpu_power: enable ARCH_POWER Viresh Kumar (3): configs: Add config fragments for big LITTLE MP linaro/configs: Update big LITTLE MP fragment for task placement work Merge branches 'a

Re: [GIT PULL] bit-LITTLE-MP-v4

2012-07-26 Thread Viresh Kumar
On 25 July 2012 18:14, Paul E. McKenney wrote: > You are missing some fixes, please see below. I can also email you the > updated patches, if that would be easier than pulling them from -rcu. Hi Andrey, So sorry, but you need to pull v4 again as there were few updated patches from paul. :( Ca

[GIT PULL] bit-LITTLE-MP-v5

2012-08-14 Thread Viresh Kumar
niband: ehca: Use hotplug thread infrastructure Vincent Guittot (1): sched: cpu_power: enable ARCH_POWER Viresh Kumar (3): configs: Add config fragments for big LITTLE MP linaro/configs: Update big LITTLE MP fragment for task placement work Merge branches 'arm-asymmetric-s

Re: Silas Boyd-Wickizer's patches

2012-08-15 Thread Viresh Kumar
On 15 August 2012 16:04, Paul E. McKenney wrote: > Hello! > > Silas posted a series of four patches that fix bugs where the online > CPUs are iterated over without proper protection against CPUs coming > online and going offline: > > 0/4: https://lkml.org/lkml/2012/8/3/416 > 1/4: h

Re: [GIT PULL] bit-LITTLE-MP-v5

2012-08-16 Thread Viresh Kumar
On 15 August 2012 00:16, Andrey Konovalov wrote: > Great! > big-LITTLE-MP-v5 (together with the updated multiplatform topic) has been > merged into linux-linaro-core-tracking tree. The tag is llct-20120814.0. Hi Andrey, There are few patches that are required to be part of this pull and one is

Re: [GIT PULL] bit-LITTLE-MP-v5

2012-08-22 Thread Viresh Kumar
On 17 August 2012 10:20, Viresh Kumar wrote: > There are few patches that are required to be part of this pull and > one is required to be dropped. I have created big-LITTLE-MP-v6 > branch over v-3.6-rc2, but can't send a pull request as rc2 is still > not there in your tree. Pl

[GIT PULL] bit-LITTLE-MP-v7

2012-08-23 Thread Viresh Kumar
niband: ehca: Use hotplug thread infrastructure Vincent Guittot (1): sched: cpu_power: enable ARCH_POWER Viresh Kumar (3): configs: Add config fragments for big LITTLE MP linaro/configs: Update big LITTLE MP fragment for task placement work Merge branches 'per-cpu-thread-hot

Compilation Break for omap2plus_defconifg

2012-08-24 Thread Viresh Kumar
Hi, Compilation for omap2plus_defconfig is broken on current: linux-linaro branch. [1] Following is the compilation error: /home/arm/work/kernel/linaro/linux-linaro-bitLITTLE-MP.git/arch/arm/kernel/sleep.S: Assembler messages: /home/arm/work/kernel/linaro/linux-linaro-bitLITTLE-MP.git/arch/arm/k

Re: [GIT PULL] bit-LITTLE-MP-v7

2012-08-24 Thread Viresh Kumar
On 24 August 2012 12:32, Jon Medhurst (Tixy) wrote: > Is this critical for this month's release? The release candidate builds > are possibly already in testing so we would have to request that they > are stopped and redone? > Not sure, what is fixed in this version? Maybe Morten can tell if anyt

Re: Compilation Break for omap2plus_defconifg

2012-08-24 Thread Viresh Kumar
On 24 August 2012 13:38, Jon Medhurst (Tixy) wrote: > That looks like its caused by patch from the ARM LT... > > "ARM: kernel: fix MPIDR cpu_{suspend}/{resume} usage" > > I'll work on a fix. (I believe this was in last month's release branch > as well so I assume it's not critical for this mont

tilt-3.4 compilation broken

2012-08-24 Thread Viresh Kumar
Hi Andy, I got following error in compilation of TILT-3.4 at http://git.linaro.org/gitweb?p=landing-teams/working/ti/kernel.git;a=shortlog;h=refs/heads/tilt-3.4 Using /home/arm/work/kernel/linaro/linux-linaro-bitLITTLE-MP.git as source for kernel CHK include/generated/utsrelease.h make[2

Re: [GIT PULL] bit-LITTLE-MP-v7

2012-08-24 Thread Viresh Kumar
On 24 August 2012 14:49, Amit Kucheria wrote: > While our goal is to keep track of the bleeding edge, and I think > you're doing a great job there, let's figure out a plan to minimise > the number of kernel releases we make. > > Can you look at your previous 6 releases and their dates and figure

Re: [GIT PULL] bit-LITTLE-MP-v7

2012-08-24 Thread Viresh Kumar
On 24 August 2012 16:39, Jon Medhurst (Tixy) wrote: > Sounds OK from my point of view, except that rather than fixed dates > each month the should probably be tied to the release dates. E.g. the > Monday of the week before release (the normal WG cut-of date), and two > weeks before (or after?) th

Re: tilt-3.4 compilation broken

2012-08-24 Thread Viresh Kumar
On 24 August 2012 14:34, Viresh Kumar wrote: > Hi Andy, > > I got following error in compilation of TILT-3.4 at > > > http://git.linaro.org/gitweb?p=landing-teams/working/ti/kernel.git;a=shortlog;h=refs/heads/tilt-3.4 > > Using /home/arm/work/kernel/linaro/linux-li

Re: [GIT PULL] bit-LITTLE-MP-v7

2012-08-27 Thread Viresh Kumar
On 24 August 2012 16:39, Jon Medhurst (Tixy) wrote: > Sounds OK from my point of view, except that rather than fixed dates > each month the should probably be tied to the release dates. E.g. the > Monday of the week before release (the normal WG cut-of date), and two > weeks before (or after?) tha

Re: [GIT PULL] bit-LITTLE-MP-v7 - IMPORTANT

2012-09-02 Thread Viresh Kumar
On 28 August 2012 10:37, Viresh Kumar wrote: > I have updated > > https://wiki.linaro.org/WorkingGroups/PowerManagement/Process/bigLittleMPTree > > as per our last discussion. Please see if i have missed something. Hi Guys, I will be sending PULL request of big-LITTLE-MP-

[GIT PULL] bit-LITTLE-MP-v7 resend

2012-09-03 Thread Viresh Kumar
ty smpboot: Provide infrastructure for percpu hotplug threads softirq: Use hotplug thread infrastructure watchdog: Use hotplug thread infrastructure infiniband: ehca: Use hotplug thread infrastructure Vincent Guittot (1): sched: cpu_power: enable ARCH_POWER Viresh Kuma

BUG: Reboot fails on panda board.

2012-09-03 Thread Viresh Kumar
Hi Andy, I am using Panda board with linaro Nano filesystem over SDHC card. When i issue "reboot" command from prompt, it hangs: root@linaro-nano:/# reboot Broadcast message from root@linaro-nano (/dev/ttyO2) at 4:44 ... The system is going down for reboot NOW! root@linaro-nano:/# [ 6

How to soft-reset Panda Board

2012-09-04 Thread Viresh Kumar
Hi Guys, I have struggled today for some time to soft-reset panda board because the switch S1 (PWRON_RESET) resets the board, but doesn't start booting it again from xloader. Prompt simply hangs !! My kernel was crashing after uncompressing linux... print. I didn't had a debugger to see value of

Re: BUG: Reboot fails on panda board.

2012-09-04 Thread Viresh Kumar
On 4 September 2012 10:25, Viresh Kumar wrote: > Hi Andy, > > I am using Panda board with linaro Nano filesystem over SDHC card. When i > issue "reboot" command from prompt, it hangs: > > > root@linaro-nano:/# reboot > > Broadcast message from root@linar

Re: [Powertop] [PATCH] Fix timer and work perf events timestamp tracing

2012-09-05 Thread Viresh Kumar
Currently these events exit timestamp itself is considered as > usage period resulting in over 100% usage. > - clearing event timestamps from global map at the end of each > measurement to avoid collision with earlier recorded timestamps. Tried it few times on Panda Board.

Re: [GIT PULL] bit-LITTLE-MP-v7 - IMPORTANT

2012-09-05 Thread Viresh Kumar
On 5 September 2012 19:16, Morten Rasmussen wrote: > The patch is already in the original patch set, so I'm not sure why it > is missing. > > http://linux-arm.org/git?p=arm-bls.git;a=commit;h=1416200dd62551aa9ac4aa207b0c66651ccbff2c > > It needs to be there for the HMP scheduling to work. Surpris

Re: [GIT PULL] bit-LITTLE-MP-v7 - IMPORTANT

2012-09-06 Thread Viresh Kumar
Tixy, Can you please answer below queries? I am not sure about them. -- viresh On 6 September 2012 20:04, Lei Wen wrote: > Hi Viresh, > > On Thu, Sep 6, 2012 at 12:29 AM, Viresh Kumar > wrote: >> >> On 5 September 2012 19:16, Morten Rasmussen >> wrote: &g

boot fail with omap4-panda.dts release 12.08

2012-09-07 Thread Viresh Kumar
Hi, I am trying to boot kernel on panda board. I got the source from: http://git.linaro.org/gitweb?p=kernel/linux-linaro-tracking.git;a=shortlog;h=refs/heads/linux-linaro Following is my branch HEAD: commit 7f39bb7ab9591c6254e5930a00d762e4b37f08b2 Merge: 1d10459 8b29cd5 Author: Andrey Konovalov

how to update kernel image on panda board?

2012-09-07 Thread Viresh Kumar
Hi Guys, I have flashed my SD card with linaro-media-create with precise-devel and latest h/w pack (12.08) Now i have two requirements: - Always use my copy of devel instead of the new devel everytime from the latest release As i do install a lot of stuff on it. Will apt-get update would be eno

Re: boot fail with omap4-panda.dts release 12.08

2012-09-09 Thread Viresh Kumar
On 9 September 2012 14:11, Amit Kucheria wrote: > I believe Viresh has tried mainline as well. But some DT bits might be > missing from there. Without DT, things start working and that is the > route we'll take if we're unable to get help with LEB u-boot > command-line parameters and 3.6 kernels o

Re: boot fail with omap4-panda.dts release 12.08

2012-09-10 Thread Viresh Kumar
On 10 September 2012 20:25, Ricardo Salveti wrote: > That's interesting. Which rev from upstream did you use? > > I know Andrey is updating linux-linaro this week, which should be on > top of 3.6-rc5. Earlier i tried rc2 or 3.. Yesterday i tried rc5.. kernel boots with all of them. -- viresh __

Re: [PULL REQUEST]: ARM: perf: multi-PMU support

2012-09-14 Thread Viresh Kumar
On 14 September 2012 14:56, Sudeep KarkadaNagesha wrote: > Please pull the following changes for the multiple CPU PMU support > (re-based to v3.6-rc5). Few patches in the list below are already > queued up for 3.7. > > Since you have access to internal repository, I am posting patches on > the sam

Re: [PULL REQUEST]: ARM: perf: multi-PMU support

2012-09-14 Thread Viresh Kumar
On 14 September 2012 14:56, Sudeep KarkadaNagesha wrote: > Please pull the following changes for the multiple CPU PMU support > (re-based to v3.6-rc5). Few patches in the list below are already > queued up for 3.7. > > Since you have access to internal repository, I am posting patches on > the sam

[GIT PULL]: big LITTLE MP v8

2012-09-17 Thread Viresh Kumar
ure for percpu hotplug threads softirq: Use hotplug thread infrastructure watchdog: Use hotplug thread infrastructure infiniband: ehca: Use hotplug thread infrastructure Vincent Guittot (2): sched: cpu_power: enable ARCH_POWER sched: Fix nohz_idle_balance() Viresh

[PATCH 2/3] workqueue: create __flush_delayed_work to avoid duplicating code

2012-09-25 Thread Viresh Kumar
flush_delayed_work() and flush_delayed_work_sync() had major portion of code similar. This patch introduces another routine __flush_delayed_work() which contains the common part to avoid code duplication. Signed-off-by: Viresh Kumar --- kernel/workqueue.c | 15 +-- 1 file changed, 9

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

2012-09-25 Thread Viresh Kumar
erred CPU details from the scheduler, instead of using current CPU. Signed-off-by: Viresh Kumar --- arch/arm/Kconfig | 11 +++ kernel/workqueue.c | 25 ++--- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 59

[PATCH 0/3] Create sched_select_cpu() and use it in workqueues

2012-09-25 Thread Viresh Kumar
_work(). These works are tracked within the module and results are printed at the end. This gave similar results, with n ranging from 10 to 1000. Viresh Kumar (3): sched: Create sched_select_cpu() to give preferred CPU for power saving workqueue: create __flush_delayed_work to avoid du

[PATCH 1/3] sched: Create sched_select_cpu() to give preferred CPU for power saving

2012-09-25 Thread Viresh Kumar
o go through. If you want to go through all NUMA levels, pass -1 here. This should cover all NUMA levels. This patch reuses the code from get_nohz_timer_target() routine, which had similar implementation. get_nohz_timer_target() is also modified to use sched_select_cpu() now. Signed-off-by: Vi

Re: [PATCH 0/3] Create sched_select_cpu() and use it in workqueues

2012-09-25 Thread Viresh Kumar
On 25 September 2012 16:06, Viresh Kumar wrote: > Test case 2: > --- > I have created a small module, which does following: > - Create one work for each CPU (using queue_work_on(), so must schedule on > that > cpu) > - Above work, will queue "n" wor

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

2012-09-25 Thread Viresh Kumar
On 25 September 2012 16:52, Peter Zijlstra wrote: > On Tue, 2012-09-25 at 16:06 +0530, Viresh Kumar wrote: >> @@ -1066,8 +1076,9 @@ int queue_work(struct workqueue_struct *wq, >> struct work_struct *work) >> { >> int ret; >> >> -

Re: [PATCH 2/3] workqueue: create __flush_delayed_work to avoid duplicating code

2012-09-25 Thread Viresh Kumar
On 25 September 2012 23:17, Tejun Heo wrote: > On Tue, Sep 25, 2012 at 04:06:07PM +0530, Viresh Kumar wrote: >> flush_delayed_work() and flush_delayed_work_sync() had major portion of code >> similar. This patch introduces another routine __flush_delayed_work() which >> con

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

2012-09-26 Thread Viresh Kumar
On 25 September 2012 23:26, Tejun Heo wrote: > On Tue, Sep 25, 2012 at 04:06:08PM +0530, Viresh Kumar wrote: >> +config MIGRATE_WQ >> + bool "(EXPERIMENTAL) Migrate Workqueues to non-idle cpu" >> + depends on SMP && EXPERIMENTAL >> + help

[PATCH V2 1/3] sched: Create sched_select_cpu() to give preferred CPU for power saving

2012-09-27 Thread Viresh Kumar
balancing only, SD_LOAD_BALANCE must also be set for selected domain. This patch reuses the code from get_nohz_timer_target() routine, which had similar implementation. get_nohz_timer_target() is also modified to use sched_select_cpu() now. Signed-off-by: Viresh Kumar --- include/linux/sch

[PATCH V2 2/3] timer: hrtimer: Don't check idle_cpu() before calling get_nohz_timer_target()

2012-09-27 Thread Viresh Kumar
ls to idle_cpu() from timer and hrtimer. Signed-off-by: Viresh Kumar --- kernel/hrtimer.c | 2 +- kernel/timer.c | 9 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 6db7a5e..74bdaf6 100644 --- a/kernel/hrtimer.c +++ b/k

[PATCH V2 0/3] Create sched_select_cpu() and use it in workqueues

2012-09-27 Thread Viresh Kumar
. - Patch 2/3 from V1, removed as it doesn't apply to latest workqueue branch from tejun. - CONFIG_MIGRATE_WQ removed and so is wq_select_cpu() - sched_select_cpu() called only from __queue_work() - got tejun/for-3.7 branch in my tree, before making workqueue changes. Viresh Kumar (3): sche

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

2012-09-27 Thread Viresh Kumar
mer and is IDLE now. - CPU gets into interrupt handler due to timer and queues a work. As the CPU is currently IDLE, we can queue this work to some other CPU. Signed-off-by: Viresh Kumar --- kernel/workqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/workqueue.

Re: [PATCH V2 2/3] timer: hrtimer: Don't check idle_cpu() before calling get_nohz_timer_target()

2012-09-27 Thread Viresh Kumar
On 27 September 2012 14:34, Viresh Kumar wrote: > #if defined(CONFIG_NO_HZ) && defined(CONFIG_SMP) > - if (!pinned && get_sysctl_timer_migration() && idle_cpu(cpu)) > + if (!pinned && get_sysctl_timer_migration()) >

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

2012-09-27 Thread Viresh Kumar
On 27 September 2012 14:34, Viresh Kumar wrote: > Workqueues queues work on current cpu, if the caller haven't passed a > preferred > cpu. This may wake up an idle CPU, which is actually not required. > > This work can be processed by any CPU and so we must select a non-idle

[PATCH] timers: Avoid finding cpu for migration of running timers in __mod_timer()

2012-09-28 Thread Viresh Kumar
e timer is currently running. This patch tries to avoid it in such cases. Signed-off-by: Viresh Kumar --- kernel/timer.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/kernel/timer.c b/kernel/timer.c index 8c5e7b9..6e5bf98 100644 --- a/kernel/timer.c ++

[RFC] timer: Migrate running timer

2012-09-28 Thread Viresh Kumar
ing it successfully. Waiting for initial comments on it. Signed-off-by: Viresh Kumar --- include/linux/timer.h | 1 + kernel/timer.c| 58 +-- 2 files changed, 34 insertions(+), 25 deletions(-) diff --git a/include/linux/timer.h b/include/li

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

2012-09-30 Thread Viresh Kumar
On 30 September 2012 14:24, Tejun Heo wrote: > On Thu, Sep 27, 2012 at 02:34:05PM +0530, Viresh Kumar wrote: >> - A cpu has programmed a timer and is IDLE now. >> - CPU gets into interrupt handler due to timer and queues a work. As the CPU >> is >> currently IDLE

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

2012-09-30 Thread Viresh Kumar
On 1 October 2012 06:02, Tejun Heo wrote: > It isn't about the CPU being actually idle? No. Being idle only from scheduler's perspective. :) > Also, if it's only about timers, shouldn't it be enough to implement > it for timer and delayed_work? What if we need a timer, which must re-arm itself

Re: [U-Boot] [PATCH v2 0/3] EXYNOS: Add support for Exynos4x12

2012-10-02 Thread Viresh Kumar
On 3 October 2012 11:04, Chander Kashyap wrote: >> CCing Minkyu > mk7.k...@samsung.com is also Minkyu's ID. >> Tip: Always place a blank line before/after your comments, when replying mails. That makes it much more readable to others. ___ linaro-dev ma

Query: Vexpress quick boot

2012-10-02 Thread viresh kumar
Hi Pawel, Is there a way to skip the motherboard BIOS too? I know there is a way to autoboot from bootmon, which is well described here: https://wiki.linaro.org/PawelMoll/BootingVEMadeEasy But, i am looking for something, which can even run the "reboot" command on BIOS. -- viresh _

Re: [RFC] timer: Migrate running timer

2012-10-03 Thread Viresh Kumar
On 28 September 2012 23:14, Viresh Kumar wrote: > I haven't tested it much till now. I am sending this patch just to check if > the > initial idea looks fine to you guys or not. Tested with: - ARM Vexpress TC2 - big.LITTLE CPU - Core 0-1: A15, 2-4: A7 - rootfs: linaro-ubuntu-nano

[GIT PULL]: big LITTLE MP v9

2012-10-03 Thread Viresh Kumar
d infrastructure Tushar Behera (1): linaro/configs: ubuntu: Disable support for generic OHCI platform driver Vincent Guittot (2): sched: cpu_power: enable ARCH_POWER sched: Fix nohz_idle_balance() Viresh Kumar (4): configs: Add config fragments for big LITTLE MP linar

Re: [RFC PATCH 04/10] sched: Introduce priority-based task migration filter

2012-10-03 Thread Viresh Kumar
On 22 September 2012 00:02, wrote: Hi Morten, I would try to review your patches in coming days. For now, Just reporting a problem which i encountered during routine build. > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 490f1f0..8f0f3b9 100644 > --- a/kernel/sched/fair.c > ++

Re: [RFC PATCH 02/10] sched: Task placement for heterogeneous systems based on task load-tracking

2012-10-03 Thread Viresh Kumar
Hi Morten, On 22 September 2012 00:02, wrote: > From: Morten Rasmussen > > This patch introduces the basic SCHED_HMP infrastructure. Each class of > cpus is represented by a hmp_domain and tasks will only be moved between > these domains when their load profiles suggest it is beneficial. > > SC

Re: [RFC PATCH 03/10] sched: Forced task migration on heterogeneous systems

2012-10-03 Thread Viresh Kumar
Minor comments here :) On 22 September 2012 00:02, wrote: > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index d80de46..490f1f0 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -3744,7 +3744,6 @@ int can_migrate_task(struct task_struct *p, struct > lb_env *env) >

Re: [RFC PATCH 04/10] sched: Introduce priority-based task migration filter

2012-10-03 Thread Viresh Kumar
On 22 September 2012 00:02, wrote: > +config SCHED_HMP_PRIO_FILTER > + bool "(EXPERIMENTAL) Filter HMP migrations by task priority" > + depends on SCHED_HMP Should it depend on EXPERIMENTAL? > + help > + Enables task priority based HMP migration filter. Any task with

Re: [RFC PATCH 06/10] ARM: sched: Use device-tree to provide fast/slow CPU list for HMP

2012-10-03 Thread Viresh Kumar
On 22 September 2012 00:02, wrote: > From: Morten Rasmussen > > We can't rely on Kconfig options to set the fast and slow CPU lists for > HMP scheduling if we want a single kernel binary to support multiple > devices with different CPU topology. E.g. TC2 (ARM's Test-Chip-2 > big.LITTLE system),

Re: [RFC PATCH 07/10] ARM: sched: Setup SCHED_HMP domains

2012-10-04 Thread Viresh Kumar
On 22 September 2012 00:02, wrote: > diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c > +void __init arch_get_hmp_domains(struct list_head *hmp_domains_list) > +{ > + struct cpumask hmp_fast_cpu_mask; > + struct cpumask hmp_slow_cpu_mask; can be merged to single

Re: Query: Vexpress quick boot

2012-10-04 Thread Viresh Kumar
On 4 October 2012 14:48, Bernard Ogden wrote: > Pawel's on holiday this week. I'm no expert in this area, but I ran your > question past one of our platform guys. Does the following help? Thanks for helping :) > A "reboot" causes the motherboard micro to reset and do all its stuff like > repro

Re: Query: Vexpress quick boot

2012-10-04 Thread Viresh Kumar
On 4 October 2012 16:18, Bernard Ogden wrote: > Does the Red button work when the core is just running Boot Monitor? No... It has no effect during that time. -- viresh ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mai

Re: Query: Vexpress quick boot

2012-10-04 Thread Viresh Kumar
On 4 October 2012 17:18, Jon Medhurst (Tixy) wrote: > Just tried it, and that's how my TC2 behaves as well. Whereas on A9 it > does reset the CoreTile CPU and the bootmonitor runs again. Good to know, i am not alone. :) > I should also note that even when booting from the motherboard > bootloade

Re: Query: Vexpress quick boot

2012-10-04 Thread Viresh Kumar
On 4 October 2012 21:26, Ryan Harkin wrote: > I'm not understanding this email thread at all... perhaps because I've > read it from the top ;-) > > I thought from the first email that Viresh was trying to get the board > to boot up completely from when he applies power to the board in > that

Re: Query: Vexpress quick boot

2012-10-04 Thread Viresh Kumar
On 4 October 2012 19:16, Bernard Ogden wrote: > Please check the config.txt file on the motherboard micro SDCard and make > sure the following entry is set: > > ASSERTNPOR: TRUE ;External resets assert nPOR It was false earlier. Changed it to TRUE, still unable to reboot after pr

sched: modify timer and workqueue framework to allow migration

2012-10-05 Thread Viresh Kumar
Hi Guys, I have been working on this activity since some time and V2 of patches is up for review over kernel mailing list. If any of us is interested in using these patches, can pick them from: http://git.linaro.org/gitweb?p=arm/big.LITTLE/mp.git;a=shortlog;h=refs/heads/sched-timer-wq-migration-v

[PATCH] cpufreq: vexpress_bl: Optimize vexpress_cpufreq_of_init()

2012-10-08 Thread Viresh Kumar
d-off-by: Viresh Kumar --- Hi Sudeep, I was going through cpufreq framework and took vexpress_bL_cpufreq.c as an reference. While going through its code, i realized it can be optimized. So this patch. This is compiled tested only as i didn't had TC2 with me today. Can you please see if it

[Query]: CPUFREQ: Affected and related cpus in cpufreq

2012-10-08 Thread viresh kumar
Hi All, Sorry for asking one of the most basic question of cpufreq :( I couldn't get the difference between affected (policy->cpus) and related cpus (policy->related_cpus) in cpufreq... As per Documentation/code: affected_cpus(policy->cpus): - List of CPUs that require software coordination of

Re: [PATCH] cpufreq: vexpress_bl: Optimize vexpress_cpufreq_of_init()

2012-10-08 Thread Viresh Kumar
On 8 October 2012 13:48, Viresh Kumar wrote: > This patch tries to optimize vexpress_cpufreq_of_init() routine of vexpress_bl > cpufreq driver. > > Following are the optimizations: > - No need to allocate freq table array and copy it into struct > cpufreq_frequency_table. Thi

[PATCH] cpufreq: core: Fix typo in comment describing show_bios_limit()

2012-10-09 Thread Viresh Kumar
show_bios_limit is mistakenly written as show_scaling_driver in a comment describing purpose of show_bios_limit() routine. Fix it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers

[PATCH] cpufreq: vexpress: cpufreq driver name can't be longer than 15 chars

2012-10-09 Thread Viresh Kumar
we do: $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver This patch renames driver-name to fix this issue. Signed-off-by: Viresh Kumar --- drivers/cpufreq/vexpress_bL_cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/vexpress_bL_cpufreq.c

Re: [PATCH] cpufreq: vexpress: cpufreq driver name can't be longer than 15 chars

2012-10-09 Thread Viresh Kumar
On 9 October 2012 16:24, Pawel Moll wrote: > On Tue, 2012-10-09 at 11:42 +0100, Sudeep KarkadaNagesha wrote: >> Robin raised a valid point that this driver is TC2 specific and bL is >> not appropriate name for it including the file name(my bad choice at first). > > Just to be painfully precise ;-)

Re: [PATCH] cpufreq: vexpress: cpufreq driver name can't be longer than 15 chars

2012-10-09 Thread Viresh Kumar
On 9 October 2012 21:02, Jon Medhurst (Tixy) wrote: > Considering the confusion over what the correct naming should be, I > don't think it's worth me apply the renaming patch at the moment ;-) This thread went into another direction, than the one it was intended for :) Looks correct, would be be

Re: [RFC PATCH 02/10] sched: Task placement for heterogeneous systems based on task load-tracking

2012-10-09 Thread Viresh Kumar
On 9 October 2012 21:26, Morten Rasmussen wrote: > On Thu, Oct 04, 2012 at 07:02:03AM +0100, Viresh Kumar wrote: >> On 22 September 2012 00:02, wrote: >> > SCHED_HMP requires that the platform implements arch_get_hmp_domains() >> > which should set up the platform s

Re: [PATCH] cpufreq: vexpress: cpufreq driver name can't be longer than 15 chars

2012-10-09 Thread Viresh Kumar
On 9 October 2012 22:30, Jon Medhurst (Tixy) wrote: > Perhaps I misunderstood the bug, I though it was just a name getting > truncated and was otherwise harmless. If it's causing real problems then > I'll apply the original suggested patch and not worry about other > cosmetic renaming issues. No

Re: [PULL REQUEST]: ARM: perf: multi-PMU support v2

2012-10-09 Thread Viresh Kumar
On 9 October 2012 23:16, Sudeep KarkadaNagesha wrote: > Hi Viresh, > > Please pull the following changes(v2) for the multiple CPU PMU support > (re-based to v3.6). Thanks.. Will be included in this release. -- viresh ___ linaro-dev mailing list linaro

Re: [PULL REQUEST]: ARM: perf: multi-PMU support v2

2012-10-09 Thread Viresh Kumar
On 9 October 2012 23:16, Sudeep KarkadaNagesha wrote: > Please pull the following changes(v2) for the multiple CPU PMU support > (re-based to v3.6). http://git.linaro.org/gitweb?p=arm/big.LITTLE/mp.git;a=shortlog;h=refs/heads/arm-multi_pmu_v2 ___ linar

[PATCH] cpufreq:core: Fix printing of governor and driver name

2012-10-09 Thread Viresh Kumar
loper# Fix this by increasing print length by one character. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 6 +++--- include/linux/cpufreq.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 02197

Re: [RFC PATCH 06/10] ARM: sched: Use device-tree to provide fast/slow CPU list for HMP

2012-10-10 Thread Viresh Kumar
On 10 October 2012 15:47, Morten Rasmussen wrote: > On Thu, Oct 04, 2012 at 07:49:32AM +0100, Viresh Kumar wrote: >> > This patch is reuse of a patch by Jon Medhurst with a >> > few bits left out. >> >> Then probably he must be the author of this commit? Also a

Re: [Query]: CPUFREQ: Affected and related cpus in cpufreq

2012-10-10 Thread Viresh Kumar
On 10 October 2012 17:31, Sudeep KarkadaNagesha wrote: > On 08/10/12 14:58, viresh kumar wrote: >> affected_cpus(policy->cpus): >> - List of CPUs that require software coordination of frequency. >> - Processors part of affected_cpus share policy struct >> - Policy l

Re: [Query]: CPUFREQ: Affected and related cpus in cpufreq

2012-10-10 Thread Viresh Kumar
On 10 October 2012 19:14, Sudeep KarkadaNagesha wrote: > Here is my understanding on this patch. This change is closely related > to ACPI cpufreq driver(used mostly on Intel cores). This change was > introduced to keep track of the related cpus as returned by ACPI > firmware along with affected cp

Re: [PATCH v2] ARM: hw_breakpoint: v7.1 self-hosted debug powerdown support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 14:00, Dietmar Eggemann wrote: > This patch introduces os save and restore mechanism for v7.1 debug and > self-hosted debuggers. > It enables the os to save DBGDSCR before powerdown and restore it when power > is restored. > > The clearing of the os lock in the restore function

[GIT PULL]: big LITTLE MP v10

2012-10-12 Thread Viresh Kumar
es ARM: perf: set cpu affinity to support multiple PMUs ARM: perf: set cpu affinity for the irqs correctly ARM: perf: remove spaces in CPU PMU names ARM: perf: save/restore pmu registers in pm notifier Viresh Kumar (1): Merge branches 'per-cpu-thread-hotplug-v

  1   2   3   4   5   >