Bug 91866 - WARN_ON(!(old->frontbuffer_bits & frontbuffer_bits))
Summary: WARN_ON(!(old->frontbuffer_bits & frontbuffer_bits))
Status: CLOSED FIXED
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:
Keywords:
: 92452 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-03 13:45 UTC by Chí-Thanh Christopher Nguyễn
Modified: 2017-07-24 22:45 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (78.47 KB, text/plain)
2015-09-03 13:45 UTC, Chí-Thanh Christopher Nguyễn
no flags Details

Description Chí-Thanh Christopher Nguyễn 2015-09-03 13:45:14 UTC
Created attachment 118069 [details]
dmesg

Hardware: Lenovo T440s (Haswell)
Since linux-4.2 I am seeing the following oops, which is similar but not identical to the one in bug 87259:

[  431.068176] ------------[ cut here ]------------
[  431.068187] WARNING: CPU: 1 PID: 3868 at drivers/gpu/drm/i915/i915_gem.c:5269 i915_gem_track_fb+0x69/0x107()
[  431.068189] WARN_ON(!(old->frontbuffer_bits & frontbuffer_bits))
[  431.068190] Modules linked in:
[  431.068192]  rtsx_pci_sdmmc mmc_core iwlmvm mac80211 x86_pkg_temp_thermal intel_powerclamp crct10dif_pclmul crc32_pclmul iwlwifi cfg80211 rtsx_pci mei_me mei btusb btrtl btbcm btintel efivarfs
[  431.068207] CPU: 1 PID: 3868 Comm: X Tainted: G        W       4.2.0-gentoo #2
[  431.068208] Hardware name: LENOVO 20ARS0BH00/20ARS0BH00, BIOS GJET84WW (2.34 ) 06/22/2015
[  431.068210]  0000000000000009 ffff88030b253a78 ffffffff818526a1 0000000080000000
[  431.068213]  ffff88030b253ac8 ffff88030b253ab8 ffffffff810a45b5 ffff8800d5cb2880
[  431.068216]  ffffffff814a4465 ffff8800d5cb2880 ffff88030e408000 0000000000000010
[  431.068218] Call Trace:
[  431.068223]  [<ffffffff818526a1>] dump_stack+0x4f/0x7b
[  431.068228]  [<ffffffff810a45b5>] warn_slowpath_common+0x9c/0xb6
[  431.068231]  [<ffffffff814a4465>] ? i915_gem_track_fb+0x69/0x107
[  431.068234]  [<ffffffff810a4610>] warn_slowpath_fmt+0x41/0x43
[  431.068237]  [<ffffffff814a4465>] i915_gem_track_fb+0x69/0x107
[  431.068243]  [<ffffffff814db854>] intel_prepare_plane_fb+0x125/0x146
[  431.068247]  [<ffffffff8145bc73>] drm_atomic_helper_prepare_planes+0x53/0xb4
[  431.068250]  [<ffffffff814d507f>] __intel_set_mode+0x308/0x8fb
[  431.068254]  [<ffffffff814db436>] intel_crtc_set_config+0x3fb/0x4bf
[  431.068259]  [<ffffffff8146d2a5>] drm_mode_set_config_internal+0x54/0xe0
[  431.068261]  [<ffffffff81470e4a>] drm_mode_setcrtc+0x39f/0x419
[  431.068264]  [<ffffffff81464a6a>] drm_ioctl+0x37f/0x3f7
[  431.068266]  [<ffffffff81470aab>] ? drm_mode_setplane+0x164/0x164
[  431.068271]  [<ffffffff8119fa52>] do_vfs_ioctl+0x367/0x421
[  431.068275]  [<ffffffff8133498e>] ? selinux_file_ioctl+0xa1/0xa3
[  431.068279]  [<ffffffff8132fcac>] ? security_file_ioctl+0x30/0x44
[  431.068281]  [<ffffffff8119fb5a>] SyS_ioctl+0x4e/0x7c
[  431.068287]  [<ffffffff81859d5b>] entry_SYSCALL_64_fastpath+0x16/0x6e
[  431.068289] ---[ end trace e0452e0963bbfe78 ]---

In this kernel I had reverted d2944cf21305c754fa8b2d6c1eea05ad5dad7944 as per bug 91511 comment 3, but the oops happens regardless of this patch being reverted or not.
Comment 1 Michał Mirosław 2015-09-25 21:04:30 UTC
I just got similar WARN_ON during heavy swapping episode (around the time I hit Ctrl+Alt+F1 to switch from X to console). (On vanilla kernel 4.2.1)

