From: "Jan Beulich" Subject: Re: [PATCHv1] x86: only check for one watchdog NMI Date: Tue, 23 Jun 2015 10:51:21 +0100 Message-ID: <5589483902000078000880E3@mail.emea.novell.com> References: <1434990111-14360-1-git-send-email-david.vrabel@citrix.com> <55893E750200007800088004@mail.emea.novell.com> <55892834.9030203@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z7KrU-0001wd-87 for xen-devel@lists.xenproject.org; Tue, 23 Jun 2015 09:51:24 +0000 In-Reply-To: <55892834.9030203@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 , David Vrabel Cc: xen-devel@lists.xenproject.org, Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 23.06.15 at 11:34, wrote: > On 23/06/15 10:09, Jan Beulich wrote: >>>>> On 22.06.15 at 18:21, wrote: >>> Since the NMI handler can now recognize watchdog NMIs, make >>> check_nmi_watchdog() only check for at least one watchdog NMI. This >>> prevents false negatives caused by other processors (which may be >>> being power managed by the BIOS) running at reduced clock frequencies. >> Doesn't this go a little too far, in that it allows through the case where >> an NMI works exactly once (a behavior not unheard of)? Lowering the >> count to e.g. 3 would seem acceptable, but not any further. Raising >> the wait time might then need to be the way to go if the (approximate) >> 1:3 ratio still isn't enough to cope with BIOS power managed CPUs. >> >> Btw., can an OS know of the power state CPUs come up in? I.e. can >> the wait time be adjusted dynamically? Or is this (perhaps intentionally) >> completely transparent to the OS? > > With the mwait driver, probably, as it is specifically designed to > completely bypass any firmware settings which might be in place. The mwait driver deals with C states, while reduced frequency means P states (and we specifically busy wait here to prevent entering and C state). > Anything else is dependent on how much information can be gleaned from > the ACPI tables, but most firmware deliberately has a "BIOS controlled" > mode which is designed to restrict what the OS is capable of doing. None of which would help in identifying what state a CPU is in. Jan