Skip to contentSkip to conversation

bus: clarify log for non-NUMA-aware devices

PATCH Xueming(Steven) Li 1 participant 1 message Jun 15, 2021 1 message not in the archive

lore
Share & tools
lore

Xueming(Steven) Li

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 26 lines

-----Original Message-----
From: Dmitry Kozlyuk <[email protected]>
Sent: Tuesday, June 15, 2021 6:44 PM
To: [email protected]
Cc: Xueming(Steven) Li <[email protected]>; [email protected]; Marcin Wojtas <[email protected]>; Michal Krawczyk <[email protected]>; Guy Tzalik <[email protected]>; Evgeny Schemeilin <[email protected]>; Igor Chauskin <[email protected]>; Stephen Hemminger <[email protected]>; NBU-Contact-longli <[email protected]>; Sergio Gonzalez Monroy <[email protected]>
Subject: [PATCH] bus: clarify log for non-NUMA-aware devices

PCI and vmbus drivers printed a warning
when NUMA node had beed reported as (-1) or not reported by OS:

EAL: Invalid NUMA socket, default to 0

This message and its level might confuse users, because configuration is valid and nothing happens that requires attention or intervention.

Reduce level to INFO and reword the message.

Fixes f0e0e86aa35d ("pci: move NUMA node check from scan to probe")
Fixes 831dba47bd36 ("bus/vmbus: add Hyper-V virtual bus support")
Quoted 5 lines

---
Hi Xueming,
Please align logging in the pending bus/auxiliary patch.

LGTM, updated.

Quoted 46 lines
 doc/guides/nics/ena.rst          | 2 +-
 drivers/bus/pci/pci_common.c     | 2 +-
 drivers/bus/vmbus/vmbus_common.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
doc/guides/nics/ena.rst +1 -1
@@ -234,7 +234,7 @@ Example output:
 
[...]
    EAL: PCI device 0000:00:06.0 on NUMA socket -1
-   EAL:   Invalid NUMA socket, default to 0
+   EAL:   Device is not NUMA-aware, defaulting socket to 0
    EAL:   probe driver: 1d0f:ec20 net_ena
 
    Interactive-mode selected
drivers/bus/pci/pci_common.c +2 -1
@@ -190,7 +190,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr,
 	}
 
 	if (dev->device.numa_node < 0) {
-		RTE_LOG(WARNING, EAL, "  Invalid NUMA socket, default to 0\n");
+		RTE_LOG(INFO, EAL, "  Device is not NUMA-aware, defaulting socket to
+0\n");
 		dev->device.numa_node = 0;
 	}
drivers/bus/vmbus/vmbus_common.c +2 -2
index d25fd14ef5..ef23af90ec 100644
@@ -112,7 +112,7 @@ vmbus_probe_one_driver(struct rte_vmbus_driver *dr,
 	dev->driver = dr;
 
 	if (dev->device.numa_node < 0) {
-		VMBUS_LOG(WARNING, "  Invalid NUMA socket, default to 0");
+		VMBUS_LOG(INFO, "  Device is not NUMA-aware, defaulting socket to
+0\n");
 		dev->device.numa_node = 0;
 	}
 
--
Quoted 1 line

2.18.2