Loading msm/vidc/msm_vidc_res_parse.c +8 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ */ #include <asm/dma-iommu.h> #include <linux/dma-iommu.h> #include <linux/iommu.h> #include <linux/of.h> #include <linux/slab.h> Loading Loading @@ -1012,6 +1013,13 @@ static int msm_vidc_setup_context_bank(struct msm_vidc_platform_resources *res, cb->domain = iommu_get_domain_for_dev(cb->dev); /* * When memory is fragmented, below configuration increases the * possibility to get a mapping for buffer in the configured CB. */ if (!strcmp(cb->name, "venus_ns")) iommu_dma_enable_best_fit_algo(cb->dev); /* * configure device segment size and segment boundary to ensure * iommu mapping returns one mapping (which is required for partial Loading Loading
msm/vidc/msm_vidc_res_parse.c +8 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ */ #include <asm/dma-iommu.h> #include <linux/dma-iommu.h> #include <linux/iommu.h> #include <linux/of.h> #include <linux/slab.h> Loading Loading @@ -1012,6 +1013,13 @@ static int msm_vidc_setup_context_bank(struct msm_vidc_platform_resources *res, cb->domain = iommu_get_domain_for_dev(cb->dev); /* * When memory is fragmented, below configuration increases the * possibility to get a mapping for buffer in the configured CB. */ if (!strcmp(cb->name, "venus_ns")) iommu_dma_enable_best_fit_algo(cb->dev); /* * configure device segment size and segment boundary to ensure * iommu mapping returns one mapping (which is required for partial Loading