summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSusheel Khiani <skhiani@codeaurora.org>2016-02-05 14:26:04 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:25:38 -0700
commit20a5dc1e2f1fd77842eccfe7ec533a6f203b4919 (patch)
tree0a5f446d3b5b1b2c21adb52dfd4f543e2e048136 /include
parent8b39a23e0cd12a64b2622232f873ddac58cc388d (diff)
iommu/arm-smmu: Request TZ to change page table format to V8L
For targets where we have slave side protection, global register programming is handled by TZ. And since it supports V7S page table format only, by default TZ programs all context bank to permit V7S format by programming VA64 bit of CBA2R register as 0. But if context bank itself is non secure then its page tables are managed by HLOS where we can support V8L page table format. So, provide a way to request TZ to change page table format to V8L for non secure context banks. CRs-Fixed: 959535 Change-Id: I1f4d4b98c4f240a8351f791901abdfa78b829973 Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/soc/qcom/msm_tz_smmu.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/soc/qcom/msm_tz_smmu.h b/include/soc/qcom/msm_tz_smmu.h
index 13657cd03f48..4f4a64c09a8e 100644
--- a/include/soc/qcom/msm_tz_smmu.h
+++ b/include/soc/qcom/msm_tz_smmu.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -53,6 +53,7 @@ enum tz_smmu_device_id {
int msm_tz_smmu_atos_start(struct device *dev, int cb_num);
int msm_tz_smmu_atos_end(struct device *dev, int cb_num);
enum tz_smmu_device_id msm_dev_to_device_id(struct device *dev);
+void msm_tz_set_cb_format(enum tz_smmu_device_id sec_id, int cbndx);
#else
@@ -71,6 +72,11 @@ static inline enum tz_smmu_device_id msm_dev_to_device_id(struct device *dev)
return -EINVAL;
}
+static inline void msm_tz_set_cb_format(enum tz_smmu_device_id sec_id,
+ int cbndx)
+{
+}
+
#endif /* CONFIG_MSM_TZ_SMMU */
#endif /* __MSM_TZ_SMMU_H__ */