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 B6EC0A04AF; Mon, 4 May 2020 15:26:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 076111C300; Mon, 4 May 2020 15:26:00 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id D32EB1C2F6 for ; Mon, 4 May 2020 15:25:57 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 044DKHTw014001; Mon, 4 May 2020 06:25:56 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=9V8/TaGqcIgdwChgQpsKtUscHN4zCnhOVugQsnpGTiM=; b=V9W6gYTTQGgG67JWdCcjE9JmJJnWdGunP4rYlemqqXiGmidLKbXhgDQPL8uArB3rhYF2 NKtaPVB6HLb2KG4uAGy/gPFaSSu6g1aeRg2tS9oPbRRNNxunxE4b1hoSSKvcgPM5Q1Cm V3LaVgOQJwTOfQplAeW//pJfPlHiDz1LT/XF4YIiD/3VE2OPcDJDhsLmt+YeaPOUEyBB exLKvA/Z6b0JdVe5SLgwsO0po0gll0ry0AbiFWtaRIQB/oKvuzTS/2lli4dHWWSgBBi9 1kcMvG2YVlQ4Ms+y0sQCtNUBhibxZ3WYEO2znwXNIYStSDHYof5CH40786uU/+6h41ZE Zg== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 30s67q6vdv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 04 May 2020 06:25:56 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 4 May 2020 06:25:55 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 4 May 2020 06:25:53 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 4 May 2020 06:25:53 -0700 Received: from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14]) by maili.marvell.com (Postfix) with ESMTP id 3B0CF3F703F; Mon, 4 May 2020 06:25:51 -0700 (PDT) From: To: CC: , , , "Jerin Jacob" Date: Mon, 4 May 2020 18:56:53 +0530 Message-ID: <20200504132653.3668706-1-jerinj@marvell.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200121080021.2835490-1-jerinj@marvell.com> References: <20200121080021.2835490-1-jerinj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-05-04_07:2020-05-04, 2020-05-04 signatures=0 Subject: [dpdk-dev] [PATCH v2] bus/pci: set boot-up log prints to absolute minimum 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" From: Jerin Jacob Some machines may have a lot of PCI devices and all of them are not bound to DPDK. In such case the logs from EAL creates a lot of clutter on boot-up, typically one needs to scroll the screen to find other issues in boot-up. This patch changes the following to reduce the clutter in the default boot-up logs. - Change the log-level of PCI probes to `debug` - Introduce new driver probe as `info` log-level for the successful probe. Signed-off-by: Jerin Jacob --- v2: - Introduce new driver probe as `info` log-level for the successful probe(Thomas) drivers/bus/pci/pci_common.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c index 3f5542076..6585a4b47 100644 --- a/drivers/bus/pci/pci_common.c +++ b/drivers/bus/pci/pci_common.c @@ -136,7 +136,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr, /* Match of device and driver failed */ return 1; - RTE_LOG(INFO, EAL, "PCI device "PCI_PRI_FMT" on NUMA socket %i\n", + RTE_LOG(DEBUG, EAL, "PCI device "PCI_PRI_FMT" on NUMA socket %i\n", loc->domain, loc->bus, loc->devid, loc->function, dev->device.numa_node); @@ -161,7 +161,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr, return -EEXIST; } - RTE_LOG(INFO, EAL, " probe driver: %x:%x %s\n", dev->id.vendor_id, + RTE_LOG(DEBUG, EAL, " probe driver: %x:%x %s\n", dev->id.vendor_id, dev->id.device_id, dr->driver.name); /* @@ -195,6 +195,10 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr, } } + RTE_LOG(INFO, EAL, "Probe PCI driver: %s (%x:%x) device: "PCI_PRI_FMT" (socket %i)\n", + dr->driver.name, dev->id.vendor_id, dev->id.device_id, + loc->domain, loc->bus, loc->devid, loc->function, + dev->device.numa_node); /* call the driver probe() function */ ret = dr->probe(dr, dev); if (already_probed) -- 2.26.2