From patchwork Mon Jul 22 06:54:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 169341 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp7139778ilk; Sun, 21 Jul 2019 23:55:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGxDV2N+PPIIV54+kzrg3aLRklwBWMN02lJQUpvkOjziPs0kPNjG/5HM+ajmIQPKCInLbT X-Received: by 2002:a50:9177:: with SMTP id f52mr58993642eda.294.1563778536286; Sun, 21 Jul 2019 23:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563778536; cv=none; d=google.com; s=arc-20160816; b=BGWcV1949PGY4WSWLiitsAt0LYfdXNpVdifbqU7r9522LRWzMvnApO/w8naLYlJxhD OeySvSKmDhsdVmS8sY5AMErQIYo5tlQadNS+NOfuieDNpKNUreHUEfpZW4zT6jAMmeSu ZXBaPT1FoLRZmqMiNruG5KiPX+z1QhGTY3NS9GIny3Yc13ryLnTLx3kOHBOwkCLkpRqn sxIbpnPiMloSk8Jgb2ogqE1YV0UEJQa4KD/iJ8hWapEDy8eIY+8NH7XY26f7OF9EWs6C Boe5N/8OT3ghUMvmNh9uliHcU0yL4OJbvjFQcEVi3BTwakIS9CcKRslvn46lfDhdGio+ uABg== 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:message-id:date:to:from; bh=/wSKzoTUHDyCkuQP9JaKk8EmzGogYXm2v/3gykuUTS4=; b=m2ETVHHm/78OS9VdAerpvb2keoquV4W9Wd3fjLIPf/YVfseAEZFJC8aIf8W+174Mof 7meXp4b9HURhzaDERNf1by0uEjPjjW65YKzPRcCIsgVMrVKmozvjI+Vvb6YXj5qeYBzt 3Fa5qrkoBYqCcSRiuCoYeKfxlOvSKmnFDIVjvhxNdflNCCvVk2pSzn8wLeATbNq82LN7 EzbrXrzJeyRlQQvseBQa22rfMpJG6DP2I1lg290zmkfRqGfiQm3lbNDnAHmZ+H+Bi8Yx MQ5jSsWmSGUKnPjkRYg40vIaRpvaZhWaf8I+TS5KlkrOPrVlR02KU35bLBEnxSmDmLm6 Z7hA== 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 q1si3668918ejx.323.2019.07.21.23.55.35; Sun, 21 Jul 2019 23:55:36 -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 B411B1B959; Mon, 22 Jul 2019 08:55:34 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 0EB671B957 for ; Mon, 22 Jul 2019 08:55:32 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 60BB91A01E3; Mon, 22 Jul 2019 08:55:32 +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 B94051A00D8; Mon, 22 Jul 2019 08:55:30 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 34F75402FC; Mon, 22 Jul 2019 14:55:28 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Date: Mon, 22 Jul 2019 12:24:05 +0530 Message-Id: <20190722065407.9180-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 1/3] bus/dpaa: fix to remove err print for non-dpaa devices 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" This patch removes the unneccessary err prints when using non-dpaa devices. Fixes: e79df833d3f6 ("bus/dpaa: support hotplug ops") Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index c2563cc26..07cc5c667 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -699,7 +699,7 @@ dpaa_bus_dev_iterate(const void *start, const char *str, /* Expectation is that device would be name=device_name */ if (strncmp(str, "name=", 5) != 0) { - DPAA_BUS_ERR("Invalid device string (%s)\n", str); + DPAA_BUS_DEBUG("Invalid device string (%s)\n", str); return NULL; } From patchwork Mon Jul 22 06:54:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 169342 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp7139876ilk; Sun, 21 Jul 2019 23:55:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZY0vbR3oBGdsx6PZBJ/oh0QHwyaHlfg6BErt5oW2RDYWQZdTJG0BtnZfBJWRDt3swgd+Z X-Received: by 2002:a50:9929:: with SMTP id k38mr57591101edb.4.1563778544797; Sun, 21 Jul 2019 23:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563778544; cv=none; d=google.com; s=arc-20160816; b=VOWY+UTQxM7xF9uVYFF1BiBebwLL3veBgEFbmi49t5/VJgFGV54o0qw/ns3uyf0L9X l9LdCDQo2pRTb7hCVli1C335yjGMwlWKysPTcuYFDSCcMu+pDr6Uxzr9dOzzxJqGAA1Q Zf0G875Bb7Wzvg49VG+tK0omJ7Aq6rfday3XPpF2+t1BhpZ0Nsylkr6HlEhzfrhCpPGm KoJfHaBc4RPrPpdQF0oKZsEb9Bd7Z547x4pNLcVUK7ypiAvP836BdCCCRguJoS8Cn3Zi yPD6IIfsdllYr5UyJwUSm8y7/QT4rS9RZ8wf3AFuPuvqdP6eXNAyjKSc8/NomNzb3AsJ wDiA== 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:to:from; bh=ynC3sGNS9mCMsLri2sSAnv/PxUQua42TWMBzbdI7900=; b=lgVW8vDrbUDxZsG/HtqT7EIOK+7oxgOSXIeOVt5MSfYYArMcXEmZzNov3tg3VO0jDF LOMSVcx8WkzIWvw8Zeeokw83uqrBA45TxTvnAsVllrRC5YC9DLB5SEfGcCex5tcaNswe eNTcaQ+4qr3U/VkH5NAb5kYCrbW86a/Tlqphm3PPRdW3hYa1xrABHrU/N8XUTGKw0pFi /XCvfKB+GqvQ9RrqGCoeFtioGebg+rEaP3E4xgBdNlCyKaAQPZ0zK/zd/wqHZ72VWd5G XbM7yXjRBLcmuR8quG0mC4SaMDPXJ0kV/13ESRaoVIWiLCcxx9bpzpjAtJfNjW9WOkR2 NJeA== 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 e36si4546103eda.321.2019.07.21.23.55.44; Sun, 21 Jul 2019 23:55:44 -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 51E9B1B997; Mon, 22 Jul 2019 08:55:37 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 545621B957 for ; Mon, 22 Jul 2019 08:55:33 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id EB8781A0008; Mon, 22 Jul 2019 08:55:32 +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 4F1DB1A01DE; Mon, 22 Jul 2019 08:55:31 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id BF26840302; Mon, 22 Jul 2019 14:55:28 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Date: Mon, 22 Jul 2019 12:24:06 +0530 Message-Id: <20190722065407.9180-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190722065407.9180-1-hemant.agrawal@nxp.com> References: <20190722065407.9180-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 2/3] bus/fslmc: fix to remove err print for non-fslmc devices 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" This patch removes the unneccessary err prints when using non-dpaa2 devices. Fixes: e67a61614d0b ("bus/fslmc: support device iteration") Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index 9e4146aba..a2f482516 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -601,7 +601,7 @@ fslmc_bus_dev_iterate(const void *start, const char *str, /* Expectation is that device would be name=device_name */ if (strncmp(str, "name=", 5) != 0) { - DPAA2_BUS_ERR("Invalid device string (%s)\n", str); + DPAA2_BUS_DEBUG("Invalid device string (%s)\n", str); return NULL; } From patchwork Mon Jul 22 06:54:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 169343 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp7139974ilk; Sun, 21 Jul 2019 23:55:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIp4bAu7mcx/2iyXkgv2gehcIOPkTh7rDd+rQBJz+h5VuPUWdkVNcvjGmKg+GMxhH9E8Cc X-Received: by 2002:a05:6402:129a:: with SMTP id w26mr58369681edv.167.1563778551649; Sun, 21 Jul 2019 23:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563778551; cv=none; d=google.com; s=arc-20160816; b=AqCV0josBT17Wd9V0vc1/Oht2qD6bzt+ulj6izSONmoTuwwdpopzm2M34bMv+YhyWa xknxh0VlCejTd7RJf8lxnxJFQZ6z90b2ED7O8Pk7f+lpd4HrU98F1TlPhDH6OriBT3Bl 4BNxSwpT8hmYql8gI8JCdFLY3jJAgz7BQ686VseObI03kiWQEHa5WJ1nKtvvSsg/BnGu A2E14eFZouyqqGXvvqQWSyFrtdYsqIVnQF642yDA8F+Q90MOWZI/yOZywK2UFsNgIWED KlCEFtIdtH2UaQ2EDk/qmjxB6BUbnx8+A27QNghFcuDcPQ7koA079QvqygGuC/6z8dFZ Tqew== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from; bh=1yIt85qyoGBx84PTuWPokcOv/I70SkkbGhDZ9oMufAs=; b=jM9TG2FHQRKJEwoYXSH71Sd6/le9rPOQn6IaQZifUfebjr3bv7dGg+EcRVHWoa2Hkm IV7cIAX7wxx23P5x2Uxn9LybBk5xUm3Nr/TJWQ07L6iqKriN3Kubg1S/qfaGLthvCnrv fu1u2KDDroAnuO30BlProYre1zMevdO/9xgrgHjB9aexrwSPEB2YvKj/daefTJquKb2r u/68k3irvSp7u1ANknSiaHR3m1WmkLAtxv4tIwsYA9ixyb4yNbDqnoHR+y2U8Ls3g0pl 3GFqzgvum04B2TXYAY0X1iORxADpppsafOkc69he8XCFO0H26zEAQbQ29XlSQRqvIX/G BjFQ== 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 i14si3667872eja.395.2019.07.21.23.55.51; Sun, 21 Jul 2019 23:55:51 -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 787FF1B9A6; Mon, 22 Jul 2019 08:55:39 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 70E201B974 for ; Mon, 22 Jul 2019 08:55:36 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id F329E200234; Mon, 22 Jul 2019 08:55:35 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 587172001F5; Mon, 22 Jul 2019 08:55:34 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5433940309; Mon, 22 Jul 2019 14:55:29 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Date: Mon, 22 Jul 2019 12:24:07 +0530 Message-Id: <20190722065407.9180-3-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190722065407.9180-1-hemant.agrawal@nxp.com> References: <20190722065407.9180-1-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 3/3] bus/fslmc: fix the compliation err with ppc64 compiler 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" fslmc_vfio.c:387:36: note: format string is defined here DPAA2_BUS_DEBUG("VFIO dmamap 0x%llx:0x%llx, size 0x%llx\n", format ‘%llx’ expects argument of type ‘long long unsigned int’ argument 6 has type ‘__u64 {aka long unsigned int}’ Fixes: 2b5fa25708cf ("mempool/dpaa2: map external memory with VFIO") Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 247b2a4a1..564bef9cb 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -384,7 +384,7 @@ rte_fslmc_vfio_mem_dmamap(uint64_t vaddr, uint64_t iova, uint64_t size) dma_map.vaddr = vaddr; dma_map.iova = iova; - DPAA2_BUS_DEBUG("VFIO dmamap 0x%llx:0x%llx, size 0x%llx\n", + DPAA2_BUS_DEBUG("VFIOdmamap 0x%"PRIx64":0x%"PRIx64",size 0x%"PRIx64"\n", dma_map.vaddr, dma_map.iova, dma_map.size); ret = ioctl(group->container->fd, VFIO_IOMMU_MAP_DMA, &dma_map);