Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3645736pxb; Mon, 24 Jan 2022 14:18:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWIlJbFiJUDStypBIVAzIOLq4K+nB6QQeN6Wc+JBBocZhvjlk2TBTUdUaeK7DQr/Fso6yt X-Received: by 2002:a63:6c03:: with SMTP id h3mr12937705pgc.604.1643062709408; Mon, 24 Jan 2022 14:18:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643062709; cv=none; d=google.com; s=arc-20160816; b=BMHnNT16pr3Op+hatI6MSISpMY7fbtZG729b1yAj1hXSpgEkgtY0HUujQk2COXWkju NtgcSeOsKmzZJD71V2wmC81+6UFmACcaAJjsmr6yo7HtiznNVZHbKrWI/5gF+jlmvwS/ 0rOy1j10RQNgSXoy0U5NOU3fhpOhwKkKnJYgUkcgxf4dtT4r54c7HTH6K+S0CAhpL9QF eJbGsoDpknb5LVQ5KJhLE7zGgdRh3z4tqIex8vmJ1hSL+4jP8pyhXu/SIUdCTFRXQ0IT veqGO4nWUdjpcrnrM82ImYmOLzm4DzBJ97fGYkjJU1rK3wdUE/2lv41jJz/PV0LUOkdp FXmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5Aiu1pSJxS5CXlVogGEly4n8QZ91TUusUQwFGi97wAo=; b=UXKL7ZbeMI1aoFs8zKygDuk1zWAvnpf3Ucdi4FHmpCllM5ExNOErXWZnl70t1G+GkX RRMfUt9nMB4iIujMDDNPdC23SikAoXyXmCXIHszl2MIVIAkiStzR3Lx3lWgzdbk7tKJt PRVMYtRzDsWx8GWHt3nATWcaiFtqLXKigAFWJaFUiukFgJjuJSyxTMRppzdYNWmqXgiZ K38erwvF9fAP0af+1WGEFJbKzvZ/sEYdMCBycBxUQsuYGO+yP4DBi2P9jSPM9dcMmLRR FG9eDHOlZIGr4OHXwYUv/0RTXe52UcA5N9y3E+dXD0eYSBUkyQls+0oDD0Bczih5BfVC TYaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0ruWElD5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l64si12901566pge.445.2022.01.24.14.18.05; Mon, 24 Jan 2022 14:18:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0ruWElD5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1580389AbiAXWJe (ORCPT + 99 others); Mon, 24 Jan 2022 17:09:34 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:40878 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1452302AbiAXVYe (ORCPT ); Mon, 24 Jan 2022 16:24:34 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5F642B815A2; Mon, 24 Jan 2022 21:24:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 673CBC340E8; Mon, 24 Jan 2022 21:24:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059471; bh=lt6mIJfzkqvFPg0u6qu+wckvaEO9qenNedKzRuOJshc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0ruWElD5SgVjL03n8GuggldIq/EU9wvnokGMO0FClsGkszijv/KbLIJ9dhuC3Yj9q RwIvk1xQIjzH5LVPkKRkXxVGYisUp/XQwCDkgwPX4j3uFkIeVfoqZg2DsbPZRpawV9 PfjvZZpPcARJViAO9GZqkNfiriGQEUT8aTz5lDIY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wander Lairson Costa , "Paul E. McKenney" , Sasha Levin Subject: [PATCH 5.16 0627/1039] rcutorture: Avoid soft lockup during cpu stall Date: Mon, 24 Jan 2022 19:40:16 +0100 Message-Id: <20220124184146.416346170@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wander Lairson Costa [ Upstream commit 5ff7c9f9d7e3e0f6db5b81945fa11b69d62f433a ] If we use the module stall_cpu option, we may get a soft lockup warning in case we also don't pass the stall_cpu_block option. Introduce the stall_no_softlockup option to avoid a soft lockup on cpu stall even if we don't use the stall_cpu_block option. Signed-off-by: Wander Lairson Costa Signed-off-by: Paul E. McKenney Signed-off-by: Sasha Levin --- kernel/rcu/rcutorture.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 8b410d982990c..05e4d6c28d1f5 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -46,6 +46,7 @@ #include #include #include +#include #include "rcu.h" @@ -109,6 +110,8 @@ torture_param(int, shutdown_secs, 0, "Shutdown time (s), <= zero to disable."); torture_param(int, stall_cpu, 0, "Stall duration (s), zero to disable."); torture_param(int, stall_cpu_holdoff, 10, "Time to wait before starting stall (s)."); +torture_param(bool, stall_no_softlockup, false, + "Avoid softlockup warning during cpu stall."); torture_param(int, stall_cpu_irqsoff, 0, "Disable interrupts while stalling."); torture_param(int, stall_cpu_block, 0, "Sleep while stalling."); torture_param(int, stall_gp_kthread, 0, @@ -2052,6 +2055,8 @@ static int rcu_torture_stall(void *args) #else schedule_timeout_uninterruptible(HZ); #endif + } else if (stall_no_softlockup) { + touch_softlockup_watchdog(); } if (stall_cpu_irqsoff) local_irq_enable(); -- 2.34.1