Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp52303lqg; Wed, 10 Apr 2024 15:13:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgloHT2HMvnFt+vye7fK4n4TGgy9zK9pTdDSBzYh7K7Su0GaSdmmEPh+oF0Aho6DlW7bpc9nhgLjX3Jp2PDdu2sKHtkgDFJfztnAg+Iw== X-Google-Smtp-Source: AGHT+IFp6ozc0tJjhK8/IedAdvvnDOUQrI0O6pAeJmmDHaHfyLiUPrGH0JI57GD1WegeZXjhbnLs X-Received: by 2002:a05:6a20:918e:b0:1a7:a3ee:5e4a with SMTP id v14-20020a056a20918e00b001a7a3ee5e4amr4493316pzd.33.1712787223273; Wed, 10 Apr 2024 15:13:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712787223; cv=pass; d=google.com; s=arc-20160816; b=LoJxbBDz+b2jIqNPBAWMxLfEencQrSGyecUs5WvmPthUwWtCeOj2yi5q8ezm3iV6Ip vxt22w21lEc1Br9ecJQwKBUVlmHBQFg1tnx7HerZttlYYQtz7WS5LOLxZ7zo3HXqExwV hGiVkISgVXNRMzghOtRzr54/e5waIeuEDta2G3fvFtYcPAdgmQo05esn+eHQYmKBEAKX g+ud6w7zxmGS17YFIfyFyAJ2KPg6wbWpGz/1yi4Dl0eLybO3pE7AT8a1tZNDr8zI04Wp VKPfA5ntVv6SkusqrfAN6huqffT3IrfLZxzvFJQNKPS7Gv05EyZfjUlPBI4+xlLe4LYG SmCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bSHcSohz2qeYpUhN4v4+9SKlCOX9R1CZCYMMl1K2WiE=; fh=vvD7kdj1At6ezffD/IEGPt3u+aV1voPJybHICWUtJ54=; b=MZusOaZtzixTdhsBKLg8d9XG2ol1rtV58lbDsvZQa/I3++tm4e6O7lHkNtsU03pLEj eYIffuhsJ77Oht/4UYpRb7fDVFSqFkyPAGpo2u79vQww4n76joUQO30hvgFKjyVQG59m K/PyVI8yIeOli9LNTc1fMzZwwFEEbEYj8Nu5VasMyukmr7IFWs6S+e7q4Y507O51SnHO OU3SdpxTsyLw/EGiA+G0wPYghY72ai/Q56QIB5UBtHYwn9WT+J1/FO8tyV9Hh9Nnzo// rmPhL/LsR9s5zxoZmxwB+JEgTa2N4ENOkE+8DtvQFt2mO2Qdkqg6Th98hflVPx00QXAK tYpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DhJbhlIg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139413-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139413-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gp3-20020a056a003b8300b006e6cf11a823si184191pfb.255.2024.04.10.15.13.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 15:13:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139413-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DhJbhlIg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139413-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139413-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EA46C2874E6 for ; Wed, 10 Apr 2024 22:13:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76AD0190685; Wed, 10 Apr 2024 22:13:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DhJbhlIg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C3FB19066E; Wed, 10 Apr 2024 22:13:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712787198; cv=none; b=L9lyCHuXwzsnZM7ZFBhfmRZ+zi56g8kFZ1eQHuI5a0FAi0fa4nRryEjGgcjLulasYFmSri82Tg/IIitDpXeC9aXUD9kVaSjFkumdf31UrKlNSXo36xfK7VUYkfoRqitUz3W5VDQDl2TbjLhyZ9IC0vYc1RIvfIYGRY9u+3M9OGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712787198; c=relaxed/simple; bh=LMCkQbnW2I5WGnGXZOS3NTRS12MF/ECBP2NGHKZbJ6c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TAEbvA7ZKD6x7Ka3IKo2oz/ni0QmiywWsLzCX6BfN2mu5Kl0th2rGK3iJT73eLMcArYnKSWe0goAyteXmX+wA07W1B9cqnxZ2HbubGrH1E6C+cksoR+AO7jREtYXTyiyHkDg0nHez91cf74I4IpsIC3TTkMufpFmomqjUSpyRLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DhJbhlIg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D95A4C433C7; Wed, 10 Apr 2024 22:13:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712787198; bh=LMCkQbnW2I5WGnGXZOS3NTRS12MF/ECBP2NGHKZbJ6c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DhJbhlIgiyG3cvd73xQPqKhSqelnts7yNWcvULFDB0z6+ey+Hyrgavk4AtRdvT3MW sr9cE5JpTnTXUlMZ0N7S8euyrT9ZJS2HQNYhDPrrObSaqt8+ZQanKKnu8j9vNsyX0s ysrZ8rPpy9lvbO+WbcIdOTykTaLMGAADBeN8fqhufksz7rtDN7ksnyrq9YNHjW5Uog 9ZngjmsSdSJOaxsacq/sV8p1mSfoGsNKFACAM8FJGq3HMYTLLYLIEHw0XmS//pzqJl 96AW+VlYBpApwPl54DHWT1lvzx/cZWB5YkkZ0y35R/Y8SHsyAPc9YY5UK9Dg+C+IOT q8XV8EABKuOyg== From: Bjorn Helgaas To: linux-pci@vger.kernel.org, Joerg Roedel , Will Deacon Cc: Thomas Gleixner , Kevin Tian , Marc Zyngier , Reinette Chatre , Jason Gunthorpe , Alex Williamson , Dave Jiang , Megha Dey , Suravee Suthikulpanit , Robin Murphy , David Woodhouse , Lu Baolu , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: [PATCH v2 1/7] Revert "PCI/MSI: Provide stubs for IMS functions" Date: Wed, 10 Apr 2024 17:13:01 -0500 Message-Id: <20240410221307.2162676-2-helgaas@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410221307.2162676-1-helgaas@kernel.org> References: <20240410221307.2162676-1-helgaas@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Bjorn Helgaas This reverts commit 41efa431244f6498833ff8ee8dde28c4924c5479. IMS (Interrupt Message Store) support appeared in v6.2, but there are no users yet. Remove it for now. We can add it back when a user comes along. If this is re-added later, this could be squashed with these commits: 0194425af0c8 ("PCI/MSI: Provide IMS (Interrupt Message Store) support") c9e5bea27383 ("PCI/MSI: Provide pci_ims_alloc/free_irq()") which added the non-stub implementations. Signed-off-by: Bjorn Helgaas Reviewed-by: Kevin Tian --- include/linux/pci.h | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index 16493426a04f..abbef75b2b92 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1658,8 +1658,6 @@ struct msix_entry { u16 entry; /* Driver uses to specify entry, OS writes */ }; -struct msi_domain_template; - #ifdef CONFIG_PCI_MSI int pci_msi_vec_count(struct pci_dev *dev); void pci_disable_msi(struct pci_dev *dev); @@ -1692,11 +1690,6 @@ void pci_msix_free_irq(struct pci_dev *pdev, struct msi_map map); void pci_free_irq_vectors(struct pci_dev *dev); int pci_irq_vector(struct pci_dev *dev, unsigned int nr); const struct cpumask *pci_irq_get_affinity(struct pci_dev *pdev, int vec); -bool pci_create_ims_domain(struct pci_dev *pdev, const struct msi_domain_template *template, - unsigned int hwsize, void *data); -struct msi_map pci_ims_alloc_irq(struct pci_dev *pdev, union msi_instance_cookie *icookie, - const struct irq_affinity_desc *affdesc); -void pci_ims_free_irq(struct pci_dev *pdev, struct msi_map map); #else static inline int pci_msi_vec_count(struct pci_dev *dev) { return -ENOSYS; } @@ -1760,25 +1753,6 @@ static inline const struct cpumask *pci_irq_get_affinity(struct pci_dev *pdev, { return cpu_possible_mask; } - -static inline bool pci_create_ims_domain(struct pci_dev *pdev, - const struct msi_domain_template *template, - unsigned int hwsize, void *data) -{ return false; } - -static inline struct msi_map pci_ims_alloc_irq(struct pci_dev *pdev, - union msi_instance_cookie *icookie, - const struct irq_affinity_desc *affdesc) -{ - struct msi_map map = { .index = -ENOSYS, }; - - return map; -} - -static inline void pci_ims_free_irq(struct pci_dev *pdev, struct msi_map map) -{ -} - #endif /** @@ -2690,6 +2664,14 @@ static inline bool pci_is_thunderbolt_attached(struct pci_dev *pdev) void pci_uevent_ers(struct pci_dev *pdev, enum pci_ers_result err_type); #endif +struct msi_domain_template; + +bool pci_create_ims_domain(struct pci_dev *pdev, const struct msi_domain_template *template, + unsigned int hwsize, void *data); +struct msi_map pci_ims_alloc_irq(struct pci_dev *pdev, union msi_instance_cookie *icookie, + const struct irq_affinity_desc *affdesc); +void pci_ims_free_irq(struct pci_dev *pdev, struct msi_map map); + #include #define pci_printk(level, pdev, fmt, arg...) \ -- 2.34.1