Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-11-01 Thread Tom Rini
On Tue, Oct 15, 2019 at 10:43:41PM +0200, Marek Vasut wrote: > Add get_timer_us(), which is useful e.g. when we need higher > precision timestamps. > > Signed-off-by: Marek Vasut > Cc: Tom Rini > Cc: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signa

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 7:51 PM, Eugeniu Rosca wrote: > On Wed, Oct 16, 2019 at 07:43:09PM +0200, Eugeniu Rosca wrote: >> On Wed, Oct 16, 2019 at 07:26:44PM +0200, Marek Vasut wrote: >>> On 10/16/19 7:11 PM, Eugeniu Rosca wrote: On Tue, Oct 15, 2019 at 10:43:41PM +0200, Marek Vasut wrote: > Add get_ti

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Eugeniu Rosca
On Wed, Oct 16, 2019 at 07:43:09PM +0200, Eugeniu Rosca wrote: > On Wed, Oct 16, 2019 at 07:26:44PM +0200, Marek Vasut wrote: > > On 10/16/19 7:11 PM, Eugeniu Rosca wrote: > > > On Tue, Oct 15, 2019 at 10:43:41PM +0200, Marek Vasut wrote: > > >> Add get_timer_us(), which is useful e.g. when we need

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Eugeniu Rosca
On Wed, Oct 16, 2019 at 07:26:44PM +0200, Marek Vasut wrote: > On 10/16/19 7:11 PM, Eugeniu Rosca wrote: > > On Tue, Oct 15, 2019 at 10:43:41PM +0200, Marek Vasut wrote: > >> Add get_timer_us(), which is useful e.g. when we need higher > >> precision timestamps. > > > > FWIW, I agree with Simon th

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 7:11 PM, Eugeniu Rosca wrote: > On Tue, Oct 15, 2019 at 10:43:41PM +0200, Marek Vasut wrote: >> Add get_timer_us(), which is useful e.g. when we need higher >> precision timestamps. > > FWIW, I agree with Simon that bootstage [1] can be an awesome tool for > profiling and boot time mea

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Eugeniu Rosca
On Tue, Oct 15, 2019 at 10:43:41PM +0200, Marek Vasut wrote: > Add get_timer_us(), which is useful e.g. when we need higher > precision timestamps. > > Signed-off-by: Marek Vasut > Cc: Tom Rini > Cc: Simon Glass FWIW, I agree with Simon that bootstage [1] can be an awesome tool for profiling a

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 6:58 PM, Simon Glass wrote: [...] >>> Have you tried bootstage? >> >> What for ? I need to debug the EHCI driver performance across the EHCI >> driver and USB storage implementation. Bootstage is not helpful here. > > It can track the time spent in particular parts of the code, > accum

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Simon Glass
Hi Marek, On Wed, 16 Oct 2019 at 10:55, Marek Vasut wrote: > > On 10/16/19 6:54 PM, Simon Glass wrote: > > Hi Marek, > > Hello Simon, > > > On Wed, 16 Oct 2019 at 10:44, Marek Vasut wrote: > >> > >> On 10/16/19 6:40 PM, Simon Glass wrote: > >>> Hi Marek, > >> > >> Hi, > >> > >>> On Wed, 16 Oct 20

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 6:54 PM, Simon Glass wrote: > Hi Marek, Hello Simon, > On Wed, 16 Oct 2019 at 10:44, Marek Vasut wrote: >> >> On 10/16/19 6:40 PM, Simon Glass wrote: >>> Hi Marek, >> >> Hi, >> >>> On Wed, 16 Oct 2019 at 02:55, Marek Vasut wrote: On 10/16/19 3:30 AM, Simon Glass wrote: >

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Simon Glass
Hi Marek, On Wed, 16 Oct 2019 at 10:44, Marek Vasut wrote: > > On 10/16/19 6:40 PM, Simon Glass wrote: > > Hi Marek, > > Hi, > > > On Wed, 16 Oct 2019 at 02:55, Marek Vasut wrote: > >> > >> On 10/16/19 3:30 AM, Simon Glass wrote: > >>> Hi Marek, > >> > >> Hi, > >> > >>> On Tue, 15 Oct 2019 at 14:

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 6:40 PM, Simon Glass wrote: > Hi Marek, Hi, > On Wed, 16 Oct 2019 at 02:55, Marek Vasut wrote: >> >> On 10/16/19 3:30 AM, Simon Glass wrote: >>> Hi Marek, >> >> Hi, >> >>> On Tue, 15 Oct 2019 at 14:43, Marek Vasut wrote: Add get_timer_us(), which is useful e.g. when we need

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Simon Glass
Hi Marek, On Wed, 16 Oct 2019 at 02:55, Marek Vasut wrote: > > On 10/16/19 3:30 AM, Simon Glass wrote: > > Hi Marek, > > Hi, > > > On Tue, 15 Oct 2019 at 14:43, Marek Vasut wrote: > >> > >> Add get_timer_us(), which is useful e.g. when we need higher > >> precision timestamps. > > > > Can we use

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 3:30 AM, Simon Glass wrote: > Hi Marek, Hi, > On Tue, 15 Oct 2019 at 14:43, Marek Vasut wrote: >> >> Add get_timer_us(), which is useful e.g. when we need higher >> precision timestamps. > > Can we use timer_get_us()? It seems confusing to have two. Nope, that one doesn't have the r

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-15 Thread Simon Glass
Hi Marek, On Tue, 15 Oct 2019 at 14:43, Marek Vasut wrote: > > Add get_timer_us(), which is useful e.g. when we need higher > precision timestamps. Can we use timer_get_us()? It seems confusing to have two. > > Signed-off-by: Marek Vasut > Cc: Tom Rini > Cc: Simon Glass > --- > include/time

[U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-15 Thread Marek Vasut
Add get_timer_us(), which is useful e.g. when we need higher precision timestamps. Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Simon Glass --- include/time.h | 1 + lib/time.c | 14 ++ 2 files changed, 15 insertions(+) diff --git a/include/time.h b/include/time.h index 1e9b36