<?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>7619</bug_id>
          
          <creation_ts>2015-04-16 12:50:34 +0000</creation_ts>
          <short_desc>System hangs during booting kernel using kexec (cgtqmx6)</short_desc>
          <delta_ts>2015-11-04 16:05:38 +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>linux-yocto</component>
          <version>1.7</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maksym Zhelieznyi">mv.zhelieznyi</reporter>
          <assigned_to name="Otavio Salvador">otavio</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Alexandru Georgescu">alexandru.c.georgescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50341</commentid>
    <comment_count>0</comment_count>
    <who name="Maksym Zhelieznyi">mv.zhelieznyi</who>
    <bug_when>2015-04-16 12:50:34 +0000</bug_when>
    <thetext>I try to reboot system with avoiding U-boot stage using kexec for this:

kexec -l --append=&quot;`/proc/cmdline`&quot; --dtb=/boot/devicetree-uImage-imx6q-qmx6.dtb /boot/uImage
umount -a
kexec -e

After executing last command system just hangs without any massages. Also there is output in the serial port:

Starting new kernel
Disabling non-boot CPUs ...
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
CPU1: shutdown
CPU2: shutdown
CPU3: shutdown
Bye!


Hardware - Congatec qmx6 016103 (conga-QMX6/QC-1G eMMC4)
kernel 3.10.17
kexec-tools version is 2.0.7 released 10 april 2015
CONFIG_KEXEC option is already enabled in the kernel config</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50343</commentid>
    <comment_count>1</comment_count>
    <who name="Maksym Zhelieznyi">mv.zhelieznyi</who>
    <bug_when>2015-04-16 13:25:08 +0000</bug_when>
    <thetext>Current Kernel command line is:
console=ttymxc1,115200 fbcon=rotate:0 video=mxcfb0:dev=ldb,1280x800MR@60,LDB-WXGA,if=RGB24 video=mxcfb1:dev=hdmi,1280x800@60,if=RGB24 root=/dev/mmcblk0p1 rootwait ro</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54637</commentid>
    <comment_count>2</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2015-09-24 16:34:35 +0000</bug_when>
    <thetext>This is fixed in Congatec 3.14.28 kernel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56121</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-11-03 08:33:15 +0000</bug_when>
    <thetext>Hi Otavio, Maksym,

Could you point us a hint on how to verify this?
e.g. what HW did you use and the steps required?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56199</commentid>
    <comment_count>4</comment_count>
    <who name="Maksym Zhelieznyi">mv.zhelieznyi</who>
    <bug_when>2015-11-04 15:47:16 +0000</bug_when>
    <thetext>Hi Alexandru,

Hardware is Congatec qmx6 dual/quad (http://www.congatec.com/en/products/qseven/conga-qmx6.html)
Steps are described in the bug description

-best regards,
 Maksym</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56201</commentid>
    <comment_count>5</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2015-11-04 16:05:38 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Could you point us a hint on how to verify this?
&gt; e.g. what HW did you use and the steps required?

This is hardware dependant, so it cannot be easily verified without the board.

The commit which fixes the issue is:

Author: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Date:   Wed Apr 1 13:36:57 2015 +0100

    ARM: 8338/1: kexec: Relax SMP validation to improve DT compatibility
    
    When trying to kexec into a new kernel on a platform where multiple CPU
    cores are present, but no SMP bringup code is available yet, the
    kexec_load system call fails with:
    
        kexec_load failed: Invalid argument
    
    The SMP test added to machine_kexec_prepare() in commit 2103f6cba61a8b8b
    (&quot;ARM: 7807/1: kexec: validate CPU hotplug support&quot;) wants to prohibit
    kexec on SMP platforms where it cannot disable secondary CPUs.
    However, this test is too strict: if the secondary CPUs couldn&apos;t be
    enabled in the first place, there&apos;s no need to disable them later at
    kexec time.  Hence skip the test in the absence of SMP bringup code.
    
    This allows to add all CPU cores to the DTS from the beginning, without
    having to implement SMP bringup first, improving DT compatibility.
    
    Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
    Acked-by: Stephen Warren &lt;swarren@nvidia.com&gt;
    Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
    [cherry-picked fee3fd4fd2ad13 from 4.1-rc1]
    Signed-off-by: Fabio Estevam &lt;festevam@gmail.com&gt;
    Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>