Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13a69340 authored by Karthik Anantha Ram's avatar Karthik Anantha Ram Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: smmu: Change shared mem pool granularity



The shared mem pool granularity is changed from 4K to 64K,
to be in line with the page size on ICP FW side.

Change-Id: Ia9474a1e24f8d9b98a861d3bc2977e0877d0d52d
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 9fe7dab7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
#include "cam_smmu_api.h"
#include "cam_debug_util.h"

#define SHARED_MEM_POOL_GRANULARITY 12
#define SHARED_MEM_POOL_GRANULARITY 16

#define IOMMU_INVALID_DIR -1
#define BYTE_SIZE 8
@@ -3141,7 +3141,7 @@ static int cam_smmu_setup_cb(struct cam_context_bank_info *cb,
	cb->is_fw_allocated = false;
	cb->is_secheap_allocated = false;

	/* Create a pool with 4K granularity for supporting shared memory */
	/* Create a pool with 64K granularity for supporting shared memory */
	if (cb->shared_support) {
		cb->shared_mem_pool = gen_pool_create(
			SHARED_MEM_POOL_GRANULARITY, -1);