Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3610151pxb; Mon, 24 Jan 2022 13:28:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDOw/BUnykBIkz0Qf6fjcsvTfHu9z5bJRBZTg2apAptQer5xVWlBU7cdKGUOKlW7G/CcDG X-Received: by 2002:a05:6a00:2351:b0:4c5:1b79:dd16 with SMTP id j17-20020a056a00235100b004c51b79dd16mr15360176pfj.40.1643059698708; Mon, 24 Jan 2022 13:28:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643059698; cv=none; d=google.com; s=arc-20160816; b=tPrm/ouzUvsh/Ksk92M0CSiAQlz7VAv0IkryRaXDn90w1b64gCJSNisjp5IJAKcJXh cCn+8jjOgU4Yz2GUuN15IbQizn8RxMNJptdVmZ5gnzZJlLaVoKmt2Owh3bD2k4EE7skz QA/3FFNs3TCerK15s0uuXjsziAwu0mV5BwxqWWGF3kjdJl5hQKDLh1yPOTPxfhgNDfkd 1IbhKR2KzoPGz6yw0kkHvo7TPU/jFvucTAtPf1NqRhptXJlqHiY0StcV2KakwEydmhuO XLLC5anOzCI1gR67jJMbkF+1YAKATN7EWvg212hb9PmMQzyZAb84CPuEa4JXjOiwlfoW jWZA== 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=miXqmrqYpgfnyQWXckCjhJhfBDttDNKCB6+jWNVVlrw=; b=x9cymmrFDzj6S7WII/j23QSfQmgW/1wM/MWSYfEZL7zQd4UYCHX+Ikxk8nI1pIL0hP DXmxbcbduG1t2YjGS+i1G2rJxqy7hbib9z8iwrjx9VO05rptKO9NEq89l+MsWWHuvfoj AadUj4rySS886djUdSh07fxHoAr/Jj5qlUOJFcLGhp/CXxrJiZvh+7129K0g9w8rY5D5 jwiQ+nu67kqwau0HPThxokSpS+I3ZsV6bySrDNT7R/vQGaO/9ITqcZVmqcMs71WItsgr h8yRJ99a6kpneo87wA6H1PirnoldvJ1Tog0GIZTYtlg0Vb95D2ixpwuOsHzvzLYP9c+s b4/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=16H8C59w; 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 kb17si434444pjb.76.2022.01.24.13.28.06; Mon, 24 Jan 2022 13:28:18 -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=16H8C59w; 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 S1444455AbiAXVA6 (ORCPT + 99 others); Mon, 24 Jan 2022 16:00:58 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:59758 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387145AbiAXUg1 (ORCPT ); Mon, 24 Jan 2022 15:36:27 -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 dfw.source.kernel.org (Postfix) with ESMTPS id ADDB561506; Mon, 24 Jan 2022 20:36:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FB22C340E5; Mon, 24 Jan 2022 20:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056586; bh=1XtZLBYLo8vRVDv6RwMfDJXo36eB71DbQs/OchA+8xU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=16H8C59woIAAolXgC7Zxhoop45LF4KPF4r2xvY3iaP1WIvuRgEltpJfoCGwcFqi6z 3Rh0ax3QARyfQdbkkq550rFQMGkpf7JP4+hz4OUMEyG37TVL7bwZ914/ftPXqHjqm8 r9vfXvIw0qCvcZTitp6bNHgnaO8kJvCFjIKiiLkE= 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.15 532/846] rcutorture: Avoid soft lockup during cpu stall Date: Mon, 24 Jan 2022 19:40:49 +0100 Message-Id: <20220124184119.354074053@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 968696ace8f3f..f922937eb39ad 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