Received: by 10.192.165.148 with SMTP id m20csp35975imm; Thu, 3 May 2018 14:21:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpC8+JnoaNRzDFhiybElb786a6ju67aC6PAEQvVKiv9wIQ0zZmIUWsF+QOh8DTHA5IaBFsF X-Received: by 2002:a17:902:b10f:: with SMTP id q15-v6mr16897728plr.142.1525382470214; Thu, 03 May 2018 14:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525382470; cv=none; d=google.com; s=arc-20160816; b=bUWTWRMGWsAt+ug2bJHm61XEV9ciWehEZE44JGjFMl7S7PZWnnRcdJqVPc0XQK2b60 mjDBIpXnV5X3Fehflg1b7to4EIcC1ttSEqLQJTJDBsQBbiUxs/f8CpP7QZBBMywBOh+O fbTIs5zIfUHpNv9w3q2eGKBLZxPKm/WSVTDVe7C8GbLEBpLgzN/Bw4unfjAbafMPN5JB ELKvZT8VS6J10JjDhC9hFUU0RiYIf1a2P1n/usRBIpbdwy7TngmVnHl3IfQJH63NLBJn HKouQasQGccekFDK/oMJHbVN7ohDpkqYSiJ19ODKsOlT+mMrmC7POdjAiOrwO8tkfKDh 3qsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=v4rzD5yC+N3LqWewGJV6VWRNtTHWMq/MkXdD8tX7Zyw=; b=G385YthmMtoUpIDiMZXFMtQkEGJWSNYfKOgB1o0GkYpM7zsU1NPvJsy4QyUt3R25Np BXaO2TGWvsKeIyV8kYpNBQOXdErYB5Q13iEWAWsfIbVvLFLZyE+ZCtet1c9zuDXUEEjL T6dUjGqudhFJWSFLyXeueIawka/IZ4GOnOgcDzG+jLh09l9mpJMRnILiOlRTu3xhNEmM ZOjOywFQnohaR3FG3CNnqEYiGGRHxERWC8glJZjgcF1Ffrtng7Qaj5Z2ANpCGfpu8I8O Pa8+uFRaiikmwzr600KtJGd5JbZ8stkmB6/rNcsUcIgJFyK0pKhOKdPlNiamgUx6iug+ lC2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=pk9zuvWo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w68si10813696pfb.325.2018.05.03.14.20.54; Thu, 03 May 2018 14:21:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=pk9zuvWo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751351AbeECVUj (ORCPT + 99 others); Thu, 3 May 2018 17:20:39 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:39961 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262AbeECVUg (ORCPT ); Thu, 3 May 2018 17:20:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=v4rzD5yC+N3LqWewGJV6VWRNtTHWMq/MkXdD8tX7Zyw=; b=pk9zuvWosHG3085U1UEPy5N1cC DTzlxkmAE7hbv87q8fdnVQSU7fBl+GLSbslrPiYl4l3C327Jtv4CXHwpVf++O8IWnQyUh9ho5xoZK hegI+4iwYTTb8vGyHlybu+/tED6eHH+o50DMx5cplQQqSbSElxQJPJbB4i3YgShrTseJTDPcNOVWa B91RHNBrlDTPbaX63498KaZYrJOGI9nIFHoyWhEu4jqWpjMmyA5z14L8dDss0qjiJxC0m9Ip75THF BDuZFsGnDB3rHJHGqV5NUc26PayaKjqXzNimgV0ykSdVpotlcEaIp/CqmPWtjdKHyh6qX00W8vOR3 NusYpysw==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:58810 helo=localhost) by bh-25.webhostbox.net with esmtpa (Exim 4.89) (envelope-from ) id 1fELeU-002OE9-Dz; Thu, 03 May 2018 21:20:34 +0000 Date: Thu, 3 May 2018 14:20:33 -0700 From: Guenter Roeck To: Jerry Hoemann Cc: wim@linux-watchdog.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] watchdog: hpwdt: Claim NMIs generated by iLO5 Message-ID: <20180503212033.GA32321@roeck-us.net> References: <20180503210055.32483-1-jerry.hoemann@hpe.com> <20180503210055.32483-2-jerry.hoemann@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180503210055.32483-2-jerry.hoemann@hpe.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 03:00:55PM -0600, Jerry Hoemann wrote: > On iLO5 going forward we want to return and not claim the NMI, if > the NMI was NOT gnerated by the iLO as a result of the watchdog > timing out or an explicit generate NMI. > > The sense of the test in is inverted and prevents hpwdt_pretimeout > from claiming NMIs when it should. > > Signed-off-by: Jerry Hoemann Fixes: a042229a18ac ("watchdog: hpwdt: Update nmi_panic message.") Reviewed-by: Guenter Roeck > --- > drivers/watchdog/hpwdt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c > index a43ab2cecca2..9dc62a461451 100644 > --- a/drivers/watchdog/hpwdt.c > +++ b/drivers/watchdog/hpwdt.c > @@ -159,7 +159,7 @@ static int hpwdt_pretimeout(unsigned int ulReason, struct pt_regs *regs) > "3. OA Forward Progress Log\n" > "4. iLO Event Log"; > > - if (ilo5 && ulReason == NMI_UNKNOWN && mynmi) > + if (ilo5 && ulReason == NMI_UNKNOWN && !mynmi) > return NMI_DONE; > > if (ilo5 && !pretimeout) > -- > 2.13.6 >