Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp164557lqo; Wed, 27 Mar 2024 09:32:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVy2q8AjRPiwdns38U5QjxZ5y7GGBNNIfHSa29eITiExD1JyaKzv9syIcxaaxUkXSlYqlXisHu9gr/Sqz9RKzMV7cxj4MuvtO2UfSMUGA== X-Google-Smtp-Source: AGHT+IG3Jaa2xkQf3FBXRjpShtwwBFZaL6l5zP7uxMqxEuIs6xdD/iBThrfij14XDiRUEX+x1g6t X-Received: by 2002:a05:6808:6191:b0:3c3:e2d7:8cae with SMTP id dn17-20020a056808619100b003c3e2d78caemr258756oib.25.1711557176257; Wed, 27 Mar 2024 09:32:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711557176; cv=pass; d=google.com; s=arc-20160816; b=mKeOv+kjvX6pnnq1KRkY7UW/bCANLWKR9ekzUdV66Ek+PJdHV/7QLw3AcjE9Lma9Yr 2Hhu5EyQxVSQpTXZ9dDaX5IIiVCkgJ0T/8zjkVQo6VbdDOQLvwvyRDQc7w5Y+FQNeoza yPuwymFDKTBNnkLokHokiteUjumun6u7S9Rq+yW8R9uShCEDYfo8egTPYwHJxF7fgxeX Z5Eqr5hqvPklasXCMgnRntEpS2ZKyt3G1k8RspNC/ORCZiNrNjjDYsp8LhftcJBabHCN dlZVNIAW7iDKdr6WViyshHSNFmxkGFqYZQY9YYHhpsKGM8ZPGh2wx8hQlj1mtSv3lB+q /+aQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=yI7hBFKvJHN55PV+PjOJVJROEJqXY5KqXq5d/0MLUIM=; fh=ja9VSG2rdsrIhzIWqxdDuW7dUjr4l7+Gv/0A87zC1NA=; b=UwMsYfJGHF1DZDNLbZmtLbbkONNcRMu5WDCKK/wfQ3/Sj2tf0F+zFXN6/w3NU0H2sa Z1yYtkwrHuMWfB+w5QnQZ9zMPxepIWZdFXKnrKgKEonS4UcMH/YKQM23ghkZRJLXUv3X 0Ux+Getaxx+YHZnrmadmhvOtyjhA3tusXLdFzD+RnTzSF44CztKgC6NCsEAWC1i4UypO KmYejVoa3/00FO41qWj6O8sCujYBE8WHn9Zo9Id6uexRpFcqFuBmNiACWD9GxeLVovXq WjcuyY5aa6Y8t4uJ3HkldMzRIXg6zuFOIpyLkzCEVrejkz6afH/GldQSsICimEqwS6kb fpLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tKtoWiD7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 10-20020a05612208ca00b004d41cc1af59si2269967vkg.59.2024.03.27.09.32.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 09:32:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tKtoWiD7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121636-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E0B8B1C2E91B for ; Wed, 27 Mar 2024 16:32:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50EBB14C590; Wed, 27 Mar 2024 16:32:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tKtoWiD7" 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 7A67B1D524; Wed, 27 Mar 2024 16:32:49 +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=1711557169; cv=none; b=msZmnRHdibeTy+4HkJNy8YC5RizrVVag3wX8BjpaMF8OEs2dNMR29OjDZPTmMOHErCCgvuUBIO6FgOj+p6HUQ8ZgMvRijt+k1SdhrQJQkTwxK8hkpy21dKt8QpfS/inEmgjeISuGW49ONHm4Lu7pxxdFkAJeeWQnumq5OClxiX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711557169; c=relaxed/simple; bh=K4I4rVAMidehsa7u5f2a+EfIeErs3yPg8kJvWfige4E=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=Y1V6nH2u827MrmWgsoR1cptui37LZBvMO3p24HtXbnkSjMEIK7PN+CsCpKC6AY8dBxgKOZxC0B5F4a+uBaMgxiM0Q0eeluWiJunBEopmULrxD5nP/yFzrTt0GBGLzFfWJf2wmtRgCy+cF44M+7qZVQC/Gi5rVDs1dIxsSJuC3Bg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tKtoWiD7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE126C433C7; Wed, 27 Mar 2024 16:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711557169; bh=K4I4rVAMidehsa7u5f2a+EfIeErs3yPg8kJvWfige4E=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=tKtoWiD73YPVPBvGaGKxhRfUrVy/XSY3CU9Rp1nwGZQhT0o+MCm3StVnlF1fX3xAG L1xwhmEzZezGKx20sFzR9S7kv1XdnAHxB0mO1bhXY5GoWlpo+aa4//qiS1blgHSHCT Jh+hQwY3H6XxZtb6vFonIOZInGCK+zxuNANEapNwONDSIZt3bVofL4OdjpXGG5Akif WwL/oNv8MSCb9YhPA7UjD8w7GpswxE9lCLTKsWMY2hqRus9G2aGAbAEGS/qgPPFBlk /UJMWOoaI4en2Wjj338CwXFSp4wYWm6In+Zgo7i01gm99LyYyOEzv6F63rqGhybGQq K3tyrEqrlO51Q== Date: Wed, 27 Mar 2024 11:32:47 -0500 From: Bjorn Helgaas To: Thomas Gleixner Cc: LKML , 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 Subject: Re: [patch V3 28/33] PCI/MSI: Provide IMS (Interrupt Message Store) support Message-ID: <20240327163247.GA1525799@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221124232326.904316841@linutronix.de> On Fri, Nov 25, 2022 at 12:26:29AM +0100, Thomas Gleixner wrote: > IMS (Interrupt Message Store) is a new specification which allows > implementation specific storage of MSI messages contrary to the > strict standard specified MSI and MSI-X message stores. > ... > + * pci_create_ims_domain - Create a secondary IMS domain for a PCI device > + * Return: True on success, false otherwise > +bool pci_create_ims_domain(struct pci_dev *pdev, const struct msi_domain_template *template, > + unsigned int hwsize, void *data) pci_create_ims_domain() is exported for use by modules, but AFAICT, there is no in-tree user of this yet. I assume one is coming, but if there isn't one on the near horizon, we could/should remove this for now. Either way, I think "bool" is not the optimal return type because "pci_create_ims_domain" doesn't lend itself to a "true/false" reading and most interfaces that actually do something return 0 for success or a negative errno, so this will look like the opposite in the caller. I have similar comments about the following interfaces returning "bool", but they are internal to the PCI core: bool pci_create_device_domain() bool pci_setup_msi_device_domain() bool pci_setup_msix_device_domain() Bjorn