Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp224559imn; Fri, 1 Jul 2022 13:42:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uJ4pKak42dT+PucCukqNAsuCcis49tPU/Es4eG09s/5AeuH0z6HdLh2dWjnmZdP6K+G3hw X-Received: by 2002:a63:7b5c:0:b0:40d:684:b760 with SMTP id k28-20020a637b5c000000b0040d0684b760mr13878594pgn.323.1656708167532; Fri, 01 Jul 2022 13:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656708167; cv=none; d=google.com; s=arc-20160816; b=BQbmS6BpoqT6mvp/TPXmAmYwTp8IhlGyEQKRijQSmFuK+o8RKqLUMIAFGEvheKs5FI 971BRTZU7AVRgRaHF3fezIo4gNwbT2AmJ/XQLSuGcPLkF8balYdJhMUzhgBUmB43gFMn +rhPyEo1jp55k04MYfaqmmncE2/kn9SLLwIFlvgGenh5e/IRwjXnnk0wqWjJokAKlmj+ rrZRQTUW4XdCDX2eW/p7pPJH7i6y4nrflO/7+9ZP4fxraZgN8Yr+BMyTiuZIJierBEDy u28Rtzrk7Cu+paamRJ6i7JqEiSkb4A7fE2Mc57K3BtD08JBwrIpAY9mf1/ng3zRE4pd7 Vmpw== 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=HboBnnGwsEoiC8NAxh0dVnMqpuKutI8lGKz3TQGSFLI=; b=qy83GYA6FVaB4J/gQC0PWTijV5TVVnUTQ2JwVCWBoBAhLhI97rogrS4e8BziYJw2nb 540KcA6phHzSUmdh9VuK44G2Q0+lx6yexQJ+H59z7G2jjIykyHwu5tcPRWjAWlC3s+Z/ mJ/5t8vMS7LalbS3T9HmqrNUDH5n2hwTdxPkoMBsjdV8xGrzMd2At4hsz9vEgUGrOUeu sN2stcfbGCSRs0x2x8Cpp4G8x/w4I1FTusACZoKcK+QFIQ8L77ygLnnOOBOn+5iHrcZd kohq2TRDZYX3/ZqkDw7E04hA2VUtJh7Ch4VxNiJgU1Hc5YLVqAPjvk7qnW0CEubjx1oa 7mXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=k9ksBvak; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=giPdzMO1; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g24-20020a633758000000b0040d33f1a30fsi30418778pgn.290.2022.07.01.13.42.33; Fri, 01 Jul 2022 13:42:47 -0700 (PDT) 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=fm3 header.b=k9ksBvak; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=giPdzMO1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232262AbiGAUYs (ORCPT + 99 others); Fri, 1 Jul 2022 16:24:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230331AbiGAUYq (ORCPT ); Fri, 1 Jul 2022 16:24:46 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 005312FFF6 for ; Fri, 1 Jul 2022 13:24:42 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 375EA5C00BF; Fri, 1 Jul 2022 16:24:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 01 Jul 2022 16:24:42 -0400 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=fm3; t=1656707082; x=1656793482; bh=HboBnnGwsEoiC8NAxh0dVnMqp uKutI8lGKz3TQGSFLI=; b=k9ksBvakLlYMVAjErf3dl4XypI6LLGNfO+LN5yt9y tqvPzD3XhqyJm7gB59iVNu95lowvRR3QxyeRZ5i2u7qfb//4n+ZDxhff17o4veMb Z5ui+e3MwOBeWSoNL7tK7Snuah0gpM+23RPWdecVhAhyCM0f33QXfuKwnNEgsvTf VSjDEKhfBqcnOus7rlJyKq4ZfkjOt3D1Z1tYO7focxnV8LI6aB5mm2eG2q4NhVFp aOYokSHUjlQQal6Wg4dpKFtorrh5CXmbHMbS6OR1Xida2jkgp5IlrBTAolljtozI 1+IDzN42WA1uzw5L8NjH9Y7+uKoGZS/bMSKizuj/kKmUQ== 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=fm2; t= 1656707082; x=1656793482; bh=HboBnnGwsEoiC8NAxh0dVnMqpuKutI8lGKz 3TQGSFLI=; b=giPdzMO1rdvb8yk7Sz0sHDxYAacy57sAV2/zFoeIyHLp2G4QO/g hU+ogTKLgPsrZEAWd53wRqF8ULqVYraypu6SdbTWrMzvUG3xtKXlXJymsVi4I1/b 2ITehHsfRg54ybYB0YBiTSFYw5PIzB1QXULvpuZLivfDHYhysIZPY/cKoEtQNRaP q3JPEg2t3Nb8UCRGdJtOhwj1J4/xQWQllTCHggDr1nhS2h/7Xdgrl3BZPHYbfumg /qRx5JETwvhK0HLiLvwLc4k9r8vF/yov0GDDmH9IPlVXrezajS4hvtDqC65F8yhT Cd4vK4BIMki0gupVf6p6F+a+kVliCjMNohg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudehfedgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeekheffteehtdetfffgfeetteejvdefleeuvedufffguedtjedvheel vddvfffhveenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghn ugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 1 Jul 2022 16:24:41 -0400 (EDT) From: Samuel Holland To: Thomas Gleixner , Marc Zyngier , Palmer Dabbelt , Paul Walmsley , Albert Ou Cc: Samuel Holland , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v3 0/2] irqchip: RISC-V PLIC cleanup and optimization Date: Fri, 1 Jul 2022 15:24:38 -0500 Message-Id: <20220701202440.59059-1-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 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, T_SCC_BODY_TEXT_LINE 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 series removes the spinlocks and cpumask operations from the PLIC driver's hot path. As far as I know, using the priority to mask interrupts is an intended usage and will work on all existing implementations. See [1] for more discussion. This series depends on my other series[2] making the IRQ affinity mask behavior more consistent between uniprocessor and SMP configurations. (The Allwinner D1 is a uniprocessor SoC containing a PLIC.) 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. I will send this as a separate series, since it makes more invasive changes to the generic IRQ code. [1]: https://lore.kernel.org/lkml/2b063917-17c8-0add-fadf-5aa42532fbbf@sholland.org/ [2]: https://lore.kernel.org/lkml/20220701200056.46555-1-samuel@sholland.org/ Changes in v3: - Rebased on top of irqchip-next - Split affinity series and PLIC series Samuel Holland (2): irqchip/sifive-plic: Make better use of the effective affinity mask irqchip/sifive-plic: Separate the enable and mask operations drivers/irqchip/Kconfig | 1 + drivers/irqchip/irq-sifive-plic.c | 64 ++++++++++++++++--------------- 2 files changed, 35 insertions(+), 30 deletions(-) -- 2.35.1