[dts] [PATCH] framework: fix lscpu parsing for numa id instead of phy socket id
Gowrishankar
gowrishankar.m at linux.vnet.ibm.com
Thu Mar 17 12:33:41 CET 2016
From: Gowri Shankar <gowrishankar.m at linux.vnet.ibm.com>
NIC ports associate with numa node number, as our tests parse sysfs for their
ports. In recent patch on CPU info parsing, lscpu -p was used to prepare cores
list in which, socket ID column was used for phy socket. Ideally it should have
been numa column which our tests look for (eg, pmd test).
Signed-off-by: Gowrishankar <gowrishankar.m at linux.vnet.ibm.com>
---
framework/crb.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/framework/crb.py b/framework/crb.py
index 33ceb8c..3194f69 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -504,7 +504,7 @@ class Crb(object):
core_id = 0
coremap = {}
for line in cpuinfo:
- (thread, core, socket) = line.split(',')[0:3]
+ (thread, core, unused, socket) = line.split(',')[0:4]
if core not in coremap.keys():
coremap[core] = core_id
--
1.7.10.4
More information about the dts
mailing list