Skip to content

Accurate boot time measurement

Detlev Zundel u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/4] Accurate boot time measurement

Hi Simon,

[...]

Quoted 2 lines

I believe I have covered this ground very thoroughly and would like advice please on what to do next. The options I can see are:

As Graeme points out, you got enough positive feedback that I encourage you to continue and address the comments.

Quoted 2 lines

- change the code to use a fallback when a microsecond timer is not available

Excuse me for not diving into that too deep, but from my top-level overview, it would seem like a good idea that if an architecture _has_ a microsecond timer, it could use generic code to massage that into the HZ=1000 API that we currently use with the addition of offering the extended precision. Your code then would need such a fallback and could work with the best precision offered by the architecture. New architectures with microsecond timers would need to only implement the new microsecond timer infrastructure and be done with it.

I know that this probably ignores much of the reality, but it is as much as I can say with the time that I have available.

As a side-note, I would always suggest looking at how Linux solves similar problems and follow examples set there.

Quoted 1 line

- integrate with boot progress

The current boot progress to me seems pretty ugly and could do with a make-over. So if it is possible to merge those two logical functions, we would have a win-win situation.

Quoted 1 line

- something else? drop it?

No, please don't - I think you created enough interest to carry on.

Cheers
Detlev

Signature · 6 lines
Perfecting oneself is as much unlearning as it is learning. 
                                        -- Edsger Dijkstra 
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de