Bug 96736

Summary: kernel 4.6 regression: PSR causes screen to flash
Product: DRI Reporter: xbx <xavierb>
Component: DRM/IntelAssignee: Jim Bride <jim.bride>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs, przanoni, rodrigo.vivi, subs
Version: unspecifiedKeywords: bisected, regression
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: HSW i915 features: display/PSR
Attachments:
Description Flags
dmesg drm.debug=0xe
none
/sys/kernel/debug/dri/0/i915_edp_psr_status
none
lspci -vv none

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]
/sys/kernel/debug/dri/0/i915_edp_psr_status
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.