Bug 90049 - [HSW] force restore modeset fails to invert connector<->pipe assignment
Summary: [HSW] force restore modeset fails to invert connector<->pipe assignment
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: high major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-16 07:42 UTC by Victor NOEL
Modified: 2017-07-24 22:47 UTC (History)
1 user (show)

See Also:
i915 platform: HSW
i915 features: display/Other


Attachments
Logs from the kernel of the crash (17.66 KB, text/plain)
2015-04-16 07:42 UTC, Victor NOEL
no flags Details
Logs from the kernel (with drm.debug=0xe) (454.98 KB, text/plain)
2015-06-01 11:06 UTC, Victor NOEL
no flags Details

Description Victor NOEL 2015-04-16 07:42:13 UTC
Created attachment 115110 [details]
Logs from the kernel of the crash

Hi,

I am using xf86-video-intel 2.99.917-5 on archlinux and everytime my computer comes back from hibernate (I go to hibernate using systemctl hibernate) the intel driver seems to crash, but everything else seems to be loaded fine. So I can't just see what's happening or something like that, because applications running on xorg are up according to the logs.

I attached some logs of the errors in the logs.

In particular there is these errors in red:

[drm:check_crtc_state [i915]] *ERROR* mismatch in adjusted_mode.flags(DRM_MODE_FLAG_PHSYNC) (expected 1, found 0)
[drm:intel_set_pch_fifo_underrun_reporting [i915]] *ERROR* uncleared pch fifo underrun on pch transcoder A
[drm:check_crtc_state [i915]] *ERROR* mismatch in has_pch_encoder (expected 1, found 0)
[drm:check_crtc_state [i915]] *ERROR* mismatch in has_pch_encoder (expected 1, found 0)
[drm:check_crtc_state [i915]] *ERROR* mismatch in has_pch_encoder (expected 1, found 0)

Thanks,
Comment 1 Ander Conselvan de Oliveira 2015-05-29 06:35:58 UTC
Please add drm.debug=0xe to your kernel command line, reproduce the problem again and attach the output of dmesg to this bug report.
Comment 2 Victor NOEL 2015-06-01 11:06:50 UTC
Created attachment 116197 [details]
Logs from the kernel (with drm.debug=0xe)

Hi, here they are!

So the logs starts before the hibernate, I trigger hibernation with "systemctl hibernate" (at around 12:57:21 in the logs), the computer stops, and then I power on the computer (at around 12:58:09), and I get the black screen and everything is frozen.
Finally, I forcibly (with the physical power button) reboot (I guess after 12:58:35) and got the logs with "journalctl --system -b -1".

Thanks!
Comment 3 Ander Conselvan de Oliveira 2015-06-23 09:05:26 UTC
Before suspend, VGA is enabled on pipe A and eDP is enable on pipe B. After suspend/resume, the BIOS sets up eDP on pipe A and VGA on pipe B, and the force restore modeset fails, since it tries to enable VGA on pipe A without disabling pipe B.
Comment 4 Jesse Barnes 2015-08-04 18:00:01 UTC
Looks like a bug in the modeset code.  Worth re-testing with the atomic bits in drm-intel-nightly...
Comment 5 cprigent 2015-11-17 17:48:15 UTC
Bug scrub:
Resolved.
Please re-open if this is still an issue.
Comment 6 cprigent 2015-11-17 17:48:27 UTC
So closed
Comment 7 Victor NOEL 2015-11-18 16:05:56 UTC
Currently (with xf86-video-intel 1:2.99.917+478+gdf72bc5-2 on archlinux) and xorg 1.17.4, I still have some issues but it is not as terrible as before.

