From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id CF05E2C28 for ; Thu, 14 Mar 2019 22:32:21 +0100 (CET) Received: by mail-pg1-f196.google.com with SMTP id k11so4855777pgb.8 for ; Thu, 14 Mar 2019 14:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M0uCMSEeuO3dptLPWWyxAivmO21bzACjktGPlapRG8w=; b=X3u6qgsLRDBvbdIIxTNsJrYYpLo6Dz7FIyIF16vPHTJRbQYVQsmucDOWwfYsjR36qC a5BIsOPW8UEG1yqMJOkYap1GBcX/YbpYFtjJqaJYeNoOnbI5NQa3IIwxME0Y+T/fm+hf PMNQ3tBu1n09JxPBsAHay118mzYtJmq4teKrYUhDQ2ZQ3huYDGeXr6nXK4uIRVTS5B2D YXlbwVJbIE07LkpFT4j3b5juozK5UjoK/IBnkXom7blbHF6uGn/av03rmJ4R85pF4W+n CDMCUErfzWeaFITKYbIUxl3dVOuAbIJoUvyOPlov0J+rLEB157sAkXdfw7uOBivuFY6r taUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=M0uCMSEeuO3dptLPWWyxAivmO21bzACjktGPlapRG8w=; b=UtDANEDV9mNga5m23+/ny8yqg7CXfpaQnvH5QQy9JsLY6UvgeqrdKB1Iwy0hBJ3vty H+/s209gd8MrVrkhjCqjyKeBMWT0hjK6RycEVNqKkdJWa1G7vPIupygHU7GMihcP3C3u IZBxI6rBPqPkR7rr1a6aKWXZ6CTN+1Xw19XR5qCL0c7NiYzhQ00cYPYCTRT9iOFGzJyB fRIYrjQ1JhacSBefvmuAQ85NpmTQUgA1WoL8edBdcmuoUE32nobWs+xqwwUKxMICJ3nN 65/dng5UYVskHtbz18BWQBUoAPn+/VdNBrG1x9wEsZkQtr3glCgjZFv+6Ul9SiUlB68P Z7GA== X-Gm-Message-State: APjAAAVFCWfhIUZfl7jFOYFujQQJmSTY6IYtJt8QSsEhGTxjDgzqL1uM HupV8siOXo6KCC9Zxtb7UiMw2geuhgqmCA== X-Google-Smtp-Source: APXvYqyAT79Ovl9N8087FX6DTGBTKRnGt/fEztVVZjd8cZFB+DlBO611mNANUYPXiTUTe+918iz/XQ== X-Received: by 2002:a17:902:8f8a:: with SMTP id z10mr485098plo.23.1552599140164; Thu, 14 Mar 2019 14:32:20 -0700 (PDT) Received: from shemminger-XPS-13-9360.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 20sm34183pfs.182.2019.03.14.14.32.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Mar 2019 14:32:18 -0700 (PDT) From: Stephen Hemminger To: ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com Cc: dev@dpdk.org, Stephen Hemminger Date: Thu, 14 Mar 2019 14:32:13 -0700 Message-Id: <20190314213214.26957-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190314213214.26957-1-stephen@networkplumber.org> References: <20190314213214.26957-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 1/2] net/bnxt: silence iova warnings 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: , X-List-Received-Date: Thu, 14 Mar 2019 21:32:22 -0000 When using bnxt on bare-metal with vfio-pci, the driver logs an unnecessary warning. Hardware works fine, message is not urgent. Change it to INFO level. Fixes: 62196f4e0941 ("mem: rename address mapping function to IOVA") Signed-off-by: Stephen Hemminger --- drivers/net/bnxt/bnxt_ethdev.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 189527207f9a..bdc6a1267a52 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -3242,10 +3242,8 @@ bnxt_dev_init(struct rte_eth_dev *eth_dev) memset(mz->addr, 0, mz->len); mz_phys_addr = mz->iova; if ((unsigned long)mz->addr == mz_phys_addr) { - PMD_DRV_LOG(WARNING, - "Memzone physical address same as virtual.\n"); - PMD_DRV_LOG(WARNING, - "Using rte_mem_virt2iova()\n"); + PMD_DRV_LOG(INFO, + "Memzone physical address same as virtual using rte_mem_virt2iova()\n"); mz_phys_addr = rte_mem_virt2iova(mz->addr); if (mz_phys_addr == 0) { PMD_DRV_LOG(ERR, -- 2.17.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 794B8A0096 for ; Thu, 14 Mar 2019 22:32:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C8D274C99; Thu, 14 Mar 2019 22:32:23 +0100 (CET) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id CF05E2C28 for ; Thu, 14 Mar 2019 22:32:21 +0100 (CET) Received: by mail-pg1-f196.google.com with SMTP id k11so4855777pgb.8 for ; Thu, 14 Mar 2019 14:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M0uCMSEeuO3dptLPWWyxAivmO21bzACjktGPlapRG8w=; b=X3u6qgsLRDBvbdIIxTNsJrYYpLo6Dz7FIyIF16vPHTJRbQYVQsmucDOWwfYsjR36qC a5BIsOPW8UEG1yqMJOkYap1GBcX/YbpYFtjJqaJYeNoOnbI5NQa3IIwxME0Y+T/fm+hf PMNQ3tBu1n09JxPBsAHay118mzYtJmq4teKrYUhDQ2ZQ3huYDGeXr6nXK4uIRVTS5B2D YXlbwVJbIE07LkpFT4j3b5juozK5UjoK/IBnkXom7blbHF6uGn/av03rmJ4R85pF4W+n CDMCUErfzWeaFITKYbIUxl3dVOuAbIJoUvyOPlov0J+rLEB157sAkXdfw7uOBivuFY6r taUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=M0uCMSEeuO3dptLPWWyxAivmO21bzACjktGPlapRG8w=; b=UtDANEDV9mNga5m23+/ny8yqg7CXfpaQnvH5QQy9JsLY6UvgeqrdKB1Iwy0hBJ3vty H+/s209gd8MrVrkhjCqjyKeBMWT0hjK6RycEVNqKkdJWa1G7vPIupygHU7GMihcP3C3u IZBxI6rBPqPkR7rr1a6aKWXZ6CTN+1Xw19XR5qCL0c7NiYzhQ00cYPYCTRT9iOFGzJyB fRIYrjQ1JhacSBefvmuAQ85NpmTQUgA1WoL8edBdcmuoUE32nobWs+xqwwUKxMICJ3nN 65/dng5UYVskHtbz18BWQBUoAPn+/VdNBrG1x9wEsZkQtr3glCgjZFv+6Ul9SiUlB68P Z7GA== X-Gm-Message-State: APjAAAVFCWfhIUZfl7jFOYFujQQJmSTY6IYtJt8QSsEhGTxjDgzqL1uM HupV8siOXo6KCC9Zxtb7UiMw2geuhgqmCA== X-Google-Smtp-Source: APXvYqyAT79Ovl9N8087FX6DTGBTKRnGt/fEztVVZjd8cZFB+DlBO611mNANUYPXiTUTe+918iz/XQ== X-Received: by 2002:a17:902:8f8a:: with SMTP id z10mr485098plo.23.1552599140164; Thu, 14 Mar 2019 14:32:20 -0700 (PDT) Received: from shemminger-XPS-13-9360.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 20sm34183pfs.182.2019.03.14.14.32.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Mar 2019 14:32:18 -0700 (PDT) From: Stephen Hemminger To: ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com Cc: dev@dpdk.org, Stephen Hemminger Date: Thu, 14 Mar 2019 14:32:13 -0700 Message-Id: <20190314213214.26957-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190314213214.26957-1-stephen@networkplumber.org> References: <20190314213214.26957-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 1/2] net/bnxt: silence iova warnings 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" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190314213213.R9QjdD_ZYcEOBkvGdvYqHrR17G_k9nhkNjlFxMP-Vi8@z> When using bnxt on bare-metal with vfio-pci, the driver logs an unnecessary warning. Hardware works fine, message is not urgent. Change it to INFO level. Fixes: 62196f4e0941 ("mem: rename address mapping function to IOVA") Signed-off-by: Stephen Hemminger --- drivers/net/bnxt/bnxt_ethdev.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 189527207f9a..bdc6a1267a52 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -3242,10 +3242,8 @@ bnxt_dev_init(struct rte_eth_dev *eth_dev) memset(mz->addr, 0, mz->len); mz_phys_addr = mz->iova; if ((unsigned long)mz->addr == mz_phys_addr) { - PMD_DRV_LOG(WARNING, - "Memzone physical address same as virtual.\n"); - PMD_DRV_LOG(WARNING, - "Using rte_mem_virt2iova()\n"); + PMD_DRV_LOG(INFO, + "Memzone physical address same as virtual using rte_mem_virt2iova()\n"); mz_phys_addr = rte_mem_virt2iova(mz->addr); if (mz_phys_addr == 0) { PMD_DRV_LOG(ERR, -- 2.17.1