mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
msm: vidc: Configure video context bank for best fit
With best fit configuration, the probability of getting a mapping for video buffer increases even when the system is fragmented. Change-Id: I8689447ce1341fd1189b543eb9fb6a2e03edcc94 Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
This commit is contained in:
parent
930011097f
commit
0db29bbac3
1 changed files with 7 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
|
||||
#include <linux/iommu.h>
|
||||
#include <linux/dma-iommu.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/sort.h>
|
||||
#include "msm_vidc_debug.h"
|
||||
|
|
@ -968,6 +969,12 @@ 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.
|
||||
*/
|
||||
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…
Reference in a new issue