Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1466991rwr; Wed, 3 May 2023 16:03:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Sge0VJaNFmycpoXwr9fX20xLrftFR1Xpt5mBAUK220Wphy2JZAu2G0e0zYAUWzpYIvD/L X-Received: by 2002:a05:6a20:a11b:b0:ef:242d:54e3 with SMTP id q27-20020a056a20a11b00b000ef242d54e3mr265289pzk.21.1683155022667; Wed, 03 May 2023 16:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683155022; cv=none; d=google.com; s=arc-20160816; b=txoCSi0ZEAE2UV3z1M578+poswZN+R2HdauLhx5KdLpR4cQjYXFctYT15lLOiBGsoN JcNnAYp0usPRymGwj1oH5v6p7r2CiFvufK+p8vC9245zM2ErvhvZORmjuVDIRXLz4J9c pOXr9eXdl7i6Jx5CvieqgB5xpV/p6AfTv/eghPjOai1QOYPTJ9Kn1ltPmH6qcqS3Gr1g ZeqkwDLFZB8g/4KMcFgWUnaDeKWWsJ5xrvUuV0TffyInvcwwleYgKih+Ih4InUSM8a59 L9Uwcxj4vX3q7cqYONPP7W9itclZC5ci1gXRy0a6unQ6hgmTMC2Df9vi41jx4btvgRfk y68Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=H2fDBKebp1JiAoGTmRNJgDZkgGkfmtNzma/VKZdCMvQ=; b=F5djo0pkWrtqd5xMmZC1/8x/yuWBHdEqwnmkuf58QOEQCnJ7SsxG3CY04rKIRticmD J8GxX/seJzHAV6uz/ckRVQYL0lYH60piysN31a7WrktJEdr8buGYO0TMYUeSeqLBVw7k Bc3Y4F/Ji+Bn0S87IjUEoX5lKHEl+6xxqOqfQw5LXw7uqsjKASp3hQihTWziQgLS7ncW aY7tFDzyEWhOCUU9QJ3K6/oaJmA0stjROOqPdfCe2Ty/nbNuFLtdqgUBQFg6B5Q47G5r SRHJbb2AXZ8SX3X9ACRl2qwagpF3d2ApCgRP7cziiksSg8XUSnnq/O1lRbYcNOuZACD+ 6wJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=JPOVX5ue; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=NVzO+djR; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 63-20020a630042000000b0050bf617d84fsi21135907pga.249.2023.05.03.16.03.13; Wed, 03 May 2023 16:03:42 -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=@linutronix.de header.s=2020 header.b=JPOVX5ue; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=NVzO+djR; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229738AbjECWyB (ORCPT + 99 others); Wed, 3 May 2023 18:54:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbjECWx7 (ORCPT ); Wed, 3 May 2023 18:53:59 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BA694690 for ; Wed, 3 May 2023 15:53:57 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1683154433; 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=H2fDBKebp1JiAoGTmRNJgDZkgGkfmtNzma/VKZdCMvQ=; b=JPOVX5ue5Fo329NVRVOPqHxIz6NFMVoYRH0zhePq1RvmLszmNjqr9JT/YSSWnBEzGwAFkn H9JpmSvlO2kuzIH/+Bi8gNMbuoqF93EeXvYl0A4IJ8K8zbHmTyirFJDPdH6d7N9GVELTz9 AjfIL3DRVMCSTilsADKQRfV26ylDPKoMXoW27F9B3zAqlrocSlrPjv4v2heg/760y75/bh LU5aol2IGaHONm8Tv8KbSruY2Rie78/ARmCdlcG+SllbYyBvmq2KdOPHoWDGu6uyOCuTeO RLcxFvporqOy/b/Fvf4mpNnLXRy1oPQznF7fDPqkmgLIaYMlwsivo844RJmL9w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1683154433; 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=H2fDBKebp1JiAoGTmRNJgDZkgGkfmtNzma/VKZdCMvQ=; b=NVzO+djRPv14XNGwfsL+eYeTdGJL5BsfjKc1HE3hcEtP5cEUNosodpgNklzOJCCn+jBKJU UzDKMT2RIJAVhIAA== To: Frederic Weisbecker 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 In-Reply-To: References: <20230412003425.11323-1-victor@allwinnertech.com> <87sfd0yi4g.ffs@tglx> <87jzy42a74.ffs@tglx> <87y1m652n2.ffs@tglx> Date: Thu, 04 May 2023 00:53:52 +0200 Message-ID: <87pm7h3u2n.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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? Thanks, tglx