From: rongrong zhou Date: Fri, 29 Nov 2019 12:17:34 +0000 (+0800) Subject: codec_mm: enlarge reserved_block_mm_M [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a80bdce334d6b4dd01c8f34e97efb931b1950201;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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;