From patchwork Mon Dec 5 18:25:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 29856 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2409654wrr; Mon, 5 Dec 2022 10:28:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf4wPcZPxK3SZilqtkeuMo7gB413sj0bmXv31JmkNFTx2xqpg9MkvMPNhROjR/jYQkuJMqDf X-Received: by 2002:a17:902:b093:b0:189:e687:b366 with SMTP id p19-20020a170902b09300b00189e687b366mr1607803plr.167.1670264935222; Mon, 05 Dec 2022 10:28:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670264935; cv=none; d=google.com; s=arc-20160816; b=nAmNxgnACZdVtsglffLVbfJknijkbu+3xiy1K3N4CKkV5Om2Sl8G0AVjwX01brbDNC aoli4XANhx5mf4q9hBznkLgfYjutwdVv6dU8pn78ZslzUFC3gFKlWMy4yxt+3QVEXyWV w0Nln9ykSxEOniJNUEzBOrCTPXv7vqbxGbwsCUxTseVO0XUBvkBlYhDm8JdSZlWddvQM Pr4mmV+muKyGD9y+569skprZOAfD8W2Qv4/jC3lCA3M/RMJ6w22RPDuqZDq4fMAuONDp IXT05TFiB6/+ebyTPBDMJXUKuU/tUlS+HpTk1/NoVDL6D67uYZj+KPMhQBs5DcW76ewe fTbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=pX2/qOgZq5Yg08sJdrujsquSTuwr0j4Kdkeg8SlK+tc=; b=LyT3D/h68UrFOeFgU0jPO58EiOGzC4R8T6W+Bu8gVyJr9aiNLqx9zhEuKIBzfF40Lj PIskNgGQN2Y8fotPS3HK4W0tLFgfC0QpbeT4eTjo3YMDT0V7fz4y93oEMIiyxovGLgAm oIwPZapIvuyzbot++P8h6RpEMJuy+RBl0EmMJxsANtF9ZT57FLnAv/khRcneRXn6Lyeo eSFgYrOL9kMFyEx06kgwCf4bYPZib7AYiC44zppRgkCCR5oFRHZWbLUgrBQANwx975uY 6/vjQNJzg+Fwe2EgaHagXI5XERc6fLTwS5VZiqDmya985CiNTKxmTIFESE8z2wdaj0QL GmZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OAq93nUY; 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 l15-20020a654c4f000000b0047701a2244esi15464330pgr.773.2022.12.05.10.28.41; Mon, 05 Dec 2022 10:28:55 -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=OAq93nUY; 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 S233183AbiLES2I (ORCPT + 99 others); Mon, 5 Dec 2022 13:28:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232541AbiLESZV (ORCPT ); Mon, 5 Dec 2022 13:25:21 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12568209AE; Mon, 5 Dec 2022 10:25:20 -0800 (PST) Date: Mon, 05 Dec 2022 18:25:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1670264718; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pX2/qOgZq5Yg08sJdrujsquSTuwr0j4Kdkeg8SlK+tc=; b=OAq93nUYn3iXhUm91fRg4mHKvCzeQ9EBF0lUlgjXAASF8+W4ohc6DLpb4PGYEgOyyKuG7A sinHvqVjvsqAEwqm+3B3edrYd3dmLC+0IJ/sT5DmlfgXypmGVUjXqJVG5eBOxRIyuIMvya HL5fAv1ae0w9M/YzzxbalAZ/eXbE/KpIJDu+GDoPtF2NOuoeLT64qGlUOvsFMegr4FxTc+ X39K39UUwdiIxFxlOtvyGquglStFOjCHwji3iAM75DbD511XJhSv+1T008AX7SyZn1YtNp 4WhNqKjHCHBhI78bQQZramqfAC4MnZaQxvM1wfg+p8EG06bK2AfYCjH/raCp2A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1670264718; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pX2/qOgZq5Yg08sJdrujsquSTuwr0j4Kdkeg8SlK+tc=; b=5IuFpocrQQphNNlNMHLLBp1hPk97Hw46WliL0LE8vfWl7LhZ8DoOeSVO1IZ8ON47LoS6fY Qp7I/1m+cuIqIlAw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] PCI/MSI: Use msi_domain_alloc/free_irqs_all_locked() Cc: Thomas Gleixner , Kevin Tian , Bjorn Helgaas , Marc Zyngier , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221124230314.455168748@linutronix.de> References: <20221124230314.455168748@linutronix.de> MIME-Version: 1.0 Message-ID: <167026471835.4906.6881064994595629521.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails 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?1750421888871854236?= X-GMAIL-MSGID: =?utf-8?q?1751399724872292736?= The following commit has been merged into the irq/core branch of tip: Commit-ID: d3a11dee9f946daa6e66aca1bf8db93e9d4e02ec Gitweb: https://git.kernel.org/tip/d3a11dee9f946daa6e66aca1bf8db93e9d4e02ec Author: Thomas Gleixner AuthorDate: Fri, 25 Nov 2022 00:24:36 +01:00 Committer: Thomas Gleixner CommitterDate: Mon, 05 Dec 2022 19:21:00 +01:00 PCI/MSI: Use msi_domain_alloc/free_irqs_all_locked() Switch to the new domain id aware interfaces to phase out the previous ones. No functional change. Signed-off-by: Thomas Gleixner Reviewed-by: Kevin Tian Acked-by: Bjorn Helgaas Acked-by: Marc Zyngier Link: https://lore.kernel.org/r/20221124230314.455168748@linutronix.de --- drivers/pci/msi/irqdomain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/msi/irqdomain.c b/drivers/pci/msi/irqdomain.c index dea2e8c..f4338fb 100644 --- a/drivers/pci/msi/irqdomain.c +++ b/drivers/pci/msi/irqdomain.c @@ -14,7 +14,7 @@ int pci_msi_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) 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 pci_dev *dev) 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);