WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: (progress on hpet accuracy) and Re: [Xen-devel] [PATCH] Add a timer

To: Dave Winchell <dwinchell@xxxxxxxxxxxxxxx>
Subject: Re: (progress on hpet accuracy) and Re: [Xen-devel] [PATCH] Add a timer mode that disables pending missed ticks
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 05 Mar 2008 17:21:09 +0000
Cc: "dan.magenheimer@xxxxxxxxxx" <dan.magenheimer@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Deepak Patel <deepak.patel@xxxxxxxxxx>
Delivery-date: Tue, 11 Mar 2008 11:04:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47CED784.3090403@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ach+5U1Ti/tfXurYEdyBAAAX8io7RQ==
Thread-topic: (progress on hpet accuracy) and Re: [Xen-devel] [PATCH] Add a timer mode that disables pending missed ticks
User-agent: Microsoft-Entourage/11.4.0.080122
On 5/3/08 17:25, "Dave Winchell" <dwinchell@xxxxxxxxxxxxxxx> wrote:

> In 2.6.9, it looks like cur_timer->mark_offset() call from
> timer_interrupt in
> 32 bit arch/i386/kernel/time.c invokes, for hpet, mark_offset_hpet(),
> which computes
> missed ticks based on hpet counter. mark_offset_pit() does nothing.
> mark_offset_tsc() does compute missed ticks.
> 
> In 64 bit 2.6.9, the timer_interrupt() in arch/x86_64/time.c does hpet
> reads directly HPET_T0_CMP, HPET_COUNTER to calculate missed ticks.
> 
> So from the code perspective, it looks like missed ticks are computed
> for 32
> and 64 bit Linux using hpet clocksource.

Ah. I looked at 2.6.18 which seems to have neither the mark_offset nor the
GENERIC_TIME approach in its arch/i386 time code. But yeah, it does look
like in general Linux 2.6 is robust to missed ticks when using hpet. That's
good.

Do you see and simply ignore warning messages from 64-bit Linux when using
hpet (or otherwise not doing missed-tick handling in Xen), by the way? I
know 64-bit Linux is keen to warn about missed ticks, although it does look
like at least the warning is one shot.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel