Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp765463ima; Wed, 24 Oct 2018 08:54:01 -0700 (PDT) X-Google-Smtp-Source: AJdET5ccgDot0AwnKQf7sghggG9FlUvZVkwRqRkP0EfJYuBkf66WJGjgQpYGiha0n6sIoqL3UU7w X-Received: by 2002:a17:902:7109:: with SMTP id a9-v6mr3017142pll.310.1540396441027; Wed, 24 Oct 2018 08:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540396440; cv=none; d=google.com; s=arc-20160816; b=MIVadOLCfGMRMIHGgDFtdWdHi58tdpD+/2b14DZnrrYtFD3kNZBsOt0usOhDrmCm6z dO4xget2BFR/DVWr3EPUHw/uGQj9mDODkknFi39ccY4+mGuCQ5OIzKAFQ6AdyuTo25lz 3NmmrwgRFZpG0HiDiRFIgMPXgs1C67Dd+9/MYL9nt4sAhFtSwyj25CygXk2xqeOyKcHz k0VfLGEnTO0fpvLP48edwss8QVFSnAARb99U9FOKmiVsj/AWZHvgEay/LdiL3qB3bR+G wGWwFM4JNbyN1/nyCvHLcRstX6IBEWcSkg181Axwm7Kw1K6Vyz2O5VcgSWHlUDSAdrVK PL1A== 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=yt2t4NBSonQxlL2qqj02ag/exaJFRjnL4Y9THeUKBOQ=; b=G8XG5W28iPkAeIXwm3QKFUJVSbp6wz8uHjV37FyoxzB4jg6ngxwkwDRXYefDMsy830 C2YcYahHS3AhTar5fcHEV3NN/LJnNd5hzw2QBxNYhAe2cspA5+aej2CspMdp8QuIzifO otBCyahlD7IMqzMO+6w2ivNrN70BOHN2nQz+WjIZrbS6Cw63zdI8YNArZozwNkzpaBwe HiOlKex4FFUVs0ZeDs2DskYjW8K/e7OB8P1UcJWq1BjhV8HW58s3SeTqSiRYb8dGmo2i fr4ne78Qnte47L/XdVj0KWZfhUc4jrpQ1Gyq4liZrww2ctHyzzI7r4iLEzFRipE1K4Ib X/eQ== 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 r2-v6si945906pge.228.2018.10.24.08.53.44; Wed, 24 Oct 2018 08:54:00 -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 S1726913AbeJYAVv (ORCPT + 99 others); Wed, 24 Oct 2018 20:21:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39676 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726685AbeJYAVv (ORCPT ); Wed, 24 Oct 2018 20:21:51 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A357A61D07; Wed, 24 Oct 2018 15:53:14 +0000 (UTC) Received: from loberhel74.redhat.com (ovpn-121-56.rdu2.redhat.com [10.10.121.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 09358104C53B; Wed, 24 Oct 2018 15:53:13 +0000 (UTC) From: Laurence Oberman To: linux-kernel@vger.kernel.org, loberman@redhat.com Cc: rdunlap@infradead.org Subject: [PATCH] V2 init/main.c Enable watchdog_thresh control from kernel line Date: Wed, 24 Oct 2018 11:53:07 -0400 Message-Id: <1540396387-20337-1-git-send-email-loberman@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 24 Oct 2018 15:53:14 +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 avoid the hard lockups in the console code. Signed-off-by: Laurence Oberman --- init/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init/main.c b/init/main.c index e4a3160..5882750 100644 --- a/init/main.c +++ b/init/main.c @@ -977,6 +977,15 @@ static int __init set_debug_rodata(char *str) __setup("rodata=", set_debug_rodata); #endif +static int __init +is_watchdog_thresh_setup(char *str) +{ + get_option(&str, &watchdog_thresh); + return 1; +} +__setup("watchdog_thresh=", is_watchdog_thresh_setup); + + #ifdef CONFIG_STRICT_KERNEL_RWX static void mark_readonly(void) { -- 1.8.3.1 --- Documentation/admin-guide/kernel-parameters.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index bf03fe4..a5280a1 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -4615,6 +4615,14 @@ or other driver-specific files in the Documentation/watchdog/ directory. + watchdog_thresh= + This parameter is now available as a kernel line + parameter. Use watchdog_thresh=30 as example + This will allow early boot changes of the current + default of 10s to be increased when needed to + avoid hard lockups. + Default: 10 + workqueue.watchdog_thresh= If CONFIG_WQ_WATCHDOG is configured, workqueue can warn stall conditions and dump internal state to -- 1.8.3.1