Browse Source

msm: camera: memmgr: increase max slot count into 2048

In case large memory slot usage scene like MFHDR, MFSR.
increase kernel slot count to avoid out of memory issue.

CRs-Fixed: 2718732
Change-Id: I49dd2d9bdda548d5f95fa49c290364ecb6d40f6e
Signed-off-by: bohahuan <[email protected]>
bohahuan 4 years ago
parent
commit
9d1e44a94f
2 changed files with 1 additions and 3 deletions
  1. 0 2
      drivers/cam_req_mgr/cam_mem_mgr.h
  2. 1 1
      include/uapi/camera/media/cam_req_mgr.h

+ 0 - 2
drivers/cam_req_mgr/cam_mem_mgr.h

@@ -11,8 +11,6 @@
 #include <media/cam_req_mgr.h>
 #include "cam_mem_mgr_api.h"
 
-#define CAM_MEM_BUFQ_MAX 1024
-
 /* Enum for possible mem mgr states */
 enum cam_mem_mgr_state {
 	CAM_MEM_MGR_UNINITIALIZED,

+ 1 - 1
include/uapi/camera/media/cam_req_mgr.h

@@ -290,7 +290,7 @@ struct cam_req_mgr_link_control {
 #define CAM_MEM_MMU_MAX_HANDLE                  16
 
 /* Maximum allowed buffers in existence */
-#define CAM_MEM_BUFQ_MAX                        1024
+#define CAM_MEM_BUFQ_MAX                        2048
 
 #define CAM_MEM_MGR_SECURE_BIT_POS              15
 #define CAM_MEM_MGR_HDL_IDX_SIZE                15