Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1607564
| From | Pasha Tatashin <pasha.tatashin@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [v1 0/9] Early boot time stamps for x86 |
| Date | 2017-03-23 15:50 +0100 |
| Message-ID | <tocdP-3va-15@gated-at.bofh.it> (permalink) |
| References | <tnUTE-85w-19@gated-at.bofh.it> <tnVcZ-8hP-11@gated-at.bofh.it> <tnYue-2mn-11@gated-at.bofh.it> <to8Dg-14F-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Thomas, Thank you very much for looking at this patchset. Comments below: On 03/23/2017 06:56 AM, Thomas Gleixner wrote: > On Wed, 22 Mar 2017, Pasha Tatashin wrote: >> Yes, I am certain it is 0 or near 0 on reset on this machine. Because, I > > Emphasis on "this machine' > > It's not guaranteed especially not on reboot and not with creative BIOSes > fiddling with the TSC_ADJUST value. > > - It CANNOT be used to measure BIOS boot time reliably Yes, understood, I will remove comment about BIOS time from the next cover letter. However, I think the pr_info() with offset is still useful at least for those whose BIOS does not alter TSC_ADJUST, also it is consisten with every other clocksource in linux where offset is printed in pr_info(). From Intel PRM 2016/12: The time-stamp counter (as implemented in the P6 family, Pentium, Pentium M, Pentium 4, Intel Xeon, Intel Core Solo and Intel Core Duo processors and later processors) is a 64-bit counter that is set to 0 following a RESET of the processor Since early boot time stamps feature target processors that are later than "Pentium 4" because invariant TSC flag is checked, it is safe to assume that offset is going to be valid on power-on if TSC_ADJUST was not altered > > - If BIOS wreckaged TSC_ADJUST, then your whole time stamping goes out the > window once the kernel sanitized it. I will add a condition to tsc_early_init() to check for TSC_ADJUST if it is not 0, disable early TSC feature. Does this sound OK? Thank you, Pasha
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[v1 0/9] Early boot time stamps for x86 Pavel Tatashin <pasha.tatashin@oracle.com> - 2017-03-22 21:30 +0100
[v1 5/9] x86/tsc: disable early messages from quick_pit_calibrate Pavel Tatashin <pasha.tatashin@oracle.com> - 2017-03-22 21:30 +0100
Re: [v1 0/9] Early boot time stamps for x86 Peter Zijlstra <peterz@infradead.org> - 2017-03-22 21:40 +0100
Re: [v1 0/9] Early boot time stamps for x86 Pasha Tatashin <pasha.tatashin@oracle.com> - 2017-03-23 01:10 +0100
Re: [v1 0/9] Early boot time stamps for x86 Peter Zijlstra <peterz@infradead.org> - 2017-03-22 21:40 +0100
Re: [v1 0/9] Early boot time stamps for x86 Pasha Tatashin <pasha.tatashin@oracle.com> - 2017-03-23 01:10 +0100
Re: [v1 0/9] Early boot time stamps for x86 Thomas Gleixner <tglx@linutronix.de> - 2017-03-23 12:00 +0100
Re: [v1 0/9] Early boot time stamps for x86 Pasha Tatashin <pasha.tatashin@oracle.com> - 2017-03-23 15:50 +0100
Re: [v1 0/9] Early boot time stamps for x86 Thomas Gleixner <tglx@linutronix.de> - 2017-03-23 19:50 +0100
csiph-web