codec_mm: Modify a warning print for tvp free [1/1]
authorshipeng.sun <shipeng.sun@amlogic.com>
Mon, 7 Jun 2021 02:05:26 +0000 (10:05 +0800)
committerChristian Hoffmann <chrmhoffmann@gmail.com>
Sun, 12 Feb 2023 08:13:11 +0000 (09:13 +0100)
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 <shipeng.sun@amlogic.com>
drivers/amlogic/media/common/codec_mm/codec_mm.c

index 82a42ea6c6a18b71dbe62200a837b0d45de0d569..51c0f0474dc586e7084166eb21bda505e4e01dce 100644 (file)
@@ -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, */
                        }