Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3100504imu; Sun, 13 Jan 2019 18:38:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN7+tJJ8szm9ZT+bPj/x67/g3dYfrVDvtfV8O0rjUrqTb1wNLui5/3bNRWMLGIgj6qpcyUZi X-Received: by 2002:a17:902:b090:: with SMTP id p16mr14676957plr.190.1547433495927; Sun, 13 Jan 2019 18:38:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547433495; cv=none; d=google.com; s=arc-20160816; b=BsoXadT9WbPka51Y/bpw0nNRc51o+58B51yGirkcnoNIzd4rrh9R54NXZONJ28JKO+ PwICEf9LTT4Pd4/4I6u67XBSN9oaZkaTLjyDXN7shDBXrHeypbF/JLAY9tqCbNGhgi3p zd4s8UXO6k5Ywp3Aqu9MYoYrQG4jES2QfXLCAjM6x8pzPuNsQOOiFXsfH7Q+HSb3iOpw 4l7n7TuYX8x8owCoF5nGWymAL+P6Soq7b4jl8tUh+Arhor3/qURfxUzWocju26IXQwry rFN1+CrkoIAXDtxMq4DlEUEHYZ8syeQ96m9mceQvRR1s3eAn0zsVWriQC21wcUDcRIa4 c47Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eLVg0+ENJ/5XPW9yjyuBatmV6D3BisOsaCbTr0AZ5dE=; b=kPvNMo7jcK+FRTQeBo0mhb6bqmh2eRlzQ1BBNPWn3cOMkfr8i7BKllVDb6Dtt3dxj+ tbPiPF6AncWONfVWJc3kFt/qMlqUSwyyYEltX4lC2vTon/+j7iHqKnGO2859bZ7q7WGE jbDi1Uz9M/HRitRpV4YtpK6eNVaREAokIQpyqyKvY7Mnh8Fw+cg/22FIFb8JxTXkJAiU 8J1YmZMVmp38jitJi8SIMAZxGMIykM7lvYkIrckMqfJ2ki+M1b1W+Y/a8H41z/n3EZCg +3Gr+TI1p901DOYlP6PLZgSFbYDIZ1q1fUJyl5Igy0qqE/xzGbBr6qPfwl/OVMAzYryg wtKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jIPdLXVy; 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 o28si82223646pgm.238.2019.01.13.18.38.00; Sun, 13 Jan 2019 18:38:15 -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=jIPdLXVy; 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 S1726741AbfANCgh (ORCPT + 99 others); Sun, 13 Jan 2019 21:36:37 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:33122 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbfANCgf (ORCPT ); Sun, 13 Jan 2019 21:36:35 -0500 Received: by mail-lf1-f65.google.com with SMTP id i26so14541920lfc.0; Sun, 13 Jan 2019 18:36:34 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=eLVg0+ENJ/5XPW9yjyuBatmV6D3BisOsaCbTr0AZ5dE=; b=jIPdLXVyvFed4r/Qmkh91drRraHRHmFajHovy3QOdTXIXOJApw9/znP2w06AW7CCSJ mCcbBozgqomsmr7WEHqHzl6+NzqGGfPs78Fpg3fvhquSYoGDFnIOPZjmyR9NcjqUCtHs QWl6TAV+z4fHwhbKuHLZ1dl/I0OV0kOLg+B5OcuuqU8qaZV09d1pArbO17231sEilYLG ivfr7aVDWW75PjDH4uur+JuWwdd4OV4rbh+GGHDqSRq4H6l+yRor4Hfpv8Hvi4D+fHLy 1e9mbXFq1b1GszSZyHaBmXyDYzGJaKiAd9GI/dwBtdCyfkv4NpxYdA0L9RGEM6dbxeaB iOIA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=eLVg0+ENJ/5XPW9yjyuBatmV6D3BisOsaCbTr0AZ5dE=; b=ao7MnuXH3Xri8ZycV2TaqHVovtBeN1Fufj8fiEvWpykNt81n257fRisk11jzTBcZ7R pTtIptIXrZEZNkVtsp+PUH1fT20DO8SLsS2oidqXLhhg7aJV4R3QdTc7Acx5hztb1JXc 22yHIgstVj0uwWDaf5fEI9H1RceEM2cZpZMVANCmZRKBHHFog9L9VuS2VRElOmE6OEcl LHsKgF7dSK71yIDsjCf6iH38auUhETFQ/Mb7KilWHTbzJx/D7Nk367froqKeGeb5/oVu C0MUjkHD8Ueuku2ioV0tYnY3ChSPa5h5Zr4s8vygaBSzKk49dcQXpvLK9M+h1TUqV1cS MqDQ== X-Gm-Message-State: AJcUukfCcRseQEstQe2qdoWh26gahXPPukcHiEn/iO8CGbOOzruTS92K HzWrTRShvNruyj0C8rZ+wvV5JdYFBTQiKA== X-Received: by 2002:a19:a104:: with SMTP id k4mr12766802lfe.36.1547433393382; Sun, 13 Jan 2019 18:36:33 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Jan 2019 18:36:32 -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 1/4] watchdog: hpwdt: Don't disable watchdog on NMI Date: Mon, 14 Jan 2019 07:36:14 +0500 Message-Id: <20190114023617.10656-2-mironov.ivan@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190114023617.10656-1-mironov.ivan@gmail.com> References: <20190114023617.10656-1-mironov.ivan@gmail.com> 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 Existing code disables watchdog on NMI right before completely hanging the system. There are two problems here: * First, watchdog is expected to reset the system in a case of such failure, no matter what. * Second, this code has no effect if there are more than one watchdog. Signed-off-by: Ivan Mironov --- drivers/watchdog/hpwdt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index ef30c7e9728d..2467e6bc25c2 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c @@ -170,8 +170,6 @@ static int hpwdt_pretimeout(unsigned int ulReason, struct pt_regs *regs) if (ilo5 && !pretimeout && !mynmi) return NMI_DONE; - hpwdt_stop(); - hex_byte_pack(panic_msg, mynmi); nmi_panic(regs, panic_msg); -- 2.20.1