From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 108879] [CIK] [regression] clinfo hangs indefinitely in si_create_context Date: Tue, 27 Nov 2018 12:48:26 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1243837662==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 8C54D6E27F for ; Tue, 27 Nov 2018 12:48:26 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1243837662== Content-Type: multipart/alternative; boundary="15433229060.ef68F.7790" Content-Transfer-Encoding: 7bit --15433229060.ef68F.7790 Date: Tue, 27 Nov 2018 12:48:26 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D108879 Bug ID: 108879 Summary: [CIK] [regression] clinfo hangs indefinitely in si_create_context Product: Mesa Version: 18.3 Hardware: All OS: All Status: NEW Severity: critical Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: vedran@miletic.net QA Contact: dri-devel@lists.freedesktop.org Bisected to 9b331e462e5021d994859756d46cd2519d9c9c6e. Tracing calls done by clinfo and pressing Ctrl+C gives: #0 0x00007ffff7e9cead in syscall () from /lib64/libc.so.6 #1 0x00007ffff143422c in sys_futex (val3=3D-1, addr2=3D0x0, timeout=3D0x0,= val1=3D2, op=3D9, addr1=3D0x555555899b08) at ../../src/util/futex.h:50=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #2 futex_wait (timeout=3D0x0, value=3D2, addr=3D0x555555899b08) at ../../src/util/futex.h:50 #3 do_futex_fence_wait (fence=3Dfence@entry=3D0x555555899b08, timeout=3Dtimeout@entry=3Dfalse, abs_timeout=3Dabs_timeout@entry=3D0) at u_= queue.c:115=20=20 #4 0x00007ffff1434739 in _util_queue_fence_wait (fence=3Dfence@entry=3D0x555555899b08) at u_queue.c:130=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #5 0x00007ffff146cd79 in util_queue_fence_wait (fence=3D0x555555899b08) at ../../../../src/util/u_queue.h:161=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 #6 si_bind_compute_state (ctx=3D0x5555558648c0, state=3D0x555555899af0) at si_compute.c:277 #7 0x00007ffff146eb79 in si_compute_do_clear_or_copy (sctx=3Dsctx@entry=3D0x5555558648c0, dst=3Ddst@entry=3D0x5555558a3910, dst_offset=3Ddst_offset@entry=3D0, src=3Dsrc@entry=3D0x0,=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 src_offset=3Dsrc_offset@entry=3D0, size=3Dsize@entry=3D16, clear_value=3D0x7fffffffcea0, clear_value_size=3D4, coher=3DSI_COHERENCY_SH= ADER) at si_compute_blit.c:131=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 #8 0x00007ffff146ecb0 in si_clear_buffer (sctx=3Dsctx@entry=3D0x5555558648= c0, dst=3D0x5555558a3910, offset=3Doffset@entry=3D0, size=3D16, clear_value=3Dclear_value@entry=3D0x7fffffffcea0,=20=20=20=20=20=20=20=20= =20=20 clear_value_size=3Dclear_value_size@entry=3D4, coher=3DSI_COHERENCY_SHA= DER) at si_compute_blit.c:217=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #9 0x00007ffff147de40 in si_create_context (screen=3Dscreen@entry=3D0x5555555e07c0, flags=3Dflags@entry=3D0) at si_pip= e.c:624=20=20=20=20=20=20 #10 0x00007ffff147e8d1 in radeonsi_screen_create (ws=3D, config=3D) at si_pipe.c:1123=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 #11 0x00007ffff143edfa in radeon_drm_winsys_create (fd=3Dfd@entry=3D4, config=3Dconfig@entry=3D0x7fffffffd038, screen_create=3Dscreen_create@entry=3D0x7ffff147e1c0 )=20=20=20=20=20 at radeon_drm_winsys.c:941 #12 0x00007ffff131b49d in create_screen (fd=3D4, config=3D0x7fffffffd038) at pipe_radeonsi.c:18=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #13 0x00007ffff7cc606b in pipe_loader_create_screen (dev=3D0x5555555ccc80) = at pipe_loader.c:137=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #14 0x00007ffff7ce744c in clover::device::device (this=3D0x5555555b9f50, platform=3D..., ldev=3D) at core/device.cpp:47=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #15 0x00007ffff7cf1584 in clover::create () at ./util/pointer.hpp:229=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #16 clover::platform::platform (this=3D0x7ffff7d9edc0 <(anonymous namespace)::_clover_platform>) at core/platform.cpp:36=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #17 0x00007ffff7cc5a26 in __static_initialization_and_destruction_0 (__initialize_p=3D1, __priority=3D65535) at api/platform.cpp:141=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #18 _GLOBAL__sub_I_platform.cpp(void) () at api/platform.cpp:141 #19 0x00007ffff7fe1dea in call_init.part () from /lib64/ld-linux-x86-64.so.2 #20 0x00007ffff7fe1eea in _dl_init () from /lib64/ld-linux-x86-64.so.2 #21 0x00007ffff7fe5edf in dl_open_worker () from /lib64/ld-linux-x86-64.so.2 #22 0x00007ffff7edf0d7 in _dl_catch_exception () from /lib64/libc.so.6 #23 0x00007ffff7fe574e in _dl_open () from /lib64/ld-linux-x86-64.so.2 #24 0x00007ffff7f6c39a in dlopen_doit () from /lib64/libdl.so.2 #25 0x00007ffff7edf0d7 in _dl_catch_exception () from /lib64/libc.so.6 #26 0x00007ffff7edf173 in _dl_catch_error () from /lib64/libc.so.6 #27 0x00007ffff7f6caf9 in _dlerror_run () from /lib64/libdl.so.2 #28 0x00007ffff7f6c43a in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2 #29 0x00007ffff7f76d11 in _initClIcd_real () from /lib64/libOpenCL.so.1 #30 0x00007ffff7f7935c in clGetPlatformIDs () from /lib64/libOpenCL.so.1 #31 0x000055555555a4ba in main () Removing the CIK-specific function call under /* Clear the NULL constant buffer, because loads should return zeros. */ makes clinfo work normally. --=20 You are receiving this mail because: You are the assignee for the bug.= --15433229060.ef68F.7790 Date: Tue, 27 Nov 2018 12:48:26 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 108879
Summary [CIK] [regression] clinfo hangs indefinitely in si_create_con= text
Product Mesa
Version 18.3
Hardware All
OS All
Status NEW
Severity critical
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter vedran@miletic.net
QA Contact dri-devel@lists.freedesktop.org

