From patchwork Wed Apr 25 12:57:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 134282 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp831718lji; Wed, 25 Apr 2018 05:59:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp8OVBiK8Wcl4Ayodu6ZbZ4X2b/Nit1UvrRtQeW+dLdtcrKWrVJ+VMY2emMWy0TF5HGWzaZ X-Received: by 10.28.136.199 with SMTP id k190mr15271328wmd.154.1524661175275; Wed, 25 Apr 2018 05:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524661175; cv=none; d=google.com; s=arc-20160816; b=P/uKNC0DuBhdPg+0fyc85LVlzQ5XDEQmYON2HHCb6oer5S0yKA3mz6PIY5z6tTmfim /xNlTQ2K0TgpurNgRq21Bhq8wnslG30vkZXRWz03UnBqlCzIUsJoxMO4+JaVjc7o4bE3 ciBN8eoZjxcnmNWQqIqypemuQvZEP23UaNxUHatAIhZp4+LiLz9t/29tdOx7KNHLSGYC Yak/SmwwtLxGNKdck9noHLSf3iunkiRneJB60gLTdU8/hBEKzIUZ2wN+WlYcsQhnyxYI AHbfzASgjAkHhCjNxL3+W4LFL3yLIom1ofkzZqwAQPIaR/sEN304V7jAgiz478f53Y+P 8h5Q== 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:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=2BcRmwKRmzM0FW4YCSTRhJgdezt4oe8KWjzXk/GF5QI=; b=JZmZlDSvk24BBuxYKBFMd870ddzYvRvbU2e+hwRGYQ14entB6zcuP3VWn2an3hdmC6 WovfB1z4kxNZMhuu7CNSRY8z892wGmOaQysHjX0oj88+p3KXn3KWF1ytN8TCgbWPIVrI HJXz70JlMuYs3yHTfz+4qHehgOAXfu69sre7zxKALLcN4iZcEDt+tJAXFtWiBK4nSoUK xK/W0ul2xW4EscFy+qCob7h1YWAM9oPaG03SFbeK+R/PApkss5LbboiMuSY9A+M+VvoW 4HUHtk7c0BW91wXtFbPVi+Dj/gDJC1tsEoWj9QsoBphiQApzbtmmhjYQWdZzLJRAtCAe fyqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=xtznyLF6; 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 61-v6si12811075wrm.183.2018.04.25.05.59.35; Wed, 25 Apr 2018 05:59:35 -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; dkim=fail header.i=@nxp.com header.s=selector1 header.b=xtznyLF6; 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 BAD957CA9; Wed, 25 Apr 2018 14:59:17 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0067.outbound.protection.outlook.com [104.47.2.67]) by dpdk.org (Postfix) with ESMTP id 688DE7260 for ; Wed, 25 Apr 2018 14:59:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2BcRmwKRmzM0FW4YCSTRhJgdezt4oe8KWjzXk/GF5QI=; b=xtznyLF6N6irSQsCj2r4Zb+U/arnywz9IHn1W80TN+isYvs0svAij301TOmceeZQnOSGaaJ8CCxPNxDXZACSQ5F7Cb0RzV3bAvco4EzMsPystEeNaUbbk+jBqzHbHLJ7OqttG1iMwmPB+DMps7sbkLB9rgAt9RMSMZvi6t5Cbuo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by DB4PR04MB0765.eurprd04.prod.outlook.com (2a01:111:e400:984d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.15; Wed, 25 Apr 2018 12:59:09 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, shreyansh.jain@nxp.com Date: Wed, 25 Apr 2018 18:27:00 +0530 Message-Id: <1524661022-21484-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524661022-21484-1-git-send-email-hemant.agrawal@nxp.com> References: <1524661022-21484-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MAXPR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:d::21) To DB4PR04MB0765.eurprd04.prod.outlook.com (2a01:111:e400:984d::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB4PR04MB0765; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0765; 3:dyQ9cj2m1rrcmsRr53qhIQR6vaXv+JACeLNCB7fiQDjVc0XTsQ/KpebfxflbgJ2C1yWIHYf+XQ0ZcKQrfED6uPwlyFu0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q8+YJR+K0E1qV0OmyzgsfFa9bAM+U0yvdJ88oE1U4ft8dN5LL7DJxfScVyhes5ikOcXMdfHdDPnKSFtfQ8+se8lsVBrsoP2cMaXdAbFFw+TDlWiRPyFEItt4exkqrhRYlx1uNGI9rKkeR6BkO95xerJ3Xa1OzotHLlAIUZRPY0aRvJaKKY148sUn8CaCjWEe+VvqSVT8We9CKEocE6ZqTACduvABGFfAyje+CkU2zFxPjzqLX9liaLA+BjYqaJNwyiZJchTTNoW+mq3iGGisXXX5J; 4:eOhKOViQULWE8OifWJm3o/V3tUYxNuUq90pcO2syGldSAurz3AoOvrbUgfCcrkUuX0GYlez8ZAyMh8LpRa6aWv5NYwE2WgWpzitnsFowjuKH0JSvOvMiqvl2cJhKN4aV01Nbe3oZv5n94awwi1Tem5RdXbulGSK4Op8OhyTp7GxDUou8KQXggZk890AOYDyP05w68vq8fPQPDL4wHqWTq8oaiDfym34msYGpPcR5lPbJOqkQ1g6uLQlI1Wx46d37MNeD6JHOSCKL6mbA1uCup/PbHW9yy2sQ8kWFysQlJl/t2ri8kT6JaejFUEX/nthm64grmyzJ4L+iA/J7vYV79pQwV161Oy+iA1WTWNsi5dM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231232)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:DB4PR04MB0765; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0765; X-Forefront-PRVS: 06530126A4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(346002)(376002)(39860400002)(396003)(366004)(189003)(199004)(3846002)(186003)(26005)(6506007)(956004)(76176011)(97736004)(2616005)(11346002)(105586002)(446003)(6486002)(5009440100003)(486006)(386003)(52116002)(2351001)(2361001)(51416003)(5660300001)(25786009)(478600001)(2906002)(44832011)(316002)(16586007)(50226002)(47776003)(6666003)(6916009)(36756003)(8936002)(476003)(6512007)(106356001)(59450400001)(6116002)(55236004)(66066001)(53936002)(16526019)(68736007)(4326008)(86362001)(7736002)(81156014)(8676002)(81166006)(50466002)(305945005)(48376002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0765; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB4PR04MB0765; 23:d4ThSKzXc+OEGpaAtBe8518wD43SV6jKpGOkl9sBC?= wkX8l5nz7lECtkmy84EKAkHOnW9abRMuoj0jRuKL1EKHtN7fqEE0EQMnL/hWStBkY2SBp/s/QDcuEgUDoWJGn2jKpqS7LU/k68uHoi9RtzoEb/H/qA5K8QwAfj9Yt3QyuEDUjqVEw9briYOCmRoUNlKC+Zlx99c5H01EpMtCXIiwwXMz2X62foX8z/PcDxgRVRMqVNfvidOkkdiV+y06kvRdwDIxHjlYm4E6AlY6OVjl8hdouMwf/WGSdqp2+g1Pzgimw680YrjGiXmi1D/H4qocVHE0rsmcIphgaMkWyE0N4ushtImRrxoNDgm9IrrWDDwJom4Ujg189NO7Jcmwhn8dSpnmj6aQajQpSEddPkt/SCBa67CQhU2tkOi9Tzkk4BYmJyb3Hclf63wkU48gQAWIuRusoQvgAIJKt/iJchiVuyRFm1gB26xruYFV+Ent7/SbI46np4lku6mICeOIyjfPY3tlBdpp1LXu6nSM2pkS5igi3motATV/wgv8Beap8Y3m8VD8ZYSqjjjIRenAEXsT9T439l6b1ze8ogJTpuhwowroszXnc8KQNaRAucGyizVjTwaw8h4T+yrTwCC8WKx52J+kBqwCZ2UPnElZzwdkDH7zwp5m2y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Qm2uZU6n3lBS239fyQUjotQ0J++TxAR64xvBxRNjS8BhL5AH/1VZKv4RmhJO/7yKRHXaCxs+yrncvtMMplFC4Z1bisKJRJtfiQra0WesT/PRZ4X+Ph3BRgKdNzds95+94XZGsRgVp+M4Zn+6iYXFOfHVUb/2v4B8PL+oUA9NEL6EUu+OUDn/MrK+pydiqeDYuzB7kpchmRRdSccQxh8iupMePO2+s9l17XIRhMVHEd1nXGYk0dhRIaYU7Uen8su1YtMWBPV/1Z7yhGiQzJxxN2TaZT3rgJH9QgKk1DY6P3OOKcU3qA3RavNIdg==; 5:VExkBRNNpc3UA8FTZsOhZCE1ZEijs4aYP++rcIo8Cc0iUBJgBRCM/D6UYJMPrdbC9rxiLC/C+VpLYsxmf/SNu90BU1BIJbtZbFrytSYCa9B+9eBuYQxZvV2T16DnxRcxpJ/y27JfYJadlA2RrbhYweMsp2nWCzZj4okcGF9Xlu8=; 24:9kWAGzqSV/kQTIl5yaJNMF7GaEE4CYP5T+SWfgWonjvxhvi3+u/Hoy3Bwx8VAtaM9ib6kvHzfXrHLKpCnywxR86gw+WHSwnsZoOaUf3CuYo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0765; 7:shleKDwTZOOLwfzT7UenuUjQf+dSxtO6ayVm7szLu7J4S1zl1aH3qpZgkNnQ9Zkj1nje+rjUYWW40Drj7at6F+ApmRI4H4aeOb4NF6ggJaI/+FCZ8ExlOZCGESLBn8L1lTFjiEaY9vxvsTI84mcHPj+Hrb7YcnAdfxLB9+d5wwxuIRp2Ag/qZzO/cyd78MIR7wCBhUZY3oviPoR9Ce58AoMroW/w0Gx8hCs9PSeb3Yf95Ap4UTvp/u4jqHwjd0J2 X-MS-Office365-Filtering-Correlation-Id: 2fd2c20c-7164-4140-56d0-08d5aaac5675 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2018 12:59:09.2858 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2fd2c20c-7164-4140-56d0-08d5aaac5675 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0765 Subject: [dpdk-dev] [PATCH 3/5] bus/fslmc: minor improvements in debug logging 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" Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_bus.c | 4 ++-- drivers/bus/fslmc/fslmc_vfio.c | 7 ++----- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 1 - drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- 4 files changed, 5 insertions(+), 9 deletions(-) -- 2.7.4 diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index e7c8cc6..d95d392 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -122,9 +122,9 @@ dump_device_list(void) local_log_level = rte_log_get_level(dpaa2_logtype_bus); if (global_log_level == RTE_LOG_DEBUG || local_log_level == RTE_LOG_DEBUG) { - DPAA2_BUS_DEBUG("List of devices scanned on bus:"); + DPAA2_BUS_LOG(DEBUG, "List of devices scanned on bus:"); TAILQ_FOREACH(dev, &rte_fslmc_bus.device_list, next) { - DPAA2_BUS_DEBUG("%s", dev->device.name); + DPAA2_BUS_LOG(DEBUG, "\t\t%s", dev->device.name); } } } diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 675d160..c35c095 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -401,9 +401,6 @@ static int64_t vfio_map_mcp_obj(struct fslmc_vfio_group *group, char *mcp_obj) goto MC_FAILURE; } - DPAA2_BUS_DEBUG("Region offset = 0x%"PRIx64" , region size = %"PRIu64"", - (uint64_t)reg_info.offset, (uint64_t)reg_info.size); - v_addr = (size_t)mmap(NULL, reg_info.size, PROT_WRITE | PROT_READ, MAP_SHARED, mc_fd, reg_info.offset); @@ -563,8 +560,8 @@ fslmc_process_iodevices(struct rte_dpaa2_device *dev) break; } - DPAA2_BUS_DEBUG("Device (%s) abstracted from VFIO", - dev->device.name); + DPAA2_BUS_LOG(DEBUG, "Device (%s) abstracted from VFIO", + dev->device.name); return 0; } diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c index a741626..99f70be 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c @@ -189,7 +189,6 @@ configure_dpio_qbman_swp(struct dpaa2_dpio_dev *dpio_dev) return -1; } - DPAA2_BUS_DEBUG("Allocated DPIO Portal[%p]", dpio_dev->dpio); dpio_dev->dpio->regs = dpio_dev->mc_portal; if (dpio_open(dpio_dev->dpio, CMD_PRI_LOW, dpio_dev->hw_id, &dpio_dev->token)) { diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 54ab9eb..7151d98 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -1894,7 +1894,7 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev) eth_dev->rx_pkt_burst = dpaa2_dev_prefetch_rx; eth_dev->tx_pkt_burst = dpaa2_dev_tx; - DPAA2_PMD_INFO("%s: netdev created", eth_dev->data->name); + RTE_LOG(INFO, PMD, "%s: netdev created\n", eth_dev->data->name); return 0; init_err: dpaa2_dev_uninit(eth_dev);