From: Tim Deegan Subject: Re: [PATCH 3/4] x86/nmi: wait for all CPUs in check_nmi_watchdog() Date: Thu, 15 May 2014 13:47:31 +0200 Message-ID: <20140515114731.GF40104@deinos.phlegethon.org> References: <1400072299-2285-1-git-send-email-david.vrabel@citrix.com> <1400072299-2285-4-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wku8M-0007qU-9W for xen-devel@lists.xenproject.org; Thu, 15 May 2014 11:47:34 +0000 Content-Disposition: inline In-Reply-To: <1400072299-2285-4-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: xen-devel@lists.xenproject.org, Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org At 13:58 +0100 on 14 May (1400072298), David Vrabel wrote: > The counting of a CPUs NMIs in check_nmi_watchdog() is only reliable > if all CPUs have been spinning for 5 or more ticks. There may be > delays in waking other CPUs from deep power states that can mean that > when the counts are checked CPUs haven't run for long enough. > > Fix this by waiting for all CPUs to have delayed in wait_for_nmis(). > > Signed-off-by: David Vrabel Reviewed-by: Tim Deegan I think we could separately address the boot time issue by having wait_for_nmis() exit after it's seen 5 NMIs _or_ counted 10 ticks. Tim.