From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC7FDC352BE for ; Tue, 14 Apr 2020 18:04:01 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B72542076C for ; Tue, 14 Apr 2020 18:04:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B72542076C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7A5EF847A7; Tue, 14 Apr 2020 18:04:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SV5mLt6kLkmX; Tue, 14 Apr 2020 18:04:01 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 14551845D5; Tue, 14 Apr 2020 18:04:01 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 02B45C1D7D; Tue, 14 Apr 2020 18:04:01 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 66FF9C0172 for ; Tue, 14 Apr 2020 18:03:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 55A1784775 for ; Tue, 14 Apr 2020 18:03:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UNE8Xl2Og8yK for ; Tue, 14 Apr 2020 18:03:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 97DD1845D5 for ; Tue, 14 Apr 2020 18:03:58 +0000 (UTC) IronPort-SDR: p7HlBcMk1zwMx8KYIspxNE93TLhVJpgEgq014klpdCh7boo02MLuCGsm4jtmLGBgkY/NS9/AGt fp1nRzQ6MI7Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 11:03:58 -0700 IronPort-SDR: 01kgUQrqKZQX1pAj3dnDWz48ASk0atmd8PCFOSz4yl9e/0shzKXSFQ+E09Y5tSz5FmZPaOePWa U02OmUb4f5Hg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,383,1580803200"; d="scan'208";a="271475817" Received: from swwoldee-mobl1.amr.corp.intel.com (HELO [10.251.15.118]) ([10.251.15.118]) by orsmga002.jf.intel.com with ESMTP; 14 Apr 2020 11:03:53 -0700 Subject: Re: [PATCH v5 24/25] PCI/ATS: Export PRI functions To: Jean-Philippe Brucker , iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-mm@kvack.org References: <20200414170252.714402-1-jean-philippe@linaro.org> <20200414170252.714402-25-jean-philippe@linaro.org> From: "Kuppuswamy, Sathyanarayanan" Message-ID: <5365fba9-093a-1948-e521-7cc931f06ff0@linux.intel.com> Date: Tue, 14 Apr 2020 11:03:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200414170252.714402-25-jean-philippe@linaro.org> Content-Language: en-US Cc: kevin.tian@intel.com, will@kernel.org, catalin.marinas@arm.com, jgg@ziepe.ca, Bjorn Helgaas , zhangfei.gao@linaro.org, robin.murphy@arm.com, christian.koenig@amd.com X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" Hi, On 4/14/20 10:02 AM, Jean-Philippe Brucker wrote: > The SMMUv3 driver uses pci_{enable,disable}_pri() and related > functions. Export those functions to allow the driver to be built as a > module. > > Acked-by: Bjorn Helgaas > Signed-off-by: Jean-Philippe Brucker Reviewed-by: Kuppuswamy Sathyanarayanan > --- > drivers/pci/ats.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c > index bbfd0d42b8b97..fc8fc6fc8bd55 100644 > --- a/drivers/pci/ats.c > +++ b/drivers/pci/ats.c > @@ -197,6 +197,7 @@ void pci_pri_init(struct pci_dev *pdev) > if (status & PCI_PRI_STATUS_PASID) > pdev->pasid_required = 1; > } > +EXPORT_SYMBOL_GPL(pci_pri_init); > > /** > * pci_enable_pri - Enable PRI capability > @@ -243,6 +244,7 @@ int pci_enable_pri(struct pci_dev *pdev, u32 reqs) > > return 0; > } > +EXPORT_SYMBOL_GPL(pci_enable_pri); > > /** > * pci_disable_pri - Disable PRI capability > @@ -322,6 +324,7 @@ int pci_reset_pri(struct pci_dev *pdev) > > return 0; > } > +EXPORT_SYMBOL_GPL(pci_reset_pri); > > /** > * pci_prg_resp_pasid_required - Return PRG Response PASID Required bit > @@ -337,6 +340,7 @@ int pci_prg_resp_pasid_required(struct pci_dev *pdev) > > return pdev->pasid_required; > } > +EXPORT_SYMBOL_GPL(pci_prg_resp_pasid_required); > #endif /* CONFIG_PCI_PRI */ > > #ifdef CONFIG_PCI_PASID > _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu