From: "Jan Beulich" Subject: Re: Hpet interrupt overflow Date: Tue, 13 Aug 2013 12:59:06 +0100 Message-ID: <520A3BAA02000078000EB82D@nat28.tlf.novell.com> References: <1375735116-31466-1-git-send-email-andrew.cooper3@citrix.com> <5200C95F02000078000E9893@nat28.tlf.novell.com> <5200D0B8.4060706@citrix.com> <5200FDA002000078000E999E@nat28.tlf.novell.com> <5200F8CD.6070504@citrix.com> <52011D0302000078000E9AA8@nat28.tlf.novell.com> <5209F672.7070107@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1V9DFo-0004vi-CB for xen-devel@lists.xenproject.org; Tue, 13 Aug 2013 11:59:12 +0000 In-Reply-To: <5209F672.7070107@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: xen-devel , Keir Fraser , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 13.08.13 at 11:03, Andrew Cooper wrote: > We had another crash, this time with a proper stack trace. (This was > using an early version stack trace improvements series) > > From the stack trace (now correctly with frame pointers), we see 9 calls > to handle_hpet_broadcast(). > > This indicates that the current logic does not correctly prevent > repeated delivery of interrupts. And this was with a 1:1 CPU <-> HPET channel mapping (not visible from just the stack trace)? In any case, could you try moving the call to ack_APIC_irq() from hpet_msi_ack() to hpet_msi_end() (the latter may need to be re-created depending on the Xen version you do this with). Or, as another alternative, call hpet_msi_{,un}mask() from the two functions respectively (albeit I think this might result in lost interrupts). Potentially hpet_msi_end() would then also need to disable interrupts before doing either of these actions. Jan