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

2012-10-24 Thread Viresh Kumar
There were few sparse warnings due to mismatch of type on function arguments. Two types were used u64 and cputime64_t. Both are actually u64, so use u64 only. Reported-by: Fengguang Wu Signed-off-by: Viresh Kumar --- This solution was discussed here: http://www.mail-archive.com/linaro-dev@list

[PATCH 2/2] cpufreq: Fix sparse warning by making local function static

2012-10-24 Thread Viresh Kumar
cpufreq_disabled() is a local function, so should be marked static. 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/cpufreq/cpufreq.c index f552d5f..261ef65 100644 --- a/drivers/cpuf

Re: Making countless kernel reboots painless on TC2

2012-10-24 Thread Jon Medhurst (Tixy)
On Tue, 2012-10-23 at 22:56 -0400, Nicolas Pitre wrote: > I > still recommend to read the following pages to get familiar with this > beast: > > https://wiki.linaro.org/PawelMoll/BootingVEMadeEasy > https://wiki.linaro.org/ARM/VersatileExpressSetup > > This page shows how to install U-Boot

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

2012-10-24 Thread li guang
在 2012-10-09二的 17:40 +0100,Morten Rasmussen写道: > On Thu, Oct 04, 2012 at 07:27:00AM +0100, Viresh Kumar wrote: > > On 22 September 2012 00:02, wrote: > > > > > +config SCHED_HMP_PRIO_FILTER > > > + bool "(EXPERIMENTAL) Filter HMP migrations by task priority" > > > + depends on SCHED_

Re: Making countless kernel reboots painless on TC2

2012-10-24 Thread Ryan Harkin
On 24 October 2012 09:29, Jon Medhurst (Tixy) wrote: > On Tue, 2012-10-23 at 22:56 -0400, Nicolas Pitre wrote: >> I >> still recommend to read the following pages to get familiar with this >> beast: >> >> https://wiki.linaro.org/PawelMoll/BootingVEMadeEasy > >> https://wiki.linaro.org/ARM/Ver

[PATCH V2 0/6] Fix thermal bugs and Upstream ST-Ericsson thermal driver

2012-10-24 Thread hongbo.zhang
From: "hongbo.zhang" V1->V2 Changes: DB8500 thermal dirver: Accept comments from Francesco Lavra and Viresh Kumar, and split platform and driver parts into separate patches. Thermal layer: Cancel the patch for deferring bind due to new patch for generic cpu cooling layer to fix this issue. CPU

[PATCH V2 1/6] Thermal: add indent for code alignment.

2012-10-24 Thread hongbo.zhang
From: "hongbo.zhang" The curly bracket should be aligned with corresponding if else statements. Signed-off-by: hongbo.zhang Reviewed-by: Viresh Kumar --- drivers/thermal/cpu_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/t

[PATCH V2 2/6] Thermal: make sure cpufreq cooling register after cpufreq driver

2012-10-24 Thread hongbo.zhang
From: "hongbo.zhang" The cpufreq works as a cooling device, so the cooling layer should check if the cpufreq driver is initialized or not. Signed-off-by: hongbo.zhang --- drivers/thermal/cpu_cooling.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/thermal/cpu_cooling.c b/drive

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

2012-10-24 Thread hongbo.zhang
From: "hongbo.zhang" 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 cpufreq_cooling_de

[PATCH V2 3/6] Thermal: fix bug of counting cpu frequencies.

2012-10-24 Thread hongbo.zhang
From: "hongbo.zhang" In the while loop for counting cpu frequencies, if table[i].frequency equals CPUFREQ_ENTRY_INVALID, index i won't be increased, so this leads to an endless loop, what's more the index i cannot be referred as cpu frequencies number if there is CPUFREQ_ENTRY_INVALID case. Sign

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

2012-10-24 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

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

2012-10-24 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 --- .../devicetree/bindings/thermal/db8500-thermal.txt | 40 ++ arch/arm/boot/dts/dbx5x0.dtsi

TC2s offline

