Bug 93329 - [BXT-P APL] Suspend to RAM does not work
Summary: [BXT-P APL] Suspend to RAM does not work
Status: CLOSED DUPLICATE of bug 93684
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-10 15:08 UTC by cprigent
Modified: 2017-07-24 22:43 UTC (History)
4 users (show)

See Also:
i915 platform: BXT
i915 features: power/suspend-resume


Attachments
dmesg.log (134.26 KB, text/plain)
2016-01-08 21:38 UTC, Humberto Israel Perez Rodriguez
no flags Details
Xorg.log (17.94 KB, text/plain)
2016-01-08 21:38 UTC, Humberto Israel Perez Rodriguez
no flags Details
dmesg2.log (248.29 KB, text/plain)
2016-01-14 19:59 UTC, Humberto Israel Perez Rodriguez
no flags Details

Description cprigent 2015-12-10 15:08:32 UTC
Q4 stack release setup:
-----------------------
Hardware 
Platform: Broxton P A0 Platform 
CPU Name : Intel(R) @ 1.2 GHz (family: 6, model: 92, stepping: 8) – 4 cores
SoC : BROXTON-P A0
CRB : Apollo Lake RVP Fab1 
BIOS (IFWI Version): APLK_IFWI_X64_R_2015_44_3_00
BIOS : APLKRVPA.X64.0105.R45.1510272122
CSE FW : 3.0.0.1049
KSC : 1.04
Linux distribution: Ubuntu 15.10 64 bits
Kernel: tag testing 2015-11-20 from http://cgit.freedesktop.org/drm-intel/tag/?h=drm-intel-testing&id=drm-intel-testing-2015-11-20
Bios v105_48
xorg-server-1.18.0 from http://cgit.freedesktop.org/xorg/xserver
libdrm-2.4.65 from http://cgit.freedesktop.org/mesa/drm/
xf86-video-intel 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
mesa-11.0.4 from http://cgit.freedesktop.org/mesa/mesa/
libva-1.6.1 from http://cgit.freedesktop.org/libva/
vaapi-intel-driver 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
DMC 1.06 firmware from https://01.org/linuxgraphics/intel-linux-graphics-firmwares

Steps:
------
1. Execute command
sudo -s
echo mem > /sys/power/state
2. Wait 30 seconds
3. Resume with keyboard

Actual result:
--------------
Suspend to Ram and resume do not work

Expected result:
-----------------
Suspend to RAM and resume work
Comment 1 cprigent 2015-12-10 15:09:27 UTC
Assigned to me to provide logs and details of investigation
Comment 2 Jesse Barnes 2015-12-17 15:09:27 UTC
Can you try to capture logs either with netconsole or a serial console?  Also is it confirmed that i915 is the culprit here?  Does the failure to resume also occur without i915 loaded or compiled in?
Comment 3 Matt Roper 2015-12-17 16:25:51 UTC
Please try downgrading your DMC firmware to version 1.05 to see if that makes a difference; my team has seen some suspend/resume failures that only happen with the 1.06 DMC.

Also, as Jesse mentioned, ensure that i915 is the culprit by trying to suspend/resume without it in the picture.  Some of our early silicon has suspend/resume issues that are unrelated to software stack.
Comment 4 Bob Paauwe 2015-12-17 16:29:04 UTC
In addition to what Matt said. With version 1.06, the system hangs when entering suspend.  With version 1.05, the system will suspend and resume, but hangs shortly after resume.  

It looks like a combination of commit eade444272c303cac771bf4500b5b40ca119ad31  and the 1.06 firmware causes the hang on suspend.  We haven't tracked down the hang shortly after resume yet.
Comment 5 Jesse Barnes 2015-12-17 22:16:50 UTC
Also, was this captured by the BAT CI tests?  If not, we need to figure out why...
Comment 6 cprigent 2016-01-07 16:38:57 UTC
Assigned to Humberto:
Please try without i915 and also with DMC 1.05
Comment 7 Humberto Israel Perez Rodriguez 2016-01-08 21:38:19 UTC
Hi :

