From a80bdce334d6b4dd01c8f34e97efb931b1950201 Mon Sep 17 00:00:00 2001 From: rongrong zhou Date: Fri, 29 Nov 2019 20:17:34 +0800 Subject: [PATCH] codec_mm: enlarge reserved_block_mm_M [1/1] 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 --- drivers/amlogic/media/common/codec_mm/codec_mm_scatter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/media/common/codec_mm/codec_mm_scatter.c b/drivers/amlogic/media/common/codec_mm/codec_mm_scatter.c index 21e7090a458d..237dd934c06f 100644 --- a/drivers/amlogic/media/common/codec_mm/codec_mm_scatter.c +++ b/drivers/amlogic/media/common/codec_mm/codec_mm_scatter.c @@ -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; -- 2.20.1