Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp261584rwb; Thu, 12 Jan 2023 06:05:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXsAD6kk6IwvMeL4o6mnMlK5fXQ138GcuMcH2qNlQW+Y1ld3XzAvbK7rRgtlY1zHffIyhSAe X-Received: by 2002:a05:6a20:3ba7:b0:9d:efbf:8143 with SMTP id b39-20020a056a203ba700b0009defbf8143mr6765090pzh.12.1673532306649; Thu, 12 Jan 2023 06:05:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673532306; cv=none; d=google.com; s=arc-20160816; b=GlVukjtd+zUBZ1d7C2Fk8HgiX640uEPsFKnQH3fnNxtj3QgXjMbYtvzvcvMSlq6+/J +xJLqN3CD+a0/SlfNSymA+8PdXYii1+mxVTqDZGpVuySUHRPswa0Z79W8I4hlK+qSabK fowdiMNFCyHyqrmSIlIFUk6CCzaVObeq45XzQskPvitxVAgtTtikiFLIKfD7qVkrSaJq mGLk7i0RlbIXR7QY0P6OpAdSS0UEODR3hSVVSa1llps54YME4MEGvB/nTz/FxQZgljST V+iKOE3+VWgFrB0oXmzGmsCxfG9X1VNvLypWOnRssbdqBfuhbpuMWPizPXAcRriqp11c nPIQ== 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=NXqmiVmw1/lTSJwDUhOrsgJRUkU8qSEMwflDW9kCaEA=; b=xnN+S3gSET+vuCYW8Vc/xlGv7Yu1xABfXsYHlwSe0v9s+yS7A93WrrZeRrkYrBSpld VEK/BG08862572/20F83/AN7SoGRYAXaGhHI9ep/YZCbqNEeNxj0cLakBJ36amUO5BIF bXWjDPDDDtiO93PUfzCUzkkTDvSWO0D8+keHME0mKxzQPsigR8SVh3qd6rPNxZaV/8cw cZrBHtNStI7OAMKa0swPcTOZDlkQCv0DvuYK2YDD+arwJ+c6vSniBlPyi3NYUcuo4VpX 5e/h43pmpmiWR4ctVTPb2Hk36JSI+Fq8O9ofVBlAQchzrufXDeRCwuCbmrRsD7zyTr5F 0QJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oVh35eyw; 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 f187-20020a636ac4000000b004a8371132f9si17722522pgc.450.2023.01.12.06.04.59; Thu, 12 Jan 2023 06:05:06 -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=oVh35eyw; 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 S231594AbjALNer (ORCPT + 50 others); Thu, 12 Jan 2023 08:34:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbjALNeq (ORCPT ); Thu, 12 Jan 2023 08:34:46 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4187BB08 for ; Thu, 12 Jan 2023 05:34:45 -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 dfw.source.kernel.org (Postfix) with ESMTPS id D42A661AA2 for ; Thu, 12 Jan 2023 13:34:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 366CBC433D2; Thu, 12 Jan 2023 13:34:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673530484; bh=j0YIDz5bHF2dFE2r4pGCMvZWfbTDEfD2sZPAljVVdPM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oVh35eywb5oK7iIixDKPwxnygS6i9OfZxaRlgXZVZSaUI2xBUtrtHDIUB350VJI1c JK8EQ9nzK1wAVVCzb5Au21M7c+h9dTyP23XudUduDXGrppEhSIDJp/WGoB5uLyFd9W 57K2iAQni9rcMi60meEtbkPnvxgIczX1aXRmp7I7L2GZAbLGkkAETYSDwJLFDmBIjC nfTIUiC9euE0vKEvft7Mu4mgCqgqDxlTvI6Pa7kXTCZ0RGOgRlpOVXJprKzRaChlzJ DgfIdidyjphtq0P40ueCY+WmQXLY4xRo9s0zzepVrezR5J69gSc8mIIWqX0BAx3aHE 5rfJGq222ZZGQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pFxjG-0001vA-Mi; Thu, 12 Jan 2023 14:34:51 +0100 Date: Thu, 12 Jan 2023 14:34:50 +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: 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 Thu, Jan 12, 2023 at 02:24:58PM +0100, Johan Hovold wrote: > 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). And having this wrapper would also limit the use of the full (internal) helper to places that actually need the realloc parameter (e.g. making those stand out more). Johan