[PATCH Resend V2] dt: add helper function to read u8 & u16 variables & arrays

2012-10-25 Thread Viresh Kumar
This adds following helper routines: - of_property_read_u8_array() - of_property_read_u16_array() - of_property_read_u8() - of_property_read_u16() First two actually share most of the code with of_property_read_u32_array(), so the common part is taken out into a macro, which can be used by all thr

Re: [PATCH 2/2] cpufreq: governors: remove redundant code

2012-10-25 Thread Viresh Kumar
On 26 October 2012 05:43, Rafael J. Wysocki wrote: > I have applied this patch only because of the fixes on top of it. It broke > kernel compliation due to some missing EXPORT_SYMBOL_GPLs in > cpufreq_governor.c, > so I woulnd't have applied it otherwise. Hi Rafael, So sorry for this. I am re

Re: [PATCH V2 4/6] Thermal: Remove the cooling_cpufreq_list

2012-10-25 Thread Hongbo Zhang
On 26 October 2012 03:14, Francesco Lavra wrote: > Hi, > Hongbo Zhang wrote: >> Problem of using this list is that the cpufreq_get_max_state callback will be >> called when register cooling device by thermal_cooling_device_register, but >> this list isn't ready at this moment. What's more, there i

Re: [PATCH 2/2] cpufreq: governors: remove redundant code

2012-10-25 Thread Rafael J. Wysocki
On Thursday, October 25, 2012 08:59:11 AM Viresh Kumar wrote: > On 25 October 2012 02:42, Rafael J. Wysocki wrote: > > On Wednesday 24 of October 2012 21:43:46 Rafael J. Wysocki wrote: > >> On Wednesday 24 of October 2012 11:37:13 Viresh Kumar wrote: > >> > On 22 October 2012 14:16, Viresh Kumar

Re: [PATCH 1/2] cpufreq: Fix sparse warnings by updating cputime64_t to u64

2012-10-25 Thread Rafael J. Wysocki
On Thursday, October 25, 2012 09:00:22 AM Viresh Kumar wrote: > On 25 October 2012 02:44, Rafael J. Wysocki wrote: > > On Wednesday 24 of October 2012 13:15:58 Viresh Kumar wrote: > >> There were few sparse warnings due to mismatch of type on function > >> arguments. > >> Two types were used u64

Re: [PATCH 4/5] cpuidle / ACPI : change indentation logic

2012-10-25 Thread Rafael J. Wysocki
On Friday, October 19, 2012 11:51:31 AM Daniel Lezcano wrote: > This patch changes the indentation by returning from the function if > pr->flags.power is not set. That allows to have the remaining code out of a > 'if' section. > > Even if the patch does not fix anything, it makes the code a bit mo

Re: [PATCH 3/5] cpuidle / ACPI : pass the cpuidle_device parameter

2012-10-25 Thread Rafael J. Wysocki
On Friday, October 19, 2012 11:51:30 AM Daniel Lezcano wrote: > The cpuidle_device is retrieved in the function by using directly > the global variable. But the caller of this function already have > this device and it can be passed as a parameter. That is one small > step to encapsulate the code m

Re: [PATCH 2/5] cpuidle / ACPI : remove pointless headers

2012-10-25 Thread Rafael J. Wysocki
On Friday, October 19, 2012 11:51:29 AM Daniel Lezcano wrote: > These different headers are not needed. > > Signed-off-by: Daniel Lezcano The kernel doesn't build for me with this patch applied (presumably because the #defines from the previous patch were necessary after all). Thanks, Rafael

Re: [PATCH 1/5] cpuidle / ACPI : remove unused definition

2012-10-25 Thread Rafael J. Wysocki
On Friday, October 19, 2012 11:51:28 AM Daniel Lezcano wrote: > The different definitions are not used anywhere in the code. > > Signed-off-by: Daniel Lezcano If you tried to build the kernel with this patch applied, I wonder what .config you used. :-) It doesn't build for me, because _COMPONEN

Re: [PATCH 0/4][V2] cpuidle : multiple drivers support

2012-10-25 Thread Rafael J. Wysocki
On Thursday, October 25, 2012 04:49:33 PM Peter De Schrijver wrote: > On Fri, Oct 19, 2012 at 12:10:45PM +0200, Daniel Lezcano wrote: > > The discussion about having different cpus on the system with > > different latencies bring us to a first attemp by adding a > > pointer in the cpuidle_device to

Re: [PATCH V2 4/6] Thermal: Remove the cooling_cpufreq_list

2012-10-25 Thread Francesco Lavra
Hi, Hongbo Zhang wrote: > Problem of using this list is that the cpufreq_get_max_state callback will be > called when register cooling device by thermal_cooling_device_register, but > this list isn't ready at this moment. What's more, there is no need to > maintain > such a list, we can get cpufre

