<?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>4337</bug_id>
          
          <creation_ts>2013-04-18 05:22:44 +0000</creation_ts>
          <short_desc>[SYS940X] S3 issue when booting the installed yocto on sd card</short_desc>
          <delta_ts>2014-06-09 22:46:03 +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>BSPs</product>
          <component>bsps-meta-intel</component>
          <version>1.3</version>
          <rep_platform>TunnelCreek</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Qian Yi">yi.qian</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          <cc>dvhart</cc>
    
    <cc>tom.zanussi</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>32331</commentid>
    <comment_count>0</comment_count>
    <who name="Qian Yi">yi.qian</who>
    <bug_when>2013-04-18 05:22:44 +0000</bug_when>
    <thetext>Many errors will be popped up in yocto when the system resume back from s3.This issue will only happen when we used the installed yocto on the sd card. If we use the yocto on usb disk, there is no such issue. After these errors were reported, all the shell commands were not available. It looks like root file system partition was not successfully mounted. At the same time, I tried s3 sleep with the yocto on sd card using the board shipped bios instead of OC bios and found on the shipped bios, this issue still occurred.

the below are the error messages:

pch_gpio 0000:02:00.2: pci_enable_wake Failed --22 EXT3-fs error (device mmcblk0p2): ext3_find_entry: reading directory #236177 off set 0 EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=156027, block=622674
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=105940, block=425990
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=105940, block=425990
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=105940, block=425990
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=228158, block=917513
EXT3-fs (mmcblk0p2): previous I/O error to superblock detected EXT3-fs (mmcblk0p2): I/O error while writing superblock @sys940x:/home/rEXT3-fs error (device mmcblk0p2): ext3_find_entry: reading direc tory #236177 offset 0 oot# EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=399135, block=1606077
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=277179, block=1114131
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=105928, block=425989
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155823, block=622661
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=105928, block=425989
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155978, block=622671
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155978, block=622671
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=156027, block=622674
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=105928, block=425989
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155823, block=622661
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=105928, block=425989
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155978, block=622671
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155978, block=622671
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=156027, block=622674
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=105928, block=425989
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155823, block=622661
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=105928, block=425989
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155978, block=622671
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155978, block=622671
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=156027, block=622674
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=105928, block=425989
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155823, block=622661
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=105928, block=425989
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155978, block=622671
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=155978, block=622671
EXT3-fs (mmcblk0p2): I/O error while writing superblock EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=156027, block=622674
EXT3-fs (mmcblk0p2): I/O error while writing superblock
journal_bmap: journal block not found at offset 234 on mmcblk0p2 Aborting journal on device mmcblk0p2.
JBD: I/O error detected when updating journal superblock for mmcblk0p2.

EXT3-fs error (device mmcblk0p2): ext3_get_inode_loc: unable to read inode block
 - inode=228158, block=917513
EXT3-fs (mmcblk0p2): I/O error while writing superblock</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32359</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-04-18 15:01:34 +0000</bug_when>
    <thetext>The exact board you observed this on was an Inforce SYS9450 I believe, is that correct?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32370</commentid>
    <comment_count>2</comment_count>
    <who name="Qian Yi">yi.qian</who>
    <bug_when>2013-04-19 01:45:17 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The exact board you observed this on was an Inforce SYS9450 I believe, is
&gt; that correct?
Yes, correct</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32376</commentid>
    <comment_count>3</comment_count>
    <who name="Qian Yi">yi.qian</who>
    <bug_when>2013-04-19 08:17:06 +0000</bug_when>
    <thetext>These two days, I did one more investigation:before the bios jump to the os s3 wake vector, I used itp to reinitialize the sdio controller, eg:reset the controller, set voltage, configure the speed, clock , bus width, timeout, etc. And then I released the halt in itp and let the system go, but the error still existed. Another new symptom I found: this error will sometimes also occur after we type the command &quot;echo mem&gt;/sys/power/state&quot; before the hardware really goes to sleep.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32608</commentid>
    <comment_count>4</comment_count>
    <who name="Qian Yi">yi.qian</who>
    <bug_when>2013-04-25 01:49:44 +0000</bug_when>
    <thetext>Darren helpped us build a new image with CONFIG_MMC_UNSAFE_RESUME enabled. The new image can solve this issue, so this bug can be closed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32611</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-04-25 04:55:11 +0000</bug_when>
    <thetext>Thanks for reporting the issue and your help testing the images Quian Yi. We&apos;ll keep this open until we have a fix committed to the source repository. I&apos;m not sure what that will be yet, but we at least know where to look.

The problem with using CONFIG_MMC_UNSAFE_RESUME on a board with a removable MMC device is that it assumes the card will not be removed while suspended. This cannot be guaranteed unless the device is either inaccessible or soldered down. The option doesn&apos;t fix the underlying cause, it just avoids the problem but not bothering to properly prepare for and restore from suspend.

More investigation is required for a proper fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43833</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-06-09 22:46:03 +0000</bug_when>
    <thetext>The SYS940X has been merged in master with intel-core2-32 as the emgd driver is no longer available. As we have not seen much interest in this particular platform, I am marking this as WONTFIX. We can reopen if someone has a real-world issue with it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>