Re: [PATCH] Use UEFI Time Service to calibrate TSC

2015-11-12 Thread Michael Chang
On Thu, Nov 12, 2015 at 11:52:24AM +0300, Andrei Borzenkov wrote: > On Thu, Nov 12, 2015 at 10:34 AM, Michael Chang wrote: > > On Mon, Nov 09, 2015 at 03:21:37PM +0100, Vladimir 'φ-coder/phcoder' > > Serbinenko wrote: > >> On 09.11.2015 14:23, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > >> > O

Re: [PATCH] Use UEFI Time Service to calibrate TSC

2015-11-12 Thread Andrei Borzenkov
On Thu, Nov 12, 2015 at 10:34 AM, Michael Chang wrote: > On Mon, Nov 09, 2015 at 03:21:37PM +0100, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: >> On 09.11.2015 14:23, Vladimir 'φ-coder/phcoder' Serbinenko wrote: >> > On 09.11.2015 09:03, Michael Chang wrote: > >> Attached proof-of-concept. It'

Re: [PATCH] Use UEFI Time Service to calibrate TSC

2015-11-11 Thread Michael Chang
On Mon, Nov 09, 2015 at 03:21:37PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 09.11.2015 14:23, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > On 09.11.2015 09:03, Michael Chang wrote: > Attached proof-of-concept. It's all in one file but different methods > should probably go in

Re: [PATCH] Use UEFI Time Service to calibrate TSC

2015-11-09 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 09.11.2015 14:23, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 09.11.2015 09:03, Michael Chang wrote: >> On Mon, Nov 09, 2015 at 10:29:55AM +0300, Andrei Borzenkov wrote: >>> On Mon, Nov 9, 2015 at 10:07 AM, Michael Chang wrote: This patch tries to detect PIT timer is broken and use U

Re: [PATCH] Use UEFI Time Service to calibrate TSC

2015-11-09 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 09.11.2015 09:03, Michael Chang wrote: > On Mon, Nov 09, 2015 at 10:29:55AM +0300, Andrei Borzenkov wrote: >> On Mon, Nov 9, 2015 at 10:07 AM, Michael Chang wrote: >>> This patch tries to detect PIT timer is broken and use UEFI Time Service >>> to calibrate TSC. >> >> Second try :) >> >> https:

Re: [PATCH] Use UEFI Time Service to calibrate TSC

2015-11-09 Thread Michael Chang
On Mon, Nov 09, 2015 at 10:29:55AM +0300, Andrei Borzenkov wrote: > On Mon, Nov 9, 2015 at 10:07 AM, Michael Chang wrote: > > This patch tries to detect PIT timer is broken and use UEFI Time Service > > to calibrate TSC. > > Second try :) > > https://lists.gnu.org/archive/html/grub-devel/2014-11

Re: [PATCH] Use UEFI Time Service to calibrate TSC

2015-11-08 Thread Andrei Borzenkov
On Mon, Nov 9, 2015 at 10:07 AM, Michael Chang wrote: > This patch tries to detect PIT timer is broken and use UEFI Time Service > to calibrate TSC. Second try :) https://lists.gnu.org/archive/html/grub-devel/2014-11/msg00079.html Although I think that this one is acceptable - it is used as fal

[PATCH] Use UEFI Time Service to calibrate TSC

2015-11-08 Thread Michael Chang
This patch tries to detect PIT timer is broken and use UEFI Time Service to calibrate TSC. --- grub-core/kern/i386/tsc.c | 33 + 1 files changed, 29 insertions(+), 4 deletions(-) diff --git a/grub-core/kern/i386/tsc.c b/grub-core/kern/i386/tsc.c index bc441d0..bd