diff options
| author | Trishansh Bhardwaj <tbhardwa@codeaurora.org> | 2017-05-24 14:05:49 +0530 |
|---|---|---|
| committer | Trishansh Bhardwaj <tbhardwa@codeaurora.org> | 2017-05-24 16:45:01 +0530 |
| commit | b37fcc64017fd29d86df244bf4f3a7fefb2496ff (patch) | |
| tree | 7167217eeb16e2a92d9a7ba1232e17dacb65dc4c | |
| parent | 60be71604a84d2e047215cb702d6324379a353bb (diff) | |
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>
| -rw-r--r-- | drivers/media/platform/msm/camera_v2/common/cam_smmu_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/platform/msm/camera_v2/common/cam_smmu_api.c b/drivers/media/platform/msm/camera_v2/common/cam_smmu_api.c index 9cdcabb762c0..63791ff7318c 100644 --- a/drivers/media/platform/msm/camera_v2/common/cam_smmu_api.c +++ b/drivers/media/platform/msm/camera_v2/common/cam_smmu_api.c @@ -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 */ |
