Re: [RFC PATCH 17/17] ARM: kernel: save/restore build infrastructure

2011-07-07 Thread Santosh Shilimkar
On 7/7/2011 8:50 AM, Lorenzo Pieralisi wrote: This patch adds the required Kconfig and Makefile entries to enable and compile common idle code for ARM kernel. Common idle code depends on CPU_PM platform notifiers to trigger save/restore of kernel subsystems like PMU, VFP, GIC. Signed-off-by: Lo

Re: [RFC PATCH 14/17] ARM: kernel: save/restore 1:1 page tables

2011-07-07 Thread Santosh Shilimkar
On 7/7/2011 8:50 AM, Lorenzo Pieralisi wrote: This patch adds the code required to allocate and populate page tables that are needed by save/restore code to deal with MMU off/on transactions. MMU is enabled early in the resume path which allows to call into Linux subsystems with init_mm virtual

Re: [RFC PATCH 13/17] ARM: mm: L2x0 save/restore support

2011-07-07 Thread Santosh Shilimkar
On 7/7/2011 8:50 AM, Lorenzo Pieralisi wrote: When the system hits deep low power states the L2 cache controller can lose its internal logic values and possibly its TAG/DATA RAM content. This patch adds save/restore hooks to the L2x0 subsystem to save/restore L2x0 registers and clean/invalidate/

Re: [RFC PATCH 12/17] ARM: kernel: add SCU reset hook

2011-07-07 Thread Santosh Shilimkar
On 7/7/2011 8:50 AM, Lorenzo Pieralisi wrote: When a CLUSTER is powered down the SCU must be reinitialized on warm-boot. This patch adds a hook to reset the SCU, which implies invalidating TAG RAMs and renabling it. The scu virtual address is saved in a static variable when the SCU is first enab

Re: [PATCH 03/17] ARM: gic: Use cpu pm notifiers to save gic state

2011-07-07 Thread Santosh Shilimkar
On 7/7/2011 6:41 PM, Colin Cross wrote: On Thu, Jul 7, 2011 at 6:35 PM, Santosh Shilimkar wrote: On 7/7/2011 8:50 AM, Lorenzo Pieralisi wrote: From: Colin Cross When the cpu is powered down in a low power mode, the gic cpu interface may be reset, and when the cpu complex is powered down, th

Re: [RFC PATCH 06/17] ARM: kernel: save/restore generic infrastructure

2011-07-07 Thread Santosh Shilimkar
On 7/7/2011 8:50 AM, Lorenzo Pieralisi wrote: This patch provides the code infrastructure needed to maintain a generic per-cpu architecture implementation of idle code. sr_platform.c : - code manages patchset initialization and memory management sr_context.c: - code initializes

Re: [RFC PATCH 05/17] ARM: kernel: save/restore kernel IF

2011-07-07 Thread Santosh Shilimkar
On 7/7/2011 8:50 AM, Lorenzo Pieralisi wrote: In order to define a common idle interface for the kernel to enter low power modes, this patch provides include files and code that manages OS calls for low power entry and exit. [] diff --git a/arch/arm/kernel/sr_entry.S b/arch/arm/kernel/sr

Re: [PATCH 03/17] ARM: gic: Use cpu pm notifiers to save gic state

2011-07-07 Thread Santosh Shilimkar
On 7/7/2011 8:50 AM, Lorenzo Pieralisi wrote: From: Colin Cross When the cpu is powered down in a low power mode, the gic cpu interface may be reset, and when the cpu complex is powered down, the gic distributor may also be reset. This patch uses CPU_PM_ENTER and CPU_PM_EXIT notifiers to save a

Re: [PATCH 02/17] ARM: Add cpu power management notifiers

2011-07-07 Thread Santosh Shilimkar
On 7/7/2011 8:50 AM, Lorenzo Pieralisi wrote: From: Colin Cross During some CPU power modes entered during idle, hotplug and suspend, peripherals located in the CPU power domain, such as the GIC and VFP, may be powered down. Add a notifier chain that allows drivers for those peripherals to be n

Re: [PATCH 01/17] ARM: proc: add definition of cpu_reset for ARMv6 and ARMv7 cores

2011-07-07 Thread Santosh Shilimkar
Minor nit, On 7/7/2011 8:50 AM, Lorenzo Pieralisi wrote: From: Will Deacon This patch adds simple definitions of cpu_reset for ARMv6 and ARMv7 cores, which disable the MMU via the SCTLR. Signed-off-by: Will Deacon --- arch/arm/mm/proc-v6.S |5 + arch/arm/mm/proc-v7.S |7 +++

Re: linaro-android-3.0 git tree is up!