Bisected to 9b331e462e5021d994859756d46cd2519d9c9c6e.

Tracing calls done by clinfo and pressing Ctrl+C gives:

#0  0x00007ffff7e9cead in syscall () from /lib64/libc.so.6
#1  0x00007ffff143422c in sys_futex (val3=3D-1, addr2=3D0x0, timeout=3D0x0,=
 val1=3D2,
op=3D9, addr1=3D0x555555899b08) at ../../src/util/futex.h:50=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#2  futex_wait (timeout=3D0x0, value=3D2, addr=3D0x555555899b08) at
../../src/util/futex.h:50
#3  do_futex_fence_wait (fence=3Dfence@entry=3D0x555555899b08,
timeout=3Dtimeout@entry=3Dfalse, abs_timeout=3Dabs_timeout@entry=3D=
0) at u_queue.c:115=20=20
#4  0x00007ffff1434739 in _util_queue_fence_wait
(fence=3Dfence@entry=3D0x555555899b08) at u_queue.c:130=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#5  0x00007ffff146cd79 in util_queue_fence_wait (fence=3D0x555555899b08) at
../../../../src/util/u_queue.h:161=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20
#6  si_bind_compute_state (ctx=3D0x5555558648c0, state=3D0x555555899af0) at
si_compute.c:277
#7  0x00007ffff146eb79 in si_compute_do_clear_or_copy
(sctx=3Dsctx@entry=3D0x5555558648c0, dst=3Ddst@entry=3D0x5555558a39=
10,
dst_offset=3Ddst_offset@entry=3D0, src=3Dsrc@entry=3D0x0,=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20
    src_offset=3Dsrc_offset@entry=3D0, size=3Dsize@entry=3D16,
clear_value=3D0x7fffffffcea0, clear_value_size=3D4, coher=3DSI_COHERENCY_SH=
ADER) at
si_compute_blit.c:131=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
#8  0x00007ffff146ecb0 in si_clear_buffer (sctx=3Dsctx@entry=3D0x555555=
8648c0,
dst=3D0x5555558a3910, offset=3Doffset@entry=3D0, size=3D16,
clear_value=3Dclear_value@entry=3D0x7fffffffcea0,=20=20=20=20=20=20=20=
=20=20=20
    clear_value_size=3Dclear_value_size@entry=3D4, coher=3DSI_COHERENCY=
