Received: by 10.192.165.148 with SMTP id m20csp21698imm; Thu, 3 May 2018 14:04:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoJZU+4GFSTGlmwDpDzjLRz3eUT3w6j3XboNkiXOZVGkyEgi6Ai+8DdXuDTGtBKzUYB46y2 X-Received: by 2002:a63:a312:: with SMTP id s18-v6mr94820pge.187.1525381441748; Thu, 03 May 2018 14:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525381441; cv=none; d=google.com; s=arc-20160816; b=ZwsSdl5/xcSTFtpouwjPYJrPvyUVUkV5PhaWxc9WkT3fJfR+ay/q60UIb2zmu06XOn AdZGvkxPdNXKpRGOQoXjv060kS49Ood+VRUARS+jj9y5xTfs2QD+QP4/pd6G0FNNLrQo WiWPWWdFOtaoIRvilJiRleYDHUNTwvP9DYFWbQjuT3VOGF/fzMyg2Du/yxfnmSDWVD2o /32+D/XnfM7RSZAJVOlnBiDoFjt3wqlmkD+TGQt8GcQ85nuaa0YAXhxsIexutuEfyHQO 2wq/WhKzqYuvjGJh+z8qAt5tSYVhfmkK3joO1asewqyx2XhBKp1oqJxxk5uQbiFbmbQt lOCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=4YtX9gIKtSI/ZjE3pSC9SKlmcLFQwIg/AWgcfPO+swY=; b=TyOhIjrmYXj0UyrWbho10TAzR6dlQ8jPGCbKsQSzqZ8yuE0to7tTAcvlORzNTvCVbU ZpzSZS7YDx6xiLn+lVXS3gFChIHRbti4ji0257BEQybnBIp8Gr3IyZxZjei4id6Dt0Jq KmTUjuIywJ1UBwZ47qBFuVHFC19RuLzxVbwtGICxBRwcZvvyXMYimb/hOLofZ5+bk6mZ LCEHzJLPWaRvABaJHtxwuTpfcqFPCwial37RyFE/wlr/BRtnDuWi/r2tpzaZPQfc/cCQ 8/Nu47vgBlEtEw25aid3VLO7pL3sgRPUyhZgIngGJXMcEuBQ3q4FHoBwZgL5VznchCyq TdeQ== ARC-Authentication-Results: i=1; mx.google.com; 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 bf1-v6si5950955plb.422.2018.05.03.14.03.45; Thu, 03 May 2018 14:04:01 -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; 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 S1751234AbeECVDQ (ORCPT + 99 others); Thu, 3 May 2018 17:03:16 -0400 Received: from g9t1613g.houston.hpe.com ([15.241.32.99]:20014 "EHLO g9t1613g.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750911AbeECVDO (ORCPT ); Thu, 3 May 2018 17:03:14 -0400 Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by g9t1613g.houston.hpe.com (Postfix) with ESMTPS id 27663602A5; Thu, 3 May 2018 21:03:14 +0000 (UTC) Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id 74B8077; Thu, 3 May 2018 21:03:13 +0000 (UTC) Received: from anatevka.ftc.rdlabs.hpecorp.net (anatevka.americas.hpqcorp.net [10.34.81.6]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 215756F6; Thu, 3 May 2018 21:03:13 +0000 (UTC) From: Jerry Hoemann To: wim@linux-watchdog.org, linux@roeck-us.net Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Jerry Hoemann Subject: [PATCH 1/1] watchdog: hpwdt: Claim NMIs generated by iLO5 Date: Thu, 3 May 2018 15:00:55 -0600 Message-Id: <20180503210055.32483-2-jerry.hoemann@hpe.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180503210055.32483-1-jerry.hoemann@hpe.com> References: <20180503210055.32483-1-jerry.hoemann@hpe.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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