2011-07-07 Thread john stultz
On Thu, 2011-07-07 at 16:52 -0700, john stultz wrote: > On Thu, 2011-07-07 at 16:48 -0700, john stultz wrote: > > Known issues: > > - > > o The ADB code has changed in 3.0, and requires some commands from > > userland at boot in order to be enabled. See bug #807230 for details. > > > >

Re: linaro-android-3.0 git tree is up!

2011-07-07 Thread john stultz
On Thu, 2011-07-07 at 16:48 -0700, john stultz wrote: > Known issues: > - > o The ADB code has changed in 3.0, and requires some commands from > userland at boot in order to be enabled. See bug #807230 for details. > > o EDID isn't yet working, so to get graphics on pandaboard, I neede

linaro-android-3.0 git tree is up!

2011-07-07 Thread john stultz
I've just pushed a 3.0 based branch to the Linaro+Android git tree, which can be found here: git://git.linaro.org/people/jstultz/android.git linaro-android-3.0 See the revision log here: http://git.linaro.org/gitweb?p=people/jstultz/android.git;a=shortlog;h=refs/heads/linaro-android-3.0 At the m

Re: Usefulness of GCC's 64bit __sync_* ops on ARM

2011-07-07 Thread David Gilbert
On 5 July 2011 15:49, Dave Martin wrote: > On Fri, Jul 1, 2011 at 6:10 PM, David Gilbert > wrote: >> Hi All, >>  I've just submitted the patches for the 64 bit atomic stuff to the >> gcc-patches list. >> Richard Henderson has raised the question of why the ARM commpage isn't a >> full >> VDSO a

Re: Launch Control to LAVA migration script

2011-07-07 Thread Michael Hudson-Doyle
On Wed, 06 Jul 2011 22:45:53 +0200, Zygmunt Krynicki wrote: > Hi folks. > > I wrote this script that allows one to upgrade from l-c to > lava-dashboard. The script is interactive due to debconf which we are > currently stuck with. I tested it in several configurations on a > snapshot of l-c 0

Re: trouble with should-be-bootable SD cards and kernel versions

2011-07-07 Thread AJ ONeal
Confirmed: the combination of a linaro-2.6.39 kernel with a transcend 8gb card results in flakey boots. - linaro-2.6.39 kernel is affected - transcend cards are affected - oe-2.6.36 kernel is *not* affected - sandisk 8gb cards are *not* affected (67 megabytes smaller) I zero'd a card,

Re: [RFC PATCH 16/17] ARM: PM: enhance idle pm notifiers

2011-07-07 Thread Colin Cross
adding Rafael, since he was interested in cpu_pm notifiers. On Thu, Jul 7, 2011 at 8:50 AM, Lorenzo Pieralisi wrote: > This patch adds notifiers to manage low-power entry/exit in a platform > independent manner through a series of callbacks. > The goal is to enhance CPU specific notifiers with a

Re: [RFC PATCH 13/17] ARM: mm: L2x0 save/restore support

2011-07-07 Thread Colin Cross
On Thu, Jul 7, 2011 at 8:50 AM, Lorenzo Pieralisi wrote: > When the system hits deep low power states the L2 cache controller > can lose its internal logic values and possibly its TAG/DATA RAM content. > > This patch adds save/restore hooks to the L2x0 subsystem to save/restore > L2x0 registers an

Re: Customization of Gerrit for Android

2011-07-07 Thread Paul Sokolovsky
On Fri, 24 Jun 2011 16:05:04 -0400 James Westby wrote: > Everyone can now go to android.git.linaro.org and login by entering > your LP profile URL, e.g. > > https://launchpad.net/~james-w I keep forgetting this myself, so here's what James told me on IRC: the correct OpenID URL to use for log

Re: [RFC PATCH 00/17] ARM: common idle infrastructure

2011-07-07 Thread Russell King - ARM Linux
On Thu, Jul 07, 2011 at 04:50:13PM +0100, Lorenzo Pieralisi wrote: > This patchset is a first attempt at providing a consolidation of idle > code for the ARM processor architecture and a request for comment on > the provided methodology. > It relies and it is based on kernel features such as suspen

Linaro 11.05 weekly testing 2011-07-07

2011-07-07 Thread Fathi Boudra
LEBs images on their way to the next release: 11.07. * Android: http://snapshots.linaro.org/11.05-daily/linaro-android/leb-panda/20110707/ * Ubuntu: http://snapshots.linaro.org/11.05-daily/linaro-ubuntu-desktop/20110707/0/images/tar/ http://snapshots.linaro.org/11.05-daily/linaro-hwpacks

[RFC PATCH 09/17] ARM: kernel: v7 resets support

