Message ID | 20221111132706.948397248@linutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp758023wru; Fri, 11 Nov 2022 06:05:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf5H4gexj6TnjchNwR2Z4ZTlC9dVu+RwU6vzD2sFWqyDaRX+SRi1WA0uaqmLnRqeSB2tZq4j X-Received: by 2002:a62:1b4c:0:b0:56e:827d:dcce with SMTP id b73-20020a621b4c000000b0056e827ddccemr2816090pfb.51.1668175529226; Fri, 11 Nov 2022 06:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668175529; cv=none; d=google.com; s=arc-20160816; b=gQyMQm9hKQRU+iSIBJxy1FlYJX4oORpzzb0wzhp89rMFZo59B/LJfl3e+I59T7Tz/W s/MBapEMX1U2KZVo9Ml2+Hl7dbFWJGrvYcGqTIb2Sp0vfqC82z8610jXJF4ihMiSLADC wFoqlhzlAouWV+NoS1ebO1jTm+rEkiEpyM4M8bFMMS3a1ct1+VcPFcUovYElQzgCjfmK 9cIETteknNyfuO7vC12wrDETExkCc0PUtJxgKMDCvypi0o4EiEkmlEEo57BZ8jbCmiUn nYVEPKEIVPC3/8r/1rT3SUB1fvdokH8obr5czs5ojj9Rkz9CbMNpTOqPwDKgb4k1Z+VS y+5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:references:subject:cc:to:from :dkim-signature:dkim-signature:message-id; bh=VMkaJsAvv5jB7N/JTWuE2htyuYhOeUFDVD4O8lwQG4E=; b=JaUX5nb2IIq2SQrBf2YxTpTNV/EVQgK5coSCkKW3tSmOcD0IWqLwwEDX5tctU/SxRy 7hD8BFdi03M8xMd8JOUVFQwofjBaJ4bj3E3j5AXOwa39FNfeQZDodODUIVImM0nze9Zt 11Sndit9OBNvxFIPK7+hlyO7kLhEjMfDHggMOeT0wF9y+lmGH2sRkWbbEG1T75e69TVA OyltglafgHuLs8MBOUNwdYROfZGpmVGTq3TJufgekqPRt10pRCekFRcGiPztzsCUoegr ufeMUUp515rTgIOPk2tjFN09pD4Dq6pfQwXa5RsBfY5LG58UZ7UDZeYmTz+L0GFmD01A kqTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jfMalhWV; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a63e708000000b0045fc63bf52csi2403490pgi.764.2022.11.11.06.05.07; Fri, 11 Nov 2022 06:05:29 -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=@linutronix.de header.s=2020 header.b=jfMalhWV; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234293AbiKKODP (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Fri, 11 Nov 2022 09:03:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234270AbiKKOBq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Nov 2022 09:01:46 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2ADC5B5BF; Fri, 11 Nov 2022 05:57:05 -0800 (PST) Message-ID: <20221111132706.948397248@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668175023; 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: references:references; bh=VMkaJsAvv5jB7N/JTWuE2htyuYhOeUFDVD4O8lwQG4E=; b=jfMalhWV+HafK7OKbE5sU4XQFIitOSzs0CNA/3yYrW7aBrSDJeYw2JgVqohj1e95hfLJ/e ghxUYVy0yhku9DEVtBjhLr3JAwGE7DjJCUmUFnMfCXvuH1/zvLs+wAPRvOXsLH3L5iG6um yPo7p+ODnC6Os4X3S+LyABBj35HW/HseSPcUaykBjR9Ywrd3J1BOPbfhZapCxdF6wOG4Ds DvEqRgwT9+cIrwCbGzmfgszKvXhwdyg5NlFXsP8beT6Dv0RuJUrQuPqLZbTTHBfk4ynq5c SUvF4sd8rDNBQHH02wpFmhpwKXGUGOFcxiiRWMBOv0LgYcpiGDjZf1aKuqF6xg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668175023; 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: references:references; bh=VMkaJsAvv5jB7N/JTWuE2htyuYhOeUFDVD4O8lwQG4E=; b=j/qlptE/NbfWWr0HzEM75VpNoCl4oE+p3Ea2nmkL1cuX3s6nUVIDDrrMP2ODHE53Fl15/j hNlUxVGrd+fYfSCg== From: Thomas Gleixner <tglx@linutronix.de> To: LKML <linux-kernel@vger.kernel.org> Cc: x86@kernel.org, Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>, linux-pci@vger.kernel.org, Bjorn Helgaas <bhelgaas@google.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Marc Zyngier <maz@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jason Gunthorpe <jgg@mellanox.com>, Dave Jiang <dave.jiang@intel.com>, Alex Williamson <alex.williamson@redhat.com>, Kevin Tian <kevin.tian@intel.com>, Dan Williams <dan.j.williams@intel.com>, Logan Gunthorpe <logang@deltatee.com>, Ashok Raj <ashok.raj@intel.com>, Jon Mason <jdmason@kudzu.us>, Allen Hubbe <allenbh@gmail.com>, "Ahmed S. Darwish" <darwi@linutronix.de>, Reinette Chatre <reinette.chatre@intel.com> Subject: [patch 16/20] PCI/MSI: Use msi_domain_alloc/free_irqs_all_locked() References: <20221111131813.914374272@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Fri, 11 Nov 2022 14:57:03 +0100 (CET) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749208823542248764?= X-GMAIL-MSGID: =?utf-8?q?1749208823542248764?= |
Series |
[01/20] genirq/msi: Move IRQ_DOMAIN_MSI_NOMASK_QUIRK to MSI flags
|
|
Commit Message
Thomas Gleixner
Nov. 11, 2022, 1:57 p.m. UTC
Switch to the new domain id aware interfaces to phase out the previous
ones. No functional change.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
drivers/pci/msi/irqdomain.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Fri, Nov 11, 2022 at 02:57:03PM +0100, Thomas Gleixner wrote: > Switch to the new domain id aware interfaces to phase out the previous > ones. No functional change. > > Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Bjorn Helgaas <bhelgaas@google.com> > --- > drivers/pci/msi/irqdomain.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > --- a/drivers/pci/msi/irqdomain.c > +++ b/drivers/pci/msi/irqdomain.c > @@ -14,7 +14,7 @@ int pci_msi_setup_msi_irqs(struct pci_de > > domain = dev_get_msi_domain(&dev->dev); > if (domain && irq_domain_is_hierarchy(domain)) > - return msi_domain_alloc_irqs_descs_locked(domain, &dev->dev, nvec); > + return msi_domain_alloc_irqs_all_locked(&dev->dev, MSI_DEFAULT_DOMAIN, nvec); > > return pci_msi_legacy_setup_msi_irqs(dev, nvec, type); > } > @@ -25,7 +25,7 @@ void pci_msi_teardown_msi_irqs(struct pc > > domain = dev_get_msi_domain(&dev->dev); > if (domain && irq_domain_is_hierarchy(domain)) { > - msi_domain_free_irqs_descs_locked(domain, &dev->dev); > + msi_domain_free_irqs_all_locked(&dev->dev, MSI_DEFAULT_DOMAIN); > } else { > pci_msi_legacy_teardown_msi_irqs(dev); > msi_free_msi_descs(&dev->dev); >
--- a/drivers/pci/msi/irqdomain.c +++ b/drivers/pci/msi/irqdomain.c @@ -14,7 +14,7 @@ int pci_msi_setup_msi_irqs(struct pci_de domain = dev_get_msi_domain(&dev->dev); if (domain && irq_domain_is_hierarchy(domain)) - return msi_domain_alloc_irqs_descs_locked(domain, &dev->dev, nvec); + return msi_domain_alloc_irqs_all_locked(&dev->dev, MSI_DEFAULT_DOMAIN, nvec); return pci_msi_legacy_setup_msi_irqs(dev, nvec, type); } @@ -25,7 +25,7 @@ void pci_msi_teardown_msi_irqs(struct pc domain = dev_get_msi_domain(&dev->dev); if (domain && irq_domain_is_hierarchy(domain)) { - msi_domain_free_irqs_descs_locked(domain, &dev->dev); + msi_domain_free_irqs_all_locked(&dev->dev, MSI_DEFAULT_DOMAIN); } else { pci_msi_legacy_teardown_msi_irqs(dev); msi_free_msi_descs(&dev->dev);