Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1086273imj; Thu, 7 Feb 2019 17:28:17 -0800 (PST) X-Google-Smtp-Source: AHgI3IaEGJmsvIssQEatFzvbqpqsDh4+n6t462sXD/Zx776KyajGVl5ABgIpQPbsS5T4WAC5v9tf X-Received: by 2002:a62:c505:: with SMTP id j5mr19289465pfg.149.1549589297360; Thu, 07 Feb 2019 17:28:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549589297; cv=none; d=google.com; s=arc-20160816; b=R8dZpfEPs4lWIjAOTzRCzf6nlUvYbUAMQpeTO5lfCsTl5JlNqlx9Unyst2F4Lm6i9F S1C+G+9tEQIWC3q9WR79Ajwm0LdYLigsnIShG6pJ/YKFbA+DNUgkNzg2jcmrTG3/YgyX Ad4VB962aMmANQWFWGLqnf//OP+XhPoMRarMfKLxBBXWv2TpY1P/kIoZJ8f0Y2AKLdMB RQbUUGaY8TDHzLKjEk8IYg9IEpz+OXS590PpoHONHRtq1SGMq+RDf3JS4+bPsvD4Bocu SWldKD1IsP7BPopHxKcQssFz7ksUd+8fk5a/lA4jHce0emjL5bZF18Hgqqy4svXY7det qYzg== 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:reply-to:message-id :subject:cc:to:from:date; bh=gxFG02sDO6upfp3nbUskCxEPfAJNv7sIrYq20L3NP2E=; b=OFjQnsGuNylwpeGbTwYEI4S1pphCgvsV19Zl38rgEpUyp9Z3b6waNlDO6640shlLRw I2LjZsF4ORMjRaSQ+bAWzryo5EY0qeAh1/2diNx+p4DZkn/2tfjsHghhRWoXQCiP40Q/ OBqbIBYscz9yX1YNpQSfnkvZZHBMTHyvw5UHK+3M1tbUkoEKvw88XxNvTy9FkbTjOzn2 f29UuqfPL23nDUxcya71Z+12iOuXQADxRiMMpM8inYP4cX28osDLRrRJRbujszteCAqJ OS8ZIfsi94pVbFA2ejLCHkBAwex9krCL2B+EZ1/wLswHZQKsp/mL750UldF6yRp8kLRz g0aA== 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 e192si691912pfc.28.2019.02.07.17.28.01; Thu, 07 Feb 2019 17:28:17 -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 S1727021AbfBHB1W (ORCPT + 99 others); Thu, 7 Feb 2019 20:27:22 -0500 Received: from mx0a-002e3701.pphosted.com ([148.163.147.86]:40436 "EHLO mx0a-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726850AbfBHB1W (ORCPT ); Thu, 7 Feb 2019 20:27:22 -0500 Received: from pps.filterd (m0134421.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x181Qgv7030262; Fri, 8 Feb 2019 01:27:00 GMT Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) by mx0b-002e3701.pphosted.com with ESMTP id 2qgw0tsvvd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 Feb 2019 01:27:00 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2354.austin.hpe.com (Postfix) with ESMTP id 6BB6811B; Fri, 8 Feb 2019 01:26:59 +0000 (UTC) Received: from anatevka (anatevka.americas.hpqcorp.net [10.34.81.61]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id BCBD936; Fri, 8 Feb 2019 01:26:58 +0000 (UTC) Date: Thu, 7 Feb 2019 18:26:58 -0700 From: Jerry Hoemann To: Ivan Mironov Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Wim Van Sebroeck , Guenter Roeck Subject: Re: [RFC PATCH 1/4] watchdog: hpwdt: Don't disable watchdog on NMI Message-ID: <20190208012658.GF28168@anatevka> Reply-To: Jerry.Hoemann@hpe.com References: <20190114023617.10656-1-mironov.ivan@gmail.com> <20190114023617.10656-2-mironov.ivan@gmail.com> <20190116022731.GD18342@anatevka> <84950aa0d194f28389f3bb209154ddc26e96c6de.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <84950aa0d194f28389f3bb209154ddc26e96c6de.camel@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-07_15:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=941 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902080009 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 02, 2019 at 09:55:29AM +0500, Ivan Mironov wrote: > On Tue, 2019-01-15 at 19:27 -0700, Jerry Hoemann wrote: > > On Mon, Jan 14, 2019 at 07:36:14AM +0500, Ivan Mironov wrote: > > Somehow I missed the whole pretimout thing when reading about the > watchdog API. Thanks for clarification, now code makes much more sense > =). > > Still, I do not really understand the point of enabling of kdump > support in hpwdt driver by default while kdump is not enabled by > default. Kdump is enabled by default by our Distro partners. HPE works with distro partners to deliver a validated system which we support. The ability to generate crash dumps is one of the means we use to support our customers. Even if kdump isn't configured, panic will at least print stack trace to indicate system activity. > > Also, existing code may call hpwdt_stop() (and thus break watchdog) > even if pretimout is disabled. > > Also, "panic=N" option is not providing a way to *not* panic on NMI > unrelated with iLO. This could be circumvented by blacklisting the > hpwdt module entirely, but normal watchdog functionality would be lost > then. panic=N provides for reset upon receipt of NMI if user wants timeout to reset system but not a crash dump. The panic is for error containment. On the legacy systems within the context of hpwdt_pretimeout we cannot determine if the error is recoverable or not. So, we have little choice but to panic. > > It is possible to rebuild kernel without HPWDT_NMI_DECODING (which is > enabled in Fedora, for example). But it is nearly impossible to come to > this solution without examining the source code, because description of > this option does not mention that it is really about pretimout support > and panics and not about something else... The name is not the best given its current use, but I'm not sure a name change would be allowed. However, I will send a patch to update the documentation in Kconfig. -- ----------------------------------------------------------------------------- Jerry Hoemann Software Engineer Hewlett Packard Enterprise -----------------------------------------------------------------------------