Received: by 10.223.185.116 with SMTP id b49csp1784977wrg; Sun, 11 Feb 2018 21:23:35 -0800 (PST) X-Google-Smtp-Source: AH8x225/CUPR9/+D15Og5FETIHjPKocUoTwrAsRq/rvnd0kVgPaDfZvfjVxvAOh7eAPhx68Ltu5d X-Received: by 10.99.114.80 with SMTP id c16mr3553797pgn.436.1518413014977; Sun, 11 Feb 2018 21:23:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518413014; cv=none; d=google.com; s=arc-20160816; b=xhLGSqOmhYiORlnHqeWH7zde07OcNjBOusciaBuVBw09Cxo7vZ/5JVM5pDcGHi8zDq SWjb1Zy0/4YhHccE7Y3jKfFreC4S6i+/PiOa4JrfukfVe3VznTxrfZ8Zc3WfBbxPKeff ClxJFcvGH9Lvt393n2hweb4Leu8UcJiENsI5odOzpFAZV6GHYrDy6TMdhXQkH2/AkXbc PIUg7BxSC1rNCIB4E3uyQLohSa/BaO+8qmTjyKQJbqxXHxZnrtCJ8D9mP2+qmHId9NID qcUQ0LRbIhu46+7bxq1zJVNPqyKUPQS/5BWefiq1CnvVsB+jFlVLywyJaZ7V7hqN3ueJ BSlg== 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=9Zama0jqyHJ5DnI2nAUSqSZ6JS1QCru+ggzWPaTTPtQ=; b=PFVX8/cMVqNyZhaqCgwYmJih7zMy6OEs+L6S/oqw3i86Vo806tv2lx7IKP+1OfValD QRgnRsXDy6EAPA6WLc7yMAbaRJRU6+44sNSxBleXTt8kVI6ZobU/9ffopie1fDwAz/wX cbSsuO4j+Xd6GgubEUkXwWh75J+GgRghqUhI7VHcU1cv7hHwqKk2CpB/12FzivJGs/dk q2V0BgEci3cLP0TvX6RsFx/tXq8RFgvFMUKxPTi7awTqZMJmHhyY06qS8TVvA+go8qr9 gLKWCuXS5ucAXQZFi0rQiy05xAaAas6SopjHe2fJXM3Vnt7JTqS/AXsKR+yyl4jVvjuw z58w== 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 j12si491898pgn.115.2018.02.11.21.23.20; Sun, 11 Feb 2018 21:23:34 -0800 (PST) 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 S932514AbeBLFWk (ORCPT + 99 others); Mon, 12 Feb 2018 00:22:40 -0500 Received: from g2t1383g.austin.hpe.com ([15.233.16.89]:56873 "EHLO g2t1383g.austin.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751367AbeBLFW2 (ORCPT ); Mon, 12 Feb 2018 00:22:28 -0500 Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by g2t1383g.austin.hpe.com (Postfix) with ESMTPS id F02DAEEA; Mon, 12 Feb 2018 05:22:27 +0000 (UTC) Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 56BD74F; Mon, 12 Feb 2018 05:22:26 +0000 (UTC) Received: from anatevka.ftc.rdlabs.hpecorp.net (anatevka.americas.hpqcorp.net [10.34.81.6]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id E879C4D; Mon, 12 Feb 2018 05:22:25 +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, rwright@hpe.com, maurice.a.saldivar@hpe.com, Jerry Hoemann Subject: [PATCH v2 09/11] watchdog/hpwdt: condition early return of NMI handler on iLO5 Date: Sun, 11 Feb 2018 22:21:09 -0700 Message-Id: <20180212052111.12010-10-jerry.hoemann@hpe.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180212052111.12010-1-jerry.hoemann@hpe.com> References: <20180212052111.12010-1-jerry.hoemann@hpe.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Modify prior change to not claim an NMI unless originated from iLO to apply only to iLO5 and later going forward. This restores hpwdt traditional behavior of calling panic if the NMI is NMI_IO_CHECK, NMI_SERR, or NMI_UNKNOWN for legacy hardware. Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index e7355f72d883..e9e54fe20804 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c @@ -38,6 +38,7 @@ static bool pretimeout = 1; #else static bool pretimeout; #endif +static bool iLO5; static void __iomem *pci_mem_addr; /* the PCI-memory address */ static unsigned long __iomem *hpwdt_nmistat; @@ -140,14 +141,14 @@ static int hpwdt_pretimeout(unsigned int ulReason, struct pt_regs *regs) "3. OA Forward Progress Log\n" "4. iLO Event Log"; - if ((ulReason == NMI_UNKNOWN) && !mynmi) - return NMI_DONE; - pr_debug("nmi: ulReason=%d, mynmi=0x%0x\n", ulReason, mynmi); if (!pretimeout) return NMI_DONE; + if (iLO5 && (ulReason == NMI_UNKNOWN) && !mynmi) + return NMI_DONE; + if (allow_kdump) hpwdt_stop(&hpwdt_dev); @@ -280,6 +281,9 @@ static int hpwdt_probe(struct pci_dev *dev, const struct pci_device_id *ent) ", timer margin: %d seconds (nowayout=%d).\n", HPWDT_VERSION, hpwdt_dev.timeout, nowayout); + if (dev->subsystem_vendor == PCI_VENDOR_ID_HP_3PAR) + iLO5 = 1; + return 0; error_wd_register: -- 2.13.6