Re: [RFC PATCH 00/13] sched: Integrating Per-entity-load-tracking with the core scheduler

2012-10-25 Thread Preeti U Murthy
Hi Peter, Thank you very much for your feedback.Please ignore the previous post.I am extremely sorry about the word wrap issues with it. On 10/25/2012 09:26 PM, Peter Zijlstra wrote: > OK, so I tried reading a few patches and I'm completely failing.. maybe > its late and my brain stopped working,

Re: [RFC PATCH 00/13] sched: Integrating Per-entity-load-tracking with the core scheduler

2012-10-25 Thread Preeti U Murthy
Hi Peter, Thank you very much for your feedback. On 10/25/2012 09:26 PM, Peter Zijlstra wrote: > OK, so I tried reading a few patches and I'm completely failing.. maybe > its late and my brain stopped working, but it simply doesn't make any > sense. > > Most changelogs and comments aren't really

Installable ARMv8 cross-toolchain

2012-10-25 Thread Wookey
After a fair amount of dicking about I have managed to build a cross-toolchain for arm64/aarch64 which installs on Ubuntu Quantal. It even builds packages, although it has at least one notable limitation, and I have no idea if it produces working code yet :-) The main limitation is that the defaul

[PATCH] x86 : remove dead code

2012-10-25 Thread Daniel Lezcano
The hlt_use_halt function returns always true and there is only one definition of it. The default_idle function can then get ride of the if ... statement and we can remove the else branch. Signed-off-by: Daniel Lezcano --- arch/x86/kernel/process.c | 39 ++-

Re: [RFC PATCH 00/13] sched: Integrating Per-entity-load-tracking with the core scheduler

2012-10-25 Thread Peter Zijlstra
OK, so I tried reading a few patches and I'm completely failing.. maybe its late and my brain stopped working, but it simply doesn't make any sense. Most changelogs and comments aren't really helping either. At best they mention what you're doing, not why and how. This means I get to basically dup

Re: [PATCH 0/4][V2] cpuidle : multiple drivers support

2012-10-25 Thread Daniel Lezcano
On 10/25/2012 03:49 PM, Peter De Schrijver wrote: > On Fri, Oct 19, 2012 at 12:10:45PM +0200, Daniel Lezcano wrote: >> The discussion about having different cpus on the system with >> different latencies bring us to a first attemp by adding a >> pointer in the cpuidle_device to the states array. >>

Re: [PATCH 0/4][V2] cpuidle : multiple drivers support

2012-10-25 Thread Peter De Schrijver
On Fri, Oct 19, 2012 at 12:10:45PM +0200, Daniel Lezcano wrote: > The discussion about having different cpus on the system with > different latencies bring us to a first attemp by adding a > pointer in the cpuidle_device to the states array. > > But as Rafael suggested, it would make more sense to

Re: [RFC PATCH 00/13] sched: Integrating Per-entity-load-tracking with the core scheduler

