Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Paul Walmsley
Hi On Fri, 9 Jan 2015, Thierry Reding wrote: > On Fri, Jan 09, 2015 at 01:59:07PM +, Mark Rutland wrote: > > On Fri, Jan 09, 2015 at 09:49:14AM +, Thierry Reding wrote: > > > > > As I understand it the architected timer will be turned off along with > > > the rest of the CPU complex on

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread John Stultz
On Fri, Jan 9, 2015 at 1:43 AM, Thierry Reding wrote: > On Thu, Nov 13, 2014 at 03:21:22PM -0800, John Stultz wrote: >> On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner wrote: >> > On Mon, 10 Nov 2014, Anatol Pomozov wrote: >> >> On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding >> >> wrote: >>

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Thierry Reding
On Fri, Jan 09, 2015 at 01:59:07PM +, Mark Rutland wrote: > On Fri, Jan 09, 2015 at 09:49:14AM +, Thierry Reding wrote: > > On Sat, Nov 15, 2014 at 02:38:00AM +0100, Thomas Gleixner wrote: > > > On Sat, 15 Nov 2014, Thomas Gleixner wrote: > > > > On Fri, 14 Nov 2014, Anatol Pomozov wrote:

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Mark Rutland
On Fri, Jan 09, 2015 at 09:49:14AM +, Thierry Reding wrote: > On Sat, Nov 15, 2014 at 02:38:00AM +0100, Thomas Gleixner wrote: > > On Sat, 15 Nov 2014, Thomas Gleixner wrote: > > > On Fri, 14 Nov 2014, Anatol Pomozov wrote: > > > > On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner > > > >

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Daniel Lezcano
On 11/15/2014 01:51 AM, Anatol Pomozov wrote: Hi On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner wrote: On Fri, 14 Nov 2014, Anatol Pomozov wrote: On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner wrote: On Mon, 10 Nov 2014, Anatol Pomozov wrote: On Mon, Nov 10, 2014 at 1:53 AM, Thierry

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Thierry Reding
On Sat, Nov 15, 2014 at 02:38:00AM +0100, Thomas Gleixner wrote: > On Sat, 15 Nov 2014, Thomas Gleixner wrote: > > On Fri, 14 Nov 2014, Anatol Pomozov wrote: > > > On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner > > > wrote: > > > >> So what I suppose to do with my patch? If it does not work

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Thierry Reding
On Thu, Nov 13, 2014 at 03:21:22PM -0800, John Stultz wrote: > On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner wrote: > > On Mon, 10 Nov 2014, Anatol Pomozov wrote: > >> On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding > >> wrote: > >> > On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Thierry Reding
On Thu, Nov 13, 2014 at 03:21:22PM -0800, John Stultz wrote: On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner t...@linutronix.de wrote: On Mon, 10 Nov 2014, Anatol Pomozov wrote: On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding thierry.red...@gmail.com wrote: On Fri, Nov 07, 2014 at

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Thierry Reding
On Sat, Nov 15, 2014 at 02:38:00AM +0100, Thomas Gleixner wrote: On Sat, 15 Nov 2014, Thomas Gleixner wrote: On Fri, 14 Nov 2014, Anatol Pomozov wrote: On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner t...@linutronix.de wrote: So what I suppose to do with my patch? If it does not

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread John Stultz
On Fri, Jan 9, 2015 at 1:43 AM, Thierry Reding thierry.red...@gmail.com wrote: On Thu, Nov 13, 2014 at 03:21:22PM -0800, John Stultz wrote: On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner t...@linutronix.de wrote: On Mon, 10 Nov 2014, Anatol Pomozov wrote: On Mon, Nov 10, 2014 at 1:53 AM,

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Paul Walmsley
Hi On Fri, 9 Jan 2015, Thierry Reding wrote: On Fri, Jan 09, 2015 at 01:59:07PM +, Mark Rutland wrote: On Fri, Jan 09, 2015 at 09:49:14AM +, Thierry Reding wrote: As I understand it the architected timer will be turned off along with the rest of the CPU complex on Tegra. I'm

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Thierry Reding
On Fri, Jan 09, 2015 at 01:59:07PM +, Mark Rutland wrote: On Fri, Jan 09, 2015 at 09:49:14AM +, Thierry Reding wrote: On Sat, Nov 15, 2014 at 02:38:00AM +0100, Thomas Gleixner wrote: On Sat, 15 Nov 2014, Thomas Gleixner wrote: On Fri, 14 Nov 2014, Anatol Pomozov wrote: On

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Mark Rutland
On Fri, Jan 09, 2015 at 09:49:14AM +, Thierry Reding wrote: On Sat, Nov 15, 2014 at 02:38:00AM +0100, Thomas Gleixner wrote: On Sat, 15 Nov 2014, Thomas Gleixner wrote: On Fri, 14 Nov 2014, Anatol Pomozov wrote: On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner t...@linutronix.de

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2015-01-09 Thread Daniel Lezcano
On 11/15/2014 01:51 AM, Anatol Pomozov wrote: Hi On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner t...@linutronix.de wrote: On Fri, 14 Nov 2014, Anatol Pomozov wrote: On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner t...@linutronix.de wrote: On Mon, 10 Nov 2014, Anatol Pomozov wrote: On

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Thomas Gleixner
On Sat, 15 Nov 2014, Thomas Gleixner wrote: > On Fri, 14 Nov 2014, Anatol Pomozov wrote: > > On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner wrote: > > >> So what I suppose to do with my patch? If it does not work could > > >> anyone provide patch that removes ARM arch dependency from > > >>

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Thomas Gleixner
On Fri, 14 Nov 2014, Anatol Pomozov wrote: > On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner wrote: > >> So what I suppose to do with my patch? If it does not work could > >> anyone provide patch that removes ARM arch dependency from > >> tegra20_timer.c? > > > > Huch? You want other people to

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Stephen Warren
On 11/14/2014 03:03 PM, Anatol Pomozov wrote: Hi On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner wrote: On Mon, 10 Nov 2014, Anatol Pomozov wrote: On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding wrote: On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: ARM timekeeping

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Anatol Pomozov
Hi On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner wrote: > On Fri, 14 Nov 2014, Anatol Pomozov wrote: >> On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner wrote: >> > On Mon, 10 Nov 2014, Anatol Pomozov wrote: >> >> On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding >> >> wrote: >> >> > On Fri,

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Thomas Gleixner
On Fri, 14 Nov 2014, Anatol Pomozov wrote: > On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner wrote: > > On Mon, 10 Nov 2014, Anatol Pomozov wrote: > >> On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding > >> wrote: > >> > On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: > >> >> ARM

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Anatol Pomozov
Hi On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner wrote: > On Mon, 10 Nov 2014, Anatol Pomozov wrote: >> On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding >> wrote: >> > On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: >> >> ARM timekeeping functionality allows to register

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Anatol Pomozov
Hi On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner t...@linutronix.de wrote: On Mon, 10 Nov 2014, Anatol Pomozov wrote: On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding thierry.red...@gmail.com wrote: On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: ARM timekeeping

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Thomas Gleixner
On Fri, 14 Nov 2014, Anatol Pomozov wrote: On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner t...@linutronix.de wrote: On Mon, 10 Nov 2014, Anatol Pomozov wrote: On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding thierry.red...@gmail.com wrote: On Fri, Nov 07, 2014 at 11:34:15AM -0800,

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Anatol Pomozov
Hi On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner t...@linutronix.de wrote: On Fri, 14 Nov 2014, Anatol Pomozov wrote: On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner t...@linutronix.de wrote: On Mon, 10 Nov 2014, Anatol Pomozov wrote: On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Stephen Warren
On 11/14/2014 03:03 PM, Anatol Pomozov wrote: Hi On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner t...@linutronix.de wrote: On Mon, 10 Nov 2014, Anatol Pomozov wrote: On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding thierry.red...@gmail.com wrote: On Fri, Nov 07, 2014 at 11:34:15AM -0800,

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Thomas Gleixner
On Fri, 14 Nov 2014, Anatol Pomozov wrote: On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner t...@linutronix.de wrote: So what I suppose to do with my patch? If it does not work could anyone provide patch that removes ARM arch dependency from tegra20_timer.c? Huch? You want other people

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Thomas Gleixner
On Sat, 15 Nov 2014, Thomas Gleixner wrote: On Fri, 14 Nov 2014, Anatol Pomozov wrote: On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner t...@linutronix.de wrote: So what I suppose to do with my patch? If it does not work could anyone provide patch that removes ARM arch dependency from

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-13 Thread Thomas Gleixner
On Thu, 13 Nov 2014, John Stultz wrote: > On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner wrote: > > Aside of that I really wonder why we need that persistent_clock stuff > > at all. We already have mechanisms to register persistent clocks AKA > > RTCs after the early boot process and update the

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-13 Thread John Stultz
On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner wrote: > On Mon, 10 Nov 2014, Anatol Pomozov wrote: >> On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding >> wrote: >> > On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: >> >> ARM timekeeping functionality allows to register

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-13 Thread Thomas Gleixner
On Mon, 10 Nov 2014, Anatol Pomozov wrote: > On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding > wrote: > > On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: > >> ARM timekeeping functionality allows to register persistent/boot clock > >> dynamically. > >> This code is

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-13 Thread Thomas Gleixner
On Mon, 10 Nov 2014, Anatol Pomozov wrote: On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding thierry.red...@gmail.com wrote: On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: ARM timekeeping functionality allows to register persistent/boot clock dynamically. This code is

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-13 Thread John Stultz
On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner t...@linutronix.de wrote: On Mon, 10 Nov 2014, Anatol Pomozov wrote: On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding thierry.red...@gmail.com wrote: On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: ARM timekeeping functionality

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-13 Thread Thomas Gleixner
On Thu, 13 Nov 2014, John Stultz wrote: On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner t...@linutronix.de wrote: Aside of that I really wonder why we need that persistent_clock stuff at all. We already have mechanisms to register persistent clocks AKA RTCs after the early boot process and

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-10 Thread Anatol Pomozov
Hi On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding wrote: > On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: >> ARM timekeeping functionality allows to register persistent/boot clock >> dynamically. >> This code is arch-independent and can be useful on other plaforms as well. >>

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-10 Thread Thierry Reding
On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: > ARM timekeeping functionality allows to register persistent/boot clock > dynamically. > This code is arch-independent and can be useful on other plaforms as well. > > As a byproduct of this change, tegra20_timer becomes ARM64

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-10 Thread Thierry Reding
On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: ARM timekeeping functionality allows to register persistent/boot clock dynamically. This code is arch-independent and can be useful on other plaforms as well. As a byproduct of this change, tegra20_timer becomes ARM64

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-10 Thread Anatol Pomozov
Hi On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding thierry.red...@gmail.com wrote: On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: ARM timekeeping functionality allows to register persistent/boot clock dynamically. This code is arch-independent and can be useful on other

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-07 Thread Anatol Pomozov
Hi This patch opens possibility for further timekeeping cleanup: read_persistent_clock() is defined as a weak and expected that architecture implement it. The users of this function need to check return value. If it is equal zero then persistent clock is not provided. It looks hacky. It makes

[PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-07 Thread Anatol Pomozov
ARM timekeeping functionality allows to register persistent/boot clock dynamically. This code is arch-independent and can be useful on other plaforms as well. As a byproduct of this change, tegra20_timer becomes ARM64 compatible. Tested: backported the change to chromeos-3.14 kernel ran on

[PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-07 Thread Anatol Pomozov
ARM timekeeping functionality allows to register persistent/boot clock dynamically. This code is arch-independent and can be useful on other plaforms as well. As a byproduct of this change, tegra20_timer becomes ARM64 compatible. Tested: backported the change to chromeos-3.14 kernel ran on

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-07 Thread Anatol Pomozov
Hi This patch opens possibility for further timekeeping cleanup: read_persistent_clock() is defined as a weak and expected that architecture implement it. The users of this function need to check return value. If it is equal zero then persistent clock is not provided. It looks hacky. It makes