2011-07-07 Thread Lorenzo Pieralisi
This patch provides reset entry point for A9, A8, A5 processors. The reset functions invalidate I$ and D$ depending on the processor needs and jump to the save/restore entry point in sr_entry.S. The reset address is obtained through the arch_reset_handler() function that returns a function pointe

[RFC PATCH 07/17] ARM: kernel: save/restore v7 assembly helpers

2011-07-07 Thread Lorenzo Pieralisi
This patch provides v7 assembly functions to disable-clean-invalidate D$ and programme the SCU CPU power status register. The function to disable/clean/invalidate D$ is just a shim that clears the C bit and jump to the respective function defined in proc info. SCU CPU power mode is there to progr

[RFC PATCH 13/17] ARM: mm: L2x0 save/restore support

2011-07-07 Thread Lorenzo Pieralisi
When the system hits deep low power states the L2 cache controller can lose its internal logic values and possibly its TAG/DATA RAM content. This patch adds save/restore hooks to the L2x0 subsystem to save/restore L2x0 registers and clean/invalidate/disable the cache controller as needed. The cac

[RFC PATCH 12/17] ARM: kernel: add SCU reset hook

2011-07-07 Thread Lorenzo Pieralisi
When a CLUSTER is powered down the SCU must be reinitialized on warm-boot. This patch adds a hook to reset the SCU, which implies invalidating TAG RAMs and renabling it. The scu virtual address is saved in a static variable when the SCU is first enabled at boot; this allows common idle code to be

[RFC PATCH 17/17] ARM: kernel: save/restore build infrastructure

2011-07-07 Thread Lorenzo Pieralisi
This patch adds the required Kconfig and Makefile entries to enable and compile common idle code for ARM kernel. Common idle code depends on CPU_PM platform notifiers to trigger save/restore of kernel subsystems like PMU, VFP, GIC. Signed-off-by: Lorenzo Pieralisi --- arch/arm/Kconfig |

[RFC PATCH 15/17] ARM: perf: use cpu pm notifiers to save pmu state

2011-07-07 Thread Lorenzo Pieralisi
This patch integrates the new PM notifier chain into the perf driver and provides code to execute proper callbacks when a CPU is powered down/up. Since PMU registers are saved/restored on context switch a simple enable/disable of PMU is enough to enter/exit lowpower. v7 requires the counters to be

[RFC PATCH 16/17] ARM: PM: enhance idle pm notifiers

2011-07-07 Thread Lorenzo Pieralisi
This patch adds notifiers to manage low-power entry/exit in a platform independent manner through a series of callbacks. The goal is to enhance CPU specific notifiers with a different notifier chain that executes callbacks defined to put the system into low-power states (C-state). The callback must

[RFC PATCH 14/17] ARM: kernel: save/restore 1:1 page tables

2011-07-07 Thread Lorenzo Pieralisi
This patch adds the code required to allocate and populate page tables that are needed by save/restore code to deal with MMU off/on transactions. MMU is enabled early in the resume path which allows to call into Linux subsystems with init_mm virtual mappings (cloned at boot). Current thread page

[RFC PATCH 11/17] ARM: kernel: add support for Lamport's bakery locks

