From c88653bb2717ebb7a0191703c5b57626018b1bc6 Mon Sep 17 00:00:00 2001 From: "shipeng.sun" Date: Mon, 7 Jun 2021 10:05:26 +0800 Subject: [PATCH] codec_mm: Modify a warning print for tvp free [1/1] PD#SWPL-52149 Problem: Modify a warning print for tvp free Solution: 1. Modify a warning print when tvp pool free later. Verify: local Change-Id: I958ff7e8c4db5a0900e7d23eda337490567e044e Signed-off-by: shipeng.sun --- .../amlogic/media/common/codec_mm/codec_mm.c | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/amlogic/media/common/codec_mm/codec_mm.c b/drivers/amlogic/media/common/codec_mm/codec_mm.c index 82a42ea6c6a1..51c0f0474dc5 100644 --- a/drivers/amlogic/media/common/codec_mm/codec_mm.c +++ b/drivers/amlogic/media/common/codec_mm/codec_mm.c @@ -111,17 +111,17 @@ u32 codec_mm_get_keep_debug_mode(void) } EXPORT_SYMBOL(codec_mm_get_keep_debug_mode); -static int default_tvp_size; -static int default_tvp_4k_size; -static int default_cma_res_size; -static int default_tvp_pool_segment_size[4]; -static int default_tvp_4k_pool_segment_size[4]; -static int default_tvp_pool_size_0; -static int default_tvp_pool_size_1; -static int default_tvp_pool_size_2; -static int default_tvp_4k_pool_size_0; -static int default_tvp_4k_pool_size_1; -static int default_tvp_4k_pool_size_2; +static u32 default_tvp_size; +static u32 default_tvp_4k_size; +static u32 default_cma_res_size; +static u32 default_tvp_pool_segment_size[4]; +static u32 default_tvp_4k_pool_segment_size[4]; +static u32 default_tvp_pool_size_0; +static u32 default_tvp_pool_size_1; +static u32 default_tvp_pool_size_2; +static u32 default_tvp_4k_pool_size_0; +static u32 default_tvp_4k_pool_size_1; +static u32 default_tvp_4k_pool_size_2; static u32 tvp_dynamic_increase_disable; #define TVP_POOL_SEGMENT_MAX_USED 4 @@ -1835,7 +1835,7 @@ static int codec_mm_tvp_pool_unprotect_and_release( if (gpool) { if (gen_pool_avail(gpool) != gen_pool_size(gpool)) { - pr_err("ERROR: TVP pool is not free.\n"); + pr_err("Warn: TVP pool will release later.\n"); ignored++; continue; /*ignore this free now, */ } -- 2.20.1