Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp869019rwb; Wed, 9 Nov 2022 09:34:09 -0800 (PST) X-Google-Smtp-Source: AMsMyM7bIMbmSS8oIaKKtNQUAiQn/HYDiFWJvNOFR/RgqAeD2q7Sn1a1bibg1NAzIcMRPhO+jv0y X-Received: by 2002:a63:fd4f:0:b0:45f:d7ef:9f94 with SMTP id m15-20020a63fd4f000000b0045fd7ef9f94mr54044971pgj.137.1668015249235; Wed, 09 Nov 2022 09:34:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668015249; cv=none; d=google.com; s=arc-20160816; b=I5NJfqmDZat3l0FX2fjTb9oO1OVeAR5a/EUo1zKDBvvdxL60dVVe22sIc3ovtingKY Cdp1DX+DNIHz74PkjmuGDHuNwXOVdb3IkqTnrEjYuCYKzwo1y5FXVD/FidhVRWBNoeKb L3MtbIggK6dHOQPZeog/Lv2SahvSxnMu0U3FCrDl/kNh/e0ehwlIOMqOOGJVSACe3FZC NBX16Khlp22QDkeZN1e3pgKglnUlgAXOof4z9n78bDmWph9/z7zFNEtwiW6sxwsP4wVF CIP3MMaqq8PDIscWy0bXUAGw5LjPMzNj2q/5lfdD4XCPF/kwtomHt0FGkPsDRFzyKe/R p8lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nG0Z5x5AVazS2caYaUlkfs4ud7+D3npWQloPkcA5YNI=; b=JKI1cHg0QaNMu29C6akslFNo+sPTE02O+txcsgo10VSs+7eiDP222uPik5Mx29W6wJ sLeAgMr58AkVkduPbysjHyjf2sEE/WLJuN7W9o221Jr59OwzV5ZdXUFaMFrsbHBSGhBl rf4RoM9mE0Ss3BpFTGN5TP3IwXDiwPSzzKWS/vpE/1G9lBrKwuZDuz/hTp1gELjSn5tQ HMyPRelcASURiFXaq4lU35adzA9+5z4XDmLaMW/Rgz9C4G4lSE7nT05Qy0+9r46LCBbl UBZttok7q+p31bxjDbP2ymVCWFjgIxy9d6BQgaZ/5ty/7HJ46zShoVBxDeImWb5xTPpP uhFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MrUA3vAV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x23-20020a633117000000b0046afe44ce9esi18968215pgx.131.2022.11.09.09.33.55; Wed, 09 Nov 2022 09:34:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MrUA3vAV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231348AbiKIRMg (ORCPT + 92 others); Wed, 9 Nov 2022 12:12:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbiKIRM3 (ORCPT ); Wed, 9 Nov 2022 12:12:29 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45FC117882 for ; Wed, 9 Nov 2022 09:12:29 -0800 (PST) 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 D319361B97 for ; Wed, 9 Nov 2022 17:12:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADC3EC433D6; Wed, 9 Nov 2022 17:12:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668013948; bh=3vd49ukae8zqaQGFhhI5nKYPSFH2xOZx47twfXi5kN0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MrUA3vAVX1cqpe0NlU3gcWXwLZPtJNqcBfXircUxx/pZ2V2iyiFaIkN+NP/UlPdso y1yAYg1NH2zmDhzTHaI7mFFVnvQ8FH1xmEiD1obxY2Roou/RMMPu06QSrbOBjSOQ7R tMuGbLLH5mlFEXot26GhYpacgIOVfcnXMGFHHQfAcNnQr2iGUktjXJuRzngDx6WQ58 9w0VM0WiJCp/mtsaQFcW3jNrwz7VNmHO8NxdO392VVt7woKpflZFvtSt9jlIIG0dUn BAEdAA/IbZj/BFCeBA8iqE2INQokntTw+tZt8OoRwmt1ZRKfMmmAnKNZTFqMQOmygm 9Ot5+4O9Y+BrQ== Date: Wed, 9 Nov 2022 18:12:25 +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" , Frederic Weisbecker , Rik van Riel Subject: Re: [PATCH v4 14/16] timer: Implement the hierarchical pull model Message-ID: <20221109171225.GB300561@lothringen> References: <20221104145737.71236-1-anna-maria@linutronix.de> <20221104145737.71236-15-anna-maria@linutronix.de> <20221107220727.GA10939@lothringen> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 08, 2022 at 05:16:11PM +0100, Anna-Maria Behnsen wrote: > On Mon, 7 Nov 2022, Frederic Weisbecker wrote: > > > + } > > > + } > > > + > > > /* We need to mark both bases in sync */ > > > base_local->is_idle = base_global->is_idle = is_idle; > > > > Do we still need to maintain base_global->is_idle ? > > is_idle information is required in trigger_dyntick_cpu(). I made a mistake > with the hunk in trigger_dyntick_cpu() introduced in this patch. Because > after this patch, global timers are still enqueued on any CPU because > crystallball still exists. trigger_dyntick_cpu() is also required for non > pinned timers. I need to move the hunk of trigger_dyntick_cpu() into the > last patch of the queue where crystallball is removed during enqueue and > there update also this line. Then I will drop the update of > base_global->is_idle in timer_clear_idle() as well. > > Sorry. This went wrong during splitting and folding the queue back and > forwards... Sure, no problem, just asked because I wanted to be sure I wasn't missing something. I suggest waiting for broader testing after the current batch lands upstream before removing the crystalball :-) > > > (I'm going to do daily reviews on this patch because it's quite dense :) > > Thanks! I try to answer your questions fast. Let me know when you are done > or when you need an updated version for further review :) You have at least one week ahead of you, the time for me to recollect my brain throughout that patch. Indeed no need to repost now, I'll have some more questions for sure. I like the design, so I'm merely just chasing correctness issues and things that might be made clearer. I'm more afraid of what testing will tell wrt. performance and powersaving but, fortunately, the world will scale much better than me to do this :) Thanks! > > Thanks, > > Anna-Maria >