From edd2550cd909b584610ac18387b3261a4f50b392 Mon Sep 17 00:00:00 2001 From: Ledion Daja Date: Tue, 17 Oct 2023 09:15:32 +0200 Subject: Decrease log verbosity in the kernel modules Changed several logs level from info to dbg and removed redundant or uninformative logging in order to reduce verbosity of the kernel modules. Change-Id: Ie9ff7f3ae6478007ea58547380b3ddfef5d280b4 Signed-off-by: Ledion Daja --- remoteproc/ethosu_remoteproc.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'remoteproc') diff --git a/remoteproc/ethosu_remoteproc.c b/remoteproc/ethosu_remoteproc.c index 87de3b0..c6d7735 100644 --- a/remoteproc/ethosu_remoteproc.c +++ b/remoteproc/ethosu_remoteproc.c @@ -153,8 +153,8 @@ static int ethosu_add_carveout(struct rproc *rproc, if (!mem) return -ENOMEM; - dev_info(dev, "Add carveout mapping. dma=%pad, da=%x, va=%p, len=%zu", - &mem->dma, mem->da, mem->va, mem->len); + dev_dbg(dev, "Add carveout mapping. dma=%pad, da=%x, va=%p, len=%zu", + &mem->dma, mem->da, mem->va, mem->len); rproc_add_carveout(rproc, mem); @@ -170,12 +170,10 @@ static int ethosu_rproc_prepare(struct rproc *rproc) int i; int ret; - dev_info(dev, "Preparing Ethos-U"); - /* Add carveout for each 'reg' device tree entry */ for (i = 0; of_address_to_resource(np, i, &res) == 0; i++) { - dev_info(dev, "Found resource. start=%llx, size=%llx", - res.start, resource_size(&res)); + dev_dbg(dev, "Found resource. start=%llx, size=%llx", + res.start, resource_size(&res)); ret = ethosu_add_carveout(rproc, res.start, resource_size(&res), res.name); @@ -194,9 +192,9 @@ static int ethosu_rproc_prepare(struct rproc *rproc) return -EINVAL; } - dev_info(dev, - "Found memory region. pa=%llx, size=%llu, name=%s", - res_mem->base, res_mem->size, it.node->name); + dev_dbg(dev, + "Found memory region. pa=%llx, size=%llu, name=%s", + res_mem->base, res_mem->size, it.node->name); ret = ethosu_add_carveout(rproc, res_mem->base, res_mem->size, it.node->name); @@ -322,7 +320,7 @@ static int ethosu_mailbox_init(struct ethosu_rproc *erproc) erproc->ch_tx = mbox_request_channel_byname(cl, "tx"); if (IS_ERR(erproc->ch_tx)) { - dev_info(dev, "Using same channel for RX and TX"); + dev_dbg(dev, "Using same channel for RX and TX"); erproc->ch_tx = erproc->ch_rx; } -- cgit v1.2.1