[98431.231948] ------------[ cut here ]------------
[98431.231973] WARNING: CPU: 6 PID: 2682 at /mnt/src-tmp/jaja/git/qmqm/drivers/gpu/drm/i915/i915_gem.c:5269 i915_gem_track_fb+0x61/0xfd [i915]()
[98431.231975] WARN_ON(!(old->frontbuffer_bits & frontbuffer_bits))
[98431.232006] Modules linked in: tun ipt_MASQUERADE nf_nat_masquerade_ipv4 xt_REDIRECT nf_nat_redirect iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables ext3 jbd reiserfs rfcomm bnep snd_emu10k1_synth snd_emux_synth snd_seq_midi_emul snd_seq_virmidi snd_hrtimer snd_seq_midi snd_seq_midi_event snd_seq binfmt_misc cfg80211 cpufreq_powersave cpufreq_userspace cpufreq_stats cpufreq_conservative nfsd auth_rpcgss oid_registry nfs_acl nfs lockd grace sunrpc deflate twofish_generic twofish_avx_x86_64 twofish_x86_64_3way twofish_x86_64 twofish_common camellia_generic camellia_aesni_avx_x86_64 camellia_x86_64 serpent_avx_x86_64 serpent_sse2_x86_64 serpent_generic blowfish_generic blowfish_x86_64 blowfish_common cast5_avx_x86_64 cast5_generic cast_common des_generic
[98431.232044]  cmac xcbc rmd160 sha512_ssse3 sha512_generic mcryptd sha1_ssse3 sha1_generic af_key xfrm_algo xfs libcrc32c ext2 btusb btrtl btbcm btintel bluetooth snd_hda_codec_hdmi snd_emu10k1 snd_hda_codec_realtek snd_hda_codec_generic snd_util_mem intel_rapl snd_ac97_codec snd_hda_intel snd_hda_codec ac97_bus i915 snd_hda_core iosf_mbi snd_rawmidi snd_hwdep snd_seq_device intel_powerclamp snd_pcm_oss snd_mixer_oss snd_pcm i2c_algo_bit kvm_intel snd_timer drm_kms_helper emu10k1_gp snd drm kvm gameport soundcore i2c_i801 i2c_core pcspkr video loop firewire_sbp2 fuse ecryptfs autofs4 algif_skcipher af_alg microcode raid456 async_raid6_recov async_memcpy async_pq raid6_pq async_xor xor async_tx crc32c_intel ghash_clmulni_intel sg firewire_ohci firewire_core crc_itu_t xhci_pci xhci_hcd e1000e
[98431.232047] CPU: 6 PID: 2682 Comm: Xorg Not tainted 4.2.1mq #151
[98431.232049] Hardware name: System manufacturer System Product Name/P8Z68-V PRO, BIOS 3603 11/09/2012
[98431.232052]  0000000000000000 0000000000000009 ffffffff8149cbd2 ffff880402dab8b8
[98431.232054]  ffffffff810610c4 ffff88040c500000 ffffffffa02cdd7e 0000000000000006
[98431.232056]  0000000000000010 ffff88040c500000 ffff8803fe48c240 ffff8803fe48c240
[98431.232057] Call Trace:
[98431.232063]  [<ffffffff8149cbd2>] ? dump_stack+0x4a/0x74
[98431.232066]  [<ffffffff810610c4>] ? warn_slowpath_common+0x98/0xb0
[98431.232082]  [<ffffffffa02cdd7e>] ? i915_gem_track_fb+0x61/0xfd [i915]
[98431.232085]  [<ffffffff81061121>] ? warn_slowpath_fmt+0x45/0x4a
[98431.232100]  [<ffffffffa02cdd7e>] ? i915_gem_track_fb+0x61/0xfd [i915]
[98431.232122]  [<ffffffffa0303669>] ? intel_prepare_plane_fb+0xdb/0x128 [i915]
[98431.232138]  [<ffffffffa01dd78f>] ? drm_atomic_helper_prepare_planes+0x4a/0xa3 [drm_kms_helper]
[98431.232159]  [<ffffffffa02fd1b7>] ? __intel_set_mode+0x2f8/0x8e7 [i915]
[98431.232179]  [<ffffffffa0303293>] ? intel_crtc_set_config+0x3e7/0x4a4 [i915]
[98431.232191]  [<ffffffffa055498f>] ? drm_mode_set_config_internal+0x50/0xd7 [drm]
[98431.232195]  [<ffffffffa01dff96>] ? restore_fbdev_mode+0xb0/0xc7 [drm_kms_helper]
[98431.232199]  [<ffffffffa01e1811>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1e/0x54 [drm_kms_helper]
[98431.232203]  [<ffffffffa01e1875>] ? drm_fb_helper_set_par+0x2e/0x32 [drm_kms_helper]
[98431.232223]  [<ffffffffa030edf7>] ? intel_fbdev_set_par+0x11/0x55 [i915]
[98431.232226]  [<ffffffff81299178>] ? fb_set_var+0xa4/0x345
[98431.232228]  [<ffffffff81299338>] ? fb_set_var+0x264/0x345
[98431.232231]  [<ffffffff8122f084>] ? blk_peek_request+0xb4/0x212
[98431.232234]  [<ffffffff81326dd4>] ? scsi_request_fn+0x23/0x2a9
[98431.232238]  [<ffffffff81086738>] ? update_entity_load_avg+0x1f2/0x36e
[98431.232241]  [<ffffffff81291a0f>] ? fbcon_blank+0x75/0x1cb
[98431.232244]  [<ffffffff8107fb2b>] ? preempt_count_add+0x6e/0x80
[98431.232248]  [<ffffffff812ecb1d>] ? do_unblank_screen+0xcd/0x13b
[98431.232251]  [<ffffffff812e4c51>] ? complete_change_console+0x4c/0xb7
[98431.232254]  [<ffffffff812e5b46>] ? vt_ioctl+0xe8a/0x10ff
[98431.232264]  [<ffffffffa054fb2f>] ? drm_dropmaster_ioctl+0x66/0x70 [drm]
[98431.232271]  [<ffffffffa054c554>] ? drm_ioctl+0x2a4/0x3ae [drm]
[98431.232275]  [<ffffffff812dc095>] ? tty_ioctl+0x9fa/0xa5b
[98431.232278]  [<ffffffff811644c6>] ? do_vfs_ioctl+0x374/0x42c
[98431.232281]  [<ffffffff811645cf>] ? SyS_ioctl+0x51/0x77
[98431.232285]  [<ffffffff814a0fdb>] ? entry_SYSCALL_64_fastpath+0x16/0x6e
[98431.232287] ---[ end trace 70532bb1996c710a ]---
Comment 2 till busch 2015-09-29 06:55:12 UTC
Same problem on Lenovo Y50-70. First warning when gdm (wayland) starts. Second warning when X sessions starts after login. A new warning (with trace) appears at every switch from console to X -- but not from X to console.

The system works well regardless of the warning. No warnings with Linux 4.1.6.

uname -a
Linux osiris 4.2.1-1-ARCH #1 SMP PREEMPT Tue Sep 22 06:57:07 CEST 2015 x86_64 GNU/Linux

dmesg
[   14.051664] ------------[ cut here ]------------
[   14.051681] WARNING: CPU: 4 PID: 797 at drivers/gpu/drm/i915/i915_gem.c:5269 i915_gem_track_fb+0x129/0x140 [i915]()
[   14.051684] WARN_ON(!(old->frontbuffer_bits & frontbuffer_bits))
[   14.051686] Modules linked in:
[   14.051687]  cmac ecb rfcomm fuse bnep nf_conntrack_netbios_ns nf_conntrack_broadcast xt_tcpudp ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_broute bridge stp llc ebtable_filter ebtable_nat ebtables ip6table_security ip6table_mangle ip6table_raw ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_filter ip6_tables iptable_security iptable_mangle iptable_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_filter bbswitch(O) nls_iso8859_1 nls_cp437 joydev mousedev arc4 snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi hid_generic uvcvideo intel_rapl ath3k iosf_mbi videobuf2_vmalloc btusb x86_pkg_temp_thermal intel_powerclamp videobuf2_memops videobuf2_core btrtl ath9k btbcm coretemp btintel bluetooth
[   14.051731]  v4l2_common videodev usbhid ath9k_common ath9k_hw kvm_intel hid media crc16 iTCO_wdt ath kvm iTCO_vendor_support snd_hda_intel mac80211 snd_hda_codec crct10dif_pclmul crc32_pclmul i915 ghash_clmulni_intel cfg80211 aesni_intel snd_hda_core aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd snd_hwdep evdev r8169 drm_kms_helper snd_pcm input_leds rtsx_pci_ms led_class drm psmouse memstick mac_hid snd_timer i2c_i801 serio_raw snd mii pcspkr ie31200_edac mei_me intel_gtt soundcore i2c_algo_bit mei shpchp lpc_ich edac_core thermal ideapad_laptop wmi sparse_keymap rfkill battery video processor button ac sch_fq_codel nfs lockd grace sunrpc fscache ip_tables x_tables sd_mod ahci rtsx_pci_sdmmc libahci mmc_core xhci_pci ehci_pci xhci_hcd ehci_hcd atkbd libata libps2 usbcore rtsx_pci scsi_mod
[   14.051789]  usb_common i8042 serio vfat fat crc32c_generic crc32c_intel btrfs xor raid6_pq
[   14.051799] CPU: 4 PID: 797 Comm: gnome-shell Tainted: G     U     O    4.2.1-1-ARCH #1
[   14.051802] Hardware name: LENOVO 20378/Lenovo Y50-70, BIOS 9ECN40WW(V3.00) 07/22/2015
[   14.051804]  0000000000000000 000000000ac54ab5 ffff880439ad7a28 ffffffff8156b77a
[   14.051807]  0000000000000000 ffff880439ad7a80 ffff880439ad7a68 ffffffff81074846
[   14.051810]  ffff8804450a0000 0000000000000010 ffff88042cb898c0 ffff8804452fc000
[   14.051813] Call Trace:
[   14.051819]  [<ffffffff8156b77a>] dump_stack+0x4c/0x6e
[   14.051825]  [<ffffffff81074846>] warn_slowpath_common+0x86/0xc0
[   14.051828]  [<ffffffff810748d5>] warn_slowpath_fmt+0x55/0x70
[   14.051837]  [<ffffffffa07c8c19>] i915_gem_track_fb+0x129/0x140 [i915]
[   14.051849]  [<ffffffffa0810477>] intel_prepare_plane_fb+0xe7/0x1a0 [i915]
[   14.051856]  [<ffffffffa0507e39>] drm_atomic_helper_prepare_planes+0x59/0xe0 [drm_kms_helper]
[   14.051867]  [<ffffffffa080888e>] __intel_set_mode+0x1ae/0xb60 [i915]
[   14.051883]  [<ffffffffa080a50f>] ? intel_modeset_compute_config+0x3af/0xb60 [i915]
[   14.051895]  [<ffffffffa080fe26>] intel_crtc_set_config+0x2b6/0x580 [i915]
[   14.051903]  [<ffffffffa04799f6>] drm_mode_set_config_internal+0x66/0x100 [drm]
[   14.051911]  [<ffffffffa047e809>] drm_mode_setcrtc+0x3e9/0x500 [drm]
[   14.051917]  [<ffffffffa046f575>] drm_ioctl+0x125/0x610 [drm]
[   14.051923]  [<ffffffffa047e420>] ? drm_mode_setplane+0x1b0/0x1b0 [drm]
[   14.051928]  [<ffffffff811e29b5>] do_vfs_ioctl+0x295/0x480
[   14.051932]  [<ffffffff811ecaa7>] ? __fget+0x77/0xb0
[   14.051934]  [<ffffffff811e2c19>] SyS_ioctl+0x79/0x90
[   14.051938]  [<ffffffff81570cee>] entry_SYSCALL_64_fastpath+0x12/0x71
[   14.051941] ---[ end trace 8681a9e39d986791 ]---
Comment 3 Thomas Roller 2015-10-03 08:17:32 UTC
i get the same here, seems the error is sometimes triggered when i play a video with mpv

[133382.204471] WARNING: CPU: 1 PID: 3469 at drivers/gpu/drm/i915/i915_gem.c:5269 i915_gem_track_fb+0xf8/0x130()
[133382.204473] WARN_ON(!(old->frontbuffer_bits & frontbuffer_bits))
[133382.204478] CPU: 1 PID: 3469 Comm: X Tainted: G        W       4.2.2 #2
[133382.204484]  0000000000000000 ffffffff81f83550 ffffffff81b5f524 ffff880406f0bbc8
[133382.204488]  ffffffff81106cb2 ffff88040b1c5200 ffff88040b1c5200 0000000000000010
[133382.204492]  ffff88040b1c5200 0000000000000010 ffffffff81106d65 ffffffff81f837f0
[133382.204495] Call Trace:
[133382.204501]  [<ffffffff81b5f524>] ? dump_stack+0x40/0x50
[133382.204507]  [<ffffffff81106cb2>] ? warn_slowpath_common+0x72/0xb0
[133382.204511]  [<ffffffff81106d65>] ? warn_slowpath_fmt+0x45/0x50
[133382.204515]  [<ffffffff815d54b8>] ? i915_gem_track_fb+0xf8/0x130
[133382.204521]  [<ffffffff816128da>] ? intel_prepare_plane_fb+0xda/0x190
[133382.204526]  [<ffffffff815851fd>] ? drm_atomic_helper_prepare_planes+0x4d/0xd0
[133382.204531]  [<ffffffff81623b56>] ? intel_atomic_commit+0x36/0xf0
[133382.204534]  [<ffffffff8158611e>] ? drm_atomic_helper_plane_set_property+0x7e/0xc0
[133382.204541]  [<ffffffff8159ab2f>] ? drm_mode_plane_set_obj_prop+0x1f/0x70
[133382.204546]  [<ffffffff8159ae0c>] ? drm_mode_obj_set_property_ioctl+0x1fc/0x240
[133382.204550]  [<ffffffff8158e3da>] ? drm_ioctl+0x2fa/0x560
[133382.204555]  [<ffffffff8159ac10>] ? drm_mode_obj_get_properties_ioctl+0x90/0x90
[133382.204561]  [<ffffffff8121b9c1>] ? fsnotify+0x2c1/0x3c0
[133382.204566]  [<ffffffff811f798c>] ? do_vfs_ioctl+0x2bc/0x4a0
[133382.204570]  [<ffffffff811e7442>] ? vfs_write+0x152/0x190
[133382.204576]  [<ffffffff8141e87d>] ? security_file_ioctl+0x3d/0x60
[133382.204580]  [<ffffffff811f7bdf>] ? SyS_ioctl+0x6f/0x80
[133382.204584]  [<ffffffff81b69bd7>] ? entry_SYSCALL_64_fastpath+0x12/0x6a
[133382.204587] ---[ end trace e872fcca86ba70b8 ]---
Comment 4 Adam Williamson 2015-11-02 19:31:10 UTC
We have several reports of this downstream in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1254248
Comment 5 Chí-Thanh Christopher Nguyễn 2015-11-03 16:19:39 UTC
After upgrading to linux-4.3.0 this problem seems to have gone away for me.
Comment 6 Jani Nikula 2015-11-12 14:46:55 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #5)
> After upgrading to linux-4.3.0 this problem seems to have gone away for me.

Thanks; can anyone else confirm 4.3 is warning free?
Comment 7 Marcelo Ricardo Leitner 2015-12-08 19:09:53 UTC
(In reply to Jani Nikula from comment #6)
> (In reply to Chí-Thanh Christopher Nguyễn from comment #5)
> > After upgrading to linux-4.3.0 this problem seems to have gone away for me.
> 
> Thanks; can anyone else confirm 4.3 is warning free?

Yes, same here. Was seeing it on 4.2.6 and not seeing it on 4.4-rc4.
Fedora 23, t450s, fwiw.

Btw, just in case someone else updates to v4.4 to fix this, now we just need to wait this one to propagate:
http://www.spinics.net/lists/intel-gfx/msg81327.html
To fix a new msg:
[   24.543333] [drm:gen8_irq_handler [i915]] *ERROR* The master control interrupt lied (SDE)!
Comment 8 Jani Nikula 2015-12-09 09:57:08 UTC
(In reply to Marcelo Ricardo Leitner from comment #7)
> (In reply to Jani Nikula from comment #6)
> > (In reply to Chí-Thanh Christopher Nguyễn from comment #5)
> > > After upgrading to linux-4.3.0 this problem seems to have gone away for me.
> > 
> > Thanks; can anyone else confirm 4.3 is warning free?
> 
> Yes, same here. Was seeing it on 4.2.6 and not seeing it on 4.4-rc4.
> Fedora 23, t450s, fwiw.

Thanks, closing.

> Btw, just in case someone else updates to v4.4 to fix this, now we just need
> to wait this one to propagate:
> http://www.spinics.net/lists/intel-gfx/msg81327.html
> To fix a new msg:
> [   24.543333] [drm:gen8_irq_handler [i915]] *ERROR* The master control
> interrupt lied (SDE)!

This has been fixed, though maybe not in v4.4.
Comment 9 Jani Nikula 2016-04-25 09:21:47 UTC
*** Bug 92452 has been marked as a duplicate of this 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.