| To: | "Wei, Gang" <gang.wei@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [Xen-devel] [PATCH 2/4] CPUIDLE: Avoid remnant LAPIC timer intr while force hpetbroadcast |
| From: | Keir Fraser <keir.fraser@xxxxxxxxxxxxx> |
| Date: | 2008年9月11日 11:38:19 +0100 |
| Cc: | |
| Delivery-date: | 2008年9月11日 03:38:49 -0700 |
| Envelope-to: | www-data@xxxxxxxxxxxxxxxxxxx |
| In-reply-to: | <8FED46E8A9CA574792FC7AACAC38FE7701ACD18DCE@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: | AckSVfqaFjPrXqrARTKdgjxn6iTeJQA2DOERAAhrdiAAKqlasQ== |
| Thread-topic: | [Xen-devel] [PATCH 2/4] CPUIDLE: Avoid remnant LAPIC timer intr while force hpetbroadcast |
| User-agent: | Microsoft-Entourage/11.4.0.080122 |
On 10/9/08 15:25, "Wei, Gang" <gang.wei@xxxxxxxxx> wrote: >> It's not clear to me the disable/enable_LAPIC_timer() work is worthwhile for >> the few timer interrupts it is likely to avoid. The other bit of the patch >> is a good bugfix though. I've taken just the latter part. > > Thanks for accept most of these patches. As to disable/enable_LAPIC_timer(), I > add them because some platforms require the LAPIC timer intr being disabled > before entering C3, otherwise there may be some unexpected things. As a > reference, Linux kernel always do so. Can you point out where Linux does so? It's not obvious to me. Also, in your patch, you unmask LVTT after reprogramming the LAPIC counter. Isn't there a race where the LAPIC timer generates an interrupt event before you unmask the LVTT and hence you lose the interrupt (since I assume the LAPIC interrupt is basically an internal one-shot signal which does not get latched in any way)? So you'd probably need to reprogram_timer(0), then enable the timer, then reprogram_timer(<actual value>). -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
| Previous by Date: | Re: [Xen-devel] XEN Hypervisor Lines Of Code , Keir Fraser |
|---|---|
| Next by Date: | [Xen-devel] [PATCH] Fix arguments passed to SHADOW_PRINTK , Yoshiaki Tamura |
| Previous by Thread: | RE: [Xen-devel] [PATCH 2/4] CPUIDLE: Avoid remnant LAPIC timer intr while force hpetbroadcast , Wei, Gang |
| Next by Thread: | RE: [Xen-devel] [PATCH 2/4] CPUIDLE: Avoid remnant LAPIC timerintr while force hpetbroadcast , Tian, Kevin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |