From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7A12FA00BE; Fri, 12 Jun 2020 02:10:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DB41EF12; Fri, 12 Jun 2020 02:10:15 +0200 (CEST) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id E4CFCE07 for ; Fri, 12 Jun 2020 02:10:14 +0200 (CEST) Received: by mail-pf1-f196.google.com with SMTP id h185so3430739pfg.2 for ; Thu, 11 Jun 2020 17:10:14 -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 :mime-version:content-transfer-encoding; bh=qhFBJoPgwaXEKR/0QrWM3VoJsxjNthZcM6jWOfew7O4=; b=hOb5XUcMookeztKsVp2y6/ke/3ZiihphTai+XeYeUVuhgaZWoL7UFDV8bYCu6ZVrMU vXAvDE8mbPufSxteUdYg31LunR5Q3B2UbzQCrlVrnJOyx4YVdAtdNmqztLmE2w6fwoT6 837i+STm9JVNqCUWoVjF4X896qBTnVy3ms1vdHPmHOTAGLdUDKcL7g0jZeu2SP7NTlnH MsUvxiUHGcwaHhEJptcbBzbLoYb1R9DLKzdP4rvuV7ahbeOliACu2vKtDerDUe3CjC+W rJ0rolTjdcGCw5Gzlu9lduBRLU/biJRD7Y2KdlDlnt8IYj0ddRvLM0Sxkje+hAnXJzYE JGvA== 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:mime-version:content-transfer-encoding; bh=qhFBJoPgwaXEKR/0QrWM3VoJsxjNthZcM6jWOfew7O4=; b=RP9GSw/yAKGywVZKtd5sliLJG6WACWpBe/pFautX2pHOQzYiEh/G0Vz4ldb/FD+7sO D3FA82/HqpLEt97cptv6syvwzHHhXH3NY0hQJDUrfb0VvbjjWOovStHlOn0kJQhKTqKS lHvzqn8fIo3jQ88TMjJhwNfnAzao8iTV3QflTNxWPITSsc4rBSvQLtxE91sYthbfRlzG /wawElPlKnChUbT8pMd3majgOJR5LSVDr6dbc3ZLsmYBz2J+J9DkzUiaY5eL4SJlWsSY 6dbGrzRahJAwJfrbEBhVilpSq5YX0ByrIt5itaIy5dP6+Xzgw/H01KeQidn4daW1M4iX 2cPg== X-Gm-Message-State: AOAM5326dXg7rnKuVammZM22VEokWrKzS60Va0ReKOvcicDrFvP9oz4Z U7nUc5tsg1makYKrJJBhBp5AcA== X-Google-Smtp-Source: ABdhPJzyBCdG+x0UkGT78lF9g9l8CyjL4kBVYvh6f2LmTI0Y0LZDukwWwFNnVAcDJD+9PciHjtfvtA== X-Received: by 2002:a65:4c4c:: with SMTP id l12mr8806744pgr.159.1591920613875; Thu, 11 Jun 2020 17:10:13 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id x1sm4038626pfn.76.2020.06.11.17.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 17:10:13 -0700 (PDT) From: Stephen Hemminger To: Anatoly Burakov Cc: dev@dpdk.org, Stephen Hemminger Date: Thu, 11 Jun 2020 17:10:04 -0700 Message-Id: <20200612001004.16131-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200611184000.26724-1-stephen@networkplumber.org> References: <20200611184000.26724-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] 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 --- v2 - add one more place lib/librte_eal/linux/eal_vfio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/linux/eal_vfio.c b/lib/librte_eal/linux/eal_vfio.c index d26e1649a54e..88a8c3b959cc 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"); @@ -1145,7 +1145,7 @@ vfio_set_iommu_type(int vfio_container_fd) int ret = ioctl(vfio_container_fd, VFIO_SET_IOMMU, t->type_id); if (!ret) { - 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); return t; } -- 2.26.2