Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2667574rdb; Mon, 5 Feb 2024 13:49:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFL/I4bQKAope9pZQXrAw8CEFCzd7HXm8ROLRZtnTO4eXMH1Z/V0n8EtWXpbIDBwZnKCSjQ X-Received: by 2002:a05:620a:2993:b0:783:f827:124 with SMTP id r19-20020a05620a299300b00783f8270124mr446119qkp.78.1707169786949; Mon, 05 Feb 2024 13:49:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707169786; cv=pass; d=google.com; s=arc-20160816; b=V136QFvxWXR4MKGWEuDxfzP2duNw4/Rs72yFtCVtHj16pRFJ+OXmB47nabRzLIOQq7 hnlkcSziD4XFaeOh6xqAcBMLELreFfMyyWShkVmVgnv0Rmfeqm+4wvPKAmXuA7Qa8Cpj ryjj0iwjY9Vw78WrQk8fP6HrpgG0UQ1eRf5OZgRaRLmayXL7xNTQrNjMRvGpEL5f8kVt Cr/zVdv5Rt8hyL9rvdA8Y9FlLMun55QjDWfDHL44eFb1N4Ca3b8X7+eyogr2e3+BB0RQ X2VzNpf9nfrfVf85EA5y8fQrE8+EO4ER+vBd+10HKUdGHG64GnRtWP3Tgqvg0PAagkna XOCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=k9vFUOPGpoptW8GUFqvBNp4lBtUeJSRyY/6gryowVdw=; fh=ya3KdcdWCUmmqCO5FCq0MlLvu3yyMQgtZTpYhvp/45I=; b=NZozaMYYQllmCY98ztag8W92SkE+yQnfLPrby826EXj0fUg4DyvI7U4PrdNzeI0Ufm rCwxCW2byi2HAwTNsUT3YRXLoCighATDsQqXSouVp60ofL/t4AAP49Mk9oYOSgy7Ovwo QzdubSVGatOlsTBFBw+zlJJRnYW9CBIydizk0gU7kI5LeOn+mckIX6dHIqLRIdlzoizF TeiGZlJUtnlKUqqJzwyrO25ner6WGth6whe8f4GU/AkYJRAeU6I32jXyQxlr5dB+m2LG yB3w620jhS2XgcwV3/9Qzo5d3dQ0seosyu8OBatO/yiFV2A12jAunB6vSv2aLXA/t8hT Q7YQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HiKrwrLE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-53918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53918-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUOWWgbpy/7UyFnOo5sTi9VGi4XmV9llEFVbaB9jdXcYm4hR6RjNYaAhmvyUvjnjnxM7zZ+hZal/NRpY9VpK5RpHGbwBXqPaTNYaBanPQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v8-20020a05620a440800b007832fdba75asi780521qkp.356.2024.02.05.13.49.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:49:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53918-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=HiKrwrLE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-53918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53918-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B15751C27E49 for ; Mon, 5 Feb 2024 21:49:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9194134CF4; Mon, 5 Feb 2024 20:30:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HiKrwrLE" 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 D2FE3134CFA for ; Mon, 5 Feb 2024 20:30:05 +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=1707165005; cv=none; b=QMwDfklegbYE+mhuExeLT96ovdaWgPBoQ0WP7h7NBxAwlSNoflFnCK5NJVSESERX6sSiwWXsDI+dj0Eat+azy0nNSCGb599eyEH+fmttvooaAkYzp03GCrKwSG6a9M1+6BOyxVSWYRvA0He4oJ2vkWSJdbVr5gjgVvdTCAMmd2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707165005; c=relaxed/simple; bh=07agzmr6NqNZglfhH/E1LwthUvc6l8GOAhAuKPHzoi4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=k+2TZSJuKFtrhasMJhX9idk6DWpN1CRTXjc/06HnM/xSzKWBDLjqzgOPrcc1h7DvZIHH4/EIEcJ0z7dDyzrAwk7Sb5toqZy4Cj3igItf69Q7y/E2YJGIIh824nRB/NjhFjoqUSxgEWgF3TDRog+C7bc9UqlAKZPbQB96UlXjCAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HiKrwrLE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D02ECC433F1; Mon, 5 Feb 2024 20:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707165005; bh=07agzmr6NqNZglfhH/E1LwthUvc6l8GOAhAuKPHzoi4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HiKrwrLE5Ue6s/XaevZHXak9dRGV7UIBpzYEC+eL+15Ue/BotHAsbHTP2oI8CQym3 G42gvfa9L5oochT9qYdXom2aVKhx9bMnXKVGzLMpj1e/1h8Ba9sqt9Rpcaz3pI7zcT 55kQwRKKYTUePa6qZFh143Nxu8VJ1zbkiJaDi1WViU3VV9NUfLPhVgPC3RLDuYUFBj OIJ7jsJQwMRCzPvL1BtXZedgS6xcndlzmPQFvPme9oT2dNHEgv3GNYpvzj6yKmVV5z xAY3HcukX+xLXSSo84TAgeETsIOEsPqQD6q/0oAbSHQHqJnW919p5YshnKM0yFJXE5 +Z005qF6yq9jg== Date: Mon, 5 Feb 2024 21:30:02 +0100 From: Frederic Weisbecker To: Anna-Maria Behnsen Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , John Stultz , Thomas Gleixner , Eric Dumazet , "Rafael J . Wysocki" , Arjan van de Ven , "Paul E . McKenney" , Rik van Riel , Steven Rostedt , Sebastian Siewior , Giovanni Gherdovich , Lukasz Luba , "Gautham R . Shenoy" , Srinivas Pandruvada , K Prateek Nayak Subject: Re: [PATCH v10 18/20] timers: Implement the hierarchical pull model Message-ID: References: <20240115143743.27827-1-anna-maria@linutronix.de> <20240115143743.27827-19-anna-maria@linutronix.de> <87bk90i2ja.fsf@somnus> <87y1c3lxec.fsf@somnus> <87y1bzqbsx.fsf@somnus> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87y1bzqbsx.fsf@somnus> Le Mon, Feb 05, 2024 at 02:29:34PM +0100, Anna-Maria Behnsen a ?crit : > Anna-Maria Behnsen writes: > > > Frederic Weisbecker writes: > > > >> Le Thu, Feb 01, 2024 at 05:15:37PM +0100, Anna-Maria Behnsen a ?crit : > >>> Frederic Weisbecker writes: > >>> > >>> > Le Mon, Jan 15, 2024 at 03:37:41PM +0100, Anna-Maria Behnsen a ?crit : > >>> > Heh, I was about to say that it's impossible that timer_base_is_idle() > >>> > at this stage but actually if we run in nohz_full... > >>> > > >>> > It happens so that nohz_full is deactivated until rcutree_online_cpu() > >>> > which calls tick_dep_clear() but it's a pure coincidence that might > >>> > disappear one day. So yes, let's keep it that way. > >>> > >>> I instrumented the code (with NOHZ FULL and NOHZ_IDLE) to make sure the > >>> timer migration hierarchy state 'idle' is in sync with the timer base > >>> 'idle'. And this was one part where it was possible that it runs out of > >>> sync as I remember correctly. But if I understood you correctly, this > >>> shouldn't happen at the moment? > >> > >> Well, it's not supposed to :-) > > > > Hmm, let me double check this and run the tests on the instrumented > > version... > > I added a prinkt() to verify what I think I remember. I was able to see > the prints. So it seems, that the coincidence that nohz_full is > deactivated until rcutree_online_cpu() already disappeared. Nice, then I guess it can become a WARN_ON. Thanks. > > --- a/kernel/time/timer_migration.c > +++ b/kernel/time/timer_migration.c > @@ -1672,6 +1672,8 @@ static int tmigr_cpu_online(unsigned int > tmc->idle = timer_base_is_idle(); > if (!tmc->idle) > __tmigr_cpu_activate(tmc); > + else > + printk("TIMER BASE IS IDLE\n"); > tmc->online = true; > raw_spin_unlock_irq(&tmc->lock); > return 0; > > Thanks, > > Anna-Maria >