Message ID | 20240129235646.3171983-1-boqun.feng@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-43646-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp900266dyb; Mon, 29 Jan 2024 15:58:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCPXYhwzmIOQ2Wh4KxtjZEKm4yJyIPbFdiRwHgJEziSXjWFJ+Q7DfX05YbvxkLZ5UGGoKL X-Received: by 2002:a05:6214:500a:b0:68c:5c70:b9ae with SMTP id jo10-20020a056214500a00b0068c5c70b9aemr1053676qvb.44.1706572692898; Mon, 29 Jan 2024 15:58:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706572692; cv=pass; d=google.com; s=arc-20160816; b=L/nOPhn5CzZDPx5IWamtvVByBA9UnGaZV4PrR7EAkgsjoBfvf1By2DKXi11cnaDxY0 Oj7apJ9Vrl1VLL1Grg4zLtqOL1UfGqmOKb+pbQ9oA4ooD9ZcnPM8PTS7QOq83gT0kDE8 o9uYdOKMw3FqfGqSvR53DLw0xC8Y8DCgHMDdYwNYEkNSfCvGh7bIAInJ7JJekrQ93C60 nmlGj4vzHrYvBnmZnn3IOWQHqVvaYzPpTk5UU+dl5kL92sRcC2P0k+fmKxc5EeXuOiUB a+AbUyPOXLeTHaeyl2Vm1y8egMJQ58WR0kCd+QvHjcYpQGsGb6iUUzBOPEr4EgscHHkV 12pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:feedback-id:dkim-signature; bh=14qTSl6VfeinFYRyn647RZT0gaoCHxy/3Nvp5uLMb9s=; fh=JvhDkydcwPIL1/hPoPYWHbWxJDtNMhnGZKbhfIbLygM=; b=EciyKycBnXVr84v5+jv+222VeBI28FoXYQHvLhY83DEI6Iqvvq0FF9OO9yRCeji1ve urBaM8R+6hRTQRyfkrLkKfnH9mT6eCDWsbnrsLj+Acuz02Biq+CKDGhmBcgiHMVWV63H Rtel08DGxGxoP5mxJKAXYbf6tIl3va390hqjT9OHpnYoDdc0+VtuwZiPcI+QjnCl5Pki MnIK7/hpsqHyrmLs8npeGN3TWmWJbAQ7osDmWoVEDSaSc5h+BrCz56JOfC11v/mIj19Y ELFOmAPwh72CHGY5F6ROIBLkyo4XLn6f9VeI+18HpXTVwq/ddn/qU4EmVSwKfcmRVgun tDgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JAaIK0AY; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-43646-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43646-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iw7-20020a0562140f2700b0068c4088317dsi5976065qvb.49.2024.01.29.15.58.12 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 15:58:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43646-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JAaIK0AY; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-43646-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43646-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9F33F1C21AAD for <ouuuleilei@gmail.com>; Mon, 29 Jan 2024 23:58:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81CE753E3F; Mon, 29 Jan 2024 23:57:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JAaIK0AY" Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13451524BE; Mon, 29 Jan 2024 23:57:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706572670; cv=none; b=Jv+xnHE9iMkiz2/UCxXAkoz8Laxy+4kHouehS6rO7tUtWl003dKepQl+6DdnUBPrSRQCkv3AOmurL0zgF/nkEUr/79BPA8pjxiDvNm045bNFUHN+r7DjJtvd2KyCEEB0AAGXLRVkM6gwuZgu9opk+Wna6A3Gs++w+Vs1Fzk5q6k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706572670; c=relaxed/simple; bh=PBDXmdd3YDxYwPmfBhHPk0eaWyRH9yNEjDQBzLi2m+8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ftDN2zpi6E97N0mCp8KsU5TfAQcz4qL7X6fXgjYvtTzNgobPKr6vpriOdoBLD4u0o2bHS/SZItXoxEX/uGQqKbgC8iSL9R1ycmdCLD/8Q8ZprKl4MhMJXxUtQymfWPJD7P7H1EB3OLTxIxKcUMMIw4M9r6TjrWS+x2mXCXkC3Po= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JAaIK0AY; arc=none smtp.client-ip=209.85.219.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qv1-f42.google.com with SMTP id 6a1803df08f44-68009cb4669so26393436d6.1; Mon, 29 Jan 2024 15:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706572668; x=1707177468; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:feedback-id:from:to:cc:subject:date:message-id:reply-to; bh=14qTSl6VfeinFYRyn647RZT0gaoCHxy/3Nvp5uLMb9s=; b=JAaIK0AYVN6wECwc7tS/gRSRZEKI4REZWvvnIqZWImZ/bvx82lmbwIS71Uxsa5L9OA w2ucAxGnyXuGRgDztGn5s6BRRU2U8HrOPSeLTfT6MrZF+G0+GKfvFNF/+YaXX7orM8GG n8KfBYBRPgB3TGcHF9wQ35o9hU7zJZivZorxD1bku2DNF1+p4HO2gm/A6y/LgkoQVt3U mA2NPYRDsgpl7LvK7z/wuC/SoZOW+HiOhcsr9kiEXc+vxLmXEVU5kuQUu1/RWi+RHv8o kIMaYA80U2hdLmw2eB2BaZD3NjM8yb2vOPb+bpIYmcNRjprS/l50jifwWIzMiShRqgCR c46A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706572668; x=1707177468; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:feedback-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=14qTSl6VfeinFYRyn647RZT0gaoCHxy/3Nvp5uLMb9s=; b=ITeucGGTPNGaFlGitbnhXEZyB5FXzx+T5+ocXSlp1wTVz7HRVB+Kb+7ns1sEaCssau bXBUDnyg+9vlqv+FZvzyEsjgiTYXMstDgvk2tiE8YQLIPyj0Vtat3R/dryhAVnnehyl6 Myds3Ce4EIbHO/+1rDJ421uT6+DzoTOTG5UvLeSqx7A3MwsmSPDnSdYfWtkZq3FC6SWz xLbozYbOMHeaeW4CTVkPMHIXbr4oJcl4k0Gz0WHJ3BRp4QeTI42f5u69frb9BRF/b0YU Im4a2i9Zm4F1UPtJovl44RCagk+/6Wd6Zl40G8FrdFkXVS6nJhfdMCbMMaGSquXwIy0u 3eHA== X-Gm-Message-State: AOJu0YzxJ1KzTAqD9B0PfGUSuw1CXo3btFETJC0tuSv5SGFYKZW9laZK unkNBvbWnbcUhsKF6bJVsmXukP7nMpwt9vDqXpLKKUejLrrWEbLgTHe8VvAR X-Received: by 2002:ad4:5d41:0:b0:681:14ff:3e82 with SMTP id jk1-20020ad45d41000000b0068114ff3e82mr8163338qvb.41.1706572667941; Mon, 29 Jan 2024 15:57:47 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWsawbcW1WHIiDjg+6OI9e5bLE+byHpRwFzVaDVfv+BzD1TdKRd2NLldqOQMcVWLemNlCLFrl/piPX7XrzcFxLfJmJ7 Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id kf4-20020a056214524400b006837a012417sm3920599qvb.51.2024.01.29.15.57.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 15:57:47 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id EDDE127C0061; Mon, 29 Jan 2024 18:57:46 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 29 Jan 2024 18:57:46 -0500 X-ME-Sender: <xms:eju4ZSAShUC_6pOjCbc6UWolo_OMJ56CK4WNaZBiPFQ-rB4Flgs-Dw> <xme:eju4ZciTZ8TYUKypY19mfJkEVEYwFpmH55ml7qknGO-QU9OKSmcjche8rGsWwF1VN 9SAvc-APIR_Oo_XIw> X-ME-Received: <xmr:eju4ZVn0n1KFencSt60ulXeRaLaPepCu7ubElR--zPoUrX9IMG0k2IbRjkwjBw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedthedgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpeeuohhquhhnucfhvghnghcuoegsohhquhhnrdhfvghnghesghhm rghilhdrtghomheqnecuggftrfgrthhtvghrnheptdfftddtkeelvdefleeghfelleevge ffteehheeljeejudehueejhefggeevfeetnecuffhomhgrihhnpehgihhthhhusgdrtgho mhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegsoh hquhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdeiledvgeehtdeigedq udejjeekheehhedvqdgsohhquhhnrdhfvghngheppehgmhgrihhlrdgtohhmsehfihigmh gvrdhnrghmvg X-ME-Proxy: <xmx:eju4ZQxskpiPA-yutd2d3ZbAyj-gC1Y_b0rukLbOHlA5kFoeUqg1SQ> <xmx:eju4ZXSNvsJK2kFDQEhNN6LTioQu5F6bZ_vcy9VDTC9V_96Ttd9ETg> <xmx:eju4ZbYOD573c8BL5uG2InVDTMxRtCTxCLSm7bGEv8n4iPEh5z1YLQ> <xmx:eju4ZSdV-q7yQsguTsW2VOYLYIvTMoiPXPLsPTJUv5MjZwxe-XkO_w> Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 Jan 2024 18:57:46 -0500 (EST) From: Boqun Feng <boqun.feng@gmail.com> To: linux-kernel@vger.kernel.org, rcu@vger.kernel.org Cc: Boqun Feng <boqun.feng@gmail.com> Subject: [PATCH 0/8] Misc RCU update for v6.9 Date: Mon, 29 Jan 2024 15:56:33 -0800 Message-ID: <20240129235646.3171983-1-boqun.feng@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789471167924169649 X-GMAIL-MSGID: 1789471167924169649 |
Series |
Misc RCU update for v6.9
|
|
Message
Boqun Feng
Jan. 29, 2024, 11:56 p.m. UTC
Hi, This series contains miscellaneous updates and fixes from RCU v6.9. You can also find the series at: https://github.com/fbq/linux.git rcu-misc.2024.01.29a The detailed list of the changes: Frederic Weisbecker (2): rcu: Rename jiffies_till_flush to jiffies_lazy_flush hrtimer: Report offline hrtimer enqueue Jiri Wiesner (1): clocksource: Skip watchdog check for large watchdog intervals Joel Fernandes (Google) (1): srcu: Improve comments about acceleration leak Onkarnath (1): rcu/sync: remove un-used rcu_sync_enter_start function Paul E. McKenney (2): tsc: Check for sockets instead of CPUs to make code match comment rcutorture: Suppress rtort_pipe_count warnings until after stalls Qais Yousef (1): rcu: Provide a boot time parameter to control lazy RCU .../admin-guide/kernel-parameters.txt | 5 ++++ arch/x86/kernel/tsc.c | 2 +- include/linux/hrtimer.h | 3 ++- include/linux/rcu_sync.h | 1 - kernel/rcu/Kconfig | 13 ++++++++++ kernel/rcu/rcu.h | 8 +++--- kernel/rcu/rcuscale.c | 6 ++--- kernel/rcu/rcutorture.c | 13 +++++++--- kernel/rcu/srcutree.c | 24 +++++++++++++++--- kernel/rcu/sync.c | 16 ------------ kernel/rcu/tree.c | 7 +++++- kernel/rcu/tree_nocb.h | 22 ++++++++-------- kernel/time/clocksource.c | 25 ++++++++++++++++++- kernel/time/hrtimer.c | 3 +++ 14 files changed, 101 insertions(+), 47 deletions(-)
Comments
On Mon, Jan 29, 2024 at 03:56:38PM -0800, Boqun Feng wrote: > From: "Paul E. McKenney" <paulmck@kernel.org> > > The unsynchronized_tsc() eventually checks num_possible_cpus(), and > if the system is non-Intel and the number of possible CPUs is greater > than one, assumes that TSCs are unsynchronized. This despite the > comment saying "assume multi socket systems are not synchronized", > that is, socket rather than CPU. This behavior was preserved by > commit 8fbbc4b45ce3 ("x86: merge tsc_init and clocksource code") and > by the previous relevant commit 7e69f2b1ead2 ("clocksource: Remove the > update callback"). > > The clocksource drivers were added by commit 5d0cf410e94b ("Time: i386 > Clocksource Drivers") back in 2006, and the comment still said "socket" > rather than "CPU". > > Therefore, bravely (and perhaps foolishly) make the code match the > comment. > > Note that it is possible to bypass both code and comment by booting > with tsc=reliable, but this also disables the clocksource watchdog, > which is undesirable when trust in the TSC is strictly limited. > > Reported-by: Zhengxu Chen <zhxchen17@meta.com> > Reported-by: Danielle Costantino <dcostantino@meta.com> > Signed-off-by: Paul E. McKenney <paulmck@kernel.org> > Cc: Thomas Gleixner <tglx@linutronix.de> > Cc: Ingo Molnar <mingo@redhat.com> > Cc: Borislav Petkov <bp@alien8.de> > Cc: Dave Hansen <dave.hansen@linux.intel.com> > Cc: "H. Peter Anvin" <hpa@zytor.com> > Cc: Peter Zijlstra <peterz@infradead.org> > Cc: Feng Tang <feng.tang@intel.com> > Cc: Waiman Long <longman@redhat.com> > Cc: John Stultz <jstultz@google.com> > Cc: <x86@kernel.org> Hello, Boqun, Please drop this one, as I never got an ack from the maintainers, and quite possibly for good reason. ;-) Thanx, Paul > --- > arch/x86/kernel/tsc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c > index 15f97c0abc9d..d45084c6a15e 100644 > --- a/arch/x86/kernel/tsc.c > +++ b/arch/x86/kernel/tsc.c > @@ -1287,7 +1287,7 @@ int unsynchronized_tsc(void) > */ > if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL) { > /* assume multi socket systems are not synchronized: */ > - if (num_possible_cpus() > 1) > + if (nr_online_nodes > 1) > return 1; > } > > -- > 2.43.0 >