[Mesa-dev] [PATCH 2/4] radeonsi: use compute shaders for clear_buffer & copy_buffer

Michel Dänzer michel at daenzer.net
Thu Oct 18 07:32:19 UTC 2018


On 2018-10-17 6:43 p.m., Marek Olšák wrote:
> Can you test the attached patch?

Doesn't help, unfortunately. Backtraces with the patch attached.

FWIW, this is on Bonaire.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
-------------- next part --------------
Thread 22 (Thread 0x7f2f6f7fe700 (LWP 7364)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1f2f0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1f2a0, cond=0x55e398d1f2c8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1f2c8, mutex=0x55e398d1f2a0) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1f2a0, cond=0x55e398d1f2c8) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d227f0) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2f6f7fe700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 21 (Thread 0x7f2f6ffff700 (LWP 7363)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1f2f0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1f2a0, cond=0x55e398d1f2c8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1f2c8, mutex=0x55e398d1f2a0) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1f2a0, cond=0x55e398d1f2c8) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d22640) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2f6ffff700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 20 (Thread 0x7f2f88ff9700 (LWP 7362)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1f2f0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1f2a0, cond=0x55e398d1f2c8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1f2c8, mutex=0x55e398d1f2a0) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1f2a0, cond=0x55e398d1f2c8) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d22490) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2f88ff9700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 19 (Thread 0x7f2f897fa700 (LWP 7361)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1f2f0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1f2a0, cond=0x55e398d1f2c8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1f2c8, mutex=0x55e398d1f2a0) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1f2a0, cond=0x55e398d1f2c8) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d222e0) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2f897fa700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 18 (Thread 0x7f2f89ffb700 (LWP 7360)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1f2f0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1f2a0, cond=0x55e398d1f2c8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1f2c8, mutex=0x55e398d1f2a0) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1f2a0, cond=0x55e398d1f2c8) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d238c0) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2f89ffb700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 17 (Thread 0x7f2f8a7fc700 (LWP 7359)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1ed70) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1ed20, cond=0x55e398d1ed48) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1ed48, mutex=0x55e398d1ed20) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1ed20, cond=0x55e398d1ed48) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d217b0) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2f8a7fc700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 16 (Thread 0x7f2f8affd700 (LWP 7358)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1ed70) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1ed20, cond=0x55e398d1ed48) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1ed48, mutex=0x55e398d1ed20) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1ed20, cond=0x55e398d1ed48) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d21600) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2f8affd700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 15 (Thread 0x7f2f8b7fe700 (LWP 7357)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1ed70) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1ed20, cond=0x55e398d1ed48) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1ed48, mutex=0x55e398d1ed20) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1ed20, cond=0x55e398d1ed48) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d21450) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2f8b7fe700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7f2f8bfff700 (LWP 7356)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1ed70) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1ed20, cond=0x55e398d1ed48) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1ed48, mutex=0x55e398d1ed20) at pthread_cond_wait.c:655
---Type <return> to continue, or q <return> to quit---
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1ed20, cond=0x55e398d1ed48) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d212a0) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2f8bfff700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7f2fa8ff9700 (LWP 7355)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1ed70) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1ed20, cond=0x55e398d1ed48) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1ed48, mutex=0x55e398d1ed20) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1ed20, cond=0x55e398d1ed48) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d210f0) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2fa8ff9700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7f2fa97fa700 (LWP 7354)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1ed70) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1ed20, cond=0x55e398d1ed48) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1ed48, mutex=0x55e398d1ed20) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1ed20, cond=0x55e398d1ed48) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d20f40) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2fa97fa700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7f2fa9ffb700 (LWP 7353)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1ed70) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1ed20, cond=0x55e398d1ed48) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1ed48, mutex=0x55e398d1ed20) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1ed20, cond=0x55e398d1ed48) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d20d90) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2fa9ffb700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7f2faa7fc700 (LWP 7352)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1ed70) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1ed20, cond=0x55e398d1ed48) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1ed48, mutex=0x55e398d1ed20) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1ed20, cond=0x55e398d1ed48) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d20be0) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2faa7fc700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f2faaffd700 (LWP 7351)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1ed70) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1ed20, cond=0x55e398d1ed48) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1ed48, mutex=0x55e398d1ed20) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1ed20, cond=0x55e398d1ed48) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d20a30) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2faaffd700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f2fab7fe700 (LWP 7350)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1ed70) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1ed20, cond=0x55e398d1ed48) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1ed48, mutex=0x55e398d1ed20) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1ed20, cond=0x55e398d1ed48) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d1f9f0) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2fab7fe700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f2fabfff700 (LWP 7349)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f2fbcd006c6 in __GI___pthread_mutex_lock (mutex=0x7f2fc20b4968 <_rtld_global+2312>) at ../nptl/pthread_mutex_lock.c:113
#2  0x00007f2fc209d5b7 in tls_get_addr_tail (ti=0x7f2fbff00f78, dtv=0x55e398d1f890, the_map=0x55e398cb2300) at ../elf/dl-tls.c:761
#3  0x00007f2fc20a3288 in __tls_get_addr () at ../sysdeps/x86_64/tls_get_addr.S:55
#4  0x00007f2fbe3ab4d3 in llvm::PrettyStackTraceEntry::PrettyStackTraceEntry (this=0x7f2fabff9968) at ../lib/Support/PrettyStackTrace.cpp:137
#5  0x00007f2fbe5450be in llvm::PassManagerPrettyStackEntry::PassManagerPrettyStackEntry (this=0x7f2fbfcc7850 <vtable for llvm::PrettyStackTraceEntry+16>, p=0x55e398d76020, m=...) at ../include/llvm/IR/LegacyPassManagers.h:127
#6  (anonymous namespace)::MPPassManager::runOnModule (this=<optimized out>, M=...) at ../lib/IR/LegacyPassManager.cpp:1741
#7  llvm::legacy::PassManagerImpl::run (this=0x55e398d73a80, M=...) at ../lib/IR/LegacyPassManager.cpp:1857
#8  0x00007f2fbe4a5a5e in LLVMRunPassManager (PM=0x7f2fc20b4968 <_rtld_global+2312>, M=0x80) at ../lib/IR/Core.cpp:3733
#9  0x00007f2fbb71c23d in si_llvm_optimize_module (ctx=ctx at entry=0x7f2fabff9cb0) at ../../../../../src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c:1157
#10 0x00007f2fbb70e58d in si_compile_tgsi_shader () at ../../../../../src/gallium/drivers/radeonsi/si_shader.c:6953
#11 0x00007f2fbb70f605 in si_shader_create (sscreen=sscreen at entry=0x55e398d1e6d0, compiler=compiler at entry=0x55e398d1ee18, shader=shader at entry=0x55e39919fc38, debug=debug at entry=0x55e39919fbf8) at ../../../../../src/gallium/drivers/radeonsi/si_shader.c:8045
#12 0x00007f2fbb6e2faf in si_create_compute_state_async (job=job at entry=0x55e39919fbd0, thread_index=thread_index at entry=1) at ../../../../../src/gallium/drivers/radeonsi/si_compute.c:152
#13 0x00007f2fbb69de4a in util_queue_thread_func (input=input at entry=0x55e398d19840) at ../../../src/util/u_queue.c:286
#14 0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#15 0x00007f2fbccfdf2a in start_thread (arg=0x7f2fabfff700) at pthread_create.c:463
#16 0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