_SHADER) at
si_compute_blit.c:217=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#9  0x00007ffff147de40 in si_create_context
(screen=3Dscreen@entry=3D0x5555555e07c0, flags=3Dflags@entry=3D0) a=
t si_pipe.c:624=20=20=20=20=20=20
#10 0x00007ffff147e8d1 in radeonsi_screen_create (ws=3D<optimized out>=
;,
config=3D<optimized out>) at si_pipe.c:1123=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20
#11 0x00007ffff143edfa in radeon_drm_winsys_create (fd=3Dfd@entry=3D4,
config=3Dconfig@entry=3D0x7fffffffd038,
screen_create=3Dscreen_create@entry=3D0x7ffff147e1c0 <radeonsi_scree=
n_create>)=20=20=20=20=20
    at radeon_drm_winsys.c:941
#12 0x00007ffff131b49d in create_screen (fd=3D4, config=3D0x7fffffffd038) at
pipe_radeonsi.c:18=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#13 0x00007ffff7cc606b in pipe_loader_create_screen (dev=3D0x5555555ccc80) =
at
pipe_loader.c:137=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#14 0x00007ffff7ce744c in clover::device::device (this=3D0x5555555b9f50,
platform=3D..., ldev=3D<optimized out>) at core/device.cpp:47=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#15 0x00007ffff7cf1584 in clover::create<clover::device, clover::platfor=
m&,
pipe_loader_device*&> () at ./util/pointer.hpp:229=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#16 clover::platform::platform (this=3D0x7ffff7d9edc0 <(anonymous
namespace)::_clover_platform>) at core/platform.cpp:36=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#17 0x00007ffff7cc5a26 in __static_initialization_and_destruction_0
(__initialize_p=3D1, __priority=3D65535) at api/platform.cpp:141=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#18 _GLOBAL__sub_I_platform.cpp(void) () at api/platform.cpp:141
#19 0x00007ffff7fe1dea in call_init.part () from /lib64/ld-linux-x86-64.so.2
#20 0x00007ffff7fe1eea in _dl_init () from /lib64/ld-linux-x86-64.so.2
#21 0x00007ffff7fe5edf in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#22 0x00007ffff7edf0d7 in _dl_catch_exception () from /lib64/libc.so.6
#23 0x00007ffff7fe574e in _dl_open () from /lib64/ld-linux-x86-64.so.2
#24 0x00007ffff7f6c39a in dlopen_doit () from /lib64/libdl.so.2
#25 0x00007ffff7edf0d7 in _dl_catch_exception () from /lib64/libc.so.6
#26 0x00007ffff7edf173 in _dl_catch_error () from /lib64/libc.so.6
#27 0x00007ffff7f6caf9 in _dlerror_run () from /lib64/libdl.so.2
#28 0x00007ffff7f6c43a in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.=
so.2
#29 0x00007ffff7f76d11 in _initClIcd_real () from /lib64/libOpenCL.so.1
#30 0x00007ffff7f7935c in clGetPlatformIDs () from /lib64/libOpenCL.so.1
#31 0x000055555555a4ba in main ()

Removing the CIK-specific function call under /* Clear the NULL constant
buffer, because loads should return zeros. */ makes clinfo work normally.
        


You are receiving this mail because:
  • You are the assignee for the bug.
= --15433229060.ef68F.7790-- --===============1243837662== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1243837662==--