Bug 96851 - [i915] *ERROR* CPU pipe A FIFO underrun (i865G)
Summary: [i915] *ERROR* CPU pipe A FIFO underrun (i865G)
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-07 20:00 UTC by Götz
Modified: 2017-07-24 22:41 UTC (History)
1 user (show)

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


Attachments
Full dmesg (61.17 KB, text/plain)
2016-07-07 20:00 UTC, Götz
no flags Details
intel_reg dump (17.06 KB, text/plain)
2016-07-07 20:04 UTC, Götz
no flags Details

Description Götz 2016-07-07 20:00:14 UTC
Created attachment 124949 [details]
Full dmesg

I have seen this since a while, specially after starting a video.

System environment:
-- chipset: 865G
-- system architecture: 32-bit
-- xf86-video-intel: 2.99.917+674+g9154dff-1
-- xserver: 1.18.3-2
-- mesa: 11.2.2-1
-- libdrm: 2.4.68-1
-- kernel: 4.6.3-1-ARCH
-- Linux distribution: Arch Linux

00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02)

[20782.001469] ------------[ cut here ]------------
[20782.001580] WARNING: CPU: 0 PID: 415 at drivers/gpu/drm/i915/i915_gem.c:4580 i915_gem_free_object+0x317/0x360 [i915]
[20782.001586] WARN_ON(obj->frontbuffer_bits)
[20782.001590] Modules linked in:
[20782.001595]  fuse 8021q mrp xt_connmark iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_filter w83627ehf hwmon_vid gspca_pac7302 gspca_main v4l2_common videodev media mousedev joydev arc4 ppdev iTCO_wdt iTCO_vendor_support ath5k ath mac80211 coretemp cfg80211 evdev input_leds snd_intel8x0 led_class rfkill snd_ac97_codec serio_raw ac97_bus i2c_i801 intel_agp snd_cmipci snd_mpu401_uart snd_opl3_lib snd_hwdep gameport snd_rawmidi snd_seq_device snd_pcm snd_timer snd 8139too 8139cp soundcore mii parport_pc parport lpc_ich fjes mac_hid rng_core shpchp acpi_cpufreq tpm_tis tpm processor sch_fq_codel vboxnetflt(O) vboxnetadp(O) pci_stub vboxpci(O) vboxdrv(O) ip_tables x_tables ext4 crc16 jbd2 mbcache hid_generic usbhid hid sd_mod ata_generic pata_acpi
[20782.001705]  atkbd libps2 ata_piix libata scsi_mod ehci_pci uhci_hcd ehci_hcd usbcore usb_common i8042 serio i915 video button intel_gtt i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm agpgart
[20782.001742] CPU: 0 PID: 415 Comm: Xorg Tainted: G           O    4.6.3-1-ARCH #1
[20782.001746] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./775i65G., BIOS P3.20 05/28/2007
[20782.001751]  c1697927 00b6e489 00203286 f2d33d24 c128ff6f f2d33d68 f835bd18 f2d33d54
[20782.001763]  c105acea f834af58 f2d33d88 0000019f f835bd18 000011e4 f82aded7 000011e4
[20782.001773]  e16015b8 e1601540 e1601534 f2d33d74 c105ad56 00000009 00000000 f2d33d68
[20782.001783] Call Trace:
[20782.001797]  [<c128ff6f>] dump_stack+0x58/0x79
[20782.001807]  [<c105acea>] __warn+0xea/0x110
[20782.001848]  [<f82aded7>] ? i915_gem_free_object+0x317/0x360 [i915]
[20782.001855]  [<c105ad56>] warn_slowpath_fmt+0x46/0x60
[20782.001887]  [<f82aded7>] i915_gem_free_object+0x317/0x360 [i915]
[20782.001908]  [<f8093075>] drm_gem_object_free+0x25/0x50 [drm]
[20782.001920]  [<f80935c7>] drm_gem_object_handle_unreference_unlocked+0xb7/0x100 [drm]
[20782.001931]  [<f8093653>] drm_gem_object_release_handle+0x43/0x80 [drm]
[20782.001943]  [<f80936f0>] drm_gem_handle_delete+0x60/0x90 [drm]
[20782.001955]  [<f8093c80>] ? drm_gem_handle_create+0x30/0x30 [drm]
[20782.001966]  [<f8093c9d>] drm_gem_close_ioctl+0x1d/0x30 [drm]
[20782.001978]  [<f80945e9>] drm_ioctl+0x149/0x4f0 [drm]
[20782.001986]  [<c1177f80>] ? unmap_page_range+0x480/0x5f0
[20782.001998]  [<f8093c80>] ? drm_gem_handle_create+0x30/0x30 [drm]
[20782.002005]  [<c12a397a>] ? find_next_bit+0x1a/0x30
[20782.002010]  [<c128fdbf>] ? cpumask_any_but+0x1f/0x40
[20782.002015]  [<c1176048>] ? tlb_finish_mmu+0x18/0x40
[20782.002021]  [<c117c285>] ? unmap_region+0xb5/0x100
[20782.002033]  [<f80944a0>] ? drm_getunique+0x40/0x40 [drm]
[20782.002041]  [<c11c8901>] do_vfs_ioctl+0x91/0x6f0
[20782.002048]  [<c119c200>] ? kmem_cache_free+0x1b0/0x1c0
[20782.002053]  [<c117c139>] ? remove_vma+0x39/0x40
[20782.002057]  [<c117c139>] ? remove_vma+0x39/0x40
[20782.002062]  [<c117c139>] ? remove_vma+0x39/0x40
[20782.002068]  [<c11d237b>] ? __fget+0x6b/0xc0
[20782.002074]  [<c11c8fe0>] SyS_ioctl+0x80/0x90
[20782.002079]  [<c1001b5d>] do_fast_syscall_32+0x8d/0x140
[20782.002088]  [<c151e18e>] sysenter_past_esp+0x47/0x75
[20782.002093] ---[ end trace a64dcd8284353dfe ]---


