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=-2.0 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 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 D2955C433DF for ; Tue, 19 May 2020 17:50:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AC7E820674 for ; Tue, 19 May 2020 17:50:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HqSSf+dt"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gsvMz+El" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC7E820674 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lZHNgBA7YFER2SdxT8LvLi/9nlV6jmz8H75o1Y8n/k4=; b=HqSSf+dtgPaQ6d f+1j3xAKN1icwoypWdlkT/HQgcxTxc+6Fz2fZsz5uXClSplrDFrAYSBeF0ezFEeMPzdZ6OEg1HqNg oHHBlwUpiQrAPxcwKnJ3AkmgZfyRycNMTmIc/9GPj3RIrL/3ck5HOrW9wqsbT5IGnNmI+EFn58S8s nc3C9pzpCA5C1HQClJhcr85Ni9F2rUzsLu7HhVaOfwAaD8gJeKf4xgaOHWxY+dx0mzqbGAxZ0YEIB 4I/OVOQdFNDOjq2LBzbdQmLbUlYyPM/8LzenUB5s735MpVzMVN8nMSHl9vTo5yN84TspzZsf4j/7b gSjmSwRTOHC9ChSfXD5g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jb6OF-0006Lm-8R; Tue, 19 May 2020 17:50:55 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jb6OB-0006KG-Id for linux-arm-kernel@lists.infradead.org; Tue, 19 May 2020 17:50:53 +0000 Received: by mail-wr1-x443.google.com with SMTP id j5so397832wrq.2 for ; Tue, 19 May 2020 10:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PbPg6e3tpwQoLhlHES85OSbrJPFtIH1dskfrL5pZa0g=; b=gsvMz+El9W8nBMj9LNZ/yIaRn8k5v2h8C5y2xVUx9mublrH6HS607efXt4E7hz8wai votGfGXIhb9XxP5R6+fE6v1My39B9J4Gggj+sLOtpd8dHzK6ybh98IHWDDKNRrYv2Rb1 j5+5o6h9+HeTYT+dR7g5xHrxrM1MlBHfI1hKBZi8T2FIh5v1fcfbJLBJ9dff8EQcKIMq BCHzcAGioBkgnxJJt1ABHlhCE7SgUb27IXqsl1vKnMQUdWAoqllDJtdD1agDT7vG4dJk KNjQXKsXWfCWepZnrFby/mOfz6Qv9D2kJz2r4t9QSEJ+gJ+kwwDL6+by7WqQ5+/NfaKA K1FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PbPg6e3tpwQoLhlHES85OSbrJPFtIH1dskfrL5pZa0g=; b=EvD+IvS9gIJsOolSSDkoS/3FxjODyHf475H4zn8BGXHQCX6X3dc7RaqTxYgneqKmu/ egqIsjajH0vJdpXBl+goPR5VIjoJQ8NYnaXwZrJwhJxxkwxcU/d8cvo9e4YF6DX/V0uZ wZ+7MwjrjwdTG8oVhugJVJfrDB5PFYd9pTmafjqpZnTKSX5X1CS/LMpInsV5wRA28HJD kfZOZp5kpJoBJRYX50WLN8eYScYuzjSCIIutM93DsmjPQjnEwII6VdHZ4bnAc4TsbDaa Bm4ODf9ju6ftXqHFso5qim53+HR39lTnK+Ow/f44iLD8aWCQ93CXjBDZFUkyuNaQeEM6 HwZQ== X-Gm-Message-State: AOAM531KXpEjcwV9oEogXYijIZ3TsIIZZkpKi97ybKgGs5gLQJwb8OaW 1hYbKFcJ3y8imKDg1qYWFZfAWuTM X-Google-Smtp-Source: ABdhPJyrG40EGugT2m+AdghxNUP6ys8Qt7gvRmotVcHZ5t309c/cAyW4dYJt81ruzXFmcLhCIv0XkQ== X-Received: by 2002:a5d:5588:: with SMTP id i8mr41638wrv.223.1589910649108; Tue, 19 May 2020 10:50:49 -0700 (PDT) Received: from [10.230.188.43] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id z132sm519806wmc.29.2020.05.19.10.50.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 May 2020 10:50:48 -0700 (PDT) Subject: Re: [PATCH 00/11] arm/arm64: Turning IPIs into normal interrupts To: Marc Zyngier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20200519161755.209565-1-maz@kernel.org> From: Florian Fainelli Message-ID: Date: Tue, 19 May 2020 10:50:46 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200519161755.209565-1-maz@kernel.org> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200519_105051_634052_A0D510A9 X-CRM114-Status: GOOD ( 21.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sumit Garg , Russell King , Jason Cooper , Will Deacon , Catalin Marinas , Thomas Gleixner , kernel-team@android.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 5/19/2020 9:17 AM, Marc Zyngier wrote: > For as long as SMP ARM has existed, IPIs have been handled as > something special. The arch code and the interrupt controller exchange > a couple of hooks (one to generate an IPI, another to handle it). > > Although this is perfectly manageable, it prevents the use of features > that we could use if IPIs were Linux IRQs (such as pseudo-NMIs). It > also means that each interrupt controller driver has to follow an > architecture-specific interface instead of just implementing the base > irqchip functionnalities. The arch code also duplicates a number of > things that the core irq code already does (such as calling > set_irq_regs(), irq_enter()...). > > This series tries to remedy this on arm/arm64 by offering a new > registration interface where the irqchip gives the arch code a range > of interrupts to use for IPIs. The arch code requests these as normal > interrupts. > > The bulk of the work is at the interrupt controller level, where all 3 > irqchips used on arm64 get converted. > > Finally, the arm64 code drops the legacy registration interface. The > same thing could be done on 32bit as well once the two remaining > irqchips using that interface get converted. > > There is probably more that could be done: statistics are still > architecture-private code, for example, and no attempt is made to > solve that (apart from hidding the IRQs from /proc/interrupt). > > This has been tested on a bunch of 32 and 64bit guests. Does this patch series change your position on this patch series https://lore.kernel.org/linux-arm-kernel/20191023000547.7831-3-f.fainelli@gmail.com/T/ or is this still a no-no? > > Marc Zyngier (11): > genirq: Add fasteoi IPI flow > genirq: Allow interrupts to be excluded from /proc/interrupts > arm64: Allow IPIs to be handled as normal interrupts > ARM: Allow IPIs to be handled as normal interrupts > irqchip/gic-v3: Describe the SGI range > irqchip/gic-v3: Configure SGIs as standard interrupts > irqchip/gic: Refactor SMP configuration > irqchip/gic: Configure SGIs as standard interrupts > irqchip/gic-common: Don't enable SGIs by default > irqchip/bcm2836: Configure mailbox interrupts as standard interrupts > arm64: Kill __smp_cross_call and co > > arch/arm/Kconfig | 1 + > arch/arm/include/asm/smp.h | 5 + > arch/arm/kernel/smp.c | 97 +++++++++++--- > arch/arm64/Kconfig | 1 + > arch/arm64/include/asm/irq_work.h | 4 +- > arch/arm64/include/asm/smp.h | 6 +- > arch/arm64/kernel/smp.c | 98 +++++++++++---- > drivers/irqchip/irq-bcm2836.c | 151 ++++++++++++++++++---- > drivers/irqchip/irq-gic-common.c | 3 - > drivers/irqchip/irq-gic-v3.c | 109 ++++++++++------ > drivers/irqchip/irq-gic.c | 203 ++++++++++++++++++------------ > include/linux/irq.h | 4 +- > kernel/irq/chip.c | 26 ++++ > kernel/irq/debugfs.c | 1 + > kernel/irq/proc.c | 2 +- > kernel/irq/settings.h | 7 ++ > 16 files changed, 515 insertions(+), 203 deletions(-) > -- Florian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel