[Bug 98532] [ivb] meta mutex deadlock

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 1 16:30:59 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=98532

            Bug ID: 98532
           Summary: [ivb] meta mutex deadlock
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i965
          Assignee: idr at freedesktop.org
          Reporter: chris at chris-wilson.co.uk
        QA Contact: intel-3d-bugs at lists.freedesktop.org

Running "piglit run gpu" stalls in a sea of mutex deadlocks on Ivybridge:

#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f0ede892bc5 in __GI___pthread_mutex_lock (mutex=0x562520431208) at
../nptl/pthread_mutex_lock.c:80
#2  0x00007f0edd667a73 in mtx_lock (mtx=<optimized out>) at
../../include/c11/threads_posix.h:227
#3  _mesa_lock_context_textures (ctx=ctx at entry=0x7f0ee3a44038) at
main/texobj.c:2017
#4  0x00007f0edd634419 in _mesa_update_state (ctx=ctx at entry=0x7f0ee3a44038) at
main/state.c:496
#5  0x00007f0edd7771ed in _mesa_meta_pbo_TexSubImage
(ctx=ctx at entry=0x7f0ee3a44038, dims=dims at entry=2,
tex_image=tex_image at entry=0x562520879350, xoffset=xoffset at entry=0, 
    yoffset=yoffset at entry=0, zoffset=<optimized out>, zoffset at entry=0,
width=256, height=256, depth=1, format=6408, type=5121, pixels=0x5625207543f0,
create_pbo=true, 
    packing=0x7f0ee3a5f2a8) at drivers/common/meta_tex_subimage.c:269
#6  0x00007f0edd9a163d in intelTexSubImage (ctx=0x7f0ee3a44038, dims=2,
texImage=0x562520879350, xoffset=0, yoffset=0, zoffset=0, width=256,
height=256, depth=1, format=6408, 
    type=5121, pixels=0x5625207543f0, packing=0x7f0ee3a5f2a8) at
intel_tex_subimage.c:202
#7  0x00007f0edd65af0a in _mesa_texture_sub_image (dsa=false,
pixels=0x5625207543f0, type=5121, format=6408, depth=1, height=256, width=256,
zoffset=0, yoffset=0, 
    xoffset=<optimized out>, level=0, target=34037, texImage=0x562520879350,
texObj=0x562520877c50, dims=2, ctx=0x7f0ee3a44038) at main/teximage.c:3239
#8  texsubimage (callerName=0x7f0eddb1d6a1 "glTexSubImage2D",
pixels=0x5625207543f0, type=5121, format=6408, depth=1, height=256, width=256,
zoffset=0, yoffset=0, xoffset=0, 
    level=0, target=34037, dims=2, ctx=0x7f0ee3a44038) at main/teximage.c:3297
#9  _mesa_TexSubImage2D (target=34037, level=level at entry=0,
xoffset=xoffset at entry=0, yoffset=yoffset at entry=0, width=width at entry=256,
height=height at entry=256, format=6408, 
    type=5121, pixels=0x5625207543f0) at main/teximage.c:3438
#10 0x00007f0edd77b951 in _mesa_meta_setup_drawpix_texture
(ctx=ctx at entry=0x7f0ee3a44038, tex=tex at entry=0x5625206f98d4,
newTex=newTex at entry=0 '\000', width=width at entry=256, 
    height=height at entry=256, format=format at entry=6408, type=5121,
pixels=0x5625207543f0) at drivers/common/meta.c:1450
#11 0x00007f0edd77c9b3 in _mesa_meta_DrawPixels (ctx=ctx at entry=0x7f0ee3a44038,
x=x at entry=0, y=y at entry=0, width=width at entry=256, height=height at entry=256,
format=format at entry=6408, 
    type=5121, unpack=0x7f0ee3a5f2a8, pixels=0x5625207543f0) at
drivers/common/meta.c:2294
#12 0x00007f0edd99be37 in intelDrawPixels (ctx=0x7f0ee3a44038, x=0, y=0,
width=256, height=256, format=6408, type=5121, unpack=0x7f0ee3a5f2a8,
pixels=0x5625207543f0)
    at intel_pixel_draw.c:174
#13 0x00007f0edd4ed932 in _mesa_DrawPixels (width=256, height=256, format=6408,
type=5121, pixels=0x5625207543f0) at main/drawpix.c:163
#14 0x0000562520203d09 in test_mipmap_copypixels (srcIntFormat=6408,
dstIntFormat=6408, doPixelTransfer=0 '\000', useReadDrawPix=1 '\001')
    at /usr/src/piglit/tests/fbo/fbo-mipmap-copypix.c:172
