Bug 42726

Summary: resizing mplayer window results in "intel_do_flush_locked failed: Invalid argument"
Product: Mesa Reporter: Clemens Eisserer <linuxhippy>
Component: Drivers/DRI/i915Assignee: Ian Romanick <idr>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Clemens Eisserer 2011-11-08 16:18:28 UTC
When playing a video using gmplayer's "gl" backend and resizing the video window, mplayer aborts with the following message: 

intel_do_flush_locked failed: Invalid argument

in syslog the following message is printed:

[20044.354358] [drm:i915_gem_object_bind_to_gtt] *ERROR* Attempting to bind a purgeable object

Strangly, this doesn't happen with mplayer, just with gmplayer.

intel i945GM
libdrm-2.4.27
pixman-0.23.8
linux-3.1.0
xorg 1.11.1

OpenGL renderer string: Mesa DRI Intel(R) 945GM x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 7.12-devel (git-44c65d0)
Comment 1 Chris Wilson 2011-11-09 04:53:47 UTC
This papers over the cracks a little more firmly:

commit fcc89d26600a57317007035fa720915e8a2ade81
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Nov 9 12:25:43 2011 +0000

    sna: Safety first; make all flinked bo unreusable
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

commit 2699c01a396b644a35a9acb969ab556454be3517
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Nov 9 12:27:52 2011 +0000

    sna: Handle non-reusable bo more correctly during retire
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

commit 436a78684507129ca1245e065ff68870eb27624b
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Nov 9 12:48:27 2011 +0000

    sna: Track purgeability separately from reusability
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 2 Clemens Eisserer 2011-11-12 07:32:57 UTC
I still get a crash resizing, however this time without syslog messages.
Should I file a new bug-report?

0x0052f416 in __kernel_vsyscall ()
(gdb) bt
#0  0x0052f416 in __kernel_vsyscall ()
#1  0x415f698f in __GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0x415f82d5 in __GI_abort () at abort.c:91
#3  0x415ef6a5 in __assert_fail_base (fmt=
    0x4172f8e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=
    0x79533d "!intel->tnl_pipeline_running", file=0x7952f5 "intel_tris.c", 
    line=1231, function=0x795548 "intelFallback") at assert.c:94
#4  0x415ef757 in __GI___assert_fail (assertion=
    0x79533d "!intel->tnl_pipeline_running", file=0x7952f5 "intel_tris.c", 
    line=1231, function=0x795548 "intelFallback") at assert.c:103
#5  0x0058f0d4 in intelFallback (intel=0x959a348, bit=4, mode=true)
    at intel_tris.c:1244
#6  0x00569310 in i915_update_draw_buffer (intel=0x959a348) at i915_vtbl.c:771
#7  0x0056bd71 in intel_draw_buffer (ctx=0x959a348)
    at ../../../../../src/mesa/drivers/dri/intel/intel_buffers.h:50
#8  intel_prepare_render (intel=0x959a348) at intel_context.c:412
#9  0x00568d7b in i915_render_start (intel=0x959a348) at i915_vtbl.c:63
#10 0x0057a1ab in intelRenderStart (ctx=0x959a348) at intel_tris.c:1108
#11 0x006447fe in run_render (ctx=0x959a348, stage=0x95f6230)
    at tnl/t_vb_render.c:276
#12 0x0063a31f in _tnl_run_pipeline (ctx=0x959a348) at tnl/t_pipeline.c:163
#13 0x0058ee6a in intelRunPipeline (ctx=0x959a348) at intel_tris.c:1095
---Type <return> to continue, or q <return> to quit---
#14 0x0063ac1f in _tnl_draw_prims (ctx=0x959a348, arrays=0x95e4134, prim=
    0x95e2a90, nr_prims=1, ib=0x0, min_index=0, max_index=3)
    at tnl/t_draw.c:538
#15 0x0063b2d1 in _tnl_vbo_draw_prims (ctx=0x959a348, arrays=0x95e4134, prim=
    0x95e2a90, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, 
    max_index=3) at tnl/t_draw.c:438
#16 0x0062bec8 in vbo_exec_vtx_flush (exec=0x95e2880, keepUnmapped=1 '\001')
    at vbo/vbo_exec_draw.c:379
#17 0x00620db7 in vbo_exec_FlushVertices_internal (exec=0x95e2880, 
    unmap=<optimized out>) at vbo/vbo_exec_api.c:443
#18 0x00629a8f in vbo_exec_FlushVertices (ctx=0x959a348, flags=1)
    at vbo/vbo_exec_api.c:1051
#19 0x00737ff3 in _mesa_set_enable (ctx=0x959a348, cap=34820, state=0 '\000')
    at main/enable.c:834
#20 0x00738120 in _mesa_Disable (cap=34820) at main/enable.c:959
#21 0x0809ed33 in ?? ()
#22 0x0809fdf5 in ?? ()
#23 0x08079ee8 in main ()

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.