Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp179744rwr; Thu, 4 May 2023 00:59:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5P1OCVwfQ2uOvc/UpbE49+M2KRM8rg3gO1XxyYiTrBDsIOIW03yM++bImPpKYqGAMNuKR4 X-Received: by 2002:a05:6a20:3d83:b0:d9:2cef:949a with SMTP id s3-20020a056a203d8300b000d92cef949amr1715370pzi.28.1683187164548; Thu, 04 May 2023 00:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683187164; cv=none; d=google.com; s=arc-20160816; b=qo2Fa1bOHle50cXJQKGO3FR5H5Vvh6HG/rxVZXxiqp0eRDs5ivOGBySdkqVykf5mlh egEePqNUTlyAzYLolojl1F//p5I94XZ2U1oLnlFyAGP/hNCUKZ1E5M+wKP4458XeQ60b OlfqlqoCCP3916D4OY+vTeW/c8du9XCJ6KhyUcmYrizAi7t6eXgYHfjaRKjPqMLZ+e13 xBb6Qau8rojJaFK23etaTocnPVrTHVDX+bSHV7psjhc3KVbfzcaK0JXvSK4GtOtYxG86 P1a8X3v64m/5R6J5G++k5QMRUzdyWV/+6nePA8lmFXRr6kAy2qA13ZUu7dSQuRbMf3PE 5h+A== 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=HJ7nMbajVAdRo39pr2CTUQ73B7SgLq09AOlhndx1QEg=; b=Id9kOc85EF+Ou05uLlLhgDxDhZB1tNs7dNa9HcaCb5pgoqfRV6LKEBGwQA8wRR3V7K 9Ug6HuqwXf91UY7GoAVMgqTs+VmuiVsduE5ogHyWMGbZjJQhhRskqYn7dzHYRRHtzxDP +uMpBBOXPhuEKXp7SLIny1/6V90HNyIjFGSPC+Zrh2g6dsxKQ7eWvDh2wZaHSC7Zz6yU yItIsp1AGiFHnsJpEaLI9+E7nEN2YduE0Q/OHRd2QthgWm0lJBRp4KH9kfqKLNeRYYcX hhGuldiQc7A1HGLjuJZG0Byu3C57r6GhEVeXboc7FZ+Uott5QLzj40D2w4sV6i8JGy6i AUww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PBh5syGF; 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 n127-20020a632785000000b0051f0bd1b159si36389461pgn.718.2023.05.04.00.59.10; Thu, 04 May 2023 00:59:24 -0700 (PDT) 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=PBh5syGF; 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 S229774AbjEDHvA (ORCPT + 99 others); Thu, 4 May 2023 03:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbjEDHuw (ORCPT ); Thu, 4 May 2023 03:50:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ADFA35A2 for ; Thu, 4 May 2023 00:50:51 -0700 (PDT) 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 98197631B6 for ; Thu, 4 May 2023 07:50:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DFD4C433EF; Thu, 4 May 2023 07:50:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683186650; bh=+EwHUzp5vJUnfYrar71It4x2Lp1m5riSIiiWulMenKw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PBh5syGFz84KqWEZYJukp+DtC9fl67HGByQFIvC8ov7rmJ4rOzoIlwgNXAAIyZbEc VVR/KTYvMnRUvGNzg8oB9qmWoziBB0/1CcU0TL5Z4pyyorN2t/rKucW4hHsAI2SbrQ lJA9AkwSQwvKE6e0RPhlOanpzg6xgLCS2WwiJTo+cbeIKkdnw60HvXGgmYoL1ZpUfI 2g4TcUUF0sVYokDsax5F4CynDcaxTiBk2SVnuc0q/Xv+vHJesB0go4il2K0TdtOlFH 3tHWQQsVKjZg8vD+YNegoANiW0CcvFyB8q0e5A6yXCla+LbhVefeq3YvAZTiBEu6+d YvMU1J1/DsRaw== Date: Thu, 4 May 2023 09:50:47 +0200 From: Frederic Weisbecker To: Thomas Gleixner Cc: Victor Hassan , fweisbec@gmail.com, mingo@kernel.org, jindong.yue@nxp.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] tick/broadcast: Do not set oneshot_mask except was_periodic was true Message-ID: References: <20230412003425.11323-1-victor@allwinnertech.com> <87sfd0yi4g.ffs@tglx> <87jzy42a74.ffs@tglx> <87y1m652n2.ffs@tglx> <87pm7h3u2n.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pm7h3u2n.ffs@tglx> X-Spam-Status: No, score=-7.3 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,T_SCC_BODY_TEXT_LINE 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 Thu, May 04, 2023 at 12:53:52AM +0200, Thomas Gleixner wrote: > On Thu, May 04 2023 at 00:27, Frederic Weisbecker wrote: > > > On Tue, May 02, 2023 at 02:38:57PM +0200, Thomas Gleixner wrote: > >> Updated patch below. > >> > >> Thanks, > > > > Looks good from my layperson's eyes, just a doubt about a comment below: > > > >> + > >> + /* > >> + * When switching from periodic to oneshot mode arm the broadcast > >> + * device for the next tick. > >> + * > >> + * If the broadcast device has been replaced in oneshot mode and > >> + * the oneshot broadcast mask is not empty, then arm it to expire > >> + * immediately in order to reevaluate the next expiring timer. > >> + * nexttick is 0 and therefore in the past which will cause the > > > > Is nexttick really in the past? It's set to tick_next_period... > > Only in the non-replacement, i.e. the 'from_periodic' codepath, no? Bah, missed that, right. A shy Reviewed-by: Frederic Weisbecker Thanks!