---Type <return> to continue, or q <return> to quit---
Thread 6 (Thread 0x7f2fb8e94700 (LWP 7348)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f2fbcd006c6 in __GI___pthread_mutex_lock (mutex=0x7f2fc20b4968 <_rtld_global+2312>) at ../nptl/pthread_mutex_lock.c:113
#2  0x00007f2fc209d5b7 in tls_get_addr_tail (ti=0x7f2fbff00f78, dtv=0x55e398d1f700, the_map=0x55e398cb2300) at ../elf/dl-tls.c:761
#3  0x00007f2fc20a3288 in __tls_get_addr () at ../sysdeps/x86_64/tls_get_addr.S:55
#4  0x00007f2fbe3ab4d3 in llvm::PrettyStackTraceEntry::PrettyStackTraceEntry (this=0x7f2fb8e8e968) at ../lib/Support/PrettyStackTrace.cpp:137
#5  0x00007f2fbe5450be in llvm::PassManagerPrettyStackEntry::PassManagerPrettyStackEntry (this=0x7f2fbfcc7850 <vtable for llvm::PrettyStackTraceEntry+16>, p=0x55e398d2eaf0, m=...) at ../include/llvm/IR/LegacyPassManagers.h:127
#6  (anonymous namespace)::MPPassManager::runOnModule (this=<optimized out>, M=...) at ../lib/IR/LegacyPassManager.cpp:1741
#7  llvm::legacy::PassManagerImpl::run (this=0x55e398d27840, M=...) at ../lib/IR/LegacyPassManager.cpp:1857
#8  0x00007f2fbe4a5a5e in LLVMRunPassManager (PM=0x7f2fc20b4968 <_rtld_global+2312>, M=0x80) at ../lib/IR/Core.cpp:3733
#9  0x00007f2fbb71c23d in si_llvm_optimize_module (ctx=ctx at entry=0x7f2fb8e8ecb0) at ../../../../../src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c:1157
#10 0x00007f2fbb70e58d in si_compile_tgsi_shader () at ../../../../../src/gallium/drivers/radeonsi/si_shader.c:6953
#11 0x00007f2fbb70f605 in si_shader_create (sscreen=sscreen at entry=0x55e398d1e6d0, compiler=compiler at entry=0x55e398d1ede8, shader=shader at entry=0x55e39919f4a8, debug=debug at entry=0x55e39919f468) at ../../../../../src/gallium/drivers/radeonsi/si_shader.c:8045
#12 0x00007f2fbb6e2faf in si_create_compute_state_async (job=job at entry=0x55e39919f440, thread_index=thread_index at entry=0) at ../../../../../src/gallium/drivers/radeonsi/si_compute.c:152
#13 0x00007f2fbb69de4a in util_queue_thread_func (input=input at entry=0x55e398d19880) at ../../../src/util/u_queue.c:286
#14 0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#15 0x00007f2fbccfdf2a in start_thread (arg=0x7f2fb8e94700) at pthread_create.c:463
#16 0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f2fb9695700 (LWP 7347)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1f618) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1f5c8, cond=0x55e398d1f5f0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1f5f0, mutex=0x55e398d1f5c8) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1f5c8, cond=0x55e398d1f5f0) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d198a0) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2fb9695700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f2fb9fd7700 (LWP 7346)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d1ba00) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d1b9b0, cond=0x55e398d1b9d8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d1b9d8, mutex=0x55e398d1b9b0) at pthread_cond_wait.c:655
#3  0x00007f2fbb69dcfa in cnd_wait (mtx=0x55e398d1b9b0, cond=0x55e398d1b9d8) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d19820) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbb69d8e8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2fb9fd7700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f2fba801700 (LWP 7345)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d0b738) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d0b6e8, cond=0x55e398d0b710) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d0b710, mutex=0x55e398d0b6e8) at pthread_cond_wait.c:655
#3  0x00007f2fbc229bea in cnd_wait (mtx=0x55e398d0b6e8, cond=0x55e398d0b710) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398d0cc10) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbc2297d8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2fba801700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f2fbb189700 (LWP 7344)):
#0  0x00007f2fbcd03e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e398d0aac0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e398d0aa70, cond=0x55e398d0aa98) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e398d0aa98, mutex=0x55e398d0aa70) at pthread_cond_wait.c:655
#3  0x00007f2fbc229bea in cnd_wait (mtx=0x55e398d0aa70, cond=0x55e398d0aa98) at ../../../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input at entry=0x55e398cf4a20) at ../../../src/util/u_queue.c:270
#5  0x00007f2fbc2297d8 in impl_thrd_routine (p=<optimized out>) at ../../../include/c11/threads_posix.h:87
#6  0x00007f2fbccfdf2a in start_thread (arg=0x7f2fbb189700) at pthread_create.c:463
#7  0x00007f2fc1d79edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f2fc1c7f740 (LWP 7343)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007f2fbb69d89c in sys_futex (val3=-1, addr2=0x0, timeout=0x0, val1=2, op=9, addr1=0x55e39919f458) at ../../../src/util/futex.h:50
#2  futex_wait (timeout=0x0, value=2, addr=0x55e39919f458) at ../../../src/util/futex.h:50
#3  do_futex_fence_wait (fence=fence at entry=0x55e39919f458, timeout=timeout at entry=false, abs_timeout=abs_timeout at entry=0) at ../../../src/util/u_queue.c:115
#4  0x00007f2fbb69dfd9 in _util_queue_fence_wait (fence=fence at entry=0x55e39919f458) at ../../../src/util/u_queue.c:130
#5  0x00007f2fbb6e2ab9 in util_queue_fence_wait (fence=0x55e39919f458) at ../../../../../src/util/u_queue.h:161
#6  si_bind_compute_state (ctx=0x55e39912cf40, state=0x55e39919f440) at ../../../../../src/gallium/drivers/radeonsi/si_compute.c:277
#7  0x00007f2fbb6e5436 in si_compute_do_clear_or_copy (sctx=sctx at entry=0x55e39912cf40, dst=dst at entry=0x55e399184ec0, dst_offset=dst_offset at entry=0, src=src at entry=0x0, src_offset=src_offset at entry=0, size=size at entry=16, clear_value=0x7ffe13e37410, 
    clear_value_size=4, coher=SI_COHERENCY_SHADER) at ../../../../../src/gallium/drivers/radeonsi/si_compute_blit.c:131
