codec_mm: enlarge reserved_block_mm_M [1/1]
authorrongrong zhou <rongrong.zhou@amlogic.com>
Fri, 29 Nov 2019 12:17:34 +0000 (20:17 +0800)
committerLiang Ji <liang.ji@amlogic.com>
Mon, 16 Dec 2019 07:01:13 +0000 (15:01 +0800)
PD#SWPL-17471

Problem:
No mem ret=-10003, clear scatter cache!!

Solution:
enlarge reserved_block_mm_M

Verify:
U212

Change-Id: I567f6437cbfb5a5157c8903ce70fb5e2fc000e34
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
drivers/amlogic/media/common/codec_mm/codec_mm_scatter.c

index 21e7090a458d02e6f458e907e45c95b70e9cf96e..237dd934c06f4321f068208a6e6937321e794811 100644 (file)
@@ -2815,7 +2815,7 @@ static int codec_mm_scatter_mgt_alloc_in(struct codec_mm_scatter_mgt **psmgt)
        smgt->try_alloc_in_sys_page_cnt_max = MAX_SYS_BLOCK_PAGE;
        smgt->try_alloc_in_sys_page_cnt = MAX_SYS_BLOCK_PAGE;
        smgt->try_alloc_in_sys_page_cnt_min = MIN_SYS_BLOCK_PAGE;
-       smgt->reserved_block_mm_M = 128;
+       smgt->reserved_block_mm_M = 300;
        smgt->keep_size_PAGE = 20 * SZ_1M >> PAGE_SHIFT;
        smgt->alloc_from_cma_first = 1;
        smgt->enable_slot_from_sys = 0;