← Back to team overview

kernel-packages team mailing list archive

[Bug 1384342] Re: kernel messages intel_crtc_wait_for_pending_flips correlate to compiz hang

 

Did anyone find a fix for this on ValleyView? As I understand it the
fixes posted to date are for Haswell/IvyBridge only.

I am seeing the issue on a 3.16.0-36.48 kernel which I confirmed has the
following code block in it:

} else if (IS_VALLEYVIEW(dev)) {
                ring = &dev_priv->ring[BCS];
} else if (IS_IVYBRIDGE(dev) || IS_HASWELL(dev)) {
                ring = &dev_priv->ring[BCS];

Here is the stack trace that occurs when the problem happens:

Oct 13 12:35:58 System kernel: [ 8902.798602] Call Trace:
Oct 13 12:35:58 System kernel: [ 8902.798625] <c168d7ca> dump_stack+0x41/0x52
Oct 13 12:35:58 System kernel: [ 8902.798640] <c105c3ae> warn_slowpath_common+0x7e/0xa0
Oct 13 12:35:58 System kernel: [ 8902.798799] <f8555ae7> ? intel_crtc_wait_for_pending_flips+0x137/0x140 i915
Oct 13 12:35:58 System kernel: [ 8902.798950] <f8555ae7> ? intel_crtc_wait_for_pending_flips+0x137/0x140 i915
Oct 13 12:35:58 System kernel: [ 8902.798963] <c105c472> warn_slowpath_null+0x22/0x30
Oct 13 12:35:58 System kernel: [ 8902.799114] <f8555ae7> intel_crtc_wait_for_pending_flips+0x137/0x140 i915
Oct 13 12:35:58 System kernel: [ 8902.799128] <c109a690> ? prepare_to_wait_event+0xd0/0xd0
Oct 13 12:35:58 System kernel: [ 8902.799281] <f855e8c3> intel_crtc_set_config+0x813/0xba0 i915
Oct 13 12:35:58 System kernel: [ 8902.799366] <f839864e> drm_mode_set_config_internal+0x4e/0xb0 drm
Oct 13 12:35:58 System kernel: [ 8902.799514] <f8551240> ? intel_reset_dpio+0x1a0/0x1a0 i915
Oct 13 12:35:58 System kernel: [ 8902.799549] <f836965a> restore_fbdev_mode+0xaa/0xe0 drm_kms_helper
Oct 13 12:35:58 System kernel: [ 8902.799583] <f836af6e> drm_fb_helper_restore_fbdev_mode_unlocked+0x1e/0x50 drm_kms_helper
Oct 13 12:35:58 System kernel: [ 8902.799616] <f836afc2> drm_fb_helper_set_par+0x22/0x50 drm_kms_helper
Oct 13 12:35:58 System kernel: [ 8902.799631] <c1384ddd> fb_set_var+0x1bd/0x410
Oct 13 12:35:58 System kernel: [ 8902.799644] <c108cece> ? update_cfs_rq_blocked_load+0x11e/0x180
Oct 13 12:35:58 System kernel: [ 8902.799658] <c108fb1b> ? update_curr+0x12b/0x1e0
Oct 13 12:35:58 System kernel: [ 8902.799675] <c137c9de> fbcon_blank+0x1ee/0x2e0
Oct 13 12:35:58 System kernel: [ 8902.799694] <c13feca6> do_unblank_screen+0xa6/0x1c0
Oct 13 12:35:58 System kernel: [ 8902.799709] <c13f6111> complete_change_console+0x51/0xe0
Oct 13 12:35:58 System kernel: [ 8902.799722] <c13f7144> vt_ioctl+0xfa4/0x1080
Oct 13 12:35:58 System kernel: [ 8902.799734] <c11c4a77> ? fsnotify_destroy_event+0x27/0x40
Oct 13 12:35:58 System kernel: [ 8902.799745] <c11c68a3> ? inotify_handle_event+0x103/0x160
Oct 13 12:35:58 System kernel: [ 8902.799767] <c13f61a0> ? complete_change_console+0xe0/0xe0
Oct 13 12:35:58 System kernel: [ 8902.799778] <c13ebf83> tty_ioctl+0x233/0xa30
Oct 13 12:35:58 System kernel: [ 8902.799793] <c11c474f> ? fsnotify+0x1ef/0x2c0
Oct 13 12:35:58 System kernel: [ 8902.799804] <c13ebd50> ? no_tty+0x30/0x30
Oct 13 12:35:58 System kernel: [ 8902.799817] <c119f6d2> do_vfs_ioctl+0x2f2/0x4f0
Oct 13 12:35:58 System kernel: [ 8902.799829] <c11a27ae> ? dput+0x1e/0x150
Oct 13 12:35:58 System kernel: [ 8902.799843] <c1190a51> ? __sb_end_write+0x31/0x70
Oct 13 12:35:58 System kernel: [ 8902.799854] <c118eebd> ? vfs_write+0x15d/0x1d0
Oct 13 12:35:58 System kernel: [ 8902.799867] <c11a81e2> ? __fget_light+0x22/0x60
Oct 13 12:35:58 System kernel: [ 8902.799879] <c119f930> SyS_ioctl+0x60/0x90
Oct 13 12:35:58 System kernel: [ 8902.799893] <c1694bdf> sysenter_do_call+0x12/0x12
Oct 13 12:35:58 System kernel: [ 8902.799901] --[ end trace e3f9449caabb831e ]-- 

When this happens we are running a screensaver-like animation, cycling
images with scaling effects. I am not sure if the screen freezes when
the animation is clicked (to wake up the screensaver) or if it is
already frozen by that time. The bug occurs sporadically. For the above
stack trace, I believe what I actually did was tried to switch to a VT
with ctrl+alt+F2 -- that would explain the tty_ioctl stuff, I think?
When the problem occurs, there is not always a stack trace.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1384342

Title:
  kernel messages intel_crtc_wait_for_pending_flips correlate to compiz
  hang

Status in Linux:
  Unknown
Status in System76:
  New
Status in xf86-video-intel:
  Fix Released
Status in linux package in Ubuntu:
  Triaged
Status in linux source package in Utopic:
  Confirmed
Status in linux package in Debian:
  Confirmed
Status in linux package in Fedora:
  Unknown
Status in linux package in openSUSE:
  Unknown

Bug description:
  I am fairly frequently (maybe once every 2 days) seeing screen
  lockups.  The system is fine, and then screen locks up. mouse is still
  movable and even changes icon based on content under it (ie mouse over
  link changes to pointing hand).  Programs are still running (often
  this occurs during a google hangout, and the hangout, audio and mic
  seem to work fine).

  Today when this happened I had more patience and hit ctrl-alt-f1, and then subsequently saw that dmesg had:
  [82218.556025] ------------[ cut here ]------------
  [82218.556074] WARNING: CPU: 0 PID: 8799 at /build/buildd/linux-3.16.0/drivers/gpu/drm/i915/intel_display.c:3324 intel_crtc_wait_for_pending_flips+0x16c/0x180 [i915]()
  [82218.556095] Modules linked in: xt_conntrack ipt_REJECT overlayfs pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) xt_CHECKSUM iptable_mangle ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack xt_tcpudp bridge stp llc iptable_filter ip_tables x_tables rfcomm bnep binfmt_misc dm_crypt uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev media dm_multipath scsi_dh coretemp kvm_intel kvm arc4 joydev iwldvm mac80211 serio_raw btusb bluetooth pcmcia 6lowpan_iphc thinkpad_acpi snd_seq_midi snd_seq_midi_event nvram snd_hda_codec_conexant snd_hda_codec_generic r852 sm_common lpc_ich nand snd_rawmidi nand_ecc nand_bch snd_hda_intel bch nand_ids snd_hda_controller snd_hda_codec snd_hwdep mtd snd_seq iwlwifi r592 memstick snd_pcm
  [82218.556112]  yenta_socket pcmcia_rsrc pcmcia_core cfg80211 snd_seq_device shpchp snd_timer mei_me mei snd soundcore mac_hid parport_pc ppdev tp_smapi(OE) thinkpad_ec(OE) lp parport btrfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq raid1 raid0 multipath linear hid_generic usbhid hid psmouse firewire_ohci ahci libahci firewire_core sdhci_pci sdhci crc_itu_t i915 wmi e1000e i2c_algo_bit drm_kms_helper video drm ptp pps_core pata_acpi [last unloaded: ipmi_msghandler]
  [82218.556114] CPU: 0 PID: 8799 Comm: kworker/0:1 Tainted: G        W  OE 3.16.0-23-generic #30-Ubuntu
  [82218.556115] Hardware name: LENOVO 7417CTO/7417CTO, BIOS 7UET94WW (3.24 ) 10/17/2012
  [82218.556119] Workqueue: events console_callback
  [82218.556122]  0000000000000009 ffff880016a3faf8 ffffffff8177fcbc 0000000000000000
  [82218.556123]  ffff880016a3fb30 ffffffff8106fd8d 0000000000000000 ffff880035a5a000
  [82218.556124]  ffff880035948210 ffff880035826800 ffff880035826800 ffff880016a3fb40
  [82218.556125] Call Trace:
  [82218.556130]  [<ffffffff8177fcbc>] dump_stack+0x45/0x56
  [82218.556133]  [<ffffffff8106fd8d>] warn_slowpath_common+0x7d/0xa0
  [82218.556135]  [<ffffffff8106fe6a>] warn_slowpath_null+0x1a/0x20
  [82218.556153]  [<ffffffffc015dffc>] intel_crtc_wait_for_pending_flips+0x16c/0x180 [i915]
  [82218.556156]  [<ffffffff810b9590>] ? prepare_to_wait_event+0x100/0x100
  [82218.556175]  [<ffffffffc0160ac3>] intel_crtc_disable_planes+0x33/0x1c0 [i915]
  [82218.556177]  [<ffffffff81784e5b>] ? __ww_mutex_lock+0x1b/0xb0
  [82218.556196]  [<ffffffffc0160ca1>] i9xx_crtc_disable+0x51/0x3f0 [i915]
  [82218.556220]  [<ffffffffc0162457>] intel_crtc_update_dpms+0x67/0xa0 [i915]
  [82218.556237]  [<ffffffffc0166ac9>] intel_connector_dpms+0x59/0x70 [i915]
  [82218.556245]  [<ffffffffc00c4901>] drm_fb_helper_dpms.isra.5+0xc1/0x100 [drm_kms_helper]
  [82218.556251]  [<ffffffffc00c4971>] drm_fb_helper_blank+0x31/0x90 [drm_kms_helper]
  [82218.556254]  [<ffffffff81415d47>] fb_blank+0x57/0xc0
  [82218.556256]  [<ffffffff8140c87b>] fbcon_blank+0xfb/0x300
  [82218.556258]  [<ffffffff8108b4a2>] ? __queue_delayed_work+0x182/0x1c0
  [82218.556259]  [<ffffffff8108b7b9>] ? try_to_grab_pending+0xa9/0x160
  [82218.556262]  [<ffffffff8107cbdb>] ? lock_timer_base.isra.34+0x2b/0x50
  [82218.556264]  [<ffffffff8107dd1f>] ? try_to_del_timer_sync+0x4f/0x70
  [82218.556266]  [<ffffffff81497ba3>] do_blank_screen+0x1d3/0x280
  [82218.556267]  [<ffffffff8149a348>] console_callback+0x68/0x160
  [82218.556269]  [<ffffffff8108d8e2>] process_one_work+0x182/0x4e0
  [82218.556270]  [<ffffffff8108dcab>] worker_thread+0x6b/0x6a0
  [82218.556272]  [<ffffffff8178294d>] ? __schedule+0x39d/0x890
  [82218.556273]  [<ffffffff8108dc40>] ? process_one_work+0x4e0/0x4e0
  [82218.556275]  [<ffffffff81094aeb>] kthread+0xdb/0x100
  [82218.556277]  [<ffffffff81094a10>] ? kthread_create_on_node+0x1c0/0x1c0
  [82218.556278]  [<ffffffff81787c3c>] ret_from_fork+0x7c/0xb0
  [82218.556280]  [<ffffffff81094a10>] ? kthread_create_on_node+0x1c0/0x1c0
  [82218.556281] ---[ end trace b9c751133032cf61 ]---

  /var/log/Xorg.0.log had:
  [ 83252.384] (EE) Backtrace:
  [ 83253.063] (EE) 0: /usr/bin/X (xorg_backtrace+0x56) [0x7f80649a0666]
  [ 83253.063] (EE) 1: /usr/bin/X (0x7f80647ea000+0x1ba869) [0x7f80649a4869]
  [ 83253.063] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7f806251f000+0x36da0) [0x7f8062555da0]
  [ 83253.063] (EE) 3: /usr/bin/X (0x7f80647ea000+0x1378ec) [0x7f80649218ec]
  [ 83253.063] (EE) 4: /usr/bin/X (0x7f80647ea000+0x137d0c) [0x7f8064921d0c]
  [ 83253.063] (EE) 5: /usr/bin/X (0x7f80647ea000+0x137243) [0x7f8064921243]
  [ 83253.064] (EE) 6: /usr/bin/X (0x7f80647ea000+0xe9fa8) [0x7f80648d3fa8]
  [ 83253.064] (EE) 7: /usr/bin/X (0x7f80647ea000+0x1358fc) [0x7f806491f8fc]
  [ 83253.064] (EE) 8: /usr/bin/X (0x7f80647ea000+0x5b3b7) [0x7f80648453b7]
  [ 83253.064] (EE) 9: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf5) [0x7f8062540ec5]
  [ 83253.064] (EE) 10: /usr/bin/X (0x7f80647ea000+0x456ae) [0x7f806482f6ae]
  [ 83253.064] (EE)
  [ 83253.115] (EE) Segmentation fault at address 0x10


  Normally, I'm generally able to switch consoles in and out of X
  without problem. I do not know if the above trace is related to X
  being locked or not.

  I'll also attach the /var/log/Xorg.0.log.old that had some information
  in it also andapparent segfault.  That said, I think all log
  information is tens of seconds after the lock up and might be a result
  of me ctrl-alt-1 <-> ctrl-alt-f7 while system was in a borked state.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: linux-image-3.16.0-23-generic 3.16.0-23.30
  ProcVersionSignature: Ubuntu 3.16.0-23.30-generic 3.16.4
  Uname: Linux 3.16.0-23-generic x86_64
  ApportVersion: 2.14.7-0ubuntu8
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/pcmC0D0c:   smoser     4134 F...m pulseaudio
   /dev/snd/pcmC0D0p:   smoser     4134 F...m pulseaudio
   /dev/snd/controlC0:  smoser     4134 F.... pulseaudio
  CurrentDesktop: Unity
  Date: Wed Oct 22 10:29:16 2014
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2011-10-19 (1099 days ago)
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  MachineType: LENOVO 7417CTO
  PccardctlIdent:
   Socket 0:
     no product info available
  PccardctlStatus:
   Socket 0:
     no card
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-23-generic root=UUID=f9832678-e9fb-41c5-8edb-5edd5200ed0a ro quiet splash nomdmonddf nomdmonisw nomdmonddf nomdmonisw nomdmonddf nomdmonisw vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.16.0-23-generic N/A
   linux-backports-modules-3.16.0-23-generic  N/A
   linux-firmware                             1.136
  SourcePackage: linux
  UpgradeStatus: Upgraded to utopic on 2013-05-20 (520 days ago)
  dmi.bios.date: 10/17/2012
  dmi.bios.vendor: LENOVO
  dmi.bios.version: 7UET94WW (3.24 )
  dmi.board.name: 7417CTO
  dmi.board.vendor: LENOVO
  dmi.board.version: Not Available
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Not Available
  dmi.modalias: dmi:bvnLENOVO:bvr7UET94WW(3.24):bd10/17/2012:svnLENOVO:pn7417CTO:pvrThinkPadT400:rvnLENOVO:rn7417CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
  dmi.product.name: 7417CTO
  dmi.product.version: ThinkPad T400
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1384342/+subscriptions


References