Loading drivers/iommu/msm_iommu-v0.c +7 −1 Original line number Diff line number Diff line Loading @@ -424,6 +424,12 @@ static void __program_context(struct msm_iommu_drvdata *iommu_drvdata, msm_iommu_remote_spin_unlock(iommu_drvdata->needs_rem_spinlock); } #ifdef CONFIG_IOMMU_PGTABLES_L2 #define INITIAL_REDIRECT_VAL 1 #else #define INITIAL_REDIRECT_VAL 0 #endif static int msm_iommu_domain_init(struct iommu_domain *domain) { struct msm_iommu_priv *priv = kzalloc(sizeof(*priv), GFP_KERNEL); Loading @@ -438,7 +444,7 @@ static int msm_iommu_domain_init(struct iommu_domain *domain) if (!priv->pt.fl_table) goto fail_nomem; priv->pt.redirect = 1; priv->pt.redirect = INITIAL_REDIRECT_VAL; memset(priv->pt.fl_table, 0, SZ_16K); domain->priv = priv; Loading drivers/iommu/msm_iommu-v1.c +7 −1 Original line number Diff line number Diff line Loading @@ -740,6 +740,12 @@ static void __program_context(struct msm_iommu_drvdata *iommu_drvdata, mb(); } #ifdef CONFIG_IOMMU_PGTABLES_L2 #define INITIAL_REDIRECT_VAL 1 #else #define INITIAL_REDIRECT_VAL 0 #endif static int msm_iommu_domain_init(struct iommu_domain *domain) { struct msm_iommu_priv *priv; Loading @@ -748,7 +754,7 @@ static int msm_iommu_domain_init(struct iommu_domain *domain) if (!priv) goto fail_nomem; priv->pt.redirect = 1; priv->pt.redirect = INITIAL_REDIRECT_VAL; INIT_LIST_HEAD(&priv->list_attached); if (msm_iommu_pagetable_alloc(&priv->pt)) Loading Loading
drivers/iommu/msm_iommu-v0.c +7 −1 Original line number Diff line number Diff line Loading @@ -424,6 +424,12 @@ static void __program_context(struct msm_iommu_drvdata *iommu_drvdata, msm_iommu_remote_spin_unlock(iommu_drvdata->needs_rem_spinlock); } #ifdef CONFIG_IOMMU_PGTABLES_L2 #define INITIAL_REDIRECT_VAL 1 #else #define INITIAL_REDIRECT_VAL 0 #endif static int msm_iommu_domain_init(struct iommu_domain *domain) { struct msm_iommu_priv *priv = kzalloc(sizeof(*priv), GFP_KERNEL); Loading @@ -438,7 +444,7 @@ static int msm_iommu_domain_init(struct iommu_domain *domain) if (!priv->pt.fl_table) goto fail_nomem; priv->pt.redirect = 1; priv->pt.redirect = INITIAL_REDIRECT_VAL; memset(priv->pt.fl_table, 0, SZ_16K); domain->priv = priv; Loading
drivers/iommu/msm_iommu-v1.c +7 −1 Original line number Diff line number Diff line Loading @@ -740,6 +740,12 @@ static void __program_context(struct msm_iommu_drvdata *iommu_drvdata, mb(); } #ifdef CONFIG_IOMMU_PGTABLES_L2 #define INITIAL_REDIRECT_VAL 1 #else #define INITIAL_REDIRECT_VAL 0 #endif static int msm_iommu_domain_init(struct iommu_domain *domain) { struct msm_iommu_priv *priv; Loading @@ -748,7 +754,7 @@ static int msm_iommu_domain_init(struct iommu_domain *domain) if (!priv) goto fail_nomem; priv->pt.redirect = 1; priv->pt.redirect = INITIAL_REDIRECT_VAL; INIT_LIST_HEAD(&priv->list_attached); if (msm_iommu_pagetable_alloc(&priv->pt)) Loading