Bug 104576 - [CNL] Platform hang while resuming from freeze state
Summary: [CNL] Platform hang while resuming from freeze state
Status: CLOSED NOTABUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
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: 2018-01-10 21:30 UTC by Luis Botello
Modified: 2018-04-24 09:57 UTC (History)
2 users (show)

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


Attachments
dmesg (131.23 KB, text/plain)
2018-01-10 21:30 UTC, Luis Botello
no flags Details

Description Luis Botello 2018-01-10 21:30:47 UTC
Created attachment 136656 [details]
dmesg

Software Configuration:
--------------
kernel version              : 4.15.0-rc4dmc107+
architecture                : x86_64
os version                  : Ubuntu 17.04
bios revision               : 100.1
ksc                         : 1.28
libdrm                      : 2.4.89
cairo                       : 1.15.11

Hardware configuration
----------------------
motherboard model          : CannonLakeClientPlatform
manufacturer               : IntelCorporation
gpu card                   : Intel Corporation Device 5a49 (rev 03) (prog-if 00 [VGA controller])
cpu thread                 : 4
cpu core                   : 2

Steps:
------
1 - Go to freeze state:
 # echo freeze > /sys/power/state
2 - Resume from freeze by moving mouse or pressing any key

Expected Results:
---------------
System should resume properly and with no errors.

Actual results:
---------------
Platform hangs while resuming from freeze.
Comment 1 Elizabeth 2018-01-11 16:00:51 UTC
Is possible to get an error state of this??
Comment 2 Rodrigo Vivi 2018-02-28 22:16:15 UTC
Luis, are you still reproducing this with drm-tip on recent CNL?

If so, could also try without i915 loaded to see if i915 is a suitable culprit or not?

With the provided logs, and description, and on unstable pre-prod machine it is so hard to blame i915.

But if you remove i915 out of picture and suspend/resume starts magically working than it is our fault for sure.

Thanks,
Rodrigo.
Comment 3 Jani Saarinen 2018-03-29 07:11:42 UTC
First of all. Sorry about spam.
This is mass update for our bugs. 

Sorry if you feel this annoying but with this trying to understand if bug still valid or not.
If bug investigation still in progress, please ignore this and I apologize!

If you think this is not anymore valid, please comment to the bug that can be closed.
If you haven't tested with our latest pre-upstream tree(drm-tip), can you do that also to see if issue is valid there still and if you cannot see issue there, please comment to the bug.
Comment 4 Elizabeth 2018-04-11 16:31:41 UTC
I did as follow:

1 - Send platform to freeze state by doing:
     # echo freeze > /sys/power/state
2 - Press power button. It returns properly, no hangs on dmesg, no errors with PM:
     gfx@gfx-desktop:~$ dmesg | grep -i pm:
         [   57.123872] PM: suspend entry (s2idle)
         [   57.123875] PM: Syncing filesystems ...
         [  160.341653] PM: suspend exit
     gfx@gfx-desktop:~$

Though if I press any key in the keyboard the platform won't wake up, only when the power button is pressed. If freeze state is supposed to work that way, then this bug can be closed.

======================================
             Software
======================================
kernel version              : 4.16.0-mainline-4.16
hostname                    : gfx-desktop
architecture                : x86_64
os version                  : Ubuntu 17.10
os codename                 : artful
[sudo] password for gfx: kernel driver               : i915
bios revision               : 124.2
bios release date           : 02/05/2018
ksc                         : 1.36
hardware acceleration       : disabled
swap partition              : enabled on (/dev/nvme0n1p2)

======================================
        Graphic drivers
======================================
mesa                        : 18.0.0 (git-dceb1ce807
libdrm                      : 2.4.91
cairo                       : 1.14.10

======================================
             Hardware
======================================
motherboard model          : CannonLakeClientPlatform
motherboard id             : CannonLakeYLPDDR4RVP
form factor                : Laptop
manufacturer               : IntelCorporation
cpu family                 : Other
cpu family id              : 6
cpu information            : Genuine Intel(R) CPU 0000 @ 1.10GHz
gpu card                   : Intel Corporation Device 5a41 (rev 04) (prog-if 00 [VGA controller])
memory ram                 : 7.63 GB
max memory ram             : 8 GB
display resolution         : 1600x900
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 102
cpu stepping               : 3
socket                     : Other
current cd clock frequency : 336000 kHz
maximum cd clock frequency : 528000 kHz
displays connected         : HDMI-A-1

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.6
guc fw loaded             : fetch NONE, load NONE
guc version wanted        : wanted 0.0, found 0.0
guc version found         : wanted 0.0, found 0.0

======================================
             kernel parameters
======================================
splash drm.debug=0x1e i915.alpha_support=1 resume=/dev/sda2
Comment 5 Jani Saarinen 2018-04-24 06:48:00 UTC
CLosing, Imre, ok?
Comment 6 Imre Deak 2018-04-24 09:57:49 UTC
(In reply to Jani Saarinen from comment #5)
> CLosing, Imre, ok?

Yes, it doesn't seem like an i915 bug in any case, if wake-up with keyboard works. We need rtcwake functionality that could be still checked.


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.