From patchwork Thu Jun 11 18:40:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 71285 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A7D95A00BE; Thu, 11 Jun 2020 20:40:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7F8D4F12; Thu, 11 Jun 2020 20:40:11 +0200 (CEST) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 99796B62 for ; Thu, 11 Jun 2020 20:40:09 +0200 (CEST) Received: by mail-pf1-f195.google.com with SMTP id d66so3042409pfd.6 for ; Thu, 11 Jun 2020 11:40:09 -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:mime-version :content-transfer-encoding; bh=pSPz4vPpbxJxG7WfuasPeed1u7bq8PNNf525S5bLpLs=; b=E39tGm3u/5NfkKTwX0CGKavMprnGp1Senqt3FqQS/oZQaNf2fgJIjhIWH10R/OeWtM lt3sp1MtL33IYalNu64nVQ/urrLLZVK/JGE9XSEVB/rLe5zRdjL6hakXQPEa8ZqNomg2 P07/8SZQLYxc0uIlx5ee8UsaTadlnk5KSO4DMxDAUuqlzx9VyGr/SG2UwPRjTvYhQSvG Rvtt5imAiuF+FsMVCDOfOzHownpdzYj8zYH0gGBoTh8BBj+qzNUEkpr7o81o22V8iC1T rN+eWc/d0ZDhyajvPlkp1ObCRgSs9Pb+gVh6Ge9M+o4m88eTWhX/6MWCjr0BpY69lSNG hQBQ== 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:mime-version :content-transfer-encoding; bh=pSPz4vPpbxJxG7WfuasPeed1u7bq8PNNf525S5bLpLs=; b=AP3jo7a1nmGUdmowPmg4mZuHnboFd2EkN0RBD+Wl3uqf/birwJc9Bpbm6PnxP+DbAO C3G9qf0jV7sB11vJxgCrardAcL41gswouGMT/bNx2Is+k9nJO1SF44DrYUq4Hfr3An00 F//9nbJ1u2rMCKweG2D7JU5taeKh/T9ne2nrJax7DrIOl8jJnx5o/TmUs+vRoVTpiFMR RGLSQPeoMt4ej/ixKuC6vgP1btoAAdP0eZPaUX0JEk0jbjJldhwsEiEdfKW6JXa0F+2T RTEsQomc4E3xOLN++td3GyxM0Y0mPr/WPpT1ZYAso+RUbStf5OanOkbgtaMtANsZt/b+ kg/w== X-Gm-Message-State: AOAM531WQsJbCbQxV4Ddm3wLDHKh3GdDgctS6QSMfT+CndD8Zb6vdAVp D++TvdAei0VrXOSpe0PTndLhdDVQoZI= X-Google-Smtp-Source: ABdhPJwilfh0C25/Xxq/6+tXgsiBBeT21cHpLn3M3UeZ/RTlwRES3KihKHr+0RXJ6TqBA3B4XgkZWw== X-Received: by 2002:a62:8342:: with SMTP id h63mr213187pfe.183.1591900808778; Thu, 11 Jun 2020 11:40:08 -0700 (PDT) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id r202sm3782290pfr.185.2020.06.11.11.40.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 11:40:07 -0700 (PDT) From: Stephen Hemminger To: Anatoly Burakov Cc: dev@dpdk.org, Stephen Hemminger Date: Thu, 11 Jun 2020 11:40:00 -0700 Message-Id: <20200611184000.26724-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] eal/vfio: reduce severity of startup messages 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" The startup of VFIO is too noisy. Logging is expensive on some systems, and distracting to the user. It should not be logging at NOTICE level, reduce it to INFO level. It really should be DEBUG here but that would hide it by default. Signed-off-by: Stephen Hemminger --- lib/librte_eal/linux/eal_vfio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linux/eal_vfio.c b/lib/librte_eal/linux/eal_vfio.c index d26e1649a54e..cb869bfafaf0 100644 --- a/lib/librte_eal/linux/eal_vfio.c +++ b/lib/librte_eal/linux/eal_vfio.c @@ -891,7 +891,7 @@ rte_vfio_setup_device(const char *sysfs_base, const char *dev_addr, /* we have successfully initialized VFIO, notify user */ const struct vfio_iommu_type *t = default_vfio_cfg->vfio_iommu_type; - RTE_LOG(NOTICE, EAL, " using IOMMU type %d (%s)\n", + RTE_LOG(INFO, EAL, " using IOMMU type %d (%s)\n", t->type_id, t->name); } @@ -1069,7 +1069,7 @@ rte_vfio_enable(const char *modname) /* check if we have VFIO driver enabled */ if (default_vfio_cfg->vfio_container_fd != -1) { - RTE_LOG(NOTICE, EAL, "VFIO support initialized\n"); + RTE_LOG(INFO, EAL, "VFIO support initialized\n"); default_vfio_cfg->vfio_enabled = 1; } else { RTE_LOG(NOTICE, EAL, "VFIO support could not be initialized\n");