Bug 110798 - [i915][HSW] Haswell-Core-I5-4210U notebook display doesn't flicker only with i915.modeset=0
Summary: [i915][HSW] Haswell-Core-I5-4210U notebook display doesn't flicker only with ...
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: Triaged, ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-30 17:11 UTC by Evgen
Modified: 2019-11-29 19:09 UTC (History)
1 user (show)

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


Attachments
Demonstration of flickering on right corner of the screen (6.57 MB, video/mp4)
2019-05-30 17:11 UTC, Evgen
no flags Details
dmesg with Ubuntu's mainline kernel 5.2-rc2 (373.57 KB, text/x-log)
2019-06-02 09:27 UTC, Evgen
no flags Details
dmesg with Ubuntu's kernel 5.2.0-8.9 (433.91 KB, text/plain)
2019-07-13 13:36 UTC, Evgen
no flags Details
dmesg with Ubuntu's kernel 5.2.0-8.9 with i915.modeset=0 (52.98 KB, text/plain)
2019-07-13 13:37 UTC, Evgen
no flags Details
dmesg with Ubuntu's drm-tip kernel 5.3.0-994.201908312202 (274.01 KB, text/plain)
2019-09-01 11:04 UTC, Evgen
no flags Details
dmesg with Ubuntu's drm-tip kernel 5.3.0-994.201908312202 + i915.modeset=0 (54.41 KB, text/plain)
2019-09-01 11:06 UTC, Evgen
no flags Details

Description Evgen 2019-05-30 17:11:21 UTC
Created attachment 144383 [details]
Demonstration of flickering on right corner of the screen

I have notebook HP Elitebook Folio 1040 G1 which comes with processor Intel i5-4210U.
I have few types of periodic flickering which happens only on Linux (I don't see it on Windows or BIOS).
1) If I leave mouse cursor for few seconds, then start to moving it, there's slight flicker (like display brightness changes a little)
2) On the top left corner sometimes appears artifacts (see attached video). They mostly reproduceable if you have black panel or window decoration on top.

I tried different distros and DEs:
* Ubuntu MATE 16.04 (kernel 4.4), xUbuntu 18.04 (kernel 4.15 and 5.0), Fedora 30 with GNOME Wayland, KDE Neon with Plasma 5.15 on XOrg.
Each of them suffer from this issue.
I tried different GRUB options: i915.enable_rc6=0 ; i915.enable_psr=0 ; i915.i915_enable_fbc=1.

Also tried all available Refresh Rates (from 40HZ to 120 HZ) and resolutions.

Problem completely stopped at the last measure - i915.modeset=0

For now I can't test external monitor as this notebook only have DisplayPort

---

It's possible that problem is fixable by replacing display matrix but the fact that on Windows I can't see any artifacts or flickering worries me.

Please tell which additional logs or system info I can provide

Regards,
Evgen
Comment 1 Lakshmi 2019-05-31 06:37:37 UTC
Dmesg from boot with kernel parameters drm.debug=0x1e log_buf_len=4M is needed to investigate this issue.

