From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fllv0016.ext.ti.com ([198.47.19.142]:36482 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727040AbeH1Vtv (ORCPT ); Tue, 28 Aug 2018 17:49:51 -0400 Subject: Re: [PATCH] nohz: Fix missing tick reprog while interrupting inline timer softirq To: Frederic Weisbecker CC: Thomas Gleixner , Greg KH , LKML , Ingo Molnar , Anna-Maria Gleixner , , Tero Kristo 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> <20180824184103.GD2730@lerouge> From: Grygorii Strashko Message-ID: <47d2416d-6359-1f48-311d-404fb5bfa3a8@ti.com> Date: Tue, 28 Aug 2018 12:56:53 -0500 MIME-Version: 1.0 In-Reply-To: <20180824184103.GD2730@lerouge> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On 08/24/2018 01:41 PM, Frederic Weisbecker wrote: > 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. > Sry, that disturbing you all, but what are the conclusion here for 4.14.y? - take Thomas's patch https://lore.kernel.org/patchwork/patch/969521/#1162900 - revert commit 2d898915ccf4838c04531c51a598469e921a5eb5 -- regards, -grygorii