2012-10-24 Thread Dave Pigott
Hi All, Due to a glitch with UEFI and the latest kernels, we are forced to leave the TC2s offline until the issue is resolved. Ryan Harkin and I have been working to try and resolve this, but the best we could do is to get them to pass their health check (using sticking plaster, string and a la

Re: [PATCH V2 3/6] Thermal: fix bug of counting cpu frequencies.

2012-10-24 Thread Viresh Kumar
On 24 October 2012 17:28, hongbo.zhang wrote: > From: "hongbo.zhang" > > In the while loop for counting cpu frequencies, if table[i].frequency equals > CPUFREQ_ENTRY_INVALID, index i won't be increased, so this leads to an endless > loop, what's more the index i cannot be referred as cpu frequenc

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

2012-10-24 Thread Loïc Minier
Hi all! An user reported problems cloning a tree from git.linaro.org today with a /git-ro URL: git clone http://git.linaro.org/git-ro/people/foo/bar.git He was getting: fatal: http://git.linaro.org/git-ro/people/foo/bar.git/info/refs not found: did you run git update-server-info

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

2012-10-24 Thread Viresh Kumar
On 24 October 2012 17:28, hongbo.zhang wrote: > 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 frequ

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

2012-10-24 Thread Joe Perches
On Wed, 2012-10-24 at 19:58 +0800, hongbo.zhang wrote: > This patch adds device tree properties for ST-Ericsson DB8500 thermal driver, > also adds the platform data to support the old fashion. Just a trivial note: > diff --git a/arch/arm/mach-ux500/board-mop500.c > b/arch/arm/mach-ux500/board-mo

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

2012-10-24 Thread Viresh Kumar
On 24 October 2012 17:28, hongbo.zhang wrote: > 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 > --- > .../devicetree/bindings/thermal/db8500-thermal

Re: [RFC 2/6] sched: add a new SD SHARE_POWERLINE flag for sched_domain

2012-10-24 Thread Santosh Shilimkar
Vincent, Few comments/questions. On Sunday 07 October 2012 01:13 PM, Vincent Guittot wrote: This new flag SD SHARE_POWERLINE reflects the sharing of the power rail between the members of a domain. As this is the current assumption of the scheduler, the flag is added to all sched_domain Signed-

Re: [RFC 3/6] sched: pack small tasks

2012-10-24 Thread Santosh Shilimkar
Vincent, Few comments/questions. On Sunday 07 October 2012 01:13 PM, Vincent Guittot wrote: During sched_domain creation, we define a pack buddy CPU if available. On a system that share the powerline at all level, the buddy is set to -1 On a dual clusters / dual cores system which can powerga

Re: [RFC 4/6] sched: secure access to other CPU statistics

2012-10-24 Thread Santosh Shilimkar
$subject is bit confusing here. On Sunday 07 October 2012 01:13 PM, Vincent Guittot wrote: The atomic update of runnable_avg_sum and runnable_avg_period are ensured by their size and the toolchain. But we must ensure to not read an old value for one field and a newly updated value for the other

Re: [RFC 5/6] sched: pack the idle load balance

2012-10-24 Thread Santosh Shilimkar
On Sunday 07 October 2012 01:13 PM, Vincent Guittot wrote: Look for an idle CPU close the pack buddy CPU whenever possible. s/close/close to The goal is to prevent the wake up of a CPU which doesn't share the power line of the pack CPU Signed-off-by: Vincent Guittot --- kernel/sched/fair.c

Re: [RFC 6/6] ARM: sched: clear SD_SHARE_POWERLINE

2012-10-24 Thread Santosh Shilimkar
On Sunday 07 October 2012 01:13 PM, Vincent Guittot wrote: The ARM platforms take advantage of packing small tasks on few cores. This is true even when the cores of a cluster can't be powergated independently. Signed-off-by: Vincent Guittot --- arch/arm/kernel/topology.c |5 + 1 file

[PATCH RESEND] xen/arm: use the __HVC macro

2012-10-24 Thread Stefano Stabellini
Use the new __HVC macro in hypercall.S. Signed-off-by: Stefano Stabellini --- arch/arm/xen/hypercall.S | 14 +- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/arch/arm/xen/hypercall.S b/arch/arm/xen/hypercall.S index 074f5ed..71f7239 100644 --- a/arch/arm/xen/hyper

Re: Making countless kernel reboots painless on TC2

2012-10-24 Thread Nicolas Pitre
On Wed, 24 Oct 2012, Viresh Kumar wrote: > Nice article! Thanks. > On 24 October 2012 08:26, Nicolas Pitre wrote: > > > > When working on low level kernel code, the indication that something > > went wrong is often noticed as a kernel oops, or even a totally silent > > system. This usually imp

Re: Making countless kernel reboots painless on TC2

2012-10-24 Thread Nicolas Pitre
On Wed, 24 Oct 2012, Jon Medhurst (Tixy) wrote: > The official release pages will include _some_ similar (and more up to > date information), however you won't find any mention of any bootloader > other than UEFI. Another bootloader to hate. Joy! > And, at least for now, no mention of how to bo

Re: Making countless kernel reboots painless on TC2

2012-10-24 Thread Pawel Moll
On Tue, 2012-10-23 at 22:56 -0400, Nicolas Pitre wrote: > The script to generate a boot script to generate an ATAGS block is a > rather nice hack. These days are, fortunately, long gone :-) New-ish Boot Monitors (5.x.x versions in particular) speak initrd, ATAG _and_ DTB "natively", so one can b

