Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4633185rdb; Tue, 12 Dec 2023 05:22:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqkM+2XIuiS3PsZp4kRfoUBXYtvZwUikODqLeMkkW2Lsjw6rjaXZDjfBiupNTK/VDvau7c X-Received: by 2002:a05:6e02:15c2:b0:35d:5846:377e with SMTP id q2-20020a056e0215c200b0035d5846377emr10697290ilu.12.1702387353873; Tue, 12 Dec 2023 05:22:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702387353; cv=none; d=google.com; s=arc-20160816; b=DOkSXlMmktaWr+UPQXAF/2+AZyppFpX5k1Z7RXn+CmaEAgIjTOxjhUnYVD47uU9WTe bcjtf+32V6Dhv9FLJVlhN8RPMN6m6pgzd2t5qyc+9nnBPWEgWQc+e/YM4AvDVHDM7/1a Qdpw+9LxzEBOq2KvmcrHpd9YyEEDeZs1Kgg/0UN/eVjdqeLiN2B0MFjToSZwlrrX2wsI 0wZMyY6GalPSPuiQZAa7IdEJGJ6ioCm0JhbblCkt2sZsyC4twL95xhEQYOz4pRY5OCRZ NbO0uolq1XfJsIPyW1iEXF8JPTdGXvOZvsR4K2/bv0sT8EuHLKxZ0HfBMTkXvsayi7Jf /SuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=WlGpdwRMEpRoCFDzq4Qr67dRSkJMWxKFiBJopCplSz4=; fh=q6P7O5wcvdchkz0AwWMkLliibcU9MSoaEPvwEAwrs4w=; b=dvwIHm+Nr4o91gx6cow9B3e69yGPMzzCeyylD316R6o5Uot9EIcvPQ3yMZKwWBS5kV nilOt9ks4IS2/5ziRTEvdXBugWKQM7cI6Z0fByWL7h46l7b7LrLQMyAQ9KeDedz1KAci AWlvLifOb2BdOnYjN0Lr07o8rq7ndnmJOLm5xCHWfoWE7eFyo/EufQWVfFR/tedPC+G2 R2eZqb6vmKRbFdKDYVs0KTjSNead1bjx90c6uY2/W56tzY1kx2mZEJL/ypUk78nIpK4o VGB0b+wUaVEyahjYweJMMJLz+4YRDui89fWp/cMQyB4q5DsYxhdFtwCbBBsupwPX6CJ1 2mKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=NQg1ad5b; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a3-20020a654183000000b005b9a1494637si7594305pgq.317.2023.12.12.05.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 05:22:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=NQg1ad5b; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 52C458026E06; Tue, 12 Dec 2023 05:22:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346400AbjLLNWM (ORCPT + 99 others); Tue, 12 Dec 2023 08:22:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232506AbjLLNVw (ORCPT ); Tue, 12 Dec 2023 08:21:52 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A491E1BE6 for ; Tue, 12 Dec 2023 05:21:29 -0800 (PST) From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702387286; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WlGpdwRMEpRoCFDzq4Qr67dRSkJMWxKFiBJopCplSz4=; b=NQg1ad5bPgDhlytdBl6emrZIs6TDt5HsxPbt/if4SY60/1eMTMVA+Tyc1xze5Tp+igKkZP uKy8vdG9vb373G7v8n5JfYIPYrOmr+vH4iIiovWVHiJU6v5BTcYd4KDMVkoUQKWU84yc7J oygCKLQUX/+N49Mbblojg8FYUzsfr7EbTPZbq9oWDZfqSy0vHwYSjCg8CMOjORJkU4CQ34 4wX78hhhmHZvhsOFvndjej+dU+lP4HoWoOXXgoYbdAMPGYkkciapPwNyegP6C/BrZ3w1vT /5HvAsrxKV8HjkgO+VrbMkvBO3oAIlub5OXriuSqRaUyj5WTRnbuZuyE3kmVeQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702387286; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WlGpdwRMEpRoCFDzq4Qr67dRSkJMWxKFiBJopCplSz4=; b=OFloWOz25JcxuIveEVjW9lc0NwQkmWKJOUUuRD4ZvrZSKiXvywVnW/RzNuzyVeCINQxCxN VOiy1AUdYbtzhEDA== To: Frederic Weisbecker 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 In-Reply-To: References: <20231201092654.34614-1-anna-maria@linutronix.de> <20231201092654.34614-13-anna-maria@linutronix.de> <20231204160350.OTCnqCJf@linutronix.de> <87zfyodfxc.fsf@somnus> Date: Tue, 12 Dec 2023 14:21:25 +0100 Message-ID: <875y13mu96.fsf@somnus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 12 Dec 2023 05:22:31 -0800 (PST) Frederic Weisbecker writes: > Le Tue, Dec 05, 2023 at 12:53:03PM +0100, Anna-Maria Behnsen a =C3=A9crit= : >>=20 >> 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 lat= er > than the first timer. > > So I'd rather put a comment somewhere about the fact that wrapping is exp= ected > 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. Thanks, Anna-Maria