Bug 104228 - [CNL] HDMI video doesn't come back after S3 state , only with HDMI connected
Summary: [CNL] HDMI video doesn't come back after S3 state , only with HDMI connected
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-12 16:34 UTC by Elio
Modified: 2018-04-11 16:16 UTC (History)
3 users (show)

See Also:
i915 platform: CNL
i915 features: display/HDMI


Attachments
dmesg log (322.92 KB, text/plain)
2017-12-12 16:34 UTC, Elio
no flags Details
dual screen (658.44 KB, text/plain)
2017-12-12 16:36 UTC, Elio
no flags Details
new dmesg (15.64 KB, text/plain)
2018-02-15 20:44 UTC, Armando Antonio
no flags Details

Description Elio 2017-12-12 16:34:15 UTC
Created attachment 136118 [details]
dmesg log

System Environment
 =======
 Ubuntu 17.04 
 4.15.0-rc2-drm-intel-qa-ww49-commit-bdf9b36+
 Default graphic configuration from Ubuntu 17.04 without any kind of firmware (No DMC GuC or HuC)
 Regression?
 =======
 No

Bug detailed description
 =======
 After booting up without any background process, the system is not able to recover image on Acer HDMI monitor after a S3 instruction "#echo mem > /sys/power/state"
 Reproduce Steps
 ==============
 login in to your linux account
 open terminal and execute as sudo "echo mem > /sys/power/state"
 Expected Result
 =============
 The system should recover getting back image on HDMI monitor
 Actual Result
 ===========
 No screen available but system is up through ssh
 Analysis & Root Cause
 ===================
 This problem is not present with eDP
Comment 1 Elio 2017-12-12 16:36:17 UTC
Created attachment 136119 [details]
dual screen
Comment 2 Elio 2017-12-12 16:37:07 UTC
This problem is not present with HDMI + eDP connection
Comment 3 Armando Antonio 2018-02-15 20:44:17 UTC
This issues still happen on CNL with the following configuration:

======================================
             Software
======================================
kernel version              : 4.16.0-rc1-drm-tip-ww7-commit-b955007+
hostname                    : gfx-CannonLake-Client-Platform
architecture                : x86_64
os version                  : Ubuntu 17.10
os codename                 : artful
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
======================================
grep: /opt/X11R7/var/log/Xorg.0.log: No such file or directory

======================================
             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.00GHz
gpu card                   : Intel Corporation Device 5a49 (rev 03) (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               : 2
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.7
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
======================================
quiet splash i915.alpha_support=1 drm.debug=0x1e


dmesg summary

[  166.216916] IRQ 135: no longer affine to CPU1
[  166.217927] smpboot: CPU 1 is now offline
[  166.240881] IRQ 32: no longer affine to CPU2
[  166.240894] IRQ 122: no longer affine to CPU2
[  166.240898] IRQ 124: no longer affine to CPU2
[  166.240902] IRQ 129: no longer affine to CPU2
[  166.240913] IRQ 130: no longer affine to CPU2
[  166.240917] IRQ 133: no longer affine to CPU2
[  166.240927] IRQ 134: no longer affine to CPU2
[  166.241938] smpboot: CPU 2 is now offline
[  166.264656] IRQ 1: no longer affine to CPU3
[  166.264668] IRQ 8: no longer affine to CPU3
[  166.265718] smpboot: CPU 3 is now offline
[  166.274054] ACPI: Low-level resume complete
[  166.274397] ACPI: EC: EC started
[  166.274400] PM: Restoring platform NVS memory
[  166.275991] Enabling non-boot CPUs ...
[  166.276294] x86: Booting SMP configuration:
[  166.276298] smpboot: Booting Node 0 Processor 1 APIC 0x2
[  166.278576] x86/cpu: Activated the Intel User Mode Instruction Prevention (UMIP) CPU feature
[  166.283532]  cache: parent cpu1 should not be sleeping
[  166.286427] CPU1 is up
[  166.286738] smpboot: Booting Node 0 Process

attached new dmesg
Comment 4 Armando Antonio 2018-02-15 20:44:42 UTC
Created attachment 137382 [details]
new dmesg
Comment 5 Rodrigo Vivi 2018-02-28 23:21:01 UTC
That's bizarre... no i915 activity at all after the resume ?!
and only with HDMI?

Imre, have you ever seen a log like this? any idea?
Comment 6 Imre Deak 2018-03-01 00:19:43 UTC
(In reply to Rodrigo Vivi from comment #5)
> That's bizarre... no i915 activity at all after the resume ?!
> and only with HDMI?
> 
> Imre, have you ever seen a log like this? any idea?

Would be strange if dmesg was really truncated like that. I doubt that if ssh still works. Armando, could you make sure that the log after resume is the full output provided by dmesg?

The first dmesg attached to this bug resumes properly, HDMI display is enabled during resume and then after a 5 second delay there is a modeset disabling the display. That modeset looks like coming from user space. Is this also reproducible from an FB VT console?
Comment 7 Jani Saarinen 2018-03-29 07:11:55 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 8 Elizabeth 2018-04-11 16:16:13 UTC
Cannot reproduce anymore with the following configuration. Closing.

======================================
             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


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.