Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp260929rwb; Thu, 12 Jan 2023 06:04:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXtQPtJ0n5aObbEt+3xFKWrN78a4jE96g5F+II3aGt7r70altJn+e/RBbc/t/27z3MFHl8s4 X-Received: by 2002:a17:90b:3d04:b0:221:6db6:9660 with SMTP id pt4-20020a17090b3d0400b002216db69660mr6603758pjb.11.1673532285792; Thu, 12 Jan 2023 06:04:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673532285; cv=none; d=google.com; s=arc-20160816; b=FJoaTlxmtVBWO1Ys1vA4No8cBOp+kCB2L6WAUgo7E3r2SsEuXKn0pz5AZdaNsNG9my JM7HQ9JxiDTpSIejM/wjskBug60QX+3n2gRqCOx4Nxb0xsDZxeKfU08HNF8U5X841W01 kgQTHcpDDWkVBOV8YpzluK4l3DIexZ9DJ3GQQvwo8cLYutLchPqolG404aMXUIhRzXkb J5NJ8/YXkmVKFLyNWO2JhGnLc7Xf+JdgRBFzWs69U+//XiCdEU3Bod76WAOcGYB04eMM qJrhmteKKcI+f/I5AJZ38d+9GoY+zj5FKj+Z4YiOBwfw6USoVtJHRYp/u9olRZhaJp1D wttw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LuX/7kwZ4XrZPEZxQq3bq8O+Y5c5oWzstvmXVj/FrRg=; b=h9+2Ex227N6g5DpnPbySl6pluN7trwZR7CjLfbwm1c8cJUmarOPxRjDGbmZH3wM1yL L1Ns9dBT3Sg8uRQOlkKPfp7n2AjwYICsEw/pAidYYHYSuulA1cljNOBi5kfs6rCURV3k VXnWHpMp4vPcn63tN/mWSUmoI+QoYzBWuF6FrvjNnBr84Qwk2Wq84ZbKIabwwdCIYIH2 sJXl25H0etBYyc526lhRC7SDxfyqE7U+VaUz2buwP+KdE4AUWfG5DvyJ+Jz+Liaik5kH AOlo5xahJ25RrF7EUMq3XDMUE8mVhR6ofM99UAv6mM0XboX+bARySFuw3HL5nPAaIq6E EkNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Waya4oOT; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mu1-20020a17090b388100b00226652d33c1si23439165pjb.152.2023.01.12.06.04.39; Thu, 12 Jan 2023 06:04:45 -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=@kernel.org header.s=k20201202 header.b=Waya4oOT; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233393AbjALNZD (ORCPT + 50 others); Thu, 12 Jan 2023 08:25:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232587AbjALNYy (ORCPT ); Thu, 12 Jan 2023 08:24:54 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC27543A39 for ; Thu, 12 Jan 2023 05:24:53 -0800 (PST) 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 689B8B81E5A for ; Thu, 12 Jan 2023 13:24:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13E64C433D2; Thu, 12 Jan 2023 13:24:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673529891; bh=0zSlVdYnPlbeNYKtpgCs0o57tBG0cbE87Ki1QmaP4YM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Waya4oOTGc/ruH/oPImj1IC6j6yg1CShhpqNMoexocftc7u43r/3dnDLXBYzw52p5 q/8Sf1poFhpD36FOwMnfSb0I/thmR/cgN5bLo72F9k14o0wY/SLvyjB/n+KgH+1Nhv XbyJb0xONCyr+Ah/iSpkMaTGlceoCXaP/w86xG9aWzlUlfVyIYAnfqh8SVF/EiqlfF oamFvinesWSFSamkc2Hu79ua827T0ZKcABEyx+2i7/IYeLNNDpntxOztWfdfXDxG/Q aBJETlWkC9h++bhC+vvVvEWLLSfPF5+ekBRVbmGad8Z5KsLzBNRoRQzyThMJjbJOkR EeTIiH4GrgRmw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pFxZh-0001fB-IY; Thu, 12 Jan 2023 14:24:58 +0100 Date: Thu, 12 Jan 2023 14:24:57 +0100 From: Johan Hovold To: Thomas Gleixner Cc: Johan Hovold , Marc Zyngier , 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 Subject: Re: [PATCH 2/2] genirq/irqdomain/msi: Add irq_domain_alloc_irqs_affinity() wrapper Message-ID: References: <20221213140844.15470-1-johan+linaro@kernel.org> <20221213140844.15470-3-johan+linaro@kernel.org> <87358ggayt.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87358ggayt.ffs@tglx> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 On Wed, Jan 11, 2023 at 07:52:42PM +0100, Thomas Gleixner wrote: > On Tue, Dec 13 2022 at 15:08, Johan Hovold wrote: > > The full __irq_domain_alloc_irqs() interface was initially only intended > > for some legacy (x86) use cases while most callers should use the > > irq_domain_alloc_irqs() wrapper. > > > > Add a matching irq_domain_alloc_irqs_affinity() wrapper that can be used > > when an affinity hint needs to be provided and use it for MSI > > allocations. > > I definitely like the irqchip cleanup, but this one is core code and > having the extra wrapper is not really buying us much. Fair enough. If you don't expect there to be any further users then perhaps it's not worth it even if it arguably makes the call site a bit more readable (e.g. by dropping the base and realloc arguments). Johan