From patchwork Mon Jul 22 10:03:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 169358 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp7320428ilk; Mon, 22 Jul 2019 03:04:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfgE5EisktmCUhNyGUwDS1CCBZs0V6FNmeAoaeKbKbR0mOcydl5uJGD8lLUKbRbAqZx4vt X-Received: by 2002:a50:b617:: with SMTP id b23mr59291707ede.135.1563789892436; Mon, 22 Jul 2019 03:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563789892; cv=none; d=google.com; s=arc-20160816; b=l9WjSpyFky3/b9u1zR+2C+VfRzQ77bZaCXoTgGVjOjJPR0AnKeNPpm2UenFN57sBUY eB/4nsOK3huvdAZB7xfZRAcROLZgWkQ3dIw6xZa+qcgHHvzdNuyPaqXEhHXZ5whjyDmM LbtujoOVSYf1ECVafdmwbB8QZkEKzohCqtKavW+I5K9Xs9O0xEC/Ug315Bjvw3eAdDu/ mRz3VTNtvtvTtTGZoUfb43buVL01r4ucwh/dMFyb3axhyS4WbQZ5eEMOx5ZIklxfjYUN fJz5Fk1s4G2lV470+ZbVdMwNf7sC9F8UWoUoPqoCuyYUmGwmJ5Je/C/OEIemUwTIr3LT ZrUg== 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=40fhBWqAqH7MMIYHkWZFi2rWnUK7SWqvtcChOXEIUtI=; b=s+kuQCTKjHsnQeGSbihGCuG5wvq6alrhdIC5uFRoJqJtj73/iaHuc3s5ru0qdvhTwG LF2aomRVnaA6W8lyeprCGUfV70/uoWGdgEjEA6HF598rr95lbHigQtfG9RPbbSPVCG7N M0UiPgJShne6EvLKejL+XofNuVGrTD8IkpUsaapd1lByxyWTSzqwg9ZGmR2eIOvp8wmF 7mMwpURMDxApNeMEF34ueUD2+guhRlCOgJZcZn1mV82N56pHEV3Y5PZo4O+9x81rokEJ Aw7W/IjxW0dfESqgH7/LyYLV/V+BOqnL5DmjB2m/dUI2hllmm9hyD9k8IC+dXPqPRgGb F30A== 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 s8si5709789eda.92.2019.07.22.03.04.52; Mon, 22 Jul 2019 03:04:52 -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 36B3C1BEB2; Mon, 22 Jul 2019 12:04:50 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 9B95514E8 for ; Mon, 22 Jul 2019 12:04:47 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4330520008C; Mon, 22 Jul 2019 12:04:47 +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 9C23F2002D4; Mon, 22 Jul 2019 12:04:45 +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 22A1D402F7; Mon, 22 Jul 2019 18:04:43 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Date: Mon, 22 Jul 2019 15:33:20 +0530 Message-Id: <20190722100322.9722-1-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 v2 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 unnecessary 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 10:03:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 169360 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp7320777ilk; Mon, 22 Jul 2019 03:05:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPsk78PP+Auq3pmeeJcYLFmoadW0iaT2Sv+8dnOxfpoMW8ANvOMytphQh/ZMQV2WvD2BHA X-Received: by 2002:a17:906:e2c2:: with SMTP id gr2mr52468964ejb.284.1563789908576; Mon, 22 Jul 2019 03:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563789908; cv=none; d=google.com; s=arc-20160816; b=O0ctIoyNgV/xoBn/obtNhP7HIMTYENTRaAGG4FiR5wlPoXi/otNhn+/Kkva5Aqh/fg QfAT7q4Hm3F7QeTS84JWN7cNTIxpKIQ6yZQN9DbjjpXddTUgyMiiTFbZSUZJY1R+fo/W c13VA/9D3gVAzvcGt9rCihUNqEDPYL1enBAfI1RSUpp4Oe4J5rgP7dVc11VSjUnZwaHj Eid+neQIujkxaz+C7HkFCD1288xTa5as4RubKUX/YGZf9Mlmx353OfCKMl/0tGudyhmZ e9f++5vZVdvM58SwA9JbjoYtKAzwN88hHG0gU5chBbUqOaB3bnCB7jHHuWp+TcTXLrja 6Dfg== 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=3ofyqovCskAbK9Gzk1xdyrzVE9PNKYLLEof0IQon9wY=; b=bRX1ywTdJz8H+mwsGfL465Y05hYhOxORLTrr6fdqb3Jzu37irYCIfcY+Y+R7djp9Ws ZkbhgTtb8Zoo/AaOSbV6Nsd3pZGhXE3tSOVkKhj8Zmuq/QSicX8Vk9Wy6D7j2vQmSJ1y 4Rep3Mezkydt3WNYxqr64v9vZsQ9pMgLW/V+hmH//oVwsNOHGIJ5RIWyvsVMuHPEjols uv8qmIwzbWbSZIy2pj9BzxtKwlXHexISVxx4LO8LTYcIUYrZjwE7QNjoEFPvHeMb6HiT j0rFrZA5WKUJ4p6uQBjE+EpYyRXBaNtyoCvtCouycPrl44ReDgWVo3nSrRL82gYuEXiQ Rh5w== 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 pw3si4491010ejb.199.2019.07.22.03.05.07; Mon, 22 Jul 2019 03:05:08 -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 C2B3A1BEDC; Mon, 22 Jul 2019 12:04:54 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 9E1B61BEB2 for ; Mon, 22 Jul 2019 12:04:47 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id BE06A2001D1; Mon, 22 Jul 2019 12:04:47 +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 236BC200099; Mon, 22 Jul 2019 12:04:46 +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 9C5DF402FC; Mon, 22 Jul 2019 18:04:43 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Date: Mon, 22 Jul 2019 15:33:21 +0530 Message-Id: <20190722100322.9722-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190722100322.9722-1-hemant.agrawal@nxp.com> References: <20190722065407.9180-1-hemant.agrawal@nxp.com> <20190722100322.9722-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 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 unnecessary 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 10:03:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 169359 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp7320566ilk; Mon, 22 Jul 2019 03:04:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuWLAUq0rVK6W1XxSvz7iAPZF7OfnhtOZtfnnYFVhY3cDIATpZBtzKccRMnmyOwibRA65B X-Received: by 2002:a17:906:3419:: with SMTP id c25mr51210158ejb.305.1563789899001; Mon, 22 Jul 2019 03:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563789898; cv=none; d=google.com; s=arc-20160816; b=OW69G09fr6+aXTdnTqCEFKfHkyS9KR1g62YyObZV3m/ihIB1HYMHu83HrVpY187TcV RX67UrUgPtbZ9jAD4WQ2MH4ghfQ9oXiQbYupDAA75aNhwh4AOgFLKc7SQcBECu086Rae rta+ArrtukdnnXmelD0ZG0eY3oNuVsdGcodqSXH1a9g8cJ8L40CzawwlZyP68SEuI1G6 t+GC8ZrFAp6QrcJskqOkIXCz8pYJ0W+grhGFy5cT9WggI0n6NZnkpDtEQtBE+g4tbb+2 k7ozeRyNm71nA6N1Vj+GzGPEnWTRab1igfO+9/igYbf8cvEsuH2meBv5vvizv7X6L0Ut wBKQ== 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=cisX6MgLRdwhpldZoDeh97X5TaaGJ7giHZav5pB2Vkk=; b=Zl1t3tkGDTB0YRTvZMhdAba3ARzyKVzKW5IWQi6uwa/JwrHrR65cChOLNEaB7jnOty 3AjQliBJLEyVf7zn5fxWTKRSTuISD+B+i2BPCD8xZ6uXY1uFJHO2lps4dZ8zr0rGa49z LiUSZrJDjNGBqFDGmm8nJcEbJIUrzZI4gukkhORWafHhu65kbRERl5+8O3AqlwlPv1E4 Sm33fmqO+7Sl8TYu9FkgKFEQldnAEGU/1mOz5wgprg1txwCiSp6f7WLB0qGSsm3X6StB Lfyg5/F7zKJo2Axnc9vUUvi/GITWcaBRxIZoFyqppDxhK2VaZhPWhOWYRLf9C1Z6qknJ 03yw== 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 w7si4960925edw.223.2019.07.22.03.04.58; Mon, 22 Jul 2019 03:04:58 -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 C194A1BECA; Mon, 22 Jul 2019 12:04:52 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id B6CE01BEB4 for ; Mon, 22 Jul 2019 12:04:48 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 47338200099; Mon, 22 Jul 2019 12:04:48 +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 9FE0F2002C0; Mon, 22 Jul 2019 12:04:46 +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 237EA40302; Mon, 22 Jul 2019 18:04:44 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Date: Mon, 22 Jul 2019 15:33:22 +0530 Message-Id: <20190722100322.9722-3-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190722100322.9722-1-hemant.agrawal@nxp.com> References: <20190722065407.9180-1-hemant.agrawal@nxp.com> <20190722100322.9722-1-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 247b2a4a1..9658fd84d 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -384,8 +384,9 @@ 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", - dma_map.vaddr, dma_map.iova, dma_map.size); + DPAA2_BUS_DEBUG("VFIOdmamap 0x%"PRIx64":0x%"PRIx64",size 0x%"PRIx64"\n", + (uint64_t)dma_map.vaddr, (uint64_t)dma_map.iova, + (uint64_t)dma_map.size); ret = ioctl(group->container->fd, VFIO_IOMMU_MAP_DMA, &dma_map); if (ret) {