Re: [PATCH] High resolution time/TSC patch v3

2008-08-05 Thread Robert Millan
On Tue, Aug 05, 2008 at 01:59:28PM +0200, Marco Gerards wrote: > Hi Colin, > > Colin D Bennett <[EMAIL PROTECTED]> writes: > > > Another updated TSC patch. Now it detects TSC support for x86 CPUs at > > runtime and selects either the TSC or RTC time source. This way 386 > > and 486 CPUs without

Re: [PATCH] High resolution time/TSC patch v3

2008-08-05 Thread Marco Gerards
Hi Colin, Colin D Bennett <[EMAIL PROTECTED]> writes: > Another updated TSC patch. Now it detects TSC support for x86 CPUs at > runtime and selects either the TSC or RTC time source. This way 386 > and 486 CPUs without RDTSC instruction support are supported. > > Robert Millan was interested in

Re: TSC on coreboot (Re: [PATCH] High resolution time/TSC patch v3)

2008-08-04 Thread Marco Gerards
Hi Robert, Robert Millan <[EMAIL PROTECTED]> writes: You forgot the changelog entry :-) > On Sun, Aug 03, 2008 at 09:48:16PM +0200, Robert Millan wrote: >> On Mon, Jul 28, 2008 at 10:05:33AM -0700, Colin D Bennett wrote: >> > +/* Calibrate the TSC based on the RTC. */ >> > +static void >> > +ca

Re: TSC on coreboot (Re: [PATCH] High resolution time/TSC patch v3)

2008-08-04 Thread Robert Millan
On Sun, Aug 03, 2008 at 07:14:29PM -0700, Colin D Bennett wrote: > > > > Note: AFAICT we can't calculate the epoch without RTC. But then > > again, this epoch is just as defined by the time BIOS enables RTC > > interrupts, so why not define it ourselves? I propose that we define > > epoch as th

Re: TSC on coreboot (Re: [PATCH] High resolution time/TSC patch v3)

2008-08-03 Thread Colin D Bennett
On Mon, 4 Aug 2008 01:53:48 +0200 Robert Millan <[EMAIL PROTECTED]> wrote: > On Sun, Aug 03, 2008 at 09:48:16PM +0200, Robert Millan wrote: > > On Mon, Jul 28, 2008 at 10:05:33AM -0700, Colin D Bennett wrote: > > > +/* Calibrate the TSC based on the RTC. */ > > > +static void > > > +calibrate_tsc

TSC on coreboot (Re: [PATCH] High resolution time/TSC patch v3)

2008-08-03 Thread Robert Millan
On Sun, Aug 03, 2008 at 09:48:16PM +0200, Robert Millan wrote: > On Mon, Jul 28, 2008 at 10:05:33AM -0700, Colin D Bennett wrote: > > +/* Calibrate the TSC based on the RTC. */ > > +static void > > +calibrate_tsc (void) > > +{ > > + /* First calbrate the TSC rate (relative, not absolute time). */

Re: [PATCH] High resolution time/TSC patch v3

2008-08-03 Thread Robert Millan
On Mon, Jul 28, 2008 at 10:05:33AM -0700, Colin D Bennett wrote: > +/* Calibrate the TSC based on the RTC. */ > +static void > +calibrate_tsc (void) > +{ > + /* First calbrate the TSC rate (relative, not absolute time). */ > + grub_uint64_t start_tsc; > + grub_uint64_t end_tsc; > + grub_uint32

Re: [PATCH] High resolution time/TSC patch v3

2008-07-31 Thread Robert Millan
On Thu, Jul 31, 2008 at 10:07:46PM +0200, Marco Gerards wrote: > Robert Millan <[EMAIL PROTECTED]> writes: > > > On Thu, Jul 31, 2008 at 09:08:31PM +0200, Marco Gerards wrote: > >> Colin D Bennett <[EMAIL PROTECTED]> writes: > >> > >> > Another updated TSC patch. Now it detects TSC support for x

Re: [PATCH] High resolution time/TSC patch v3

2008-07-31 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: > On Thu, Jul 31, 2008 at 09:08:31PM +0200, Marco Gerards wrote: >> Colin D Bennett <[EMAIL PROTECTED]> writes: >> >> > Another updated TSC patch. Now it detects TSC support for x86 CPUs at >> > runtime and selects either the TSC or RTC time source. Thi

Re: [PATCH] High resolution time/TSC patch v3

2008-07-31 Thread Robert Millan
On Thu, Jul 31, 2008 at 09:08:31PM +0200, Marco Gerards wrote: > Colin D Bennett <[EMAIL PROTECTED]> writes: > > > Another updated TSC patch. Now it detects TSC support for x86 CPUs at > > runtime and selects either the TSC or RTC time source. This way 386 > > and 486 CPUs without RDTSC instruct

Re: [PATCH] High resolution time/TSC patch v3

2008-07-31 Thread Marco Gerards
Colin D Bennett <[EMAIL PROTECTED]> writes: > Another updated TSC patch. Now it detects TSC support for x86 CPUs at > runtime and selects either the TSC or RTC time source. This way 386 > and 486 CPUs without RDTSC instruction support are supported. > > Robert Millan was interested in getting th

Re: [PATCH] High resolution time/TSC patch v3

2008-07-28 Thread Robert Millan
On Mon, Jul 28, 2008 at 10:05:33AM -0700, Colin D Bennett wrote: > Another updated TSC patch. Now it detects TSC support for x86 CPUs at > runtime and selects either the TSC or RTC time source. This way 386 > and 486 CPUs without RDTSC instruction support are supported. > > Robert Millan was int

[PATCH] High resolution time/TSC patch v3

2008-07-28 Thread Colin D Bennett
Another updated TSC patch. Now it detects TSC support for x86 CPUs at runtime and selects either the TSC or RTC time source. This way 386 and 486 CPUs without RDTSC instruction support are supported. Robert Millan was interested in getting this patch merged for the Coreboot port, so I decided to