Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2166313lqb; Mon, 27 May 2024 09:51:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWatFFT1OsNo6n6CRJuZ901EVM1s9Y+qTdqBk1MD20z8dGV6nbIs4JwOjLo8jQzM6BQnys46GiCIxJbjPHoPFpY9Oa58s5XNQb44XTEQg== X-Google-Smtp-Source: AGHT+IHMJSGNsDWqPGNaTHTJBCiWYQ4wNiRzvWf0XrjGPcQYamU0eiIEloyRV5vtF6au8hiMz0ga X-Received: by 2002:a05:6a00:450a:b0:6ea:e2fd:6100 with SMTP id d2e1a72fcca58-6f8f4192abcmr9575299b3a.30.1716828689664; Mon, 27 May 2024 09:51:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716828689; cv=pass; d=google.com; s=arc-20160816; b=sKjN/dUybYJcO+HSh/8Lj9BsIyxg5kD/qaDYVH8ieh+KzXXZSJ3QvCAGfQTlCsEMLz 06trkRyZ789LTQm0Z3Zowis43dLHf9dBTJ/3fxszYe4SiIShua3NjjhoYdD5sV11RqtK jbKpoKGSghCohZ/BzDOA+puHn9qshjmPV4+C6GElPrHAbFeaWC+Rsc5TKmtyOIXtEl5v lm2q06TxWegXjXi85YFb204CBWrAhuJcSHq+Uy0GrguzKQUCg68t58qNM8pkVoILiDZF dOYPAUNzqwsps18zKMhiSkIKkQ1nu6QXmCnBP7Yn0tH5JSUYs3d/BORv/4/TllC6P3nY tr5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=JLmwJM6hz9qUhzixzSAK8wDdiZKr1mPFgk7wH20IjSI=; fh=LF9MhpHtpgae4J3eyD0uQFlizkWd03WIAeAvCOfYBLs=; b=wRAdOEj+KEbFsfjBUq+Vv9RVRajzc2oA0OQtIHq3emOdBLp/cdKkf0WbbUhs02+bTn vxv9xf9Rzn+S5Am/MMxLSuw9ATdywlQhB9u4soCr6YV4zNMK6dfgB06JHNUdo9RxPM4v DtWJgNwb2HXs0wW6dpV/XFigXa5Tp+FW+JkqHfxnlZreeDOUaUe63riXNCPd47cW6Jk4 2CBg48SzJm7KlP9xz0Xp26XntBRPPIw0DqDpIgAR4OI4RFOfXRYieJj2DY/YF/dxUkFM pMZ51HgtDlayXG3aUe34M78JyiZJsYVfHUygWQAJ/xlfeaQ5XDkSQXW1E8RkHI0n4j15 3zUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=sQGeqTFF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-191207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-688d6845f8dsi5396810a12.610.2024.05.27.09.51.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 09:51:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191207-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=@linutronix.de header.s=2020 header.b=sQGeqTFF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-191207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 9CE44B2D318 for ; Mon, 27 May 2024 16:19:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84720155CAF; Mon, 27 May 2024 16:13:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="sQGeqTFF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="VgylFGwG" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 6587C61FC6 for ; Mon, 27 May 2024 16:13:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716826384; cv=none; b=DrMG2uyjN3o/vFBMkfH3ic8g2ELJB6MJs/Xvjs7F3QfwwUIKyG38EY790pKq5Bo3IEq3XZxOH2meSS/6jKU3xgSii0iKWSiF9DpG6uiyCvxA0+YylxQ0drundnOrVmtAF9Ww5qDwr5i/GO81/s1ry0OMnc9/bZ28iXxRKfOMoN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716826384; c=relaxed/simple; bh=a42e2Xf1GNWvhAY2Tj1SM4zxAQkbkwQelk3WLmIr/5o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Lja99RKKYWTHpK2uMbzbg0xUjg4c0BtMZTT9lYeiakSwazQN7EcAyFsOpFDw77Ga0rKBQJR0MNrZb/bremA74346Vv1oS8NBuhu8FkWpKCogQLYrVYqCWgpAb87aSMZ/ZETKqMzQ0RVxVm8L0rhoz6sPztWUVkRJSzmuxT2wPGE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=sQGeqTFF; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=VgylFGwG; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1716826381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JLmwJM6hz9qUhzixzSAK8wDdiZKr1mPFgk7wH20IjSI=; b=sQGeqTFFGqacG2PsRz8fGw0+8mic2QYWoIZ9ucj6an5Xiak8g2kMoMQWCNZpfBpyEYQJJp VsVT8pZBpJpFE1IbCMmuheAqm6aP4WKm+G/cMGB2Z6Sj7DVetRvPr1YY5Ap8tqXNFlwwJ/ JhxMzd5w2hNvk4q7U5XX7qOJptxE63XnKqjp5rugFTHwz7xsPk4/nK7z3owiwb1YxuHNuB 6gHBs/cWycEmYBjWDIfJUach9z+fTnS7lIN/YdcMBVURMRWPCQqoEmQ67t7c7jJ6bsBMyH XzhYs/MOhEWhIb1oW/s805tDRepDQDB7bnJBjueoEURKS5vNbwKMc2NwOoeSJg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1716826381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JLmwJM6hz9qUhzixzSAK8wDdiZKr1mPFgk7wH20IjSI=; b=VgylFGwG/P1iLaaGO4rlmPXtyUJL5LUo+ljv1SrAmvbj8PXreAqWAx3l6DV2/ohqrufjJP /egz2oBJ0lIWAsCg== To: Nicholas Piggin , Oleg Nesterov Cc: Frederic Weisbecker , Ingo Molnar , Peter Zijlstra , Phil Auld , Chris von Recklinghausen , linux-kernel@vger.kernel.org Subject: Re: sched/isolation: tick_take_do_timer_from_boot() calls smp_call_function_single() with irqs disabled In-Reply-To: References: <20240522151742.GA10400@redhat.com> <20240523132358.GA1965@redhat.com> <87h6eneeu7.ffs@tglx> <20240524183700.GA17065@redhat.com> <87v832dfw1.ffs@tglx> <20240526192758.GA21193@redhat.com> Date: Mon, 27 May 2024 18:13:01 +0200 Message-ID: <87plt7b5de.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Mon, May 27 2024 at 21:01, Nicholas Piggin wrote: > On Mon May 27, 2024 at 5:27 AM AEST, Oleg Nesterov wrote: >> The more I grep the more I confused. >> >> On 05/25, Thomas Gleixner wrote: >> > >> > Right. It does not happen because the kernel starts with jiffies as >> > clocksource except on S390. The jiffies clocksource is not qualified to >> > switch over to NOHZ mode for obvious reasons. >> >> Not obvious for those who never looked at this code ;) >> >> OK, clocksource_jiffies doesn't have CLOCK_SOURCE_VALID_FOR_HRES, > > jiffies clocksource requires a timer to run it I suppose. Yes, but it's all periodic (nohz disabled) mode until clocksource_done_booting() selects a high resolution clocksource and kicks the NOHZ stuff alive. That's a fs_initcall() and happens late in the boot process. Thanks, tglx