#15 0x00005625202040ad in piglit_display () at
/usr/src/piglit/tests/fbo/fbo-mipmap-copypix.c:265
#16 0x00007f0ee35ab18b in run_test (gl_fw=0x562520417c20, argc=1,
argv=0x7ffd3f607d98) at
/usr/src/piglit/tests/util/piglit-framework-gl/piglit_fbo_framework.c:52
#17 0x00007f0ee35915cc in piglit_gl_test_run (argc=1, argv=0x7ffd3f607d98,
config=0x7ffd3f607c60) at /usr/src/piglit/tests/util/piglit-framework-gl.c:203
#18 0x0000562520203860 in main (argc=1, argv=0x7ffd3f607d98) at
/usr/src/piglit/tests/fbo/fbo-mipmap-copypix.c:42


Another:

#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007fcabbab6bc5 in __GI___pthread_mutex_lock (mutex=0x556a56782208) at
../nptl/pthread_mutex_lock.c:80
#2  0x00007fcaba88ba73 in mtx_lock (mtx=<optimized out>) at
../../include/c11/threads_posix.h:227
#3  _mesa_lock_context_textures (ctx=ctx at entry=0x7fcac0c68038) at
main/texobj.c:2017
#4  0x00007fcaba858419 in _mesa_update_state (ctx=ctx at entry=0x7fcac0c68038) at
main/state.c:496
#5  0x00007fcaba99b64f in _mesa_meta_pbo_GetTexSubImage
(ctx=ctx at entry=0x7fcac0c68038, dims=dims at entry=3,
tex_image=tex_image at entry=0x556a56a58f10, xoffset=xoffset at entry=0, 
    yoffset=yoffset at entry=0, zoffset=zoffset at entry=0, width=32, height=1,
depth=1, format=6408, type=5121, pixels=0x0, packing=0x7fcac0c83270)
    at drivers/common/meta_tex_subimage.c:432
#6  0x00007fcababc44cc in intel_get_tex_sub_image (ctx=0x7fcac0c68038,
xoffset=0, yoffset=0, zoffset=0, width=32, height=1, depth=1, format=6408,
type=5121, pixels=0x0, 
    texImage=0x556a56a58f10) at intel_tex_image.c:555
#7  0x00007fcaba875a21 in get_texture_image (ctx=ctx at entry=0x7fcac0c68038,
texObj=texObj at entry=0x556a56a58ac0, target=target at entry=3552,
level=level at entry=0, 
    xoffset=xoffset at entry=0, yoffset=yoffset at entry=0, zoffset=0, width=32,
height=1, depth=1, format=6408, type=5121, pixels=0x0, caller=<optimized out>)
at main/texgetimage.c:1344
#8  0x00007fcaba877c37 in _mesa_GetTexImage (target=3552, level=0, format=6408,
type=5121, pixels=0x0) at main/texgetimage.c:1412
#9  0x00007fcac0756359 in stub_glGetTexImage (target=3552, level=0,
format=6408, type=5121, pixels=0x0) at
/usr/src/piglit/tests/util/piglit-dispatch-gen.c:26454
#10 0x0000556a56554c0c in getTexImage (doPBO=true, target=3552,
data=0x7fff8dce4d50, internalformat=32856, tolerance=0) at
/usr/src/piglit/tests/texturing/getteximage-targets.c:196
#11 0x0000556a565550f4 in piglit_init (argc=2, argv=0x7fff8dcf6f28) at
/usr/src/piglit/tests/texturing/getteximage-targets.c:318
#12 0x00007fcac07cf16e in run_test (gl_fw=0x556a56768c20, argc=2,
argv=0x7fff8dcf6f28) at
/usr/src/piglit/tests/util/piglit-framework-gl/piglit_fbo_framework.c:50
#13 0x00007fcac07b55cc in piglit_gl_test_run (argc=2, argv=0x7fff8dcf6f28,
config=0x7fff8dcf6df0) at /usr/src/piglit/tests/util/piglit-framework-gl.c:203
#14 0x0000556a56554430 in main (argc=2, argv=0x7fff8dcf6f28) at
/usr/src/piglit/tests/texturing/getteximage-targets.c:33

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20161101/83de318f/attachment.html>


More information about the intel-3d-bugs mailing list