<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5679</bug_id>
          
          <creation_ts>2013-12-18 13:02:47 +0000</creation_ts>
          <short_desc>meta-intel: core-image-sato-sdk builds are failing due to &quot;deadlock in the timekeeping subsystem&quot; error</short_desc>
          <delta_ts>2014-04-16 09:11:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-configuration</component>
          <version>1.5.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ionut Chisanovici">ionutx.chisanovici</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          <cc>dvhart</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39472</commentid>
    <comment_count>0</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2013-12-18 13:02:47 +0000</bug_when>
    <thetext>Hi,

Tried to build core-image-sato-sdk for nuc and fri2 but the builds are failing due to:

ERROR: Function failed: do_compile (log file is located at /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/temp/log.do_compile.8339)
ERROR: Logfile of failure stored in: /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/temp/log.do_compile.8339
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 16 -e MAKEFLAGS= KERNEL_PATH=/home/ionut/work/poky/build/tmp/sysroots/nuc/usr/src/kernel KERNEL_SRC=/home/ionut/work/poky/build/tmp/sysroots/nuc/usr/src/kernel KERNEL_VERSION=3.10.11-yocto-standard CC=x86_64-poky-linux-gcc  LD=x86_64-poky-linux-ld.bfd  AR=x86_64-poky-linux-ar
| make -C /home/ionut/work/poky/build/tmp/sysroots/nuc/usr/src/kernel M=/home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git modules
| make[1]: Entering directory `/home/ionut/work/poky/build/tmp/sysroots/nuc/usr/src/kernel&apos;
|   CC [M]  /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git/lttng-ring-buffer-client-discard.o
| In file included from /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git/lttng-tracer.h:37:0,
|                  from /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git/lttng-ring-buffer-client-discard.c:24:
| /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git/wrapper/trace-clock.h:40:2: error: #error &quot;Linux kernels 3.10 and 3.11 introduce a deadlock in the timekeeping subsystem. Fixed by commit 7bd36014460f793c19e7d6c94dab67b0afcfcb7f \&quot;timekeeping: Fix HRTICK related deadlock from ntp lock changes\&quot; in Linux.&quot;
|  #error &quot;Linux kernels 3.10 and 3.11 introduce a deadlock in the timekeeping subsystem. Fixed by commit 7bd36014460f793c19e7d6c94dab67b0afcfcb7f \&quot;timekeeping: Fix HRTICK related deadlock from ntp lock changes\&quot; in Linux.&quot;
|   ^
| make[2]: *** [/home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git/lttng-ring-buffer-client-discard.o] Error 1
| make[1]: *** [_module_/home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git] Error 2
| make[1]: Leaving directory `/home/ionut/work/poky/build/tmp/sysroots/nuc/usr/src/kernel&apos;
| make: *** [default] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/temp/log.do_compile.8339)
ERROR: Task 2865 (/home/ionut/work/poky/meta/recipes-kernel/lttng/lttng-modules_2.3.3.bb, do_compile) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 4403 tasks of which 411 didn&apos;t need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /home/ionut/work/poky/meta/recipes-kernel/lttng/lttng-modules_2.3.3.bb, do_compile
Summary: There were 10 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Build Configuration:
BB_VERSION        = &quot;1.20.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-13.04&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;nuc&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.5.1&quot;
TUNE_FEATURES     = &quot;m64&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;dora:8e410e9e46e3335458a7747cdd32e05f5c19ccbb&quot;
meta-intel        
meta-nuc          = &quot;dora:c86e39dd06571458c7dee6cf289d5b470c98f4bd&quot;

Cheers,
Ionut C</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39473</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-12-18 14:31:42 +0000</bug_when>
    <thetext>The 3.10 kernel already has this fix in oe-core and meta-yocto-bsps. 


commit 8babbd1e332a6d6cc7ba40ba6ac190114350310c
Author: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
Date:   Thu Nov 14 11:58:36 2013 -0500

    meta-yocto-bsp: update SRCREVs for 3.10.17 and beagleboard fixes
    
    Updating the BSP SRCREVs to pull in the 3.10.17 core update and fix
    USB powerup issues on the beagleboard.
    
    (From meta-yocto rev: d82870a9561662919a737dd126a8d26e2b78144a)
    
    Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

So meta-intel needs to update it&apos;s SRCREVs appropriately as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39502</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-12-19 15:52:53 +0000</bug_when>
    <thetext>We have two options here:

1) Fix all BSPs that fail building this. For meta-intel, this includes:

$ git grep 2927821e14523fa0ee18140aa7ff6e0509b48ab7 | sed -e &quot;s/.*://&quot; | sed -e &quot;s/ .*//&quot;
SRCREV_machine_chiefriver
SRCREV_machine_crownbay
SRCREV_machine_crownbay-noemgd
SRCREV_machine_emenlow
SRCREV_machine_emenlow-noemgd
SRCREV_machine_fri2
SRCREV_machine_fri2-noemgd
SRCREV_machine_jasperforest
SRCREV_machine_nuc
SRCREV_machine_sugarbay
SRCREV_machine_sys940x
SRCREV_machine_sys940x-noemgd

Nearly every BSP - and those that aren&apos;t listed are still likely affected, they just have different machine branch HEADs.

2) Revert the commit to the stable dora branch that introduced the bug:

$ git l dora-10.0.0.. -- recipes-kernel/lttng
50574e4 lttng-modules: Update to 2.3.3 version

This update was made, in part, to fix a build issue with Linux 3.12 - which we don&apos;t ship with dora.


Typically I would argue for #2. However, the commits are available to fix this in the 3.10 kernel repo, but it would require modifying every BSP in meta-intel. More work may be required for the BSPs with different HEADs. depending on whether or not the required commit was already merged for them (likely has been).

However, it is my strong belief that the lttng_modules patch should never have been applied to dora.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39720</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-01-09 18:20:30 +0000</bug_when>
    <thetext>This is now resolved in dora and master.

Dora:

commit 28243d96cce16f23240c8f4bc9d09866654f8516
Author: Darren Hart &lt;dvhart@linux.intel.com&gt;
Date:   2013-12-19

    linux-yocto-3.10: Update SRCREVs for 3.10.19 for remaining BSPs

Master:

commit 71715193beab7f0c57ee3e1ca8cd39ab07979647
Author: Darren Hart &lt;dvhart@linux.intel.com&gt;
Date:   2013-12-19

    linux-yocto-3.10: Update SRCREVs for 3.10.19 for remaining BSPs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42691</commentid>
    <comment_count>4</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-04-16 09:11:27 +0000</bug_when>
    <thetext>This is verified.

Cheers,
IonutC</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>