test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts]  [PATCH V2] fix yocto init core list failed issue
@ 2015-12-02  7:18 xu,huilong
  2015-12-04  0:47 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: xu,huilong @ 2015-12-02  7:18 UTC (permalink / raw)
  To: dts

Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
 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
-- 
1.9.3

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V2] fix yocto init core list failed issue
  2015-12-02  7:18 [dts] [PATCH V2] fix yocto init core list failed issue xu,huilong
@ 2015-12-04  0:47 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2015-12-04  0:47 UTC (permalink / raw)
  To: xu,huilong, dts

Applied.  Thanks.

On 12/02/2015 03:18 PM, xu,huilong wrote:
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
>   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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-04  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-02  7:18 [dts] [PATCH V2] fix yocto init core list failed issue xu,huilong
2015-12-04  0:47 ` Liu, Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).