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

[Xen-devel] Re: About pit irq

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, 'xen-devel' <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: About pit irq
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 19 Nov 2008 08:18:56 +0000
Cc:
Delivery-date: Wed, 19 Nov 2008 00:19:17 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <0A882F4D99BBF6449D58E61AAFD7EDD601E23B2E@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclJ6rZmkfZkqKK6QNCPP6epkry8AQANMC+d
Thread-topic: About pit irq
User-agent: Microsoft-Entourage/11.4.0.080122
Since the PIT advertises itself as a 32-bit timer, the platform overflow
logic will not trigger every 27ms. More like once an hour.

The issue with PIT is the 16-bit counter overflows within 10s of
milliseconds, and we have non-preemptible periods in Xen of longer than that
(e.g., during domain destruction). If we miss an overflow, time handling
gets totally screwed so we have to deal with PIT in hardirq context, not
softirq. We do it at 10ms because that's what we happen to always program
PIT for. Certainly in this specific case we could program it to tick slower.

 -- Keir

On 19/11/08 02:01, "Tian, Kevin" <kevin.tian@xxxxxxxxx> wrote:

> Currently pit irq is enabled when using pit as clocksource or
> taking pit as broadcast means for deep C-state. I'm curious
> whether pit irq is really required for the 1st case. When pit
> is chosen as clocksource, 10ms periodical pit interrupt converts
> 16 counter into monotonic 32bit stamp, and then ~27ms platform
> overflow timer converts 32bit into 64bit stamp. Is the first
> conversion really necessary? platform overflow timer is chosen
> as 1/2 period, and it looks safe enough to convert from 16bit
> into 64bit stamp directly. Just one special bit to indicate
> whether counter counts down or up.
> 
> Thanks,
> Kevin



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

<Prev in Thread] Current Thread [Next in Thread>