Re: [RFC] Energy/power monitoring within the kernel

2012-10-24 Thread Pawel Moll
On Tue, 2012-10-23 at 18:43 +0100, Steven Rostedt wrote: > > <...>212.673126: hwmon_attr_update: hwmon4 temp1_input 34361 > > > > One issue with this is that some external knowledge is required to > > relate a number to a processor core. Or maybe it's not an issue at all > > because it should be l

Re: Making countless kernel reboots painless on TC2

2012-10-24 Thread Nicolas Pitre
On Wed, 24 Oct 2012, Ryan Harkin wrote: > On 24 October 2012 09:29, Jon Medhurst (Tixy) wrote: > > > Personally (and unofficially), I find that the simplest and most > > reliable way to use vexpress is to flash the kernel/dtb/initrd images > > into NOR flash and use the bootmonitor supplied with

Re: [RFC] Energy/power monitoring within the kernel

2012-10-24 Thread Pawel Moll
On Tue, 2012-10-23 at 19:49 +0100, Andy Green wrote: > A thought on that... from an SoC perspective there are other interesting > power rails than go to just the CPU core. For example DDR power and > rails involved with other IP units on the SoC such as 3D graphics unit. > So tying one number

Re: Making countless kernel reboots painless on TC2

2012-10-24 Thread Nicolas Pitre
On Wed, 24 Oct 2012, Pawel Moll wrote: > On Tue, 2012-10-23 at 22:56 -0400, Nicolas Pitre wrote: > > The script to generate a boot script to generate an ATAGS block is a > > rather nice hack. > > These days are, fortunately, long gone :-) I deduced as much, given your example boot log reported

Re: [RFC] Energy/power monitoring within the kernel

2012-10-24 Thread Pawel Moll
On Tue, 2012-10-23 at 23:02 +0100, Guenter Roeck wrote: > > Traditionally such data should be exposed to the user via hwmon sysfs > > interface, and that's exactly what I did for "my" platform - I have > > a /sys/class/hwmon/hwmon*/device/energy*_input and this was good > > enough to draw pretty gr

Re: [RFC] Energy/power monitoring within the kernel

2012-10-24 Thread Pawel Moll
On Wed, 2012-10-24 at 01:40 +0100, Thomas Renninger wrote: > > More and more of people are getting interested in the subject of power > > (energy) consumption monitoring. We have some external tools like > > "battery simulators", energy probes etc., but some targets can measure > > their power usag

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

2012-10-24 Thread Rafael J. Wysocki
On Wednesday 24 of October 2012 11:37:13 Viresh Kumar wrote: > On 22 October 2012 14:16, Viresh Kumar wrote: > > On 20 October 2012 01:42, Viresh Kumar wrote: > >> Initially ondemand governor was written and then using its code > >> conservative > >> governor is written. It used a lot of code fr

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

2012-10-24 Thread Rafael J. Wysocki
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 wrote: > > > On 20 October 2012 01:42, Viresh Kumar wrote: > > >> Initially ondemand governor was written and then using its

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

2012-10-24 Thread Rafael J. Wysocki
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 and cputime64_t. Both are actually u64, so use u64 > only. > > Reported-by: Fengguang Wu > Signed-off-by: Viresh Kumar This ser

Re: [RFC] Energy/power monitoring within the kernel

2012-10-24 Thread Guenter Roeck
On Wed, Oct 24, 2012 at 05:37:27PM +0100, Pawel Moll wrote: > On Tue, 2012-10-23 at 23:02 +0100, Guenter Roeck wrote: > > > Traditionally such data should be exposed to the user via hwmon sysfs > > > interface, and that's exactly what I did for "my" platform - I have > > > a /sys/class/hwmon/hwmon*

Re: [PATCH 1/2] cpufreq: Improve debug prints

2012-10-24 Thread Rafael J. Wysocki
On Wednesday 17 of October 2012 12:03:31 Viresh Kumar wrote: > On 17 October 2012 11:56, Joe Perches wrote: > > Oh good, but please use a space between KBUILD_MODNAME > > and the quoted ": ". > > Anything technical behind it or just for code formatting? As output is > same in both cases :) > > -

Re: [PATCH 1/2] cpufreq: return early from __cpufreq_driver_getavg()

2012-10-24 Thread Rafael J. Wysocki
On Saturday 20 of October 2012 10:12:07 Viresh Kumar wrote: > On Oct 20, 2012 3:37 AM, "Rafael J. Wysocki" wrote: > > > > On Saturday 20 of October 2012 01:42:05 Viresh Kumar wrote: > > > There is no need to do cpufreq_get_cpu() and cpufreq_put_cpu() for > drivers that > > > don't support getavg()

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

2012-10-24 Thread Viresh Kumar
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 and cputime64_t. Both are actually u64, so use u64 >> only. >> >> Reported-

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

2012-10-24 Thread Hongbo Zhang
On 24 October 2012 22:32, Joe Perches wrote: > On Wed, 2012-10-24 at 19:58 +0800, hongbo.zhang wrote: >> This patch adds device tree properties for ST-Ericsson DB8500 thermal driver, >> also adds the platform data to support the old fashion. > > Just a trivial note: > >> diff --git a/arch/arm/mach

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

2012-10-24 Thread Hongbo Zhang
[...] >> /* >> + * Thermal Sensor >> + */ >> + >> +static struct resource db8500_thsens_resources[] = { >> + { >> + .name = "IRQ_HOTMON_LOW", >> + .start = IRQ_PRCMU_HOTMON_LOW, >> + .end= IRQ_PRCMU_HOTMON_LOW, >> + .flags = IORES

[PATCH 4/4] mfd: ab8500: add devicetree support for chargalg

2012-10-24 Thread Rajanikanth H . V
From: "Rajanikanth H.V" This patch adds device tree support for charging algorithm driver Signed-off-by: Rajanikanth H.V --- .../bindings/power_supply/ab8500/chargalg.txt | 16 ++ arch/arm/boot/dts/dbx5x0.dtsi |5 ++ drivers/mfd/ab8500-core.c

[PATCH 3/4] mfd: ab8500: add devicetree support for charger

2012-10-24 Thread Rajanikanth H . V
From: "Rajanikanth H.V" This patch adds device tree support for ab8500-charger driver Signed-off-by: Rajanikanth H.V --- Documentation/devicetree/bindings/mfd/ab8500.txt | 14 .../bindings/power_supply/ab8500/charger.txt | 25 +++ arch/arm/boot/dts/dbx5x0.dtsi

[PATCH 0/4] Implement device tree support for ab8500 BM Devices

2012-10-24 Thread Rajanikanth H . V
From: "Rajanikanth H.V" This patch-set adds device tree binding for ab8500 battery-managed devices. Removes the redundant platform structure maintained across bm devices and implements common DT probe routine across all the modules. Test status: a) Tested across 'legacy platform data' and DT bin

[PATCH 2/4] mfd: ab8500: add devicetree support for btemp

2012-10-24 Thread Rajanikanth H . V
From: "Rajanikanth H.V" This patch adds device tree support for battery-temperature-monitor driver Signed-off-by: Rajanikanth H.V --- Documentation/devicetree/bindings/mfd/ab8500.txt |6 ++ .../bindings/power_supply/ab8500/btemp.txt | 16 + arch/arm/boot/dts/dbx5x0.dtsi

[PATCH 1/4] mfd: ab8500: add devicetree support for fuelgauge

2012-10-24 Thread Rajanikanth H . V
From: "Rajanikanth H.V" - This patch adds device tree support for fuelgauge driver - optimize bm devices platform_data usage and of_probe(...) Note: of_probe() routine for battery managed devices is made common across all bm drivers. - test status: - interrupt numbers assigned differs betwe

[RFC] cpufreq: Make sure target freq is within limits

2012-10-24 Thread Viresh Kumar
Hi Rafael, __cpufreq_driver_target() must not pass target frequency beyond the limits of current policy. Today most of cpufreq platform drivers are doing this check in their target routines. Why not move it to __cpufreq_driver_target(). I wanted to get your opinion on this before making changes