iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Jean-Philippe Brucker <jean-philippe@linaro.org>
To: iommu@lists.linux-foundation.org,
	linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org
Cc: fenghua.yu@intel.com,
	Jean-Philippe Brucker <jean-philippe@linaro.org>,
	catalin.marinas@arm.com,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	robin.murphy@arm.com, hch@infradead.org, zhengxiang9@huawei.com,
	zhangfei.gao@linaro.org, will@kernel.org
Subject: [PATCH v9 06/13] arm64: cpufeature: Export symbol read_sanitised_ftr_reg()
Date: Thu, 23 Jul 2020 16:57:18 +0200	[thread overview]
Message-ID: <20200723145724.3014766-7-jean-philippe@linaro.org> (raw)
In-Reply-To: <20200723145724.3014766-1-jean-philippe@linaro.org>

The SMMUv3 driver would like to read the MMFR0 PARANGE field in order to
share CPU page tables with devices. Allow the driver to be built as
module by exporting the read_sanitized_ftr_reg() cpufeature symbol.

Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
---
 arch/arm64/kernel/cpufeature.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 9fae0efc80c1..ac2ed25c43d3 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -1068,6 +1068,7 @@ u64 read_sanitised_ftr_reg(u32 id)
 		return 0;
 	return regp->sys_val;
 }
+EXPORT_SYMBOL_GPL(read_sanitised_ftr_reg);
 
 #define read_sysreg_case(r)	\
 	case r:		return read_sysreg_s(r)
-- 
2.27.0

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

  parent reply	other threads:[~2020-07-23 15:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-23 14:57 [PATCH v9 00/13] iommu: Shared Virtual Addressing for SMMUv3 (PT sharing part) Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 01/13] mm: Define pasid in mm Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 02/13] iommu/ioasid: Add ioasid references Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 03/13] iommu/sva: Add PASID helpers Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 04/13] arm64: mm: Pin down ASIDs for sharing mm with devices Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 05/13] iommu/io-pgtable-arm: Move some definitions to a header Jean-Philippe Brucker
2020-07-23 14:57 ` Jean-Philippe Brucker [this message]
2020-07-23 14:57 ` [PATCH v9 07/13] iommu/arm-smmu-v3: Move " Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 08/13] iommu/arm-smmu-v3: Share process page tables Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 09/13] iommu/arm-smmu-v3: Seize private ASID Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 10/13] iommu/arm-smmu-v3: Check for SVA features Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 11/13] iommu/arm-smmu-v3: Add SVA device feature Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 12/13] iommu/arm-smmu-v3: Implement iommu_sva_bind/unbind() Jean-Philippe Brucker
2020-07-23 14:57 ` [PATCH v9 13/13] iommu/arm-smmu-v3: Hook up ATC invalidation to mm ops Jean-Philippe Brucker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200723145724.3014766-7-jean-philippe@linaro.org \
    --to=jean-philippe@linaro.org \
    --cc=catalin.marinas@arm.com \
    --cc=fenghua.yu@intel.com \
    --cc=hch@infradead.org \
    --cc=iommu@lists.linux-foundation.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-mm@kvack.org \
    --cc=robin.murphy@arm.com \
    --cc=suzuki.poulose@arm.com \
    --cc=will@kernel.org \
    --cc=zhangfei.gao@linaro.org \
    --cc=zhengxiang9@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).