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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43E8AC4332F for ; Fri, 18 Nov 2022 12:28:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241964AbiKRM2u (ORCPT ); Fri, 18 Nov 2022 07:28:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241975AbiKRM1l (ORCPT ); Fri, 18 Nov 2022 07:27:41 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52BC29AC83; Fri, 18 Nov 2022 04:26:58 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668774417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EG1Khhz+uxMnO27CwLjm0H0h424VL6GigVyFVyuBn7M=; b=zmeGxIMtSB92aEaQ2y1OZBXzDmKNHkPfNBjPp72ri3pYKUrl49F/+PnVR2I5op7sGGDNjO nOTa6or76pQ0BX/KjGa5J/yurwyYt3X20FW5LPDwM7uRnmVdp4p5sejgZly/AHM3eDa6Pi KLKt+vT4shJqaRDub4bBXHlb0sBqeUNcDHCQCiHhu6KXjdy1WTElDOEJEYbsTn8bp9zV7b AfYwvAA/NsEtjouSXPIrCrPyw9kcnV4ILPgH4NXnAOyuYUk4GEIJi1zKH5Tdi9dOIAevOp VVpy4Q3MFG126roR+Pm/SWjB8YBpcLLqE5RqjG1GyJl2Mqoa4+sMx6XHi/ZHrQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668774417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EG1Khhz+uxMnO27CwLjm0H0h424VL6GigVyFVyuBn7M=; b=Y5hSd7h3MRUk4a+iGGjEI5xe5vw36SDqIOUTpEtph33aXM3qPN3dqlhgQVBh6M5bFFF8jl FG2+ASiTIyIm4iCw== To: "Tian, Kevin" , LKML Cc: "x86@kernel.org" , Joerg Roedel , Will Deacon , "linux-pci@vger.kernel.org" , Bjorn Helgaas , Lorenzo Pieralisi , Marc Zyngier , Greg Kroah-Hartman , Jason Gunthorpe , "Jiang, Dave" , Alex Williamson , "Williams, Dan J" , Logan Gunthorpe , "Raj, Ashok" , Jon Mason , Allen Hubbe , "Ahmed S. Darwish" , "Chatre, Reinette" Subject: RE: [patch 17/20] platform-msi: Switch to the domain id aware MSI interfaces In-Reply-To: References: <20221111131813.914374272@linutronix.de> <20221111132707.005001510@linutronix.de> Date: Fri, 18 Nov 2022 13:26:56 +0100 Message-ID: <87fsegjvn3.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 18 2022 at 08:53, Kevin Tian wrote: >> From: Thomas Gleixner >> >> - err = msi_domain_alloc_irqs(dev->msi.domain, dev, nvec); >> + err = msi_domain_alloc_irqs_range(dev, MSI_DEFAULT_DOMAIN, 0, >> nvec - 1); >> if (err) >> platform_msi_free_priv_data(dev); >> > > Out of curiosity. Why don't we provide an unlocked version of > msi_domain_alloc_irqs_all()? -ENOUSER