[dts] [PATCH] framework: fix lscpu parsing for numa id instead of phy socket id

Liu, Yong yong.liu at intel.com
Fri Mar 18 08:31:35 CET 2016


Thanks, applied in next branch.

On 03/17/2016 07:33 PM, Gowrishankar wrote:
> 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



More information about the dts mailing list