Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7382481imm; Tue, 28 Aug 2018 11:01:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY5SVJO2DM6Awl/AvpP3VdO2+upQlxo8zLl4v1bdQ0YNCrNzGHLyRI8w2sOnOj0D+PPLauf X-Received: by 2002:a63:1021:: with SMTP id f33-v6mr2521671pgl.72.1535479276555; Tue, 28 Aug 2018 11:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535479276; cv=none; d=google.com; s=arc-20160816; b=Ut1ii7mpELu+ekUBrYpQLi0wNryh9Aquw4IJmq65j8P0NYXiXrLa5uwBHaMtWT6Jz3 rClm+vW15bYI5M9zBeUvM9n06Obe8GIRVSgKuSIP1rrEU+sTzYVQW3bUhAP8cRmZzdfh uv4BZYcl8Bbsxr/gfDtEnRRL/LFBOyFxtvcfDWbeCQSYHMwDzV9Z8r7a3vGG7LCkr0MY ubMZmveQa4F83Cj/7iIxR533+FyDbqvzircqrPQkuP6V7eodzkxXrOo7vmDno07hW0nW rSxfEmm6YF+B5LXLiDWe0wC2H5vexeXyjKp3Zqket+p8MC6BI9SnChH74d9X9KECUfuG qhZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=ymoxweu15qYLc0XC1BN6g3wkvIP5PlSgfwg7BtU28BM=; b=ZS/mbjmLXQvzmJ37JuC07an0+4p7Vb50w9nqWN/IiP24UjCpPNqFPB+n5EqJdOyikw 3bY95iNO1oOGWY7gshtCbC9QfDRDQ4gk3e00l2SKfI2b69zXqznvRtOn3kpuVF5qSNAj B18+0SE60TYJ3uSnsHwBlBfUQeoPGZ4ji/07XKYKhtRMcbzaRRDD/gWZiKyo/RUPDRyd ge3rqQzhtGK7ZGs4IuQsBGEwIzDAN3Jy/mtc0xqwYLMBas3ADtWNW+TdrEjTwraUivI7 1QXuqsjko27+aJwR7am3/1s0uLnLuwAok6bRUoiKZSzewdFFbCe3oHFiJo1xao3vBIcr c2Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=f7pFSfkj; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17-v6si1553541pgj.214.2018.08.28.11.00.37; Tue, 28 Aug 2018 11:01:16 -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=@ti.com header.s=ti-com-17Q1 header.b=f7pFSfkj; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727860AbeH1Vtw (ORCPT + 99 others); Tue, 28 Aug 2018 17:49:52 -0400 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 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w7SHurXd098737; Tue, 28 Aug 2018 12:56:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535479013; bh=ymoxweu15qYLc0XC1BN6g3wkvIP5PlSgfwg7BtU28BM=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=f7pFSfkjurrjLn1YELLnaxeFXPKn3Nv+yfbdv4YZnKv8aHKVBhKAWaHM0B/z69URz C75UhIBS4liuhxTJwtleNcWAs6e+we/rQgDCQgZWFIHLsiGsxC1FMjVwy0+eccI/6B 4zygvDRRQcoJ0+zaf4wuwDNgDGkfSM+dpcgcknDc= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7SHurWM031428; Tue, 28 Aug 2018 12:56:53 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 28 Aug 2018 12:56:53 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 28 Aug 2018 12:56:53 -0500 Received: from [128.247.59.147] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7SHur9p000680; Tue, 28 Aug 2018 12:56:53 -0500 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 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 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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