Browse Source

Linux_SDK_V1.0.2

thead_admin 1 year ago
parent
commit
8073b0cd53

+ 3 - 3
driver/img_mem/img_mem_man.c

@@ -639,7 +639,7 @@ int img_mem_import(struct device *device, struct mem_ctx *ctx, int heap_id,
 	*buf_id = buffer->id;
 	mutex_unlock(&mem_man->mutex);
 
-	pr_info("%s buf_hnd %#llx heap %d (%s) buffer %d size %zu\n", __func__,
+	pr_debug("%s buf_hnd %#llx heap %d (%s) buffer %d size %zu\n", __func__,
 		buf_hnd, heap_id, get_heap_name(heap->type), *buf_id, size);
 	pr_debug("%s heap %d ctx %p created buffer %d (%p) size %zu\n",
 		__func__, heap_id, ctx, *buf_id, buffer, size);
@@ -710,7 +710,7 @@ int img_mem_export(struct device *device, struct mem_ctx *ctx, int buf_id,
 
 	mutex_unlock(&mem_man->mutex);
 
-	pr_info("%s buf_hnd %#llx heap %d (%s) buffer %d size %zu\n", __func__,
+	pr_debug("%s buf_hnd %#llx heap %d (%s) buffer %d size %zu\n", __func__,
 		*buf_hnd, heap->id, get_heap_name(heap->type), buf_id, size);
 	pr_debug("%s heap %d ctx %p exported buffer %d (%p) size %zu\n",
 		__func__, heap->id, ctx, buf_id, buffer, size);
@@ -2117,7 +2117,7 @@ static void _img_mmu_ctx_destroy(struct mmu_ctx *ctx)
 
 		map = list_first_entry(&ctx->mappings,
 							struct mmu_ctx_mapping, mmu_ctx_entry);
-		pr_info("%s: found mapped buffer %d (size %zu)\n",
+		pr_debug("%s: found mapped buffer %d (size %zu)\n",
 			__func__, map->buffer->id, map->buffer->request_size);
 		_img_mmu_unmap(map);
 		kfree(map);

+ 1 - 1
driver/img_mem/imgmmu/imgmmu.c

@@ -196,7 +196,7 @@ void _mmu_log(int err, const char *function, uint32_t line,
 		pr_err("ERROR: %s:%u %s", function, line, _message_);
 	else
 		/* info, debug, ... */
-		pr_info("%s:%u %s", function, line, _message_);
+		pr_debug("%s:%u %s", function, line, _message_);
 }
 
 /*

+ 1 - 1
driver/img_mem/imgmmu/kernel_heap.c

@@ -95,7 +95,7 @@ static void pool_crawler(struct gen_pool *pool,
 #else
 	unsigned long size = (chunk->end_addr - chunk->start_addr + 1);
 #endif
-	pr_info("pool 0x%p has chunk 0x%lx to 0x%lx (size = %lu B)\n",
+	pr_debug("pool 0x%p has chunk 0x%lx to 0x%lx (size = %lu B)\n",
 			data, chunk->start_addr, chunk->end_addr, size);
 }