Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3101864imu; Sun, 13 Jan 2019 18:40:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN6g5x/1fHa87Z3zvSukdEJ9OAyE7eqFGI9RpHviBMOHGpPSDQhUKsPg7E65GO306Um/XsaP X-Received: by 2002:a17:902:722:: with SMTP id 31mr23825217pli.271.1547433625209; Sun, 13 Jan 2019 18:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547433625; cv=none; d=google.com; s=arc-20160816; b=Bzep/hyI2C/cqchdJXz/ckRpOSoVlKKOfLY0LFXkKPxlPXVKmc+bkcgWiS+wJlbFTR CLPyAqqYNSnFHFDs5aiTpoLatTaGJNKl+gXwEf6Tcz5WUQuQmqdC5myOHJb6+ADonBMo /WKLBhXpOXn7Zl5W74s5zG4YbKOcKze+Zq1q0FhQfX7oMIWIEfiVVgkgHiK7Xxy0XZXV nAt5oSUX34pZIClGWfP5NO70WMCcgaMadFBvudn9ES160LjqM/A5weRV3alH5/c+Co94 p76AGRETyjXNKKXEoiFvyY0ljVWHTPbBIvGMIogf3AGuCSn5Pz1j/Am/2CkV6mDummoh A8OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=y+q+rXMvogXdc6F7IN6IPRNFTF1TLIu1HY7R8susB90=; b=TIKglkFFR0ndR+p4PFBXwq4UzECsgLipWkcNVAhz/++2NWiOerTt77G9V5zT989v5M 1cEgvfXzUy/yn4jRKeYjvlnJJeqKBz4QtfhA322PVnPacJPwHcnCYQC2pFfj7jLENXJ9 X6Xqs5fDyyb6BEp0giFg2XYJjC3ESrYa0gB4dyrj/yczDda8IRuLmNJIQ30vNvNPRSZG whKxNGABELCJqyhLpw3xKJ6P4QpK7WAcxnaw5+c/RvCJsBIAlmahRoTYq0vXV///OqM0 pyLS7x6AedlKk6YvwCGuB4OeVW8XNaFL9HEDq1d2bhe20XEmwmqcv75Lh5zUaZJp9r8d WLow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W7df3quO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si7309169pgi.152.2019.01.13.18.40.08; Sun, 13 Jan 2019 18:40:25 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W7df3quO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726709AbfANCgf (ORCPT + 99 others); Sun, 13 Jan 2019 21:36:35 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:44229 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726631AbfANCge (ORCPT ); Sun, 13 Jan 2019 21:36:34 -0500 Received: by mail-lf1-f66.google.com with SMTP id z13so14493343lfe.11; Sun, 13 Jan 2019 18:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=y+q+rXMvogXdc6F7IN6IPRNFTF1TLIu1HY7R8susB90=; b=W7df3quOPPBJLnK9RguA1iI1FTGEgC0EInyBuuXQHXJg6Dc1vaUUoWsW0/mjR3r4cC a69ZFE4BNsoarblmC/9eI1N8KOsE9avHxb16mPLQCVuzvbqv0fjPekt4OW4hfl2RqftJ Uxho6Dw1SIiKye/usqecdvIUK2+h0utCaYSk1imun5xnvqQgA9jwyuBq59MKwCCb2P6L H7ruRsn/zJWiTNKqkp2tO81ShbIxcyKOOLKQ6PEB4Q2KMJk8o7Wml4rLdlT5GXd79DDj Ea5wkCi0OP78ph+vHeAeryTQm+npeDXZNn0Tt7/seRIIiJ+uUekfwfMBUNDCL8FVyz0x OZ0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=y+q+rXMvogXdc6F7IN6IPRNFTF1TLIu1HY7R8susB90=; b=rKmchuQW1lE/vf5EUvcM2mhR1P3ICA+mxEEoUYjGlWH9xfqzYpOvXXckq3MrEnFyLR pwKNjiQ7wxLVYAucFmONxi4QCMOgGS+I0TxdwM3fPZudh0amNK3iiR7hJ9RZWYeXcO1o 4rzPbCc9iQO7XIYdG8y1YSObNseXScSXy/b3vYkQKKLOaADrWJSbirY7lRpuul6Anzrz B+WCasBRlruchI890iJdQKcrs/InzSozOD45UI6bWUNOejVk+MG6F8byutOUHQOu8mGd 5nM+JVXB3hu4XyJCKZ9hTKmglkDGJSVGGuxH6ohHQ19gTF7iWo97j4mqk02vfCeO9ZGq s8lw== X-Gm-Message-State: AJcUukfUzzLH5dN1HAf8X1bFy8I0XKFoFI4/Wiql1FgBVWr+cNSpC+S+ a2HaGkdcUzyacfEZ2iHinuycpHPq4J0= X-Received: by 2002:a19:f510:: with SMTP id j16mr4205968lfb.35.1547433392026; Sun, 13 Jan 2019 18:36:32 -0800 (PST) Received: from localhost.localdomain (pool-109-191-228-208.is74.ru. [109.191.228.208]) by smtp.gmail.com with ESMTPSA id m4-v6sm16876897ljb.58.2019.01.13.18.36.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Jan 2019 18:36:31 -0800 (PST) From: Ivan Mironov To: linux-watchdog@vger.kernel.org, mironov.ivan@gmail.com Cc: linux-kernel@vger.kernel.org, Jerry Hoemann , Wim Van Sebroeck , Guenter Roeck Subject: [RFC PATCH 0/4] watchdog: hpwdt: Fix NMI-related behaviour when CONFIG_HPWDT_NMI_DECODING is enabled Date: Mon, 14 Jan 2019 07:36:13 +0500 Message-Id: <20190114023617.10656-1-mironov.ivan@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I found out that hpwdt alters NMI behaviour unexpectedly if compiled with enabled CONFIG_HPWDT_NMI_DECODING: * System starts to panic on any NMI with misleading message. * Watchdog provided by hpwdt is not working after such panic. Here are the patches that should fix this. This is an RFC patch series because I am not sure that patches are correct. Questions: * Are "mynmi" flags always set on all supported iLO versions when iLO is the source of NMI? * Is it safe to reset "mynmi" flags to zero if code decides to not panic? Ivan Mironov (4): watchdog: hpwdt: Don't disable watchdog on NMI watchdog: hpwdt: Don't panic on foreign NMI watchdog: hpwdt: Add more information into message watchdog: hpwdt: Make panic behaviour configurable drivers/watchdog/hpwdt.c | 45 ++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 20 deletions(-) -- 2.20.1