Basically, when I start the computer again, my laptop screen is black and my external screen is all scrambled (as if the resolution was too big and I could see just a quarter of it, and there is lines missing and it's terribly ugly).
I just need to unplug the external screen and replug it to get back a normal image, and then I can login, continue my previous session and everything works as it should.

There is these errors in the logs:
nov. 18 17:01:04 jamon kernel:  [<ffffffff8108c8d0>] ? process_one_work+0x440/0x440
nov. 18 17:01:04 jamon kernel:  [<ffffffff81092578>] kthread+0xd8/0xf0
nov. 18 17:01:04 jamon kernel:  [<ffffffff810924a0>] ? kthread_worker_fn+0x170/0x170
nov. 18 17:01:04 jamon kernel:  [<ffffffff8157665f>] ret_from_fork+0x3f/0x70
nov. 18 17:01:04 jamon kernel:  [<ffffffff810924a0>] ? kthread_worker_fn+0x170/0x170
nov. 18 17:01:04 jamon kernel: ---[ end trace 0f6aae68bf1082a9 ]---
nov. 18 17:01:04 jamon kernel: ------------[ cut here ]------------
nov. 18 17:01:04 jamon kernel: WARNING: CPU: 3 PID: 11438 at drivers/gpu/drm/i915/intel_display.c:12218 intel_modeset_check_state+0x501/0xb50 [i915]()
nov. 18 17:01:04 jamon kernel: encoder's stage crtc doesn't match current crtc
nov. 18 17:01:04 jamon kernel: Modules linked in: cmac ecb rfcomm fuse bnep bbswitch(O) snd_hda_codec_hdmi btrfs xor arc4 uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev media rai
nov. 18 17:01:04 jamon kernel:  snd_soc_rl6231 battery snd_soc_core tpm_infineon tpm_tis tpm snd_compress snd_pcm_dmaengine ac97_bus snd_pcm snd_timer wmi video snd soundcore i2c_hid dw_dmac gpio_lynxpoint dw_dm
nov. 18 17:01:04 jamon kernel: CPU: 3 PID: 11438 Comm: kworker/u8:3 Tainted: G        W  O    4.2.5-1-ARCH #1
nov. 18 17:01:04 jamon kernel: Hardware name: Notebook                         W65_67SJ                        /W65_67SJ                        , BIOS 1.03.05 04/01/2014
nov. 18 17:01:04 jamon kernel: Workqueue: events_unbound async_run_entry_fn
nov. 18 17:01:04 jamon kernel:  0000000000000000 0000000084f6563b ffff880087067ad8 ffffffff81570d0a
nov. 18 17:01:04 jamon kernel:  0000000000000000 ffff880087067b30 ffff880087067b18 ffffffff810748a6
nov. 18 17:01:04 jamon kernel:  ffff880087067b18 0000000000000001 ffff8800c4b13800 ffff8800c4b13b50
nov. 18 17:01:04 jamon kernel: Call Trace:
nov. 18 17:01:04 jamon kernel:  [<ffffffff81570d0a>] dump_stack+0x4c/0x6e
nov. 18 17:01:04 jamon kernel:  [<ffffffff810748a6>] warn_slowpath_common+0x86/0xc0
nov. 18 17:01:04 jamon kernel:  [<ffffffff81074935>] warn_slowpath_fmt+0x55/0x70
nov. 18 17:01:04 jamon kernel:  [<ffffffffa07fca31>] intel_modeset_check_state+0x501/0xb50 [i915]
nov. 18 17:01:04 jamon kernel:  [<ffffffffa07fd11e>] ? intel_set_mode+0x2e/0x60 [i915]
nov. 18 17:01:04 jamon kernel:  [<ffffffffa07fdfdc>] ? intel_crtc_restore_mode+0x13c/0x1f0 [i915]
nov. 18 17:01:04 jamon kernel:  [<ffffffffa07fee4e>] intel_modeset_setup_hw_state+0x8de/0xd50 [i915]
nov. 18 17:01:04 jamon kernel:  [<ffffffffa07881dc>] i915_drm_resume+0xcc/0x160 [i915]
nov. 18 17:01:04 jamon kernel:  [<ffffffffa0788295>] i915_pm_resume+0x25/0x30 [i915]
nov. 18 17:01:04 jamon kernel:  [<ffffffff812fb171>] pci_pm_restore+0x81/0xc0
nov. 18 17:01:04 jamon kernel:  [<ffffffff812fb0f0>] ? pci_pm_suspend_noirq+0x190/0x190
nov. 18 17:01:04 jamon kernel:  [<ffffffff813e098e>] dpm_run_callback+0x4e/0x130
nov. 18 17:01:04 jamon kernel:  [<ffffffff813e0f23>] device_resume+0xd3/0x1f0
nov. 18 17:01:04 jamon kernel:  [<ffffffff813e1061>] async_resume+0x21/0x50
nov. 18 17:01:04 jamon kernel:  [<ffffffff81094d5c>] async_run_entry_fn+0x4c/0x160
nov. 18 17:01:04 jamon kernel:  [<ffffffff8108c5db>] process_one_work+0x14b/0x440
nov. 18 17:01:04 jamon kernel:  [<ffffffff8108c918>] worker_thread+0x48/0x4a0
nov. 18 17:01:04 jamon kernel:  [<ffffffff8108c8d0>] ? process_one_work+0x440/0x440
nov. 18 17:01:04 jamon kernel:  [<ffffffff8108c8d0>] ? process_one_work+0x440/0x440
nov. 18 17:01:04 jamon kernel:  [<ffffffff81092578>] kthread+0xd8/0xf0
nov. 18 17:01:04 jamon kernel:  [<ffffffff810924a0>] ? kthread_worker_fn+0x170/0x170
nov. 18 17:01:04 jamon kernel:  [<ffffffff8157665f>] ret_from_fork+0x3f/0x70
nov. 18 17:01:04 jamon kernel:  [<ffffffff810924a0>] ? kthread_worker_fn+0x170/0x170
nov. 18 17:01:04 jamon kernel: ---[ end trace 0f6aae68bf1082aa ]---
Comment 8 Jani Nikula 2016-06-17 16:27:22 UTC
(In reply to cprigent from comment #5)
> Please re-open if this is still an issue.

...with the latest kernels.


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.