diff --git a/drivers/media/common/codec_mm/codec_mm.c b/drivers/media/common/codec_mm/codec_mm.c index 6f92f6961..d536c1ea6 100644 --- a/drivers/media/common/codec_mm/codec_mm.c +++ b/drivers/media/common/codec_mm/codec_mm.c @@ -4527,7 +4527,7 @@ u32 codec_mm_get_property_from_dts(char *property_name) } if (of_property_read_u32(pnode, property_name, &ret)) { - pr_info("read format in dts failed, ret = %d\n", ret); + pr_debug("read format in dts failed, ret = %d\n", ret); return -EINVAL; } @@ -4656,8 +4656,7 @@ static int codec_mm_probe(struct platform_device *pdev) if (r == 0) pr_debug("codec_mm cma memory probed done\n"); - pr_info("%s ok\n", __func__); - + pr_debug("%s ok\n", __func__); codec_mm_mgt_init(&pdev->dev); codec_mm_scatter_mgt_init(&pdev->dev); codec_mm_keeper_mgr_init(); @@ -4727,7 +4726,7 @@ static struct platform_driver codec_mm_driver = { int __init codec_mm_module_init(void) { - pr_err("now in %s\n", __func__); + pr_debug("now in %s\n", __func__); if (platform_driver_register(&codec_mm_driver)) { pr_err("failed to register amports mem module\n"); diff --git a/drivers/media/common/codec_mm/codec_mm_prealloc.c b/drivers/media/common/codec_mm/codec_mm_prealloc.c index a86ec24b8..489bf5fcb 100644 --- a/drivers/media/common/codec_mm/codec_mm_prealloc.c +++ b/drivers/media/common/codec_mm/codec_mm_prealloc.c @@ -336,7 +336,7 @@ int init_prealloc_boost_task(void) if (!IS_ERR(task)) { set_user_nice(task, -17); work->task = task; - pr_err("create prealloc task%p, for cpu %d\n", task, cpu); + pr_debug("create prealloc task%p, for cpu %d\n", task, cpu); wake_up_process(task); } else { pr_err("create task for cpu %d fail:%p\n", cpu, task); diff --git a/drivers/media/common/codec_mm/codec_mm_scatter.c b/drivers/media/common/codec_mm/codec_mm_scatter.c index 0c64ac007..44f494f67 100644 --- a/drivers/media/common/codec_mm/codec_mm_scatter.c +++ b/drivers/media/common/codec_mm/codec_mm_scatter.c @@ -587,7 +587,8 @@ static int codec_mm_scatter_cache_creat(struct codec_mm_scatter_mgt *smgt, { struct codec_mm_scatter *cache; - pr_info("[%s]creat cache[%d]\n", __func__, cache_id); + if (scatter_debug_mode & DUMP_NORMAL_INFO) + INFO_LOG("[%s]creat cache[%d]\n", __func__, cache_id); cache = codec_mm_scatter_alloc_new(smgt, CACHE_QUEUE_LEN, 0); if (cache) { codec_mm_cache_queue_init(cache); @@ -3223,7 +3224,8 @@ int codec_mm_scatter_owner_register(char *owner_name, codec_mm_scatter_update_owner_config(smgt); spin_unlock(&smgt->owner_list_lock); - INFO_LOG("[%s]new owner[%d]:%px, keep size:%d/%d", __func__, + if (scatter_debug_mode & DUMP_NORMAL_INFO) + INFO_LOG("[%s]new owner[%d]:%px, keep size:%d/%d", __func__, owner->owner_id, owner, owner->cache_keep_size, smgt->keep_size_PAGE); return owner->owner_id; diff --git a/drivers/media/common/dma-buf-heaps/amlogic_heap_codec_mm.c b/drivers/media/common/dma-buf-heaps/amlogic_heap_codec_mm.c index 56e16db06..00fe08868 100644 --- a/drivers/media/common/dma-buf-heaps/amlogic_heap_codec_mm.c +++ b/drivers/media/common/dma-buf-heaps/amlogic_heap_codec_mm.c @@ -517,7 +517,7 @@ int __init amlogic_codec_mm_dma_buf_init(void) codec_mm_heap_ops.allocate = codec_mm_heap_allocate; - pr_info("codecmm dmaheap:enter %s\n", __func__); + pr_debug("codecmm dmaheap:enter %s\n", __func__); return 0; }