mirror of
https://github.com/thead-yocto-mirror/npu-ax3386-kernel
synced 2026-07-21 07:18:06 +02:00
Compare commits
3 Commits
Linux_SDK_
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f341be53a1 | ||
|
|
dad1ea41f7 | ||
|
|
8073b0cd53 |
@@ -639,7 +639,7 @@ int img_mem_import(struct device *device, struct mem_ctx *ctx, int heap_id,
|
|||||||
*buf_id = buffer->id;
|
*buf_id = buffer->id;
|
||||||
mutex_unlock(&mem_man->mutex);
|
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);
|
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",
|
pr_debug("%s heap %d ctx %p created buffer %d (%p) size %zu\n",
|
||||||
__func__, heap_id, ctx, *buf_id, buffer, size);
|
__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);
|
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);
|
*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",
|
pr_debug("%s heap %d ctx %p exported buffer %d (%p) size %zu\n",
|
||||||
__func__, heap->id, ctx, buf_id, buffer, size);
|
__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,
|
map = list_first_entry(&ctx->mappings,
|
||||||
struct mmu_ctx_mapping, mmu_ctx_entry);
|
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);
|
__func__, map->buffer->id, map->buffer->request_size);
|
||||||
_img_mmu_unmap(map);
|
_img_mmu_unmap(map);
|
||||||
kfree(map);
|
kfree(map);
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ void _mmu_log(int err, const char *function, uint32_t line,
|
|||||||
pr_err("ERROR: %s:%u %s", function, line, _message_);
|
pr_err("ERROR: %s:%u %s", function, line, _message_);
|
||||||
else
|
else
|
||||||
/* info, debug, ... */
|
/* info, debug, ... */
|
||||||
pr_info("%s:%u %s", function, line, _message_);
|
pr_debug("%s:%u %s", function, line, _message_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ static void pool_crawler(struct gen_pool *pool,
|
|||||||
#else
|
#else
|
||||||
unsigned long size = (chunk->end_addr - chunk->start_addr + 1);
|
unsigned long size = (chunk->end_addr - chunk->start_addr + 1);
|
||||||
#endif
|
#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);
|
data, chunk->start_addr, chunk->end_addr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user