Received: by 10.223.185.116 with SMTP id b49csp3088235wrg; Sun, 25 Feb 2018 13:35:17 -0800 (PST) X-Google-Smtp-Source: AH8x227EH4PRP9LwjTcYAChNq30GG3ZsK5xcYsvcCXMGL/sb/vs2TbLk/RVCCJdaS4sFRx776oa3 X-Received: by 10.99.4.66 with SMTP id 63mr6713423pge.93.1519594516902; Sun, 25 Feb 2018 13:35:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519594516; cv=none; d=google.com; s=arc-20160816; b=xvcX2lKd7PW/vhaTFXtQCvW/EAKmoP8iAmRzV/JxVU6eFQLYG3fyaDbbyJN09c0lqv U8ER4EBLMKUSxZRCf4I2MLdmE2ayV9I5I7WsEYO3Tft+HqB55WZb1JcE7tzbNLYvEnuz c8R7fj51plbyVwwi4MYITAMpqYYlOlsbyUrvCh0N7mzGXpwE+JNWNH6NmZlDpBEocRQN +zuMFdK6caCZAqZlwdJius9YTT9rOfpBZu/3AWBs4ZfWl0soP+6Jk6notgBUebKpDkqL 39l/+JRJVdBcqOpLO6RyylqTqFcKyCvH4ZTVI4cAb8/Ex54eThg1jQBxNeltbgU9FrEy DKRA== 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=vt4sSNycRI/YGtfapuH4BIuYO2T0KBF0/EnQhqauBDQ=; b=rrppVVoYiWnPosA0RGafd5b/h8+oX6FNANX+NaHqw84NHwww3/BEZh3+d/+DU1vt+n z/+yDzkQcvKPCn3DYO4XW3kjzdBJAzwhkbDLrhuZX9bquP72uQQUOOzD4OvYID1Jahlm FtxndlsoiuMH/28k7i/9cbUU5soHQokEhGpQNL7OkRdJ8MJ2H+4cdqSK834irlQyek+i KN0lN7dszsbxWbMn0ccWChef0l0+VGl9N4UQk1261DPPmcFIq5bS49UqYbs6pLeY3DZS bca7ufoc/oPPsdn4ZOQcOhJaToGA9S7W4rvplNI+IbHnjM4VvzmD872E24zNoBJqM08Q MUyA== 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 x6-v6si5257150plo.273.2018.02.25.13.35.02; Sun, 25 Feb 2018 13:35:16 -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 S1752105AbeBYVeH (ORCPT + 99 others); Sun, 25 Feb 2018 16:34:07 -0500 Received: from g4t3425.houston.hpe.com ([15.241.140.78]:42263 "EHLO g4t3425.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751930AbeBYVdn (ORCPT ); Sun, 25 Feb 2018 16:33:43 -0500 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id AC1DB9A; Sun, 25 Feb 2018 21:33:42 +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 3180747; Sun, 25 Feb 2018 21:33:42 +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, mingo@kernel.org, marcus.folkesson@gmail.com, Jerry Hoemann Subject: [PATCH v4 07/10] watchdog/hpwdt: remove allow_kdump module parameter. Date: Sun, 25 Feb 2018 14:32:56 -0700 Message-Id: <20180225213259.2861-8-jerry.hoemann@hpe.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180225213259.2861-1-jerry.hoemann@hpe.com> References: <20180225213259.2861-1-jerry.hoemann@hpe.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The intent of this parameter is unclear and it sets up a race between the reset of the system by ASR and crashdump. The length of time between receipt of the pretimeout NMI and the ASR reset of the system is fixed by hardware. Turning the parameter off doesn't necessairly prevent a crash dump. Also, having the ASR reset occur while the system is crash dumping doesn't imply that the dump was hung given the short duration between the NMI and the reset. This parameter is not a substitute for having a architected watchdog crashdump hang detection paridigm. Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index e60c689ebdb2..a584ccf05202 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c @@ -36,9 +36,6 @@ static bool iLO5; static unsigned int soft_margin = DEFAULT_MARGIN; /* in seconds */ static unsigned int reload; /* the computed soft_margin */ static bool nowayout = WATCHDOG_NOWAYOUT; -#ifdef CONFIG_HPWDT_NMI_DECODING -static unsigned int allow_kdump = 1; -#endif static void __iomem *pci_mem_addr; /* the PCI-memory address */ static unsigned long __iomem *hpwdt_nmistat; @@ -125,8 +122,7 @@ static int hpwdt_pretimeout(unsigned int ulReason, struct pt_regs *regs) if (iLO5 && ulReason == NMI_UNKNOWN && mynmi) return NMI_DONE; - if (allow_kdump) - hpwdt_stop(); + hpwdt_stop(); hex_byte_pack(panic_msg, mynmi); nmi_panic(regs, panic_msg); @@ -188,9 +184,8 @@ static int hpwdt_init_nmi_decoding(struct pci_dev *dev) goto error2; dev_info(&dev->dev, - "HPE Watchdog Timer Driver: NMI decoding initialized" - ", allow kernel dump: %s (default = 1/ON)\n", - (allow_kdump == 0) ? "OFF" : "ON"); + "HPE Watchdog Timer Driver: NMI decoding initialized\n"); + return 0; error2: @@ -324,9 +319,4 @@ module_param(nowayout, bool, 0); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); -#ifdef CONFIG_HPWDT_NMI_DECODING -module_param(allow_kdump, int, 0); -MODULE_PARM_DESC(allow_kdump, "Start a kernel dump after NMI occurs"); -#endif /* CONFIG_HPWDT_NMI_DECODING */ - module_pci_driver(hpwdt_driver); -- 2.13.6