2012-10-25 Thread Preeti Murthy
The benchmark: /* * test.c - Simulate workloads that load the CPU differently * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; version 2 of the License. * * This pro

Re: git.l.o: please add post-update hooks to run git-update-server-info

2012-10-25 Thread Loïc Minier
Hi My instructions were actually not correct; two points I failed to highlight: * some old template hooks had "git-update-server-info" but that doesn't exist anymore; instead one is supposed to run "git update-server-info"; please check that your hooks/post-update scripts use the ne

[PATCH] cpuidle - sysfs : move declaration in the sysfs file

2012-10-25 Thread Daniel Lezcano
The structure cpuidle_state_kobj is not used anywhere except in the sysfs.c file. The definition of this structure is not needed in the cpuidle header file. This patch moves it to the sysfs.c file in order to encapsulate the code a bit more. Signed-off-by: Daniel Lezcano --- drivers/cpuidle/sysf

[PATCH V2 6/6] Thermal: Add ST-Ericsson DB8500 thermal properties and platform data.

2012-10-25 Thread hongbo.zhang
From: "hongbo.zhang" This patch adds device tree properties for ST-Ericsson DB8500 thermal driver, also adds the platform data to support the old fashion. Signed-off-by: hongbo.zhang --- arch/arm/boot/dts/dbx5x0.dtsi | 14 + arch/arm/boot/dts/snowball.dts | 31

[PATCH V2 6/6] Thermal: Add ST-Ericsson DB8500 thermal properties and platform data.

2012-10-25 Thread hongbo.zhang
From: "hongbo.zhang" This patch adds device tree properties for ST-Ericsson DB8500 thermal driver, also adds the platform data to support the old fashion. Signed-off-by: hongbo.zhang --- arch/arm/boot/dts/dbx5x0.dtsi | 14 + arch/arm/boot/dts/snowball.dts | 31

[PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal driver.

2012-10-25 Thread hongbo.zhang
From: "hongbo.zhang" This diver is based on the thermal management framework in thermal_sys.c. A thermal zone device is created with the trip points to which cooling devices can be bound, the current cooling device is cpufreq, e.g. CPU frequency is clipped down to cool the CPU, and other cooling

Re: Making countless kernel reboots painless on TC2

2012-10-25 Thread Pawel Moll
On Thu, 2012-10-25 at 11:41 +0100, Viresh Kumar wrote: > @Pawell and others: Is there a way in vexpress bootmon to load images ^^ ;-) > directly from uSD card instead of flash? No, sorry. The uSD card is tied to the microcontroller and there is no "wide enough pipe" between it and the main

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Hongbo Zhang
On 25 October 2012 18:11, Viresh Kumar wrote: > On 25 October 2012 15:34, Viresh Kumar wrote: >> On 25 October 2012 15:26, Hongbo Zhang wrote: > > This is what your prcmu driver's routines are doing: > > int db8500_prcmu_config_hotmon(u8 low, u8 high) > { > ... > wait_for_completion(&mb4

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Hongbo Zhang
On 25 October 2012 17:42, Viresh Kumar wrote: > On 25 October 2012 15:03, Hongbo Zhang wrote: >> On 25 October 2012 16:41, Viresh Kumar wrote: > >> Just paste my current pieces of codes here: >> >> static struct db8500_thsens_platform_data* >> db8500_thermal_parse_dt(struct platf

Re: Making countless kernel reboots painless on TC2

2012-10-25 Thread Viresh Kumar
On 24 October 2012 21:00, Nicolas Pitre wrote: > On Wed, 24 Oct 2012, Viresh Kumar wrote: >> You can also connect vexpress board with your PC with a USB cable, and >> the uSD card will be shown on your PC as data storage, as soon as >> bootloader or bootmonitor is on. You can simply copy files fr

[RFC PATCH 01/13] sched:Prevent movement of short running tasks during load balancing

2012-10-25 Thread Preeti U Murthy
Prevent sched groups with low load as tracked by PJT's metrics from being candidates of the load balance routine.This metric is chosen to be 1024+15%*1024.But using PJT's metrics it has been observed that even when three 10% tasks are running,the load sometimes does not exceed this threshold.The ca

[RFC PATCH 13/13] sched: Modifying wake_affine to use PJT's metric

2012-10-25 Thread Preeti U Murthy
Additional parameters introduced to perform this function which are calculated using PJT's metrics and its helpers. Signed-off-by: Preeti U Murthy --- kernel/sched/fair.c | 34 +++--- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/kernel/sched/fair.

[RFC PATCH 12/13] sched: Modify find_idlest_cpu to use PJT's metric

2012-10-25 Thread Preeti U Murthy
Additional parameters introduced to perform this function which are calculated using PJT's metrics and its helpers. Signed-off-by: Preeti U Murthy --- kernel/sched/fair.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c inde

[RFC PATCH 08/13] sched: Some miscallaneous changes in load_balance

2012-10-25 Thread Preeti U Murthy
Modify certain decisions in load_balance to use the imbalance amount as calculated by the PJT's metric. Signed-off-by: Preeti U Murthy --- kernel/sched/fair.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index bd7b69d..68a6b

[RFC PATCH 04/13] sched:Decide group_imb using PJT's metric

2012-10-25 Thread Preeti U Murthy
Additional parameters for deciding a sched group's imbalance status which are calculated using the per entity load tracking are used. Signed-off-by: Preeti U Murthy --- kernel/sched/fair.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/kernel/sched/

[RFC PATCH 11/13] sched: Modify find_idlest_group to use PJT's metric

2012-10-25 Thread Preeti U Murthy
Additional parameters introduced to perform this function which are calculated using PJT's metrics and its helpers. Signed-off-by: Preeti U Murthy --- kernel/sched/fair.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair

[RFC PATCH 03/13] sched:Decide whether there be transfer of loads based on the PJT's metric

2012-10-25 Thread Preeti U Murthy
Additional parameters relevant to sched group load balancing statistics and sched domain's load balancing statistics which are calculated using the per entity load tracking are used. The intention is to begin to use PJT's metric in the first level of load balancing to see if the current sched grou

[RFC PATCH 02/13] sched:Pick the apt busy sched group during load balancing

2012-10-25 Thread Preeti U Murthy
If a sched group has passed the test for sufficient load in update_sg_lb_stats,to qualify for load balancing,then PJT's metrics has to be used to qualify the right sched group as the busiest group. The scenario which led to this patch is shown below: Consider Task1 and Task2 to be a long running t

[RFC PATCH 10/13] sched: Modify fix_small_imbalance to use PJT's metric

2012-10-25 Thread Preeti U Murthy
Additional parameters which aid in taking the decisions in fix_small_imbalance which are calculated using PJT's metric are used. Signed-off-by: Preeti U Murthy --- kernel/sched/fair.c | 54 +++ 1 file changed, 33 insertions(+), 21 deletions(-) d

[RFC PATCH 05/13] sched:Calculate imbalance using PJT's metric

2012-10-25 Thread Preeti U Murthy
Additional parameters which decide the amount of imbalance in the sched domain calculated using PJT's metric are used. Signed-off-by: Preeti U Murthy --- kernel/sched/fair.c | 36 +++- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/kernel/sched/

[RFC PATCH 09/13] sched: Modify check_asym_packing to use PJT's metric

2012-10-25 Thread Preeti U Murthy
Make appropriate modifications in check_asym_packing to reflect PJT's metric. Signed-off-by: Preeti U Murthy --- kernel/sched/fair.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 68a6b1d..3b18f5f 100644 --- a/kernel/sched/fair.c +++ b/ke

[RFC PATCH 06/13] sched: Changing find_busiest_queue to use PJT's metric

2012-10-25 Thread Preeti U Murthy
Additional parameters which decide the busiest cpu in the chosen sched group calculated using PJT's metric are used Signed-off-by: Preeti U Murthy --- kernel/sched/fair.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c

[RFC PATCH 07/13] sched: Change move_tasks to use PJT's metric

2012-10-25 Thread Preeti U Murthy
Make decisions based on PJT's metrics and the dependent metrics about which tasks to move to reduce the imbalance. Signed-off-by: Preeti U Murthy --- kernel/sched/fair.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c

[RFC PATCH 00/13] sched: Integrating Per-entity-load-tracking with the core scheduler

2012-10-25 Thread Preeti U Murthy
This patchset uses the per-entity-load-tracking patchset which will soon be available in the kernel.It is based on the tip/master tree before the (HEAD at b654f92c06e562c)integration of per-entity-load-tracking patchset. The first 8 latest patches of sched:per-entity-load-tracking alone have been i

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Viresh Kumar
On 25 October 2012 15:34, Viresh Kumar wrote: > On 25 October 2012 15:26, Hongbo Zhang wrote: This is what your prcmu driver's routines are doing: int db8500_prcmu_config_hotmon(u8 low, u8 high) { ... wait_for_completion(&mb4_transfer.work); ... return 0; } This is why others i

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Viresh Kumar
On 25 October 2012 15:26, Hongbo Zhang wrote: > Verish, see the codes in include/linux/interrupt.h: s/verish/viresh :) > static inline int __must_check > devm_request_irq(struct device *dev, unsigned int irq, irq_handler_t handler, > unsigned long irqflags, const char *devname,

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Hongbo Zhang
On 25 October 2012 17:33, Hongbo Zhang wrote: > On 25 October 2012 16:41, Viresh Kumar wrote: >> On 25 October 2012 13:56, Hongbo Zhang wrote: >> >> While replying to mails, don't remove lines like above. They help >> identifying who >> wrote what. >> >>> [...] > +/* Callback to get temperat

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Viresh Kumar
On 25 October 2012 15:03, Hongbo Zhang wrote: > On 25 October 2012 16:41, Viresh Kumar wrote: > Just paste my current pieces of codes here: > > static struct db8500_thsens_platform_data* > db8500_thermal_parse_dt(struct platform_device *pdev) > { > if (!np) { >

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Hongbo Zhang
On 25 October 2012 16:41, Viresh Kumar wrote: > On 25 October 2012 13:56, Hongbo Zhang wrote: > > While replying to mails, don't remove lines like above. They help > identifying who > wrote what. > >> [...] +/* Callback to get temperature changing trend */ +static int db8500_sys_get_tre

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Viresh Kumar
On 25 October 2012 13:56, Hongbo Zhang wrote: While replying to mails, don't remove lines like above. They help identifying who wrote what. > [...] >>> +/* Callback to get temperature changing trend */ >>> +static int db8500_sys_get_trend(struct thermal_zone_device *thermal, For example, you ca

Re: [PATCH V2 5/6] Thermal: Add ST-Ericsson DB8500 thermal dirver.

2012-10-25 Thread Hongbo Zhang
[...] >> +/* Callback to get temperature changing trend */ >> +static int db8500_sys_get_trend(struct thermal_zone_device *thermal, >> + int trip, enum thermal_trend *trend) >> +{ >> + struct db8500_thermal_zone *pzone = thermal->devdata; >> + >> + *trend = pzone->