The next thing in dmesg is this, with the CPU pipe A FIFO underrun:

[20832.116762] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun
[20832.117800] ------------[ cut here ]------------
[20832.117852] WARNING: CPU: 0 PID: 415 at drivers/gpu/drm/i915/i915_gem.c:5186 i915_gem_track_fb+0xf2/0x1a0 [i915]
[20832.117856] WARN_ON(new->frontbuffer_bits & frontbuffer_bits)
[20832.117858] Modules linked in:
[20832.117861]  fuse 8021q mrp xt_connmark iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_filter w83627ehf hwmon_vid gspca_pac7302 gspca_main v4l2_common videodev media mousedev joydev arc4 ppdev iTCO_wdt iTCO_vendor_support ath5k ath mac80211 coretemp cfg80211 evdev input_leds snd_intel8x0 led_class rfkill snd_ac97_codec serio_raw ac97_bus i2c_i801 intel_agp snd_cmipci snd_mpu401_uart snd_opl3_lib snd_hwdep gameport snd_rawmidi snd_seq_device snd_pcm snd_timer snd 8139too 8139cp soundcore mii parport_pc parport lpc_ich fjes mac_hid rng_core shpchp acpi_cpufreq tpm_tis tpm processor sch_fq_codel vboxnetflt(O) vboxnetadp(O) pci_stub vboxpci(O) vboxdrv(O) ip_tables x_tables ext4 crc16 jbd2 mbcache hid_generic usbhid hid sd_mod ata_generic pata_acpi
[20832.118015]  atkbd libps2 ata_piix libata scsi_mod ehci_pci uhci_hcd ehci_hcd usbcore usb_common i8042 serio i915 video button intel_gtt i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm agpgart
[20832.118049] CPU: 0 PID: 415 Comm: Xorg Tainted: G        W  O    4.6.3-1-ARCH #1
[20832.118053] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./775i65G., BIOS P3.20 05/28/2007
[20832.118057]  c1697927 00b6e489 00203286 f2d33d28 c128ff6f f2d33d6c f835bd18 f2d33d58
[20832.118065]  c105acea f834af58 f2d33d8c 0000019f f835bd18 00001442 f82afb32 00001442
[20832.118072]  00000080 f5319800 f526dcc0 f2d33d78 c105ad56 00000009 00000000 f2d33d6c
[20832.118079] Call Trace:
[20832.118096]  [<c128ff6f>] dump_stack+0x58/0x79
[20832.118103]  [<c105acea>] __warn+0xea/0x110
[20832.118127]  [<f82afb32>] ? i915_gem_track_fb+0xf2/0x1a0 [i915]
[20832.118132]  [<c105ad56>] warn_slowpath_fmt+0x46/0x60
[20832.118157]  [<f82afb32>] i915_gem_track_fb+0xf2/0x1a0 [i915]
[20832.118179]  [<f82fdfb3>] intel_overlay_put_image+0xbb3/0x12d0 [i915]
[20832.118186]  [<c10c8291>] ? enqueue_hrtimer+0x31/0xa0
[20832.118210]  [<f82fd400>] ? intel_overlay_switch_off+0x2d0/0x2d0 [i915]
[20832.118224]  [<f80945e9>] drm_ioctl+0x149/0x4f0 [drm]
[20832.118246]  [<f82fd400>] ? intel_overlay_switch_off+0x2d0/0x2d0 [i915]
[20832.118254]  [<c1018e9b>] ? do_signal+0x2ab/0x570
[20832.118259]  [<c1024872>] ? __fpu__restore_sig+0x122/0x430
[20832.118268]  [<f80944a0>] ? drm_getunique+0x40/0x40 [drm]
[20832.118275]  [<c11c8901>] do_vfs_ioctl+0x91/0x6f0
[20832.118285]  [<c11d237b>] ? __fget+0x6b/0xc0
[20832.118288]  [<c11c8fe0>] SyS_ioctl+0x80/0x90
[20832.118292]  [<c1001a6e>] do_int80_syscall_32+0x5e/0xc0
[20832.118298]  [<c151e1ed>] entry_INT80_32+0x31/0x31
[20832.118302] ---[ end trace a64dcd8284353dff ]---

After this, there is more similar info. Full dmesg attached.

There is nothing in /sys/kernel/debug/dri/0/i915_error_state, "no error state collected".
Comment 1 Götz 2016-07-07 20:04:24 UTC
Created attachment 124950 [details]
intel_reg dump
Comment 2 Chris Wilson 2016-07-07 20:14:26 UTC
(In reply to Götz from comment #0)
> Created attachment 124949 [details]
> Full dmesg
> 
> I have seen this since a while, specially after starting a video.

I think I spotted the cause of that and hopefully fixed it in https://patchwork.freedesktop.org/patch/97600/
Comment 3 yann 2016-08-01 14:23:33 UTC
Götz, can you try following patch, it should solve your issue:
https://patchwork.freedesktop.org/patch/102122/

(serie is : https://patchwork.freedesktop.org/series/10444/)
Comment 4 Chris Wilson 2016-08-04 11:14:59 UTC
Believed fixed

commit 0d9bdd886f295b62c254a99da4153e7d287adb12
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Aug 4 07:52:37 2016 +0100

    drm/i915: Convert intel_overlay to request tracking
    
    intel_overlay already tracks its last flip request, along with action to
    take after its completion. Refactor intel_overlay to reuse the common
    i915_gem_active tracker.


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.