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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id DFC89C4167B for ; Tue, 13 Dec 2022 14:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=7rs89Cy7Y6eC/LhpDH030OM2qJBk2tJcrrJDnVgs8DE=; b=NhLt1qUhbsC8oy 7gfkpUkknybeYEHXJTfmnnLsOHdD7RnCVz0f/08379hHmbUljyqmWjQ0Fahu2j+z2siHmyZlFI9pu /R4iOI5dz6sO2HvjWkdQq7vvuZPsgzhua/HGdmY3BhWAA/IoeJhMQPYeOxt/lR+HVc1xIeC4SUWay lvhlgrVr2fNz3J3h4JKLJ7JcgYBujHwvWnOLl5QfOPmh+Y5urDf6iy0EmG2VRrxNzXTKw/0a6+Ouh FWGtPTvCTAVK9hwJpP1flDWKtwshUBHecWRLqs0Ti+zV2DscX8Vsxaf4I8+V8yX6Wk8Dms1wzHWea CdqqyezVBaLpquIr5neA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p55xn-000uuN-Ji; Tue, 13 Dec 2022 14:08:55 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p55xc-000uqm-48; Tue, 13 Dec 2022 14:08:46 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C103EB810FE; Tue, 13 Dec 2022 14:08:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82776C433F0; Tue, 13 Dec 2022 14:08:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670940521; bh=ZhS1+Jlq3PtbDqoFD6tZt00rbsFDNMR0cDrwPMM46IU=; h=From:To:Cc:Subject:Date:From; b=o5JPbh7RIfNUgRAwbMU1AkQ+gPqagF91VvU4yE+e2MCAPxBOXwA/PdyXxq2qtOycq svx6xe4s/pD8Dx42oAxi2Rz9GR41biHEuk7wVf5kfBwFg7M5wkaqnJyI1c96z+1f7K CdmKZQrlvDWqqcHonGcNqkOYmDlAnEc7X45AejsE/iMtZOyV6UfxMCYEZEkPPyNCpA 8JKx5Eg2g1FnqyAlHC9joBIm6GRwgeMmTuGK/leaU9Ck2/FwrVG51kLZhYw9LAy+j6 vrwdGqTV4eWB/4+sXPtEJSfLpdgZCcguFDmHj8ijGKFQcV528i2/7N+lLRW43bNP9E tM3ZcuUrF3RzA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1p55xz-00042J-9t; Tue, 13 Dec 2022 15:09:07 +0100 From: Johan Hovold To: Thomas Gleixner , Marc Zyngier Cc: Hector Martin , Sven Peter , Alyssa Rosenzweig , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, Johan Hovold Subject: [PATCH 0/2] irqchip/genirq/msi: Use irq_domain_alloc_irqs() Date: Tue, 13 Dec 2022 15:08:42 +0100 Message-Id: <20221213140844.15470-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221213_060844_327795_47BA024F X-CRM114-Status: GOOD ( 11.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When reworking the irqdomain locking I noticed that we had quite a few users of the __irq_domain_alloc_irqs() interface which was initially only intended for some legacy x86 use cases. This first patch updates the irqchip driver so that the irq_domain_alloc_irqs() wrapper is instead used consistently. The second patch adds a matching irq_domain_alloc_irqs_affinity() helper which can be used when an affinity hint needs to be provided and updates the sole user. With this update to gpiolib: https://lore.kernel.org/lkml/20221213135227.14398-1-johan+linaro@kernel.org the only remaining users of the full interface (with preallocated descriptors) are the two original calls in x86/io_apic and the later added one for IPI. Johan Johan Hovold (2): irqchip: Use irq_domain_alloc_irqs() genirq/irqdomain/msi: Add irq_domain_alloc_irqs_affinity() wrapper drivers/irqchip/irq-apple-aic.c | 5 ++--- drivers/irqchip/irq-armada-370-xp.c | 4 ++-- drivers/irqchip/irq-bcm2836.c | 6 ++---- drivers/irqchip/irq-gic-v3.c | 5 ++--- drivers/irqchip/irq-gic-v4.c | 10 ++++------ drivers/irqchip/irq-gic.c | 5 ++--- include/linux/irqdomain.h | 15 +++++++++++++++ kernel/irq/msi.c | 6 +++--- 8 files changed, 32 insertions(+), 24 deletions(-) -- 2.37.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel