<?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>7471</bug_id>
          
          <creation_ts>2015-03-17 15:44:25 +0000</creation_ts>
          <short_desc>[MinnowBoard MAX] System fails to suspend twice in a row with i915 loaded</short_desc>
          <delta_ts>2015-06-02 23:07:17 +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>kernel</component>
          <version>unspecified</version>
          <rep_platform>MinnowBoard Max</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>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>sjolley.yp.pm</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>49497</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2015-03-17 15:44:25 +0000</bug_when>
    <thetext>This is being worked upstream and tracked here:
https://bugs.freedesktop.org/show_bug.cgi?id=89611

For reference to others, here is the text of the freedesktop bug submission. Please follow-up there. This bug will be closed when the freedesktop bug is closed.

I&apos;ve observed that from at least 3.17.1 through 3.19.1 (I don&apos;t know if
this worked previously), the MinnowBoard MAX (Firmware 0.77 or 0.78) will
suspend and resume successfully once, but fail to suspend after the
initial resume.

$ echo mem &gt; /sys/power/state
&lt;suspends successfully&gt;
&lt;press and release power button&gt;
&lt;system resumes&gt;

The following Intel DRM PM warning appears on the console:
[   67.772124] ------------[ cut here ]------------
[   67.784552] WARNING: CPU: 0 PID: 570 at
drivers/gpu/drm/i915/intel_pm.c:5043
intel_gen6_powersave_work+0xf6a/0x11d0()
[   67.803814] WARN_ON(pctx_addr != dev_priv-&gt;mm.stolen_base +
dev_priv-&gt;vlv_pctx-&gt;stolen-&gt;start)
[   67.813591] Modules linked in: iptable_nat nf_nat_ipv4 nf_nat i2c_i801
dw_dmac dw_dmac_core i2c_designware_platform i2c_designware_core
spi_pxa2xx_platform
[   67.844750] CPU: 0 PID: 570 Comm: kworker/0:1 Tainted: G        W
3.19.1 #2
[   67.860960] Hardware name: Circuitco MinnowBoard MAX B3
PLATFORM/MinnowBoard MAX, BIOS MNW2MAX1.X64.0078.R01.1503091142 03/09/2015
[   67.882352] Workqueue: events intel_gen6_powersave_work
[   67.896476]  ffffffff81c0b548 ffff88003a933cf8 ffffffff818b52b3
ffff88003940ea30
[   67.913321]  ffff88003a933d48 ffff88003a933d38 ffffffff8104ef85
ffff88003a933d28
[   67.928496]  ffff88003abf0000 ffff880038c00000 ffff88003abf8828
ffff88003abf88c0
[   67.942521] Call Trace:
[   67.950068]  [&lt;ffffffff818b52b3&gt;] dump_stack+0x45/0x57
[   67.960676]  [&lt;ffffffff8104ef85&gt;] warn_slowpath_common+0x85/0xc0
[   67.971700]  [&lt;ffffffff8104f001&gt;] warn_slowpath_fmt+0x41/0x50
[   67.981949]  [&lt;ffffffff81427d4a&gt;] intel_gen6_powersave_work+0xf6a/0x11d0
[   67.992920]  [&lt;ffffffff8112c953&gt;] ? vmstat_shepherd+0x123/0x140
[   68.002707]  [&lt;ffffffff81065cb0&gt;] process_one_work+0x150/0x400
[   68.012393]  [&lt;ffffffff810662bb&gt;] worker_thread+0x6b/0x480
[   68.021690]  [&lt;ffffffff81066250&gt;] ? rescuer_thread+0x2f0/0x2f0
[   68.031389]  [&lt;ffffffff8106ac06&gt;] kthread+0xd6/0xf0
[   68.040002]  [&lt;ffffffff8106ab30&gt;] ? kthread_create_on_node+0x180/0x180
[   68.050507]  [&lt;ffffffff818bd56c&gt;] ret_from_fork+0x7c/0xb0
[   68.059745]  [&lt;ffffffff8106ab30&gt;] ? kthread_create_on_node+0x180/0x180
[   68.070263] ---[ end trace be1bc8f8605e963c ]---


$ echo mem &gt; /sys/power/state
[   98.340941] PM: Syncing filesystems ... done.
[   98.357282] PM: Preparing system for mem sleep
[   98.376033] Freezing user space processes ... (elapsed 0.001 seconds)
done.
[   98.395983] Freezing remaining freezable tasks ... (elapsed 0.001
seconds) done.
[   98.416075] PM: Entering mem sleep
[   98.430013] Suspending console(s) (use no_console_suspend to debug)


The system does not suspend (display does not enter standby), and is
non-responsive to USB keyboard and serial console input.

If I blacklist the i915 module, the system will suspend and resume successfully repeatedly (I tried four in a row).

I have attached a dmesg log following the first successful resume with drm.debug=14. I saw no drm output after issuing the second suspend command.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50132</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2015-04-07 23:09:53 +0000</bug_when>
    <thetext>Patches prepared by the DRM team, currently in nightly, should land in Linux 4.1, have been cc&apos;d to stable.

Darren will monitor and work to push back to at least 3.18.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50305</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2015-04-14 19:29:03 +0000</bug_when>
    <thetext>We&apos;re waiting for these to be merged so we can backport.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51446</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2015-06-02 23:07:17 +0000</bug_when>
    <thetext>These have been merged into 3.19.5 and the meta-intel BSPs now include them in the  fido release. Marking as resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>