Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp915356ima; Wed, 24 Oct 2018 11:10:34 -0700 (PDT) X-Google-Smtp-Source: AJdET5cITkFVp/Mi764bF+4DIsHDpIhxjoSG8nlHBRLWUsS8OlB6kAWhrGELKu3HV9DL3TOF2ZOK X-Received: by 2002:a17:902:aa09:: with SMTP id be9-v6mr3471864plb.255.1540404634411; Wed, 24 Oct 2018 11:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540404634; cv=none; d=google.com; s=arc-20160816; b=JSCXSgFIbDsaBZk/DDq7tArCoQZaVIdfc3wPIeMwZgywW+xN0rs5WKjt4TZoTw1SJ1 5hAdC8S4QuJjHIL7UceSLEG1/iGPGhiAlX28LjEh5jhwTmiDRpl9pM1uS5DAmP0TQGxK Ug4Q5NzOxoDR0WfjaC4yRMVZssdH4ffnGT2l/jEIdjj1zs4N2J6G7LsCn/YWyuHTZTy5 UgiK4l1uM5kgxbJDllV0G4w5C9xc8ROhxGnNZDselTeS+5OAXyUNLoSptwHBUzdkd0iB D1izgEJe9L6NlEJG3mVZeUQZVujulhnh4MgJZuUi45JUmj6gluhvMjS2oAhkNbdQKmNm PovQ== 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=xthEcc1hQe5I4xfhd7GLwYPs3W5wa4Wy4a5Mjmh6VcA=; b=bjHnL9RbhtEFvU0+7mPnjDa7KePHrPCk0VTSw0JctS2zn8GzmM3cZwGm78hEe7Ajx2 nFZOgMztlhY/laFL2IWyh/IQIAXoMUG4ZGkJhDY/36WRGqSlBZ3GaO5RN97ydyeix7Ia SiVmujKe7eAH1eTw2aL2McPI39E7cjj6/x4BGtzk4X8T7FqV9K9tzo+lrLf0Ie1K2mmK rPf2nJNIlJtl0vf6LmqFYXrjhdGDCTcv+4l3+kHhETDWrx0SboQZu4mv8bMOw0hq2wlH hYdvh8sZs2uKuOpjA33p5Bwr4Lv+Te31rphzNra5fB5lxazIUiYgaiBvmHf+6Erawx6o cVPA== 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 p6-v6si5366159pgd.312.2018.10.24.11.10.17; Wed, 24 Oct 2018 11:10:34 -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 S1727185AbeJYCgY (ORCPT + 99 others); Wed, 24 Oct 2018 22:36:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40352 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726899AbeJYCgY (ORCPT ); Wed, 24 Oct 2018 22:36:24 -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 DB79F3DE31; Wed, 24 Oct 2018 18:07:21 +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 2F0D761B78; Wed, 24 Oct 2018 18:07:21 +0000 (UTC) From: Laurence Oberman To: linux-kernel@vger.kernel.org, loberman@redhat.com Cc: rdunlap@infradead.org, tglx@linutronix.de Subject: [PATCH] V4 init/main.c Enable watchdog_thresh control from kernel line Date: Wed, 24 Oct 2018 14:06:06 -0400 Message-Id: <1540404366-26999-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.29]); Wed, 24 Oct 2018 18:07:21 +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 --- Documentation/admin-guide/kernel-parameters.txt | 7 +++++++ init/main.c | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 4cdcd1a..05f76b8 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -4932,6 +4932,13 @@ or other driver-specific files in the Documentation/watchdog/ directory. + watchdog_thresh= + This parameter allows early boot to change the + value of the watchdog timeout threshold from the default + of 10 seconds to avoid hard lockups. Example: + watchdog_thresh=30 + Default: 10 + workqueue.watchdog_thresh= If CONFIG_WQ_WATCHDOG is configured, workqueue can warn stall conditions and dump internal state to diff --git a/init/main.c b/init/main.c index 1c3f902..ae45291 100644 --- a/init/main.c +++ b/init/main.c @@ -1038,6 +1038,14 @@ 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