In addition, can you try to reproduce the error using drm-tip (https://cgit.freedesktop.org/drm-tip) and kernel parameters drm.debug=0x1e log_buf_len=4M. If the problem persists attach the full dmesg from boot.

Testing the issue with drmtip is highly recommended.
Comment 2 Evgen 2019-06-02 09:27:35 UTC
Created attachment 144413 [details]
dmesg with Ubuntu's mainline kernel 5.2-rc2

dmesg with Ubuntu's mainline kernel 5.2-rc2
GRUB parameters: drm.debug=0x1e log_buf_len=4M
Comment 3 Evgen 2019-06-02 09:37:09 UTC
Sorry, for some reason I can't even clone drm-tip
--
$ git clone git://anongit.freedesktop.org/drm-tip
Cloning into 'drm-tip'...
fatal: read error: Connection reset by peer
---
But I tried latest kernel from https://kernel.ubuntu.com/~kernel-ppa/mainline/ (v5.2-rc2) and problem persists.
dmesg is attached.
It's probably not right that Refresh Rate often jumps between 40Hz and 60Hz
[   29.977378] [drm:intel_dp_set_drrs_state [i915]] eDP Refresh Rate set to : 40Hz
[   30.456537] [drm:intel_dp_set_drrs_state [i915]] eDP Refresh Rate set to : 60Hz
[   33.973392] [drm:intel_dp_set_drrs_state [i915]] eDP Refresh Rate set to : 40Hz
[   35.055923] [drm:intel_dp_set_drrs_state [i915]] eDP Refresh Rate set to : 60Hz
Comment 4 Lakshmi 2019-06-14 08:20:01 UTC
(In reply to Evgen from comment #3)
> Sorry, for some reason I can't even clone drm-tip
> --
> $ git clone git://anongit.freedesktop.org/drm-tip
> Cloning into 'drm-tip'...
> fatal: read error: Connection reset by peer
> ---
> But I tried latest kernel from
> https://kernel.ubuntu.com/~kernel-ppa/mainline/ (v5.2-rc2) and problem
> persists.
> dmesg is attached.
> It's probably not right that Refresh Rate often jumps between 40Hz and 60Hz
> [   29.977378] [drm:intel_dp_set_drrs_state [i915]] eDP Refresh Rate set to
> : 40Hz
> [   30.456537] [drm:intel_dp_set_drrs_state [i915]] eDP Refresh Rate set to
> : 60Hz
> [   33.973392] [drm:intel_dp_set_drrs_state [i915]] eDP Refresh Rate set to
> : 40Hz
> [   35.055923] [drm:intel_dp_set_drrs_state [i915]] eDP Refresh Rate set to
> : 60Hz

Can you try again, there was server down at some point.
Also, can you please attach the logs with and without i915.modeset=0?
Comment 5 Ville Syrjala 2019-07-09 17:17:07 UTC
Please test again with 5.2+

This may have been fixed by commit 475df5d0f3eb ("drm/i915: Don't clobber M/N values during fastset check")
Comment 6 Evgen 2019-07-13 13:29:06 UTC
(In reply to Ville Syrjala from comment #5)
> Please test again with 5.2+
> 
> This may have been fixed by commit 475df5d0f3eb ("drm/i915: Don't clobber
> M/N values during fastset check")

I installed daily build of (x)Ubuntu 19.10 and upgraded to kernel 5.2.0-8.9 (which is based on 5.2 and patch was merged to 5.2-rc4).
Unfortunately both problems (flickering and brightness change) are still there.
I'm a little familiar with rebuilding distro kernels (Debian/Ubuntu, openSUSE). Please let me know if there will be something else to test (patch, config parameter etc).
Attached newer logs (also with i915.modeset=0).
Comment 7 Evgen 2019-07-13 13:36:38 UTC
Created attachment 144773 [details]
dmesg with Ubuntu's kernel 5.2.0-8.9
Comment 8 Evgen 2019-07-13 13:37:05 UTC
Created attachment 144774 [details]
dmesg with Ubuntu's kernel 5.2.0-8.9 with i915.modeset=0
Comment 9 Lakshmi 2019-07-29 12:15:49 UTC
(In reply to Evgen from comment #7)
> Created attachment 144773 [details]
> dmesg with Ubuntu's kernel 5.2.0-8.9

Can you please build and verify wit drmtip (https://cgit.freedesktop.org/drm-tip)? Dmesg from drmtip would give more clues.
Comment 10 Lakshmi 2019-08-28 10:28:27 UTC
(In reply to Lakshmi from comment #9)
> (In reply to Evgen from comment #7)
> > Created attachment 144773 [details]
> > dmesg with Ubuntu's kernel 5.2.0-8.9
> 
> Can you please build and verify wit drmtip
> (https://cgit.freedesktop.org/drm-tip)? Dmesg from drmtip would give more
> clues.

Evgen, it's been a while waiting for the feedback. Any updates?
Comment 11 Evgen 2019-08-28 11:36:17 UTC
Thanks for asking.
I still need to try kernel building from source (previously only re-builded packages with distro tools) and don't have that machine always with me. We'll try provide some information until the end of this week.
Comment 12 Evgen 2019-08-28 11:38:43 UTC
Thanks for asking.
I still need to try kernel building from source (previously only re-builded packages with distro tools) and don't have that machine always with me.
I'll try to provide some information until the end of this week.
Comment 13 Evgen 2019-09-01 11:04:52 UTC
Created attachment 145227 [details]
dmesg with Ubuntu's drm-tip kernel 5.3.0-994.201908312202

Kernel from from https://kernel.ubuntu.com/~kernel-ppa/mainline/drm-tip/2019-09-01/
Comment 14 Evgen 2019-09-01 11:06:19 UTC
Created attachment 145228 [details]
dmesg with Ubuntu's drm-tip kernel 5.3.0-994.201908312202 + i915.modeset=0
Comment 15 Lakshmi 2019-09-02 13:34:19 UTC
(In reply to Evgen from comment #13)
> Created attachment 145227 [details]
> dmesg with Ubuntu's drm-tip kernel 5.3.0-994.201908312202
> 
> Kernel from from
> https://kernel.ubuntu.com/~kernel-ppa/mainline/drm-tip/2019-09-01/

Do you still see flickering? I couldn't find any issues from the attached log though.
Comment 16 Evgen 2019-09-02 13:40:25 UTC
Yes.
It still flickers in both cases (right corner & brightness change when you start moving mouse after few seconds idle).
Comment 17 Martin Peres 2019-11-29 19:09:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/intel/issues/306.


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.