codec_mm: set enable_slot_from_sys to try one page
authorrongrong zhou <rongrong.zhou@amlogic.com>
Fri, 20 Jul 2018 09:24:20 +0000 (17:24 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Mon, 23 Jul 2018 08:55:59 +0000 (01:55 -0700)
PD#170091: codec_mm: set enable_slot_from_sys to try one page

set enable_slot_from_sys to try one page

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

index 1f3e023d26ceb9bf43a9deb4ec083b01aa617933..67099561dae7c65ab6ea8b28df86cb86895ac1a2 100644 (file)
@@ -2558,7 +2558,7 @@ static int codec_mm_scatter_mgt_alloc_in(struct codec_mm_scatter_mgt **psmgt)
        smgt->reserved_block_mm_M = 64;
        smgt->keep_size_PAGE = 20 * SZ_1M >> PAGE_SHIFT;
        smgt->alloc_from_cma_first = 1;
-       smgt->enable_slot_from_sys = 1;
+       smgt->enable_slot_from_sys = 0;
        smgt->support_from_slot_sys =
                smgt->enable_slot_from_sys;
        smgt->mem_flags = CODEC_MM_FLAGS_CMA_FIRST |