2011-07-07 Thread Lorenzo Pieralisi
NOTE: This toy locking algorithm is there waiting for a warm-boot protocol to be defined for ARM SMP platforms. It is there to prevent races that will never show up in real platforms (ie multiple CPUs coming out of low-power at once from cluster shutdown with no HW/SW control so that they might try

[RFC PATCH 10/17] ARM: kernel: save/restore v7 infrastructure support

2011-07-07 Thread Lorenzo Pieralisi
This patch provides all the functions required to manage platform initialization, context save/restore and power entry/exit for A9, A8, A5 ARM processors. It builds on the infrastructure laid out by the patchset and aims at keeping all v7 code in one single place. The code relies on common suspen

[RFC PATCH 08/17] ARM: kernel: save/restore arch runtime support

2011-07-07 Thread Lorenzo Pieralisi
This patch introduces a simple infrastructure to initialize save/restore at run-time depending on the HW processor id. It defines an array of structures containing function pointers that can be called to manage low power state. The arch pointer is initialized at run-time in lookup_arch() on id ma

[RFC PATCH 05/17] ARM: kernel: save/restore kernel IF

2011-07-07 Thread Lorenzo Pieralisi
In order to define a common idle interface for the kernel to enter low power modes, this patch provides include files and code that manages OS calls for low power entry and exit. In ARM world processor HW is categorized as CPU and Cluster. Corresponding states defined by this common IF are: C-st

[RFC PATCH 06/17] ARM: kernel: save/restore generic infrastructure

2011-07-07 Thread Lorenzo Pieralisi
This patch provides the code infrastructure needed to maintain a generic per-cpu architecture implementation of idle code. sr_platform.c : - code manages patchset initialization and memory management sr_context.c: - code initializes run-time context save/restore generic

[PATCH 04/17] ARM: vfp: Use cpu pm notifiers to save vfp state

2011-07-07 Thread Lorenzo Pieralisi
From: Colin Cross When the cpu is powered down in a low power mode, the vfp registers may be reset. This patch uses CPU_PM_ENTER and CPU_PM_EXIT notifiers to save and restore the cpu's vfp registers. Signed-off-by: Colin Cross --- arch/arm/vfp/vfpmodule.c | 40 ++

[PATCH 02/17] ARM: Add cpu power management notifiers

2011-07-07 Thread Lorenzo Pieralisi
From: Colin Cross During some CPU power modes entered during idle, hotplug and suspend, peripherals located in the CPU power domain, such as the GIC and VFP, may be powered down. Add a notifier chain that allows drivers for those peripherals to be notified before and after they may be reset. Si

[PATCH 01/17] ARM: proc: add definition of cpu_reset for ARMv6 and ARMv7 cores

2011-07-07 Thread Lorenzo Pieralisi
From: Will Deacon This patch adds simple definitions of cpu_reset for ARMv6 and ARMv7 cores, which disable the MMU via the SCTLR. Signed-off-by: Will Deacon --- arch/arm/mm/proc-v6.S |5 + arch/arm/mm/proc-v7.S |7 +++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --g

[RFC PATCH 00/17] ARM: common idle infrastructure

2011-07-07 Thread Lorenzo Pieralisi
This patchset is a first attempt at providing a consolidation of idle code for the ARM processor architecture and a request for comment on the provided methodology. It relies and it is based on kernel features such as suspend/resume, pm notifiers and common code for cpu_reset(). It integrates late

[PATCH 03/17] ARM: gic: Use cpu pm notifiers to save gic state

2011-07-07 Thread Lorenzo Pieralisi
From: Colin Cross When the cpu is powered down in a low power mode, the gic cpu interface may be reset, and when the cpu complex is powered down, the gic distributor may also be reset. This patch uses CPU_PM_ENTER and CPU_PM_EXIT notifiers to save and restore the gic cpu interface registers, and

Re: Jenkins upgrade on android-build

2011-07-07 Thread Paul Sokolovsky
Hello, Jenkins upgrade to 1.419 went well, downtime was ~5mins, few builds after that went ok. Let me know if you notice anything suspicious. On Tue, 5 Jul 2011 16:39:26 +0300 Paul Sokolovsky wrote: > Hello, > > I'd like to upgrade Jenkins on the production to be close to sandboxes > (which a

Re: 3.0 kernel Android wakelocks and mmc delayed work

2011-07-07 Thread Kan-Ru Chen
Andy Green writes: >>> They have a single wakelock to cover delayed work in there, however >>> there are multiple delayed works possible to be queued, eg delayed >>> disable and delayed detect actions, and although they wrap scheduling >>> the delayed work to also lock the wakelock, they don't wr

Re: 3.0 kernel Android wakelocks and mmc delayed work

2011-07-07 Thread Andy Green
On 07/07/2011 10:43 AM, Somebody in the thread at some point said: Not certain you meant this by "handled immediately" but to be clear cancel_delayed_work() deletes the timer that creates the delay, and stops the work ever from being executed. In that case the wakelock will be left locked with

Re: Jenkins upgrade on android-build

2011-07-07 Thread Paul Sokolovsky
Hello Michael, On Thu, 07 Jul 2011 09:36:38 +1200 Michael Hudson-Doyle wrote: > On Wed, 06 Jul 2011 15:26:57 -0400, James Westby > wrote: > > On Wed, 6 Jul 2011 22:00:24 +0300, Paul Sokolovsky > > wrote: > > > It would be better just to upgrade regularly, > > > because there're indeed nice fix

Re: 3.0 kernel Android wakelocks and mmc delayed work

2011-07-07 Thread Andy Green
On 07/07/2011 09:37 AM, Somebody in the thread at some point said: Hi Kan-Ru - They have a single wakelock to cover delayed work in there, however there are multiple delayed works possible to be queued, eg delayed disable and delayed detect actions, and although they wrap scheduling the delayed

Re: 3.0 kernel Android wakelocks and mmc delayed work

2011-07-07 Thread Kan-Ru Chen
Hi Andy, Andy Green writes: > Hi - > > Yesterday I studied suspend status on 3.0 kernel for Panda, for mem > suspend it's working pretty well in Ubuntu case, desktop is coming > back up woken by USB keyboard action, WLAN is workable after > reassociation. > > However in Android case, the same tr