Bug 96736 - kernel 4.6 regression: PSR causes screen to flash
Summary: kernel 4.6 regression: PSR causes screen to flash
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Jim Bride
QA Contact: Intel GFX Bugs mailing list
Keywords: bisected, regression
Depends on:
Reported: 2016-06-29 21:54 UTC by xbx
Modified: 2016-12-15 07:54 UTC (History)
4 users (show)

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

dmesg drm.debug=0xe (255.53 KB, text/plain)
2016-06-29 21:54 UTC, xbx
no flags Details
/sys/kernel/debug/dri/0/i915_edp_psr_status (201 bytes, text/plain)
2016-06-29 21:56 UTC, xbx
no flags Details
lspci -vv (11.80 KB, text/plain)
2016-06-29 21:57 UTC, xbx
no flags Details

Description xbx 2016-06-29 21:54:41 UTC
Created attachment 124786 [details]
dmesg drm.debug=0xe

(maybe dup of #96704)

Since updating to linux 4.6, the screen flashes (to black screen).
(tested linux mainline 4.7 git, problem still occurs)

The problems appears shortly after booting the kernel, before starting X. (and persits forever) 
if the screen is updated continuously (say, by moving the mouse or running glxgear), the flashing stop.

git bisect points to 9b58e352b463f2f096d699d47b1c4c57879b617f
drm/i915: Enable PSR by default on Haswell and Broadwell.

Additional Information
The system is Toshiba Satellite P70-B11-R. 
When booting with "i915.enable_psr=0" the problem goes away.
And neither  "i915.enable_psr=2" nor  "i915.enable_psr=3" fix the problem - it does seem the flashing frequency is a bit different, though.

Steps To Reproduce
Just start the system. I'm using gnome, but the screen flahsing can be seen even in console before gdm starts.
Comment 1 xbx 2016-06-29 21:56:10 UTC
Created attachment 124787 [details]
Comment 2 xbx 2016-06-29 21:57:25 UTC
Created attachment 124788 [details]
lspci -vv
Comment 3 Störm Poorun 2016-07-24 14:39:58 UTC
Confirmed, I have the same issue, responds in the same way.

With Linux 4.6 and 4.7.

Screen flashes (to black screen) from after booting kernel.

I'm running Manjaro KDE (up-to-date)

System: Lenovo Yoga 2 Pro, (also uses Intel i915)
Comment 4 yann 2016-12-14 08:20:53 UTC
xbx & Störm, the following submitted patch https://patchwork.freedesktop.org/patch/127188/ is going to set psr by default because it's known to cause bugs -until we get proper fix. As a general rule, we really don't recommend setting any i915 options to enable or disable features.
Comment 5 Paulo Zanoni 2016-12-14 20:29:26 UTC
We just merged a patch to disable PSR by default:

commit 2ee7dc497e348eecbb82adbb1ea9e9a7e29fe921
    drm/i915: disable PSR by default on HSW/BDW

This commit is marked for inclusion in the stable Kernels, so it should reach your Linux distribution at some point soon.

Thank you for your bug report. In case you think the problem still happens, please feel free to reopen the bug.

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.