iommu: interchange the vmid order passed to hyp_assign

Interchange the VMID order passed to the function hyp_assign_phys as
secure CP clients expects it.

Change-Id: Ie2c1b8825b5272e82a14401dbc45b77ebb277048
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
This commit is contained in:
Charan Teja Reddy 2017-01-13 18:23:21 +05:30
parent ded703d63e
commit 87884961d7

View file

@ -2451,7 +2451,7 @@ static void arm_smmu_unassign_table(struct arm_smmu_domain *smmu_domain)
int ret; int ret;
int dest_vmids = VMID_HLOS; int dest_vmids = VMID_HLOS;
int dest_perms = PERM_READ | PERM_WRITE | PERM_EXEC; int dest_perms = PERM_READ | PERM_WRITE | PERM_EXEC;
int source_vmlist[2] = {VMID_HLOS, smmu_domain->secure_vmid}; int source_vmlist[2] = {smmu_domain->secure_vmid, VMID_HLOS};
struct arm_smmu_pte_info *pte_info, *temp; struct arm_smmu_pte_info *pte_info, *temp;
if (!arm_smmu_is_master_side_secure(smmu_domain)) if (!arm_smmu_is_master_side_secure(smmu_domain))