Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4816802imd; Tue, 30 Oct 2018 07:52:07 -0700 (PDT) X-Google-Smtp-Source: AJdET5emD4rCC3dkSvFjM2g0VTGdqCQRmJ+5qkun0rBUbE5CAd4bbzQKjHj2f3OYVaaWXgsxmv35 X-Received: by 2002:a17:902:9698:: with SMTP id n24-v6mr19584495plp.9.1540911127149; Tue, 30 Oct 2018 07:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540911127; cv=none; d=google.com; s=arc-20160816; b=G4Onoo14g/EqyhoAaiW5q847XPRZB/1cxmbc0Di7vW2hEnH67K4gXlPOshTI4caXBm pFtNgbj0fePgHQAr8FzUboBaqZMbhixmgimyIQp52eqk8TBow3C2entREUcCkqO3g7oD Qe99Mf4O3QJGBWI+5GUA3xAIJl+P1Eqlf7JIoGUKgcu+aGk5xez8kOlsv4zRuoYHlRHf CUPpv8XGD8XDJaKLA/srdYn9zVuKDEPPLrwNdbIGF8ppntsEpbavL9o/fUrq1IwfVbNd gGWfI4Jhavw/nkQl3t820hbDKEYqgFpLB+o+Gm8bYdId67k64yAFqGRTii9/A4ZgKpSP lAuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=uhA/dtEvVqcY1YSoq6fV3ztWsEjiyh/vVopnnL9Cr3c=; b=oaPw/9OaY/QMlhv/KwAVgNmzSADKYY2HZSvZMO1QbC5hk305qKvVfuLLY2WfYaHUf6 ZXqyZbAJXtwSryEMp+gpPPrk0DFWy2je55P2x6zF8U4pavaOnYJM1kpU3k/3Fvn5SBlS U/ooPWgf7Arhep7q3S6jK7S3+5R6rIdBCSR/mlCmTZc+skOTnzvOjonDQA90KDSY1Z0F 0E6GGz25zF+AOFLBYGUyDuca169iS9exVNDfJ9ipReWl5/3wdeaZhSaaYKJ7DCdb6Xnh BBWzrn4t9ftvPnr+Elf3+5lm8yvI3W2WHGERHAAtUy6WTWy92VzYhHNNcdqXty7QdNbF uzaQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4-v6si11036962plb.62.2018.10.30.07.51.51; Tue, 30 Oct 2018 07:52:07 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726679AbeJ3Xot (ORCPT + 99 others); Tue, 30 Oct 2018 19:44:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38218 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbeJ3Xot (ORCPT ); Tue, 30 Oct 2018 19:44:49 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1904D3091749; Tue, 30 Oct 2018 14:51:03 +0000 (UTC) Received: from loberhel74.redhat.com (ovpn-125-191.rdu2.redhat.com [10.10.125.191]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3AC9A5F703; Tue, 30 Oct 2018 14:51:02 +0000 (UTC) From: Laurence Oberman To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, rdunlap@infradead.org, prarit@redhat.com, Laurence Oberman Subject: [PATCH] [PATCH V7] watchdog/core: Add watchdog_thresh command line parameter Date: Tue, 30 Oct 2018 10:50:04 -0400 Message-Id: <1540911004-11539-1-git-send-email-loberman@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Tue, 30 Oct 2018 14:51:03 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both graphics and serial consoles are exposed to hard lockups when handling a large amount of messaging. The kernel watchdog_thresh parameter up to now has not been available to be set on the kernel line for early boot. This patch allows the setting of watchdog_thresh to be increased when needed to extend the hard lockup timer in the console code. Note that this also affects the soft lockup detector Signed-off-by: Laurence Oberman --- Documentation/admin-guide/kernel-parameters.txt | 8 ++++++++ kernel/watchdog.c | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index b90fe3b6bc6c..4263937f4aa9 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -4957,6 +4957,14 @@ or other driver-specific files in the Documentation/watchdog/ directory. + watchdog_thresh= + [KNL] + Set the hard lockup detector stall duration + threshold in seconds. The soft lockup detector + threshold is set to twice the value. A value of 0 + disables both lockup detectors. Default is 10 + seconds. + workqueue.watchdog_thresh= If CONFIG_WQ_WATCHDOG is configured, workqueue can warn stall conditions and dump internal state to diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 977918d5d350..8fbfda94a67b 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -199,6 +199,13 @@ static int __init nosoftlockup_setup(char *str) } __setup("nosoftlockup", nosoftlockup_setup); +static int __init watchdog_thresh_setup(char *str) +{ + get_option(&str, &watchdog_thresh); + return 1; +} +__setup("watchdog_thresh=", watchdog_thresh_setup); + #ifdef CONFIG_SMP int __read_mostly sysctl_softlockup_all_cpu_backtrace; -- 2.18.1