Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3162878imm; Fri, 24 Aug 2018 11:42:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZUCWAUVq6ZxaSVT7ls2TOsw36iCCw6lJS9Li+JF6be2Z0jPO6CXznxiwWoswgMVVca5cVn X-Received: by 2002:a62:ee06:: with SMTP id e6-v6mr3225727pfi.2.1535136149018; Fri, 24 Aug 2018 11:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535136148; cv=none; d=google.com; s=arc-20160816; b=Omw8DozrBxlATiMJ1geS/MFEJbSiZsj4t+bqj050SOxVc3zBYu86hK2l3+AOIWSCcR WVMXo9EtIvZGnWyMUwsyP6W0lO5c+1Dife/NSqmzzNnE5Wj6NO8IoZurWGlktHAoewzo 2MYYbHNBROhpi6PkFyOhknas1j3DUlaE9to2KKOwStv2h8VqCel0HVphpeDSwJc5QJrD XLkdqhb9CdoECA1r5hTO7cp/+92fRbY0Wa3ti7Jg9/dBgoTc/28qHYA9bd3Mxq8D93xb W9cSlkf6Dy6SrtR0cLcfrOpwN74rg8TJN+89Bld+fQo7dHe3MiXIyb140ckq4lzUgqOb pQng== 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:arc-authentication-results; bh=rQ6wI6QEXnfZ1OoAZHqmncmtDw+Bo6JL6gzZddjjrQ0=; b=v6V/x6EPtqzXEJrIirAAIJ2k710/znHj51Yb0M/0NnM+QUUWzJpmS8nz0vHrZWL495 gvfz3rq00EqTqw5Rb8uvaMH2Pg37wgaefgNh9SDpwrOm3gO+uwk+QQUxMRjy3GWGV4RI j5xD6XdBPMPoJ0S4/xC/+7/6nCASMF36Iad4kruWZ9AmNjctWuT8Uv5p7A5iF+EoOJrt 1o5lSYmv9ioU6ZEEdEwSozz8dw7mUaFEucadP64qtTHU1WpMe7BHc/R3daO0rGjoQXDE ME+BrgsJzF1BIL47YGryZ2X6NzMbe2Ili/PmxTXmZW02YKDZt3mYzPnjF1dHX8SGB2BV q8Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NkirNp9f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id x19-v6si2618786pln.336.2018.08.24.11.42.12; Fri, 24 Aug 2018 11:42:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NkirNp9f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727014AbeHXWQz (ORCPT + 99 others); Fri, 24 Aug 2018 18:16:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:46268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726535AbeHXWQz (ORCPT ); Fri, 24 Aug 2018 18:16:55 -0400 Received: from localhost (LFbn-NCY-1-241-207.w83-194.abo.wanadoo.fr [83.194.85.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 729FB2147A; Fri, 24 Aug 2018 18:41:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535136067; bh=SdIomO4MEFSUrqg/ntH9iYImSYSAyiElDBzJnU1VqA4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NkirNp9f+/6ywNgcR0jEND+/iJT1GTesQDREly9YrwqBVl0e5T+EY3i4M0x52BQDT xGcakgN6aPEWG02GwLwUeGbQ7+6eIPt7880eBc8370l1Oci+NlRlymB6G/lXDAfycX TKttY9ARutfIKKOFNU+Ww1LAxk/IxS5MPwja6q18= Date: Fri, 24 Aug 2018 20:41:04 +0200 From: Frederic Weisbecker To: Grygorii Strashko Cc: Thomas Gleixner , Greg KH , LKML , Ingo Molnar , Anna-Maria Gleixner , stable@vger.kernel.org, Tero Kristo Subject: Re: [PATCH] nohz: Fix missing tick reprog while interrupting inline timer softirq Message-ID: <20180824184103.GD2730@lerouge> References: <1533077570-9169-1-git-send-email-frederic@kernel.org> <8ecb9229-4c14-6967-0863-15b47cefd251@ti.com> <20180824061750.GA20523@kroah.com> <0d63c2bb-f75d-3f79-c19d-bb4ac9a00cd5@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0d63c2bb-f75d-3f79-c19d-bb4ac9a00cd5@ti.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 24, 2018 at 11:10:44AM -0500, Grygorii Strashko wrote: > Yes. i do not see local_softirq_pending messages any more > > But one question, just to clarify, after patch "nohz: Fix missing tick reprog while interrupting inline timer softirq" > the tick_nohz_irq_exit() will be called few times in case of nested interrupts (min 2): > gic_handle_irq > |- irq_exit > |- preempt_count_sub(HARDIRQ_OFFSET); > |-__do_softirq > > |- gic_handle_irq() > |- irq_exit() > |- tick_irq_exit() > if (!in_irq()) > tick_nohz_irq_exit(); <-- [1] > |- tick_irq_exit() > if (!in_irq()) > tick_nohz_irq_exit(); <-- [2] > > Is it correct? in 4.14 tick_nohz_irq_exit() is much more complex then in LKML now, > and this is hot path. That's correct and it's indeed more costly in 4.14 as then the tick is going to be programmed twice.