Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4641210rdb; Tue, 12 Dec 2023 05:37:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUbl7sy1bLkoCoix5tpxuDv1vahErZm/gXDbRoI5pe+X1XZKixufcbTVK9biFiGHq2mI6N X-Received: by 2002:a05:6358:2919:b0:170:982:5611 with SMTP id y25-20020a056358291900b0017009825611mr9817499rwb.32.1702388236117; Tue, 12 Dec 2023 05:37:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702388236; cv=none; d=google.com; s=arc-20160816; b=rf6mqWl+OaIAjEiJ+kVJAhTSODifD4+MUPByTkr81gqARi6Mv1CLbKWBTFhQ03wBXs 3A8C32paPXpHrtvFbhW+X/LAYYNkLufmnyX2F0krvZ2WBsm+VHvhV0SCqZpykCuiUzS5 zdnR1ZcPg3336G74CjdjtQ7Ra+t3IHejMHe0nLBF6Zxqp8xwTbi+mtOvzdzQxT+dSX4F soc232eID68Gnv/WeEU5H6Duw2jio7Qpnd/TS0zLJCgVJGyv3NIKoLyiVyFwF/GYbPOo Q5a3nBAnmnmMPNgoMSLHsKMQkwWevTpxxCeNdD2FRJi8eYhMsTD/9iLGvYM/nwvL0enw rbHg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VXqbBKF6wr1At25L3ZQqe3X2tDvvFYbrn12fv8kGg/s=; fh=vy/G9oOUOab3wFSI2sJN0SfXkaZOJWEA0o3c/dIqg1k=; b=CrpHfukx8Coq0YsjAg71vTEKQO07aI+sy30f+hDCzBoOGhOkIQ2hjXjR9GSL5NIDmk bGMhuMt1ze6kTZOKon3GQq/1nj02k5lCp1uJ6NUtDVrLOMO4mlSghaoQDANs3CWm1h4H PYcKzuSuU9FYXiAgB08jaIc2fma/dtyaYoedkCcmGRyrRWY8lQdOUfeePRoZRhE7tBZv wrkWq4OsxQ0cnrrE+kXEkKEnBmlS+md7CGnW4o7KWpeimJm09AvPmKchMHgenW3JPXdx 9b12pWi6G2Y8DAtSrT1ySeGQpjLd0Ju1KYS9hA+SqUVRtdtEEpmWrWKu5oYMWN8bVm9x FN3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gAq56hNC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s15-20020a63214f000000b005b929886d2bsi7641448pgm.138.2023.12.12.05.37.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 05:37:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gAq56hNC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BC94F8077FE7; Tue, 12 Dec 2023 05:37:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346432AbjLLNg6 (ORCPT + 99 others); Tue, 12 Dec 2023 08:36:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232517AbjLLNg5 (ORCPT ); Tue, 12 Dec 2023 08:36:57 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92E5F83 for ; Tue, 12 Dec 2023 05:37:04 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA27DC433C9; Tue, 12 Dec 2023 13:37:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702388224; bh=An6pJpMuiYlfSi/g1KRM/yinCkpjxYiXnMPBeXwAN0o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gAq56hNCUV6DkM14vBoeoLgWhBIxTOhtKi3S9BimwOkCB/1hXMzll/BrxD1PES5jx IidMgrFPaeLRXfwFye4rcot9E6XcY3YcU4dxBG43E8PzXkPCD13I5COD+VhtDWDKD/ 0QNvAEJLf1sNjtJyoxqwCsT6OvZ8IKxYvkXqJ3LEW9gXrcP7r276j9PPp/cq/7uQAJ dLY+MT2Q/LHMCV+OXquotuZj8FCTIUarGkXqoAKH6Rm6XUnco1GXFwb/qcyekmvXXG WlBwVyl2ZZkDmkW6JQoWnrBxtWAwi+uVwhtN3WgkuIxu+wosyMBTd2weJMPEPR+Cbf uRYmUCR58/5pA== Date: Tue, 12 Dec 2023 14:37:01 +0100 From: Frederic Weisbecker To: Anna-Maria Behnsen Cc: Sebastian Siewior , 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 , Giovanni Gherdovich , Lukasz Luba , "Gautham R . Shenoy" , Srinivas Pandruvada , K Prateek Nayak Subject: Re: [PATCH v9 12/32] timers: Fix nextevt calculation when no timers are pending Message-ID: References: <20231201092654.34614-1-anna-maria@linutronix.de> <20231201092654.34614-13-anna-maria@linutronix.de> <20231204160350.OTCnqCJf@linutronix.de> <87zfyodfxc.fsf@somnus> <875y13mu96.fsf@somnus> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <875y13mu96.fsf@somnus> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 12 Dec 2023 05:37:12 -0800 (PST) On Tue, Dec 12, 2023 at 02:21:25PM +0100, Anna-Maria Behnsen wrote: > Frederic Weisbecker writes: > > > Le Tue, Dec 05, 2023 at 12:53:03PM +0100, Anna-Maria Behnsen a ?crit : > >> > >> Frederic, what do you think? > > > > So it looks like is_idle must be fixed. > > > > As for the timer softirq, ->next_expiry is already unreliable because when > > a timer is removed, ->next_expiry is not updated (even though that removed > > timer might have been the earliest). So ->next_expiry can already carry a > > "too early" value. The only constraint is that ->next_expiry can't be later > > than the first timer. > > > > So I'd rather put a comment somewhere about the fact that wrapping is expected > > to behave ok. But it's your call. > > Ok. If both solutions are fine, I would like to take the solution with > updating the next_expiry values for empty bases. It will make the > compare of expiry values of global and local timer base easier in one of > the patches later on. Fine by me at least! Thanks. > Thanks, > > Anna-Maria >