#8  0x00007f2fbb6e57c1 in si_clear_buffer (sctx=sctx at entry=0x55e39912cf40, dst=0x55e399184ec0, offset=offset at entry=0, size=16, clear_value=clear_value at entry=0x7ffe13e37410, clear_value_size=clear_value_size at entry=4, coher=SI_COHERENCY_SHADER)
    at ../../../../../src/gallium/drivers/radeonsi/si_compute_blit.c:217
#9  0x00007f2fbb6f7cbf in si_create_context (screen=screen at entry=0x55e398d1e6d0, flags=flags at entry=0) at ../../../../../src/gallium/drivers/radeonsi/si_pipe.c:623
#10 0x00007f2fbb6f8681 in radeonsi_screen_create (ws=<optimized out>, config=<optimized out>) at ../../../../../src/gallium/drivers/radeonsi/si_pipe.c:1117
#11 0x00007f2fbb6b3add in amdgpu_winsys_create (fd=fd at entry=5, config=config at entry=0x7ffe13e375a8, screen_create=screen_create at entry=0x7f2fbb6f80a0 <radeonsi_screen_create>) at ../../../../../../src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c:351
#12 0x00007f2fbb4db551 in create_screen (fd=5, config=0x7ffe13e375a8) at ../../../../../src/gallium/targets/pipe-loader/pipe_radeonsi.c:15
#13 0x00007f2fc05866ad in pipe_loader_create_screen (dev=0x55e398cf8b70) at ../../../../../src/gallium/auxiliary/pipe-loader/pipe_loader.c:137
#14 0x00007f2fc05a9411 in clover::device::device(clover::platform&, pipe_loader_device*) () at ../../../../../src/gallium/state_trackers/clover/core/device.cpp:47
#15 0x00007f2fc05b44f1 in clover::create<clover::device, clover::platform&, pipe_loader_device*&> () at ../../../../../src/gallium/state_trackers/clover/util/pointer.hpp:229
#16 clover::platform::platform() () at ../../../../../src/gallium/state_trackers/clover/core/platform.cpp:36
#17 0x00007f2fc0585d86 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at ../../../../../src/gallium/state_trackers/clover/api/platform.cpp:141
#18 _GLOBAL__sub_I_platform.cpp(void) () at ../../../../../src/gallium/state_trackers/clover/api/platform.cpp:141
#19 0x00007f2fc209b0ca in call_init (l=<optimized out>, argc=argc at entry=1, argv=argv at entry=0x7ffe13e37e78, env=env at entry=0x7ffe13e37e88) at dl-init.c:72
#20 0x00007f2fc209b1d6 in call_init (env=0x7ffe13e37e88, argv=0x7ffe13e37e78, argc=1, l=<optimized out>) at dl-init.c:118
#21 _dl_init (main_map=main_map at entry=0x55e398cb0970, argc=1, argv=0x7ffe13e37e78, env=0x7ffe13e37e88) at dl-init.c:119
#22 0x00007f2fc209f253 in dl_open_worker (a=a at entry=0x7ffe13e37970) at dl-open.c:522
---Type <return> to continue, or q <return> to quit---
#23 0x00007f2fc1db5adf in __GI__dl_catch_exception (exception=exception at entry=0x7ffe13e37950, operate=operate at entry=0x7f2fc209eec0 <dl_open_worker>, args=args at entry=0x7ffe13e37970) at dl-error-skeleton.c:196
#24 0x00007f2fc209eb1a in _dl_open (file=0x55e398cb1940 "libMesaOpenCL.so.1", mode=-2147483647, caller_dlopen=0x7f2fc1e489af, nsid=<optimized out>, argc=1, argv=<optimized out>, env=0x7ffe13e37e88) at dl-open.c:605
#25 0x00007f2fc1e40276 in dlopen_doit (a=a at entry=0x7ffe13e37ba0) at dlopen.c:66
#26 0x00007f2fc1db5adf in __GI__dl_catch_exception (exception=exception at entry=0x7ffe13e37b40, operate=operate at entry=0x7f2fc1e40220 <dlopen_doit>, args=args at entry=0x7ffe13e37ba0) at dl-error-skeleton.c:196
#27 0x00007f2fc1db5b6f in __GI__dl_catch_error (objname=objname at entry=0x7f2fc1e430f0 <last_result+16>, errstring=errstring at entry=0x7f2fc1e430f8 <last_result+24>, mallocedp=mallocedp at entry=0x7f2fc1e430e8 <last_result+8>, 
    operate=operate at entry=0x7f2fc1e40220 <dlopen_doit>, args=args at entry=0x7ffe13e37ba0) at dl-error-skeleton.c:215
#28 0x00007f2fc1e40975 in _dlerror_run (operate=operate at entry=0x7f2fc1e40220 <dlopen_doit>, args=args at entry=0x7ffe13e37ba0) at dlerror.c:162
#29 0x00007f2fc1e40331 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#30 0x00007f2fc1e489af in ?? () from /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
#31 0x00007f2fc1e496ab in clGetPlatformIDs () from /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
#32 0x000055e3975c0f22 in ?? ()
#33 0x00007f2fc1ca4b17 in __libc_start_main (main=0x55e3975c0dd0, argc=1, argv=0x7ffe13e37e78, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe13e37e68) at ../csu/libc-start.c:310
#34 0x000055e3975c133a in ?? ()


More information about the mesa-dev mailing list