Bug 108860 - [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun
Summary: [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO unde...
Status: NEW
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: Triaged
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-26 00:34 UTC by Nick Desaulniers
Modified: 2018-11-30 07:49 UTC (History)
2 users (show)

See Also:
i915 platform: KBL
i915 features: display/watermark


Attachments
dmesg.txt (3.93 MB, text/plain)
2018-11-27 06:18 UTC, Nick Desaulniers
no flags Details
dmesg2.txt (577.32 KB, text/plain)
2018-11-27 07:03 UTC, Nick Desaulniers
no flags Details
dmesg3.txt (3.94 MB, text/plain)
2018-11-29 00:56 UTC, Nick Desaulniers
no flags Details
dmesg4.txt (354.02 KB, text/plain)
2018-11-30 07:48 UTC, Nick Desaulniers
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Desaulniers 2018-11-26 00:34:52 UTC
This is seen in dmesg after a flicker on the screen.

[   54.560613] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun

Kernel command line parameters tried, to no effect:
i915.enable_fbc=0
i915.enable_rc6=0

This is on a i7-7500U (Kabylake) on a Razer Blade Stealth laptop.  Running a  4.19.0-rc7 kernel.
Comment 1 Nick Desaulniers 2018-11-26 00:37:52 UTC
Disabling thunderbolt support in BIOS does nothing.
Comment 2 Lakshmi 2018-11-26 07:38:09 UTC
Nick, please attach full dmesg from boot with kernel parameters drm.debug=0x1e log_buf_len=4M.

Apart from the error in dmesg, is there any other impact to you?
Comment 3 Nick Desaulniers 2018-11-27 06:11:28 UTC
Setting:
drm.debug=0x1e log_buf_len=4M
AND disabling crash kernel seemed to have helped.  Now to pare back which of those three is helping...

> is there any other impact to you?

Very noticeable screen blanks, a few per minute.
Comment 4 Nick Desaulniers 2018-11-27 06:18:17 UTC
Created attachment 142621 [details]
dmesg.txt

Just hit another unexpected screen blank.

> [ 2474.103168] [drm:intel_fbc_underrun_work_fn [i915]] Disabling FBC due to FIFO underrun.
Comment 5 Nick Desaulniers 2018-11-27 06:58:34 UTC
I feel like I wasn't getting any screen blanks with those debug options for quite a while.  After resuming from sleep a couple of times, I got a screen blank (attached dmesg) and have been getting them ever since.  Let's see what happens after a reboot, keeping those debug options.
Comment 6 Nick Desaulniers 2018-11-27 07:03:02 UTC
Created attachment 142622 [details]
dmesg2.txt

Nope, hit a screen blank within 9s of reboot.
Comment 7 Jani Saarinen 2018-11-27 07:08:32 UTC
Nick, can you try if this series helps at all? 
https://patchwork.freedesktop.org/series/51878/
Comment 8 Nick Desaulniers 2018-11-28 23:02:38 UTC
I wasn't able to apply the patch series to mainline.  Is there a different tree that I should apply this to?

$ git apply --check ~/Downloads/drm-i915-Program-SKL-watermarks-ddb-more-carefully.mbox
error: patch failed: drivers/gpu/drm/i915/intel_display.c:3329
error: drivers/gpu/drm/i915/intel_display.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_sprite.c:508
error: drivers/gpu/drm/i915/intel_sprite.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_sprite.c:824
error: drivers/gpu/drm/i915/intel_sprite.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_atomic_plane.c:139
error: drivers/gpu/drm/i915/intel_atomic_plane.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_display.c:10839
error: drivers/gpu/drm/i915/intel_display.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_atomic_plane.c:210
error: drivers/gpu/drm/i915/intel_atomic_plane.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_display.c:5405
error: drivers/gpu/drm/i915/intel_display.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_sprite.c:594
error: drivers/gpu/drm/i915/intel_sprite.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_pm.c:4910
error: drivers/gpu/drm/i915/intel_pm.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_pm.c:4894
error: drivers/gpu/drm/i915/intel_pm.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_pm.c:4746
error: drivers/gpu/drm/i915/intel_pm.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_pm.c:4578
error: drivers/gpu/drm/i915/intel_pm.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_display.c:10114
error: drivers/gpu/drm/i915/intel_display.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_drv.h:2199
error: drivers/gpu/drm/i915/intel_drv.h: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_pm.c:3951
error: drivers/gpu/drm/i915/intel_pm.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_sprite.c:542
error: drivers/gpu/drm/i915/intel_sprite.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_atomic_plane.c:169
error: drivers/gpu/drm/i915/intel_atomic_plane.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_display.c:12661
error: drivers/gpu/drm/i915/intel_display.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_drv.h:2299
error: drivers/gpu/drm/i915/intel_drv.h: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_pm.c:4581
error: drivers/gpu/drm/i915/intel_pm.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_sprite.c:373
error: drivers/gpu/drm/i915/intel_sprite.c: patch does not apply
Comment 9 Nick Desaulniers 2018-11-28 23:20:49 UTC
Seems the patches also do not apply cleanly to git://anongit.freedesktop.org/drm-tip drm-tip branch.
Comment 10 Nick Desaulniers 2018-11-28 23:45:31 UTC
From the drm-intel tree, I tried to apply the patchset to the branches: drm-intel-fixes, drm-intel-next, and drm-intel-next-fixes but the patchset fails to apply to all.  It looks like it came close for drm-intel-next, will see if I can resolve it manually myself.
Comment 11 Nick Desaulniers 2018-11-28 23:52:35 UTC
Ah looks like that series just landed in for-linux-next branch of drm-intel tree 4 hours ago, will try that.
Comment 12 Nick Desaulniers 2018-11-29 00:23:45 UTC
Seems to be working well.  I saw the underrun warning in 1/2 boots, but no obnoxious screen blanking (which is what I'm more concerned about).  Will reopen if I see the screen blanking again, thanks!
Comment 13 Nick Desaulniers 2018-11-29 00:51:49 UTC
gah, spoke too soon.  Flickering is back.  Will try to get the debug logs with this kernel.
Comment 14 Nick Desaulniers 2018-11-29 00:56:54 UTC
Created attachment 142655 [details]
dmesg3.txt

drm-intel tree for-linux-next branch including recommended patches.
Comment 15 Lakshmi 2018-11-29 07:08:32 UTC
Ville, any comments here? More patches to come?
Comment 16 Jani Saarinen 2018-11-29 07:30:08 UTC
Nick, always provide logs from boot to issue seen, thanks.
Comment 17 Nick Desaulniers 2018-11-30 07:48:55 UTC
Created attachment 142664 [details]
dmesg4.txt

dmesg from boot to issue observed


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.