Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1522077ybt; Thu, 2 Jul 2020 07:33:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWhIZAGAt5gm2BgFfZYa3lO/aJ3nRhfl6f+MDQwHWGqKz0wTyzTccEpBlUaNcLMUyoVskH X-Received: by 2002:a50:dacf:: with SMTP id s15mr36632669edj.136.1593700402165; Thu, 02 Jul 2020 07:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593700402; cv=none; d=google.com; s=arc-20160816; b=DTnWAOlYd9ayJJ2NwdTiDjPWGTLJ5q/XSI/ToCST/TP/+wewZDUIxwktpLySb671BO g4ImMepHT4scClVNPXgb9qEx92pABBQ9toYiN3eHtjPdj9i9XbRnS5rVVfDGwKqNryRV HqMaIEIm8zQZXhgZuLdgT6XeM+Bsj5e6BuWn0yqFToZhhYFmLpTDnjg/DZ9zC2i4gpW0 LaK0jmd16Bispx5mgIyfzpQF87CUC9E9exKJ0FJa0g+U+d4e/Ym7Diy9Dab2PAIhUDsn q4i3J1QONuiKVCNZR9nVF276eNnlLU61c9PHJOajeuFytqXStcWw5WSPuCN7CveOe1+V 062A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oeM8G8n1UNe8bTPsGUQOUJRV+7XoKRQtgw7GFQE1Vfk=; b=b9YOZnHijr994QByca+ggschYw8zqr67EvV5Ou8uwyW2CBcs6WPMoiCmlJO/Ok6U6l Im7FTl5094S8SKPBSKDqrTfJetsGKZy+KZci/Rm6nQdVGB24pFxQc8K6uwDINTL4tER0 Kbraeb3nmwOJY46g2hDpWRIKMbjcSlZebwhjIF5J4cFCQSknzcK7u19x9KXHyvjABnpe 4tPz5Wl3EjNRIk2WW2QAmQnjczFE3LL5fCNcbrvyKvaeb+y38ldJE6+TIvkeor+OM6nx YdJ38pd3P5FP6qqY76NPchy7iyKYLAKv3SZt5Bil3ra765DbEyTKTmLAEmWiy+VkTGHd s7vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VX0y9aAy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp23si5599106ejb.5.2020.07.02.07.32.58; Thu, 02 Jul 2020 07:33:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VX0y9aAy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729796AbgGBOcK (ORCPT + 99 others); Thu, 2 Jul 2020 10:32:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:53220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728179AbgGBOcJ (ORCPT ); Thu, 2 Jul 2020 10:32:09 -0400 Received: from localhost (lfbn-ncy-1-317-216.w83-196.abo.wanadoo.fr [83.196.152.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E810D20899; Thu, 2 Jul 2020 14:32:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593700329; bh=XZbrrnyS7ug333rlhU+8891jthGCcmL9Xc/58s0cUD4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VX0y9aAyFQxKPsDhyJZUXMRd+pZ3OxZ+jxHfPOnN2xuz/AZeJMK/PnRr3ailueakq qAtl9hogaBvOmN8+OozFNYD5tf6rgu/BrOniSQFTUGvpde2eXSkME0moRanaFt3Woi sy32Luyol4IbDMo6DnFFR0tWcH0TJpwrxSFRwbZ4= Date: Thu, 2 Jul 2020 16:32:07 +0200 From: Frederic Weisbecker To: Juri Lelli Cc: Thomas Gleixner , LKML , Anna-Maria Gleixner , Peter Zijlstra Subject: Re: [RFC PATCH 01/10] timer: Prevent base->clk from moving backward Message-ID: <20200702143206.GC27417@lenoir> References: <20200701011030.14324-1-frederic@kernel.org> <20200701011030.14324-2-frederic@kernel.org> <20200701163504.GD9670@localhost.localdomain> <20200701232045.GA17670@lenoir> <20200702095959.GG9670@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702095959.GG9670@localhost.localdomain> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 02, 2020 at 11:59:59AM +0200, Juri Lelli wrote: > On 02/07/20 01:20, Frederic Weisbecker wrote: > > On Wed, Jul 01, 2020 at 06:35:04PM +0200, Juri Lelli wrote: > > > Guess you might be faster to understand what I'm missing. :-) > > > > So, did you port only this patch or the whole set in order to > > trigger this? > > > > If it was the whole set, can you try this patch alone? > > Whole set. And I can't reproduce if I try with this patch alone. > Missing initialization. This should go better after this: diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 25a55c043297..f36b53219768 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -1969,6 +1969,7 @@ static void __init init_timer_cpu(int cpu) base->cpu = cpu; raw_spin_lock_init(&base->lock); base->clk = jiffies; + base->next_expiry = base->clk + NEXT_TIMER_MAX_DELTA; timer_base_init_expiry_lock(base); } }