msm: camera: Align smmu mapping len to 128M.

In 32 bit system mapping len should be 128M aligned.

Change-Id: I41550e65ebd6c4cde7a4c5f7144ce57b7b8cdb91
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
This commit is contained in:
Trishansh Bhardwaj 2017-05-24 14:05:49 +05:30
parent 60be71604a
commit b37fcc6401

View file

@ -24,6 +24,7 @@
#include <linux/dma-mapping.h>
#include <linux/msm_dma_iommu_mapping.h>
#include <linux/workqueue.h>
#include <linux/sizes.h>
#include <soc/qcom/scm.h>
#include <soc/qcom/secure_buffer.h>
#include <msm_camera_tz_util.h>
@ -2226,7 +2227,7 @@ static int cam_smmu_setup_cb(struct cam_context_bank_info *cb,
}
} else {
cb->va_start = SZ_128K;
cb->va_len = VA_SPACE_END - SZ_128K;
cb->va_len = VA_SPACE_END - SZ_128M;
}
/* create a virtual mapping */