Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp889638ima; Wed, 24 Oct 2018 10:45:56 -0700 (PDT) X-Google-Smtp-Source: AJdET5deXBDvXVnpYNubCwoDM7iPdYyCewbtPHaF0u4IbLieta4HBCawjfcDsTqlMtAF9pYRezA3 X-Received: by 2002:a63:f05:: with SMTP id e5-v6mr3289745pgl.84.1540403156701; Wed, 24 Oct 2018 10:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540403156; cv=none; d=google.com; s=arc-20160816; b=kpPRD2iToUsojwnNYMVZW8hPdCggsi95MAKIZZx+mO8I+jnZT6mgy9RK0t5Spi2wAh xReNF1osV+AuL5yb4LCqJgTetRXUfhXaqP8iP3G5jwajh866flyAViI1D+z1g91a0B6o 0ozlxgh3819bE6NLmRjhHHG2K3uwzAJH9PF4EP4bGA68q7H2VSxqFmlkClNaYomuC/WW NQouE7BEMgzaSp2QNqfLZCApxhtdPRHOqzAvqzuGEi73OAtQszFrH0MZmkBz9U0i9rlM k9WtoT45U1oE8TQhyhMSklRxrkkqqltpR+oSpKWAKqhWV/4F3zaDXQXeGac4RLFHd44r QySw== 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=QHa6Eav4nuPVE7UCmjaNJsVI2e7kyHeIiXoTKaqtfFk=; b=wexVST9SZakYqAC0Ok+FoworFoVwoF+JHFvLdWIMy7KM6SKo42lwPMjMCxfWlWXSS5 AjVwQI2LJUjfnIeYlDmGmWPVP1M9YLoBP6j1xhPAq4MNuZCgAZ+0ABqEKj2qmgSjRO9J 8kXeghAkTwzGYzahtRo2uMFod2u3YRql/eN2d8lvMRevFtmhReGvqYtaTA2UMthk4n8D h7kX8EKuKDSPYVe1C5vTlKO0KlHgodpysucpn9qCZ5mRwq73SgShadgtjNhKby0BrAVU yFrBsOpwXaeNHv/6ddcZtKmKVidiYmpSuQAwO6ajaipLat8XmZvYcAqZSskhxHXp/QHm 4wWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fsfxZo+H; 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 b35-v6si5370217plh.177.2018.10.24.10.45.40; Wed, 24 Oct 2018 10:45:56 -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=fsfxZo+H; 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 S1727355AbeJYCMX (ORCPT + 99 others); Wed, 24 Oct 2018 22:12:23 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59724 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726735AbeJYCMX (ORCPT ); Wed, 24 Oct 2018 22:12:23 -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=QHa6Eav4nuPVE7UCmjaNJsVI2e7kyHeIiXoTKaqtfFk=; b=fsfxZo+HnasoNmosY4fNxYeNc x2mWrIOrU0p1nLEoK5zMq+9uQDEIySZxGsIkifgAjmi0ElAohLbLZFkpScK7EnKQyMVTAnrQahP6z Bu26+fAWgh6onNQsQsVxesLMZiHLIEma4s1nlt9CZlo50OgHKTnwPQH17q/YbuBopeK80q9b9vhon yZRPDGe3CF9Sdohzr+5+ppFiCU2c+1+R5B6MK40ow3kv5a/e68AgKu4mDWjsEfkLcl313n44c231F vaGIyA+LWTbez4mgYD3KxzNmJKnYXBqwKs5laB3NUy0jqTUtAajrahPCMnWoocK2Wnccs/E6wkZvd m93fZCqjw==; 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 1gFNBl-0002M3-BS; Wed, 24 Oct 2018 17:43:25 +0000 Subject: Re: [PATCH] V3 init/main.c Enable watchdog_thresh control from kernel line To: Laurence Oberman , linux-kernel@vger.kernel.org Cc: tglx@linutronix.de References: <1540399992-23448-1-git-send-email-loberman@redhat.com> From: Randy Dunlap Message-ID: <42417c52-1a49-88aa-6665-4a1eafe6f7b0@infradead.org> Date: Wed, 24 Oct 2018 10:43:22 -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: <1540399992-23448-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 9:53 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 > --- > Documentation/admin-guide/kernel-parameters.txt | 8 ++++++++ > init/main.c | 9 +++++++++ > 2 files changed, 17 insertions(+) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 4cdcd1a..cd8d588 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -4932,6 +4932,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 > + The first sentence isn't needed. and s/10s/10 seconds/ How about this? This parameter allows early boot to change the default value of the watchdog timeout threshold from the default of 10 seconds to avoid hard lockups. Example: watchdog_thresh=30 > 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..88cbed9 100644 > --- a/init/main.c > +++ b/init/main.c > @@ -1038,6 +1038,15 @@ static int __init set_debug_rodata(char *str) > __setup("rodata=", set_debug_rodata); > #endif > > +static int __init > +is_watchdog_thresh_setup(char *str) No need to split that into 2 lines; just join them, please. > +{ > + 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