From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 64774B62 for ; Fri, 4 Dec 2015 01:47:54 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP; 03 Dec 2015 16:47:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,378,1444719600"; d="scan'208";a="7210916" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga004.fm.intel.com with ESMTP; 03 Dec 2015 16:47:52 -0800 Message-ID: <5660E2BB.1010902@intel.com> Date: Fri, 04 Dec 2015 08:47:55 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "xu,huilong" , dts@dpdk.org References: <1449040739-5395-1-git-send-email-huilongx.xu@intel.com> In-Reply-To: <1449040739-5395-1-git-send-email-huilongx.xu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH V2] fix yocto init core list failed issue X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2015 00:47:54 -0000 Applied. Thanks. On 12/02/2015 03:18 PM, xu,huilong wrote: > Signed-off-by: xu,huilong > --- > framework/crb.py | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/framework/crb.py b/framework/crb.py > index 3c158ec..3470ca1 100644 > --- a/framework/crb.py > +++ b/framework/crb.py > @@ -464,6 +464,16 @@ class Crb(object): > self.send_expect( > "grep --color=never \"processor\\|physical id\\|core id\\|^$\" /proc/cpuinfo", > "#", alt_session=True) > + > + if "processor" not in cpuinfo: > + # yocto not support --color=never, but ubuntu must need --color=never, > + # so check cpuinfo, before parsing cpuinfo, if cpuifo get error, delete --color=never > + # and get cpuinfo again > + cpuinfo = \ > + self.send_expect( > + r'grep "processor\|physical id\|core id\|^$" /proc/cpuinfo', > + "#", alt_session=True) > + > cpuinfo = cpuinfo.split('\r\n\r\n') > # haswell cpu on cottonwood core id not correct > # need addtional coremap for haswell cpu