Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp921240ima; Wed, 24 Oct 2018 11:15:30 -0700 (PDT) X-Google-Smtp-Source: AJdET5fLZxIsj+pJHBPW2WpiW+hKFnj6dWNsBJjGdxfUUJEifJYu94CG/EWDKDo4j7mNiMjBeA1h X-Received: by 2002:a17:902:b611:: with SMTP id b17-v6mr3463880pls.217.1540404930135; Wed, 24 Oct 2018 11:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540404930; cv=none; d=google.com; s=arc-20160816; b=KIk8TcTuauiNND1kPnSSQdNsLRRJurkwkM9g+y+3BJHmcpls6vw+PacouYlQRmBSe3 QRep/G2G/dx2CzhFwaH3zVUIB6WUE4+uwvqoh15Y55rKB9La+aDffs9H95X8/I3gtNnd 5MHecTaj29z7JZUvn4I9+DpAI9/ODzVVP9Z7/dZMbtTu7YZsUNkR4ojklKBYDzcdUmYW 7uCsCj3SyAiXRHCvEp0Etb3B4/jhr2CX6zBsgDbAckQCNwUj4v4SIZR9fbfetYceOz2W HtczHdMPCrZQTsTmSXAcg1eeROI9RoSPUVJEsHbX1TDkaBIwIWMqyjF8UMpIyB7PTcoA J0Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=gby0APml37BXslNnoxTYpVn9Dt2sYAd+h3kISPnzojY=; b=dRxXC0Mv02nJh7k6T+TuYRLYjDnAwJlhNVwnNPQH3QJKS4ZxM4EL07a/Bz2aBaPY7Z nxjdMQO6bIf7eZwbFdV8Jqz2LZ3HVQLQfpv1YFk0HCeh0EKjpaGUxxo+OMmAKhe2l/Ge I7J2o11u3WeLLYEIQ1h4ldNQ4/OnYXgDvqqlCTW7i+XxY6BSn40OfLV5q1uCYeK9iZ4G LbPaY26iric6pZ/mlu7wWHGGAMuB+yr2CXMBDUjpw1jcVReQKdwFfXOGV8DUCnTfQepS O1Izu60KgQkMZqGYCamiUuhGTCqYMMYStRcy3opH+7Vec2SQmgvnk8wt4PBpeqSb/atH 15tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JGD2EwkM; 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 186-v6si5783871pfg.163.2018.10.24.11.15.13; Wed, 24 Oct 2018 11:15:30 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JGD2EwkM; 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 S1727162AbeJYCnn (ORCPT + 99 others); Wed, 24 Oct 2018 22:43:43 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54830 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726433AbeJYCnn (ORCPT ); Wed, 24 Oct 2018 22:43:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gby0APml37BXslNnoxTYpVn9Dt2sYAd+h3kISPnzojY=; b=JGD2EwkMuKKmFVx2GP2A6yd6w eBmbmTn25uN70xreDqDmRcnR8qSIBNnvvLhtN9bSbWKV+3dduht92Ma9X1xtsBR2yUbz+1JzWBgAg oRLqOvpf7M8TGOlyL1LhxMRUHGSBHfspn/GCwPROzuFnPpoOhcTjfQB4sZnGWPV3+eimYJ9vpzrJe yFIh9TklKY7VbeQbTok5FhbJUN/BJJS7Dideb+ZJaJKIFVfc/mUlYM94djEVeMK8ivPvhzDyNZcA9 Tuf9Q2dBn31WbQLuXXmfpNAM40uyIzL89slrpg8rg8ZrgVQtlPY/vfKPCsfS6cNiTf7L4442w4igN TAGaULEHQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFNfy-0006zd-IB; Wed, 24 Oct 2018 18:14:38 +0000 Subject: Re: [PATCH] V4 init/main.c Enable watchdog_thresh control from kernel line To: Laurence Oberman , linux-kernel@vger.kernel.org Cc: tglx@linutronix.de References: <1540404366-26999-1-git-send-email-loberman@redhat.com> From: Randy Dunlap Message-ID: Date: Wed, 24 Oct 2018 11:14:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1540404366-26999-1-git-send-email-loberman@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/24/18 11:06 AM, Laurence Oberman wrote: > 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 Acked-by: Randy Dunlap Thanks. > --- > 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) > { > -- ~Randy