Message ID | 20221121083326.506769769@linutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1627214wrr; Mon, 21 Nov 2022 06:39:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf558rzdCEB+9y8gRKEnyznQpmiTvTr/MtpQ6Js0oNHxk4flL5asTmZBjE3T7FH0F/Ul+370 X-Received: by 2002:a63:4046:0:b0:460:fa0c:ab73 with SMTP id n67-20020a634046000000b00460fa0cab73mr6406776pga.315.1669041544786; Mon, 21 Nov 2022 06:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669041544; cv=none; d=google.com; s=arc-20160816; b=gr8B354gNDs4VpQVVLRgyxHXT4RcFBlO6RQm1+GyxYKSZzaznnvKXOemuQmEKLYVm6 CyNyPiNli6dRWiCEDGFSiaj1cOE6Cf/e6mTHU0v9BOSwBAPPldb5N4Vi3XIkAKCWnPOL eVNz+yUOpMFfSkoTtDxKFVEcYHk5tulK5rQ7WtDd9g5CzqZ1yJxpHgwRVuzM2FR5F5pU xs/BxxFG3j8p+iD0gsuC6HPib4FdO0tJ9lwVrX3H8aT//pUcBer96aAJWQvksPwg0ag8 /x1CKdqkV3Ezmrv9xL1AGZ0VlxsucHRjGciOaINtPrLIyJ0fuvpqOEN0MWSx59+Y2dfg nAug== 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=KdxaqYbUAroipCiY9Q/sHRBQvYFsOFnVJz7w23FqFeo=; b=rOsEgTAY/HuwZPKSWz5hljrhEvAtTfak3ipEODboV3gviMW1Wgu2LE4YE+lY5lrikd jaJdUfsc3s+XcWrolHiWHyViodC5eKSYXkUyoAIls1u0JF4Mqc6Hk6kGJzIG6AkDWWNr aWA0pX1B7lT/6afYXuFAFTTrEICbxAGboPjJRvmzob6AOHQH5yNMJ/th791NpBU4wXvs bbjvxDuRyrY8MUEO6VurEVUEwpErHvfuwCQZMbP5zqRmGyOhKc3lcBEJRZXioXKRNY81 9mUvRJG9LuSbHxy1/RqGdDhm6/+79EU6Ijp0V5zQh9as2uWL3bqpd8nIB2D7rLRtsjTb 0kIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=NOios5We; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 p12-20020a056a000b4c00b0056d7aaaf1eesi11193437pfo.122.2022.11.21.06.38.50; Mon, 21 Nov 2022 06:39:04 -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=NOios5We; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S231682AbiKUOiM (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Mon, 21 Nov 2022 09:38:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230345AbiKUOgp (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 21 Nov 2022 09:36:45 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F558C76A4; Mon, 21 Nov 2022 06:36:42 -0800 (PST) Message-ID: <20221121083326.506769769@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669041401; 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=KdxaqYbUAroipCiY9Q/sHRBQvYFsOFnVJz7w23FqFeo=; b=NOios5WejLcPP5Q9VeeaXfoWZvS8Ir8ZWLx+007Su5rzKenKqqbIWCQfMSww6qa8dc+CZU qsB32jkH/7fgJIBXbEttedCh7XaE7g/KcSXK6mSLU5Y+rUeiGBEnlxPMLXJklVE24+Jz0R Eyc+3HdDp6dTiTiuTqbhjHjwRfLEE8/wRTm94vqdcvlf7ZZTAbnxAyk+J1URQxK0JKQqUi KRn6XzDl0lrtyT4HfONIkCbCl5qlDT2lmLSb8OJcSnZzVHW33Psl4psy8UZly+lIpKTdW1 +bX6ZThtNt5aXkGqfDv0O6fiYutrS7+suFpBAzZfhowpH47HifNupXDXUbueDg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669041401; 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=KdxaqYbUAroipCiY9Q/sHRBQvYFsOFnVJz7w23FqFeo=; b=4JEeV+scQUqhhKLeb+3YP0NzubdIlifZaQ3kDRjWdvsouIu5isL//dqrvCZxuMwUFzhBgi AoOK+iW9RpO97zCw== 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> Subject: [patch V2 18/21] platform-msi: Switch to the domain id aware MSI interfaces References: <20221121083210.309161925@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Mon, 21 Nov 2022 15:36:40 +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?1750116907199110090?= X-GMAIL-MSGID: =?utf-8?q?1750116907199110090?= |
Series |
genirq, PCI/MSI: Support for per device MSI and PCI/IMS - Part 2 API rework
|
|
Commit Message
Thomas Gleixner
Nov. 21, 2022, 2:36 p.m. UTC
From: Ahmed S. Darwish <darwi@linutronix.de> Switch to the new domain id aware interfaces to phase out the previous ones. Use the range interface for allocation as the MSI descriptors are allocate by the MSI core and therefore a precise range has to be given. On free just tear down all MSI interrupts for simplicity. No functional change. Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> --- drivers/base/platform-msi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/base/platform-msi.c +++ b/drivers/base/platform-msi.c @@ -213,7 +213,7 @@ int platform_msi_domain_alloc_irqs(struc if (err) return err; - 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); @@ -227,7 +227,7 @@ EXPORT_SYMBOL_GPL(platform_msi_domain_al */ void platform_msi_domain_free_irqs(struct device *dev) { - msi_domain_free_irqs(dev->msi.domain, dev); + msi_domain_free_irqs_all(dev, MSI_DEFAULT_DOMAIN); platform_msi_free_priv_data(dev); } EXPORT_SYMBOL_GPL(platform_msi_domain_free_irqs);