<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [GM965] compiz terminates with "intel_do_flush_locked failed: Device or resource busy""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=58732">58732</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GM965] compiz terminates with "intel_do_flush_locked failed: Device or resource busy"
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>daniel@gnoutcheff.name
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=72086" name="attach_72086" title="dmesg from 2012-12-24 occurrence">attachment 72086</a> <a href="attachment.cgi?id=72086&action=edit" title="dmesg from 2012-12-24 occurrence">[details]</a></span>
dmesg from 2012-12-24 occurrence

I use Ubuntu's compiz-based Unity desktop. Occasionally, compiz will terminate
with

  intel_do_flush_locked failed: Device or resource busy

If I then attempt to restart compiz, it initially starts up successfully, but
if I "use" it a little (e.g. if I open a new window or move an existing window
around), then within a second or so it terminates again with the same error. 
Every attempt to restart compiz fails in this way, and it continues to fail
even if I restart the xserver.  However, once I reboot the system, compiz runs
normally again.  

I'm attaching dmesg output, Xorg log, compiz stderr+stdout with
LIBGL_DEBUG=verbose, and intel_reg_dumper output.  dmesg contains
interesting-looking stack traces, the rest looks unenlightening.

System environment: 
-- chipset: GM965
-- system architecture: x86_64
-- xf86-video-intel: 2.20.9 (Ubuntu package version 2:2.20.9-0ubuntu2)
-- xserver: 1.13.0 (Ubuntu package version 2:1.13.0-0ubuntu6.1)
-- mesa: 9.0 (Ubuntu package version 9.0-0ubuntu1)
-- libdrm: 2.4.39 (Ubuntu package version 2.4.39-0ubuntu)
-- kernel: 3.5.? (Ubuntu package version 3.5.0-21-generic)
-- Linux distribution: Ubuntu 12.10
-- Machine or mobo model: Lenovo ThinkPad R61 7733A82
-- Display connector: internal LVDS

Here's the interesting-looking dmesg stacktrace:

  [210169.687137] ------------[ cut here ]------------
  [210169.687186] WARNING: at
/build/buildd/linux-3.5.0/drivers/gpu/drm/i915/i915
  _gem.c:3047 i915_gem_object_pin+0x15d/0x1b0 [i915]()
  [210169.687189] Hardware name: 7733A82
  [210169.687190] Modules linked in: hid_generic usbhid hid mmc_block usblp
snd_seq_dummy snd_hrtimer nls_iso8859_1 cdc_ether cdc_phonet usbnet phonet
cdc_acm usb_storage pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O)
deflate zlib_deflate twofish_generic ctr twofish_x86_64_3way twofish_x86_64
twofish_common camellia_generic camellia_x86_64 serpent_sse2_x86_64 cryptd lrw
serpent_generic xts gf128mul blowfish_generic blowfish_x86_64 blowfish_common
cast5 nfsd des_generic xcbc nfs rmd160 sha512_generic crypto_null af_key lockd
xfrm_algo fscache auth_rpcgss bnep nfs_acl rfcomm parport_pc sunrpc bluetooth
ppdev binfmt_misc dm_crypt arc4 snd_hda_codec_analog snd_hda_intel joydev
snd_hda_codec coretemp thinkpad_acpi snd_hwdep snd_pcm ath5k r852 kvm_intel
snd_seq_midi sm_common snd_rawmidi nand ath snd_seq_midi_event nand_ids snd_seq
mtd kvm nand_bch snd_timer tp_smapi(O) bch r592 thinkpad_ec(O) mac80211
snd_seq_device pcmcia firewire_sbp2 memstick nand_ecc psmouse cfg80211
yenta_socket dm_multipath pcmcia_rsrc snd pcmcia_core scsi_dh snd_page_alloc
microcode mac_hid soundcore serio_raw lp nvram lpc_ich tpm_tis parport
sdhci_pci sdhci firewire_ohci firewire_core crc_itu_t i915 drm_kms_helper drm
i2c_algo_bit e1000e video wmi
  [210169.687280] Pid: 2911, comm: compiz Tainted: G           O
3.5.0-21-generic #32-Ubuntu
  [210169.687282] Call Trace:
  [210169.687290]  [<ffffffff81051c1f>] warn_slowpath_common+0x7f/0xc0
  [210169.687294]  [<ffffffff81051c7a>] warn_slowpath_null+0x1a/0x20
  [210169.687308]  [<ffffffffa00da93d>] i915_gem_object_pin+0x15d/0x1b0 [i915]
  [210169.687329]  [<ffffffffa006094b>] ? drm_mm_put_block+0x5b/0x80 [drm]
  [210169.687343]  [<ffffffffa00dd530>] pin_and_fence_object.isra.5+0xa0/0x140
[i915]
  [210169.687357]  [<ffffffffa00dd796>]
i915_gem_execbuffer_reserve.isra.6+0x1c6/0x420 [i915]
  [210169.687372]  [<ffffffffa00de027>]
i915_gem_do_execbuffer.isra.9+0x5a7/0x1450 [i915]
  [210169.687377]  [<ffffffff8141372b>] ? intel_gtt_chipset_flush+0x1b/0x20
  [210169.687391]  [<ffffffffa00d942f>] ?
i915_gem_shmem_pwrite.isra.25+0x34f/0x530 [i915]
  [210169.687405]  [<ffffffffa00df3ac>] ? i915_gem_execbuffer2+0x5c/0x290
[i915]
  [210169.687419]  [<ffffffffa00df3ac>] ? i915_gem_execbuffer2+0x5c/0x290
[i915]
  [210169.687434]  [<ffffffffa00df401>] i915_gem_execbuffer2+0xb1/0x290 [i915]
  [210169.687446]  [<ffffffffa00556d3>] drm_ioctl+0x4d3/0x580 [drm]
  [210169.687461]  [<ffffffffa00df350>] ? i915_gem_execbuffer+0x480/0x480
[i915]
  [210169.687466]  [<ffffffff8155ef7c>] ? sys_recvfrom+0x12c/0x170
  [210169.687470]  [<ffffffff8108a89f>] ? __dequeue_entity+0x2f/0x50
  [210169.687474]  [<ffffffff81193bd9>] do_vfs_ioctl+0x99/0x590
  [210169.687479]  [<ffffffff8168207f>] ? __schedule+0x3cf/0x7c0
  [210169.687483]  [<ffffffff81194169>] sys_ioctl+0x99/0xa0
  [210169.687487]  [<ffffffff8168b969>] system_call_fastpath+0x16/0x1b
  [210169.687490] ---[ end trace 26e0b7909e6d35b8 ]---
  [210186.317236] ------------[ cut here ]------------</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>