Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2641994lqb; Tue, 28 May 2024 06:25:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6DR6dUJDP1YnHoqyj6rY683p/u/oKsxjhdsJiNwDP35v4+fx+OKwsmayZZMfiUdKVvpFeZeZfXBh+J/1PwOIKqbGEu9ST58b3j8omvQ== X-Google-Smtp-Source: AGHT+IFI4aGN1GYJOQ1rUoAqDep3x8YgVj4uaceRJFu3pCZ669E9cUB7B8aUXWaMqhnQll7OlUXy X-Received: by 2002:a17:90b:1a92:b0:2c0:2318:ea13 with SMTP id 98e67ed59e1d1-2c02318eab6mr306420a91.30.1716902743687; Tue, 28 May 2024 06:25:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716902743; cv=pass; d=google.com; s=arc-20160816; b=TXPaVyRrCss5XPYq46DtqWxCUWYZkRvh72bLM5+adRAknt5EkLMu0HwP4nXLhICGbg wWa/x5mcF/Tk73Cvc1eQCm6fpBF2gly1M6AKYhgbVt9CIzjVtowvCZWcM/tIJ9KlOeQI iWCKSAn2tnqJLa0jkxLVbFBolu48n6VvOeJ1Ncrb1Hc23Z/FBPVYoXLg+Nhqzjwtj+3f E13vAshS9dqHuY2tdn4AJ+CT2bnK5jZpv9ZInvHWACvMjre0njA6sMx898F5Mok9FFP9 ydUI9rsr7gT1t/yPKjf+7rohiS/v6+izU8T1fUBJxW1P3G6rBkCBXy6A/MdD3A5w2ICq FSlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=2KDG6nGPQOktWV6WbSqylzH1NAdEXC8aujQO5Pa/Anw=; fh=LxgksYMM81lqXzMpSVXaTa2T2lXliXIG7c17eVz6JlA=; b=O+5ofXB4SZ3CBM0Eycp9vgP6UnyCHPqWIxE1p/Ufw/yEBydEe3nTYd41gJkoWwSV2y rIFlhImGAckM+KYgovYr04E9mQmBXiXBn7hUGNi9gFhmADV52pqDmuHROOe/8NbowNNV QypkkuZLSz5DXsNKJO2wF8t89pBfc1fqUeVzfc/WxGuJec9RwOECaSHXIfSAWwI3P7lP 1cJYTc4A9spJoIdDeSoe6Q8CP1iGGicNpFJ9bE/Q8Zsn/cG+wkS3MLOmvF+bvMLOZjZy cmdQJ68LcdZjJe00a7zTEkZOKw1q0tQIiidtKLfTW7LDf/dhyRWJcWem/swjRxlHAnKv sVlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ByLurFYw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bf5fe34940si8021792a91.101.2024.05.28.06.25.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:25:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ByLurFYw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 930A3B2379A for ; Tue, 28 May 2024 13:13:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 664E116DEDA; Tue, 28 May 2024 13:12:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ByLurFYw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FC5617E8F0 for ; Tue, 28 May 2024 13:12:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716901978; cv=none; b=AT79RCfvdVVgSY2ka5vlmpBkeAdPB2OA2Jk0Sg6hp4Dgo0xnKfjwFAdIBPAWH7nBa035ZeAgyqF8fRUst7r99DUQMT07cRjOB5hIRx9aEVfq1PCKHms2ivPI670tSXYlBI04N7X3mWrMU7THHw5TdKJH1wjX7B3aA/89Wt8PcWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716901978; c=relaxed/simple; bh=c7qvZMLtwcaBCcqzNvXG3u8PoV1VWFgL+mpS5uwe6VA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pAA5Xt+DOHsm5n8L656OkyuBbZpWdDp17GkvwnIs36pbL+YN8/mArPoh1ER0TKFuq8J1BrY6NqmRX+Fap6aboC9CQD0rPPgLGK1mTIoM6VGpBGpk7Ny71OjBY2n8vEFyrmsv1BaPpSKY1ncGEMOSsBW3wS0LKjxmWDtrD1Hijs0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ByLurFYw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEDFAC3277B; Tue, 28 May 2024 13:12:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716901978; bh=c7qvZMLtwcaBCcqzNvXG3u8PoV1VWFgL+mpS5uwe6VA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ByLurFYwP+ca5LoGa/117lIxYv5SaK26oDYHUm5UoctecYjvjmD/rdCD3WFCIvX7y TePuldWxXz2hUqcq95anZQaAOMNhvF5wGSkhcHWJhnd/0c1gCcsXblflw+4LzZurJD WcomV0EK0M5ppPvSPLsTae0VFf/t+nhGcRU6XlQseGqrB6y1iHegI7yYuerBMjtykk cuADQAGgrfAQx73p+l1JzgglZBXmDDTpbrZBAL5GQaFZ+TpEGBcDDQo06sVytcjEYk dtubJdJ7+wjd3IHCUHEwxTnz7QYzlSVHRY112NHgt8gmlmbS51JBiK8ufrcHlNxwV7 JPKe/Sq5770nQ== Message-ID: Date: Tue, 28 May 2024 15:12:52 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 33/35] osnoise: handle quiescent states for PREEMPT_RCU=n, PREEMPTION=y To: Ankur Arora , linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, peterz@infradead.org, torvalds@linux-foundation.org, paulmck@kernel.org, rostedt@goodmis.org, mark.rutland@arm.com, juri.lelli@redhat.com, joel@joelfernandes.org, raghavendra.kt@amd.com, sshegde@linux.ibm.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com References: <20240528003521.979836-1-ankur.a.arora@oracle.com> <20240528003521.979836-34-ankur.a.arora@oracle.com> Content-Language: en-US, pt-BR, it-IT From: Daniel Bristot de Oliveira In-Reply-To: <20240528003521.979836-34-ankur.a.arora@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/28/24 02:35, Ankur Arora wrote: > To reduce RCU noise for nohz_full configurations, osnoise depends > on cond_resched() providing quiescent states for PREEMPT_RCU=n > configurations. And, for PREEMPT_RCU=y configurations does this > by directly calling rcu_momentary_dyntick_idle(). > > With PREEMPT_AUTO=y, however, we can have configurations with > (PREEMPTION=y, PREEMPT_RCU=n), which means neither of the above can > help. > > Handle that by fallback to the explicit quiescent states via > rcu_momentary_dyntick_idle(). > > Cc: Paul E. McKenney > Cc: Daniel Bristot de Oliveira > Cc: Steven Rostedt > Suggested-by: Paul E. McKenney > Signed-off-by: Ankur Arora Acked-by: Daniel Bristot de Oliveira Thanks -- Daniel