OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dfe618
)
iommu/arm-smmu: Add getter for DOMAIN_ATTR_SECURE_VMID
author
Mitchel Humpherys
<mitchelh@codeaurora.org>
Fri, 31 Jul 2015 02:39:15 +0000
(19:39 -0700)
committer
David Keitel
<dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:13:43 +0000
(11:13 -0700)
It can be useful to query a previously set secure VMID. Add a domain
attribute getter for this.
Change-Id: Iaf14201d321161ce4ccc69b674a3b1247d6a7e94
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
drivers/iommu/arm-smmu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/arm-smmu.c
b/drivers/iommu/arm-smmu.c
index
11468a8
..
38e95fe
100644
(file)
--- a/
drivers/iommu/arm-smmu.c
+++ b/
drivers/iommu/arm-smmu.c
@@
-2278,6
+2278,10
@@
static int arm_smmu_domain_get_attr(struct iommu_domain *domain,
(1 << DOMAIN_ATTR_COHERENT_HTW_DISABLE));
ret = 0;
break;
+ case DOMAIN_ATTR_SECURE_VMID:
+ *((int *)data) = smmu_domain->secure_vmid;
+ ret = 0;
+ break;
case DOMAIN_ATTR_PT_BASE_ADDR:
*((phys_addr_t *)data) =
smmu_domain->pgtbl_cfg.arm_lpae_s1_cfg.ttbr[0];