OSDN Git Service

amdgpu: Add deadlock detection test suit.
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Mon, 2 Oct 2017 18:07:48 +0000 (14:07 -0400)
committerChristian König <christian.koenig@amd.com>
Wed, 4 Oct 2017 08:50:02 +0000 (10:50 +0200)
commit670db97dc39a7879f52bad230327edf4374b7516
tree247bcf062f632e6922a0306d6ca3560e413bd111
parent736ef0b61cab55378202c5f49d91799cc2b99091
amdgpu: Add deadlock detection test suit.

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>
tests/amdgpu/Makefile.am
tests/amdgpu/amdgpu_test.c
tests/amdgpu/amdgpu_test.h
tests/amdgpu/deadlock_tests.c [new file with mode: 0644]