From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6C79C388F7 for ; Tue, 10 Nov 2020 15:49:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6F1882076E for ; Tue, 10 Nov 2020 15:49:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731108AbgKJPtL (ORCPT ); Tue, 10 Nov 2020 10:49:11 -0500 Received: from foss.arm.com ([217.140.110.172]:57818 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730231AbgKJPtL (ORCPT ); Tue, 10 Nov 2020 10:49:11 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5DBE31396; Tue, 10 Nov 2020 07:49:10 -0800 (PST) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3FA2A3F718; Tue, 10 Nov 2020 07:49:09 -0800 (PST) References: <20201101131430.257038-1-maz@kernel.org> <20201110130348.GK2594@hirez.programming.kicks-ass.net> <19286daf276f46aa@fake-msgid> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Peter Zijlstra Cc: Marc Zyngier , LAK , linux-kernel , Will Deacon , Catalin Marinas , Thomas Gleixner , Android Kernel Team Subject: Re: [PATCH 0/2] arm64: Allow the rescheduling IPI to bypass irq_enter/exit Message-ID: In-reply-to: <19286daf276f46aa@fake-msgid> Date: Tue, 10 Nov 2020 15:48:58 +0000 MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/01/70 01:00, Valentin Schneider wrote: > On 10/11/20 13:03, Peter Zijlstra wrote: >> On Mon, Nov 02, 2020 at 10:30:50AM +0000, Valentin Schneider wrote: >> >>> Now, I'd like to pen exactly why we think it's okay to forgo irq_{enter, >>> exit}() for that one IRQ and not any other. >> >> Thomas already said a few words on this, but basically scheduler_ipi() >> is a NOP (*almost*), the IPI has no body. All it does is tickle the >> return-from-interrupt path. So any setup and tear-down done for the >> non-existing body is a waste of time. Gotcha. The pedant in me thinks this makes it more of a handler property than an IRQ one, but I don't see a nice way to e.g. have this as a flag passed to __request_percpu_irq() and not have it usable by random modules.