From patchwork Thu Aug 29 10:27:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Saxena X-Patchwork-Id: 172561 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2029582ily; Thu, 29 Aug 2019 03:43:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzc30z3YA+Syb2dGwVLRld0lOLacW3xzLVTHWIw5UJQ3NKt+aZPXPmGSutOksn+vYVYIlEp X-Received: by 2002:a50:aee9:: with SMTP id f38mr8995857edd.22.1567075395683; Thu, 29 Aug 2019 03:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567075395; cv=none; d=google.com; s=arc-20160816; b=mcXkLJRYnP3HwCDu7kU8fDa0Br+kh6htz/EwTtnlzhS3zIZOvKlk3fRBQXxb8TNvBO I57rFoPyJvLBTUdXMXIxvo/HGOxsTp+pYLZH2NDdK+W2OyR4WFnB11CcUu7qDlXMhMrE FTzOchWYO+8POIO7ZSWUKcHtG28D+6iPtKh54O4mLOa3sBo3xnitgpDab1iIykb5reT9 BaO5rIAjpmowPi1ARf2zEmgvQxcrNyOupGFVz/QRyx9FxUnsZufFOxMjXO0vJ/qnOY6r ExjjJq1HQUPU3yP6AvLk+zONkblsU9i7pFl9ekTO2TDUa38jfj3cUMtxK82ldXhfFeOw ix6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=WqzB9MoyGTXXdlHu1nCSF/Nvw5mHjrAjfnUNfJ1C8pI=; b=GlfuFt/VZBuPZa2mMmBUInYCfyHsPbZXfljuwHwky04gu1UWk4YV+WvktrwHIcNwxw Ay4XmTtJQx05whpy1y9MAzbP65E+1YNNuNMAo26y3AdaHegIP2IsPu9JFxn+Tn2Q5zwh SHNtbFcClk30CV3Kh2WaNFhX/OX0jXt3sfbU09UJtjzEffSw4/OqijmRM6lBdQRVArIk +B8181kjTjsbrMeEFTa8QF4zbj0SmWT6+AsrlgSCovrBGI45H1irhX0HvkuDl1lNqJ0k rOdWuiEAqhw+l21szJT8Lsxt81hAX3CaqqK0H8F35TGzbO2OIAU6VmKVJgR9dnSL0NDw tSmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id d33si1013540eda.62.2019.08.29.03.43.15; Thu, 29 Aug 2019 03:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9382E1E538; Thu, 29 Aug 2019 12:42:15 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id B7CD51D450 for ; Thu, 29 Aug 2019 12:41:50 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 988201A00B9; Thu, 29 Aug 2019 12:41:50 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 95E491A00E8; Thu, 29 Aug 2019 12:41:48 +0200 (CEST) Received: from GDB1.ap.freescale.net (GDB1.ap.freescale.net [10.232.132.179]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 95004402EB; Thu, 29 Aug 2019 18:41:45 +0800 (SGT) From: Sachin Saxena To: dev@dpdk.org Cc: thomas@monjalon.net, Hemant Agrawal Date: Thu, 29 Aug 2019 15:57:17 +0530 Message-Id: <20190829102737.13267-11-sachin.saxena@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190829102737.13267-1-sachin.saxena@nxp.com> References: <20190827070730.11206-1-sachin.saxena@nxp.com> <20190829102737.13267-1-sachin.saxena@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 10/30] common/dpaax: reduce debug mesages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Hemant Agrawal Signed-off-by: Hemant Agrawal Reviewed-by: Sachin Saxena --- drivers/common/dpaax/dpaax_iova_table.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) -- 2.17.1 diff --git a/drivers/common/dpaax/dpaax_iova_table.c b/drivers/common/dpaax/dpaax_iova_table.c index ae0af0919..43c9c72e6 100644 --- a/drivers/common/dpaax/dpaax_iova_table.c +++ b/drivers/common/dpaax/dpaax_iova_table.c @@ -140,7 +140,8 @@ read_memory_node(unsigned int *count) DPAAX_DEBUG("Device-tree memory node data:"); do { - DPAAX_DEBUG("\n %08" PRIx64 " %08zu", nodes[j].addr, nodes[j].len); + DPAAX_DEBUG(" %08" PRIx64 " %08zu", + nodes[j].addr, nodes[j].len); } while (--j); cleanup: @@ -241,7 +242,7 @@ dpaax_iova_table_populate(void) /* Release memory associated with nodes array - not required now */ free(nodes); - DPAAX_DEBUG("Adding mem-event handler\n"); + DPAAX_DEBUG("Adding mem-event handler"); ret = dpaax_handle_memevents(); if (ret) { DPAAX_ERR("Unable to add mem-event handler"); @@ -306,10 +307,11 @@ dpaax_iova_table_update(phys_addr_t paddr, void *vaddr, size_t length) * case. */ entry[i].pages[e_offset] = align_vaddr; +#ifdef RTE_COMMON_DPAAX_DEBUG DPAAX_DEBUG("Added: vaddr=%zu for Phy:%"PRIu64" at %zu" " remaining len %zu", align_vaddr, align_paddr, e_offset, req_length); - +#endif /* Incoming request can be larger than the * DPAAX_MEM_SPLIT size - in which case, multiple * entries in entry->pages[] are filled up. @@ -336,10 +338,11 @@ dpaax_iova_table_update(phys_addr_t paddr, void *vaddr, size_t length) vaddr, paddr); return -1; } - +#ifdef RTE_COMMON_DPAAX_DEBUG DPAAX_DEBUG("Add: Found slot at (%"PRIu64")[(%zu)] for vaddr:(%p)," " phy(%"PRIu64"), len(%zu)", entry[i].start, e_offset, vaddr, paddr, length); +#endif return 0; } @@ -404,13 +407,13 @@ dpaax_memevent_cb(enum rte_mem_event type, const void *addr, size_t len, phys_addr = rte_mem_virt2phy(ms->addr); virt_addr = ms->addr; map_len = ms->len; - +#ifdef RTE_COMMON_DPAAX_DEBUG DPAAX_DEBUG("Request for %s, va=%p, virt_addr=%p," "iova=%"PRIu64", map_len=%zu", type == RTE_MEM_EVENT_ALLOC ? "alloc" : "dealloc", va, virt_addr, phys_addr, map_len); - +#endif if (type == RTE_MEM_EVENT_ALLOC) ret = dpaax_iova_table_update(phys_addr, virt_addr, map_len);