mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-24 23:08:31 +02:00
Adding initial tests for locks detection when SW scheduler FIFO is full. The test works by submitting a batch of identical commands which make the CP stall waiting for condition to become true. The condition is later satisfied form a helper thread. Other events that happen during this time might create deadlock situations. One such example is GPU reset triggered by this stall when amdgpu_lockup_timeout != 0. v2: Increase the delay from 2 to 100 ms. Comment out the compute test until it's working. Typos fix. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
34 lines
562 B
Makefile
34 lines
562 B
Makefile
AM_CFLAGS = \
|
|
-I $(top_srcdir)/include/drm \
|
|
-I $(top_srcdir)/amdgpu \
|
|
-I $(top_srcdir) \
|
|
-pthread
|
|
|
|
LDADD = $(top_builddir)/libdrm.la \
|
|
$(top_builddir)/amdgpu/libdrm_amdgpu.la \
|
|
$(CUNIT_LIBS)
|
|
|
|
if HAVE_INSTALL_TESTS
|
|
bin_PROGRAMS = \
|
|
amdgpu_test
|
|
else
|
|
noinst_PROGRAMS = \
|
|
amdgpu_test
|
|
endif
|
|
|
|
amdgpu_test_CPPFLAGS = $(CUNIT_CFLAGS)
|
|
|
|
amdgpu_test_SOURCES = \
|
|
amdgpu_test.c \
|
|
amdgpu_test.h \
|
|
basic_tests.c \
|
|
bo_tests.c \
|
|
cs_tests.c \
|
|
decode_messages.h \
|
|
vce_tests.c \
|
|
vce_ib.h \
|
|
frame.h \
|
|
uvd_enc_tests.c \
|
|
vcn_tests.c \
|
|
uve_ib.h \
|
|
deadlock_tests.c
|