<?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>13234</bug_id>
          
          <creation_ts>2019-03-25 06:59:35 +0000</creation_ts>
          <short_desc>[2.7 M3 RC1] qemumips &amp; qemumips64: failed to shutdown</short_desc>
          <delta_ts>2019-04-11 14:55:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>virtual machines</component>
          <version>2.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="yeoh ee peng">ee.peng.yeoh</reporter>
          <assigned_to name="Kevin Hao">kexin.hao</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <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>83309</commentid>
    <comment_count>0</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2019-03-25 06:59:35 +0000</bug_when>
    <thetext>Both qemumips and qemumips64 both failed to shutdown for 2.7 M3 rc1, where these qemus were able to shutdown prior to 2.7 M3 rc1. 
Currently, both qemumips and qemumips64 hang/stuck while shutting down, need to manually click on the &quot;x&quot; button to close the qemu.

Steps to reproduce:
1. Git clone poky
2. Git checkout poky: 753e2a0ede4449917c75353b57f13bbafe70fac8
3. Configure MACHINE to be qemumips or qemumips64
4. Bitbake core-image-minimal
5. Runqemu to boot qemumips or qemumips64
6. Perform shutdown in command line (eg. shutdown -h now)

Expected:
Qemu instance to close automatically</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83410</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-04-02 19:46:49 +0000</bug_when>
    <thetext>As a data point this works with the 4.18 kernel but fails with the 4.19 kernel for qemumips so something changed between those two kernel versions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83411</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-04-02 20:02:58 +0000</bug_when>
    <thetext>qemumips and qemumips64 need new defconfig entries:

CONFIG_POWER_RESET=y
CONFIG_POWER_RESET_PIIX4_POWEROFF=y

See https://github.com/torvalds/linux/commit/dd129c6374e90e665ec022019bcc2f392f25cf2c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83412</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-04-02 20:03:13 +0000</bug_when>
    <thetext>(I can confirm that 5.0 works with this added)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83416</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2019-04-03 02:53:42 +0000</bug_when>
    <thetext>Makes sense to me. If Kevin hasn&apos;t gotten to this by next week, I can also take care of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83427</commentid>
    <comment_count>5</comment_count>
    <who name="Kevin Hao">kexin.hao</who>
    <bug_when>2019-04-03 11:39:47 +0000</bug_when>
    <thetext>Thanks Richard, patch sent out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83516</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-04-11 14:55:35 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=87a8700a37145b0355cb3eb3c495e72673f62930</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>