Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp881071rwb; Wed, 16 Nov 2022 08:52:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Sv30kdpbC8rc2MCOmi3BZPYFktVL+vf+I7F80TYuFlHl3afgBWBeJYf446SwswoCiVJH6 X-Received: by 2002:aa7:8d12:0:b0:56d:384:e13a with SMTP id j18-20020aa78d12000000b0056d0384e13amr23956056pfe.75.1668617578023; Wed, 16 Nov 2022 08:52:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668617578; cv=none; d=google.com; s=arc-20160816; b=SG9EuqqcYmmx7w2pnCwt17QdWFeF+qwCa7zDM+zeKoFoCk78P8N1ui68ZjN6FN24c0 zVVngsPzRVjFaqDgJ6ITYgJW3J2CZSiB+QKgOMdZ27cHIM365wZ4njLq1jdVD4O3ora0 X7w8FT2gwDezZOWikyLRYcZsomcYc8Rb+LwKovvA0MIPxzXKg/t9LU//2E/j+24m7EEQ oexUx0Jxci/AnHXyqxwxyQXKqGUYnbnkSKBimwmsce5GJoUEwzv8CBTXd3daral7RhSW PtyFqif8X6HmoP3g/Iue/m8fl0ZMdmpZV2s/XbbnaH+Yzo/gFXyBUDukoC6NY4/tFL7a gIwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=gq9xjtPSmXF+5IYwzprafmD6QgcM38aFB09Q5sP42HQ=; b=ds+OcpuXiT9FDElpVx1/pCdeWOLLp1AZLT5UzduK8yO/vUXHikbm7LfqatIJfXiMxg Fi8WxWjVVsQiOSeoaK++iS/mV+UAiLI2o6AYKMVRC3cnfUwE0Wg1lQvlCIKJs/gOGdEs M9NlpMK0Lrh5yXhoLhZm2EdrbKqPdVtGYhd343xfYjZcx8cpHJI0VPFmI7eH2tIzQLY6 UcOsSBGAaCWM304ly4IePM2ojWmOCzFzobOAwVkpJQ8UBdZpEV0MZlOyf2fH1/xdTVnz U32cJTtZe0UPZ+qj3FZnj6QYsVG8UwLNeeb8tZXKKWfSTK3QewClWgfpgnu5t/34uPjv Zimg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lchBLUmI; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q21-20020a170902789500b00178276c2e35si14655355pll.38.2022.11.16.08.52.46; Wed, 16 Nov 2022 08:52:58 -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=@kernel.org header.s=k20201202 header.b=lchBLUmI; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233746AbiKPQfu (ORCPT + 91 others); Wed, 16 Nov 2022 11:35:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233404AbiKPQfT (ORCPT ); Wed, 16 Nov 2022 11:35:19 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A33E59FD1; Wed, 16 Nov 2022 08:27:29 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CBB4261EC4; Wed, 16 Nov 2022 16:27:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00DCEC433C1; Wed, 16 Nov 2022 16:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668616048; bh=r6evYLgCFK3vWA5BdOirS4iuO3KS6qHZMh2iJoUYxhg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=lchBLUmINWLXBZZsz2dj+jHnFDfSkQsj4e76xKJFbZdSH9hWx3HeMQjZAaeAvIIWZ w/5RKX6PkoY9m75TXAkyzW36dFHpyKrwaSBlE9q5acW3K9OQjFnBWMqYCRk2W8WRDj Rg97dpmiBt0BAnZ9N3WUfV9y/fAKY/sSiwS6SLK5vtNUgo9tgvZ8SyUzGVnYsvPxW8 48ihwzximGEEwJUlZZxdeqpUbsy0Szm1evRNcwkKFLaaGIrtf8iWpgwa86Lzg8RUVG 8vT9gDdtLOL7rhIwsOF9TxBOXaMRUu+YRt6IYtKzUJpPAkrl+a6qtBc2ZJsTcY+DOo Td8hFPlIJALKA== Date: Wed, 16 Nov 2022 10:27:26 -0600 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 , "Ahmed S. Darwish" , Reinette Chatre , Michael Ellerman , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: Re: [patch 31/39] Documentation: PCI: Add reference to PCI/MSI device driver APIs Message-ID: <20221116162726.GA1116017@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221111122015.397739421@linutronix.de> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Fri, Nov 11, 2022 at 02:55:04PM +0100, Thomas Gleixner wrote: > From: Ahmed S. Darwish > > All exported device-driver MSI APIs are now grouped in one place at > drivers/pci/msi/api.c with comprehensive kernel-docs added. > > Reference these kernel-docs in the official PCI/MSI howto. > > Signed-off-by: Ahmed S. Darwish > Signed-off-by: Thomas Gleixner Acked-by: Bjorn Helgaas > --- > Documentation/PCI/msi-howto.rst | 10 ++++++++++ > 1 file changed, 10 insertions(+) > --- > --- a/Documentation/PCI/msi-howto.rst > +++ b/Documentation/PCI/msi-howto.rst > @@ -285,3 +285,13 @@ to bridges between the PCI root and the > It is also worth checking the device driver to see whether it supports MSIs. > For example, it may contain calls to pci_alloc_irq_vectors() with the > PCI_IRQ_MSI or PCI_IRQ_MSIX flags. > + > + > +List of device drivers MSI(-X) APIs > +=================================== > + > +The PCI/MSI subystem has a dedicated C file for its exported device driver > +APIs — `drivers/pci/msi/api.c`. The following functions are exported: > + > +.. kernel-doc:: drivers/pci/msi/api.c > + :export: >