From patchwork Fri Nov 11 13:57:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 18813 Return-Path: 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 + 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 ); 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 To: 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 , Dave Jiang , Alex Williamson , Kevin Tian , Dan Williams , Logan Gunthorpe , Ashok Raj , Jon Mason , Allen Hubbe , "Ahmed S. Darwish" , Reinette Chatre Subject: [patch 16/20] PCI/MSI: Use msi_domain_alloc/free_irqs_all_locked() References: <20221111131813.914374272@linutronix.de> MIME-Version: 1.0 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: 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?= Switch to the new domain id aware interfaces to phase out the previous ones. No functional change. Signed-off-by: Thomas Gleixner Acked-by: Bjorn Helgaas --- 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);