Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp12828134rwb; Sat, 26 Nov 2022 16:24:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5P1wmdjPw1GHlIL+1SQCzRkmtoxlHUXYFZIFLZh0fDB5gr4FwgOt93vHwJzKFsjvbVcxxO X-Received: by 2002:aa7:96d2:0:b0:574:2447:947d with SMTP id h18-20020aa796d2000000b005742447947dmr22552290pfq.32.1669508683716; Sat, 26 Nov 2022 16:24:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669508683; cv=none; d=google.com; s=arc-20160816; b=ceQcn6YGpMF5YRGlY6DFhSy+r09QbzrXlXT11uQt3zImPkQ6NUYDYIdA5KcxUKr+0z s2+ki3AOIHq2Xt0plDJsG8RpqctaUwZOzdMwkZRmPvIcmJz7OCA+zyPCBIMqHLKT7FGN f0KNnEJDRSr89hZIobwsN5R/Y+qoIelVHaRIjdS3pLJ7/QHH4cBxQOtwlsOOts3VHIv0 804vTiH8d7PPCGSgum+PQTGVDsSwNbCWs89QG9SPm4DSqC20u4bLj8CSMen389dxzxTZ Xs4zSU3SS8gxOPwJUKGxO72rbad9tXN0U4MtfRO1m6tOreM0M+dyXXDp61lyGxIWyQM4 eVtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=w8La255xXVxnIR3cniemxgpr5Ih0kN7ITTRYd2se9fw=; b=xtw3SzAq78F8gWSE4rt8aMoDJyLlMYOVhG+wl9Mup9X4pKQBHKdW14U5nmXj5bfWSJ 0nmvwQ+gIE4zZm+OEt0rtCXURxnxh76mWWSoeSjNcrhSy7sUF49oGYJ+NzZSjwAoTYeP MKcjFMAJOp+K7iuj/gshkXTfjFhvVN3hRph6qwXr8fvarMEazTzuMnVdzPur4qG40Vaa xr4qjqfSB7CfSFn+83U2M7xNaouw7bYGbdVPug2hCKtn9aoL4cC/MpoVHG6HpBkAqx7m +79B+XCuIVQdybsPKU55dbE3QtCoDRHLiRiEa4iPxieLdVQ9Hh1kU0mIN5hAbGoZ3mUI qSuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=sqf6qn2x; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=IbqWh3Ta; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a056a000ccd00b005746b284963si8504287pfv.290.2022.11.26.16.24.33; Sat, 26 Nov 2022 16:24:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=sqf6qn2x; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=IbqWh3Ta; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229521AbiKZXll (ORCPT + 84 others); Sat, 26 Nov 2022 18:41:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiKZXlk (ORCPT ); Sat, 26 Nov 2022 18:41:40 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9A17D103 for ; Sat, 26 Nov 2022 15:41:38 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 8CFC05C007D; Sat, 26 Nov 2022 18:41:36 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 26 Nov 2022 18:41:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1669506096; x=1669592496; bh=w8La255xXVxnIR3cniemxgpr5 Ih0kN7ITTRYd2se9fw=; b=sqf6qn2xRtMfNHG6XRPyhYmZkhWPE1aNEncXv+m69 9zbjDacLmOYZJqbcXAw3jqQcIodP1xcLMJ22p9sxNk3XBEJ4uUjB/BBr7GWwgnY2 ia+43kwWX20Su2xE4ZDbJ/LcQY3A6f+IRu/v8kathzas3fgfhnC4pumVUNC7oZyq JuG9vYvIPscBV5sEhfepk2zv1mpnG3W0YC5aNVNW0kXhne4pyGkiwqqaD1++g59k uzvRRtLdYJFPKOnAxuZbVRTbGc9CDEUTArR7TdDBjH5XQEQeD0P+b+g8Y5KKVx+s D2D+8onoYBqmKSYbudaI1vRxhJ8J8EZZ+cfObXfM5kHrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1669506096; x=1669592496; bh=w8La255xXVxnIR3cniemxgpr5Ih0kN7ITTR Yd2se9fw=; b=IbqWh3TaV6qKJQM08vxuTMuj3FyizQWqvb5brfdLWGbYOZlJPne wW7KmuLoGTGBoqeDQy3UN7vGsLMNysuqGlyANkXAgLTLy21NyykxEx8JMfVFAIsS kv9NIwm1lonJn3Pf3G7x4XUZCxh/ArpaI2mq/NH5KHFhzjYx8QKTfoppYXwXrMq1 0TLremPYcnQxmvR/LpSIh2v9JDU1dYSMwIc5i2UCe9JgCwOyj2BMOZiV/dJacG0t lugpGyJv8rHDINidpMKTzRKj11+qOvJb8YEquvHW+xmZQw9ppeHLX1I76kjjntq9 ae3XJ51TslXJ6k9eK8NFLsEl78fJ0Z6fSZg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrieekgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeekheffteehtdetfffgfeetteejvdefleeuvedufffguedtjedvheelvddv fffhveenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghnugdr ohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 26 Nov 2022 18:41:35 -0500 (EST) From: Samuel Holland To: Marc Zyngier , Thomas Gleixner , Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, Samuel Holland , Paul Walmsley , linux-kernel@vger.kernel.org Subject: [PATCH 0/3] genirq: oneshot-safe threaded EOIs Date: Sat, 26 Nov 2022 17:41:31 -0600 Message-Id: <20221126234134.32660-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the optimization that I promised back in https://lore.kernel.org/lkml/20220701202440.59059-1-samuel@sholland.org/ and got back around to cleaning up. To quote that cover letter: "A further optimization is to take advantage of the fact that multiple IRQs can be claimed at once. This allows removing the mask operations for oneshot IRQs -- i.e. the combination of IRQCHIP_ONESHOT_SAFE and IRQCHIP_EOI_THREADED, which is not currently supported." Or in other words, we reuse the oneshot infrastructure for EOIs instead of masking. There a a few functions/variables that probably should be renamed now that I have muddied what "oneshot" means. I elected not to do that in this version to avoid distracting from the functional changes. Samuel Holland (3): genirq: Simplify cond_unmask_eoi_irq() genirq: Add support for oneshot-safe threaded EOIs irqchip/sifive-plic: Enable oneshot-safe threaded EOIs drivers/irqchip/irq-sifive-plic.c | 2 ++ kernel/irq/chip.c | 21 ++++++++++++--------- kernel/irq/manage.c | 15 ++++++++++----- 3 files changed, 24 insertions(+), 14 deletions(-) -- 2.37.4