With DMC 1.06 for BXT-P and kernel drm-intel-testing with i915 loaded, after send the platform to S3 with the next command (echo mem > /sys/power/state) I can confirm that the system enters to S3 across postcode (0003) but when I try to resume after some time it seems that the system never resume from s3 instead looks like that the system reboots, the same behavior occurs with the kernel without i915 loaded and dmc 1.05 from (https://01.org/linuxgraphics/downloads/bxtdmcver105) also I have to comment that with i915 loaded and the below configuration the performance is affected in graphical environment as well in ttys, but it seems to improve without i915.

attached : Xorg.log and dmesg.log


Graphic stack versions  :
-----------------------------------------
cairo version: 1.15.2 / commit :  db8a7f1 
drm version :  libdrm-2.4.66  / commit : b38a4b2 
intel-driver : 1.6.2 / commit: 683edee
libva version : libva-1.6.2 / commit : 304bc13
mesa version : mesa-11.0.8 / commit : 261daab 
xf86-video-intel version : 2.99.917  / commit : baec802 
xserver version :xorg-server-1.18.0 / commit :7921764 

kernel drm-intel-testing:
------------------------------------------
commit 91587c722c28c4116dedbfbf08aa874377bc76f8
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Dec 4 17:35:54 2015 +0100

    drm-intel-nightly: 2015y-12m-04d-16h-35m-07s UTC integration manifest

kernel version : 4.4.0-rc3
git url        : git://anongit.freedesktop.org/drm-intel
git branch     : drm-intel-testing
git describe   : drm-intel-next-2015-11-20-rebased-13721-g91587c7


Kernel without i915 loaded:
---------------------------------------------

commit b54e0f487f15213e85ca80c9ae9b953eb617cb42
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Thu Jan 7 11:52:35 2016 +0200
drm-intel-nightly: 2016y-01m-07d-09h-52m-06s UTC integration manifest
Comment 8 Humberto Israel Perez Rodriguez 2016-01-08 21:38:38 UTC
Created attachment 120911 [details]
dmesg.log
Comment 9 Humberto Israel Perez Rodriguez 2016-01-08 21:38:55 UTC
Created attachment 120912 [details]
Xorg.log
Comment 10 Jesse Barnes 2016-01-11 16:37:49 UTC
Ok if this occurs w/o i915 loaded we have a separate issue to fix up first before we can debug anything i915 specific like performance.
Comment 11 yu.c.chen@intel.com 2016-01-13 03:09:09 UTC
could you please help test S3 in a minimal Linux kernel(w/o graphic loaded), how about
append ‘init=/bin/bash nomodeset text’ in command line and test 
/sys/power/pm_test with (from right to left respectively):

[none] core processors platform devices freezer

thanks
Comment 12 Humberto Israel Perez Rodriguez 2016-01-14 19:56:43 UTC
(In reply to yu.c.chen@intel.com from comment #11)
> could you please help test S3 in a minimal Linux kernel(w/o graphic loaded),
> how about
> append ‘init=/bin/bash nomodeset text’ in command line and test 
> /sys/power/pm_test with (from right to left respectively):
> 
> [none] core processors platform devices freezer
> 
> thanks

Hi Yu :

I was not able to boot the BXT-P with the option "init=/bin/bash" because simply the DUT does not boot, it always stop in initramfs prompt, on the other hand i was able to boot with "nomodeset and text" options in the grub.
So once there i did one by one command and then i send the DUT to sleep (echo mem > /sys/power/state), and after each command the DUT returns (please see dmesg.log and test.log)

As well i have to comment that i've update the BIOS version and KSC of my BXT-P

Ifwi       : 119.10
Bxt SOC    : A0
KSC        : 1.06
GOP        : 10.0.1022
Board ID   : APL RVP 1A
Comment 13 Humberto Israel Perez Rodriguez 2016-01-14 19:59:17 UTC
as well i tried with the following configuration :

with default cmdline (without "text nomodeset")

Command  : echo freezer > /sys/power/pm_test
Behavior : after type the below command and send the DUT to S3 state with the command (echo mem > /sys/powe/state) looks like that the screen is frozen for a couple of seconds and then the screen come back normal, also i have to comment that the postcode remains the same '00AD'

Command  : echo devices > /sys/power/pm_test
Behavior : after type the below command and send the DUT to S3 state with the command (echo mem > /sys/powe/state) the screen goes black and returns after a few seconds and then come back normal, also i have to comment that the postcode remains the same '00AD'. 

Command  : echo platform > /sys/power/pm_test
Behavior : after type the below command and send the DUT to S3 state with the command (echo mem > /sys/powe/state) the DUT change its postcode to "0003" and the screen goes back for a few seconds and then come back normal.

Command  : echo processors > /sys/power/pm_test
Behavior : after type the below command and send the DUT to S3 state with the command (echo mem > /sys/powe/state) the screen goes black and returns after a few seconds and then come back normal, also the postcode remains the same as "0003"

Command  : echo core> /sys/power/pm_test
Behavior : after type the below command and send the DUT to S3 state with the command (echo mem > /sys/powe/state) the screen goes black and returns after a few seconds and then come back normal, also the postcode remains the same as "0003"

Please see the attachements :
dmesg2.log
Comment 14 Humberto Israel Perez Rodriguez 2016-01-14 19:59:49 UTC
Created attachment 121044 [details]
dmesg2.log
Comment 15 Rodrigo Vivi 2016-01-15 04:10:43 UTC
Let's close this for now here while we aren't sure it is a graphics related issue since we've seen it without i915 loaded.

*** This bug has been marked as a duplicate of bug 93684 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.