aboutsummaryrefslogtreecommitdiffstats
path: root/tests/amdgpu/deadlock_tests.c
Commit message (Collapse)AuthorAgeFilesLines
* meson: always define whether headers existEric Engestrom2020-01-231-1/+1
| | | | | | | | Combined with -Wundef (added in 75758d2ccf & enforced in ba17673eed), this provides absolute safety against #ifdef typos. Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* tests/amdgpu: add gfx ring bad slow draw testFlora Cui2019-12-091-0/+18
| | | | | | | for gfx9 Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
* tests/amdgpu: add gfx ring draw hang testFlora Cui2019-12-091-0/+20
| | | | | | | for gfx9 Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
* tests/amdgpu: add bad slow dispatch testFlora Cui2019-12-091-0/+14
| | | | | | | add gfx/compute bad slow dispatch test for gfx9 Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
* tests/amdgpu: add dispatch hang testFlora Cui2019-12-091-0/+14
| | | | | | | add compute/gfx dispatch hang test for gfx9 Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
* tests/amdgpu: add deadlock test for sdmaCui, Flora2019-03-181-1/+102
| | | | | | | | | | | | | deadlock test for sdma will cause gpu recoverty. disable the test for now until GPU reset recovery could survive at least 1000 times test. v2: add modprobe parameter Reviewed-and-tested-by: Evan Quan <evan.quan@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Flora Cui <flora.cui@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu/test: Enable deadlock test for CI family (gfx7)Andrey Grodzovsky2018-12-111-1/+2
| | | | | | I retested GPU recovery with Bonaire ASIC and it works. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
* amdgpu/test: Disable deadlock tests for all non gfx8/9 ASICs.Andrey Grodzovsky2018-11-021-5/+7
| | | | | | | | Since only for those ASICs gpu reset is enabled by deafult. Also update disable message and fix identation . Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu/test: Add illegal register and memory access test v2Andrey Grodzovsky2018-11-011-3/+120
| | | | | | | | | | | | | | | Illegal access will cause CP hang followed by job timeout and recovery kicking in. Also, disable the suite for all APU ASICs until GPU reset issues for them will be resolved and GPU reset recovery will be enabled by default. v2: Add KV to deasbled APUs list and add comments regarding necessary kernel amdgpu paramteres to run the tests. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu/test: Fix deadlock tests for AI and RV v2Andrey Grodzovsky2018-10-101-5/+8
| | | | | | | | | | | | | | | Seems like AI and RV requires uncashed memory mapping to be able to pickup value written to memory by CPU after the WAIT_REG_MEM command was already launched. . Enable the test for AI and RV. v2: Update commit description. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: Disable deadlock test suite for RVLikun Gao2018-08-161-1/+2
| | | | | | | | | disable deadlock test suite for RV Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Likun Gao <Likun.Gao@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* meson,configure: include config.h automaticallyEric Engestrom2018-03-201-4/+0
| | | | | | | | | This will prevent any more missing `#include "config.h"` bug, at the cost of having to recompile some files that didn't need to be when changing build options. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* tests/amdgpu: drop unused variablesEric Engestrom2018-01-291-2/+1
| | | | | Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* amdgpu: Disable deadlock test suite by default for SI ASICsMichel Dänzer2018-01-261-1/+2
| | | | | | Hangs my Cape Verde. Acked-by: Christian König <christian.koenig@amd.com>
* amdgpu: Fix segfault in deadlock test.Andrey Grodzovsky2018-01-261-2/+2
| | | | | | | | If amdgpu_cs_query_fence_status terminates prematurely the BO sometimes is unmapped before helper thread writes a vlaue into it causing a segfault. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
* amdgpu: Update deadlock test to not assert on ECANCELEDAndrey Grodzovsky2018-01-261-2/+2
| | | | | | | | Kernel will abort jobs for guilty (causing GPU hang) context with -ECANCELED don't assert if that the case. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
* amdgpu: Don't dereference device_handle after amdgpu_device_deinitializeMichel Dänzer2018-01-161-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | Fixes use after free: ==2537== Invalid read of size 4 ==2537== at 0x1162C9: suite_deadlock_tests_enable (deadlock_tests.c:101) ==2537== by 0x10B157: amdgpu_disable_suits (amdgpu_test.c:421) ==2537== by 0x10B157: main (amdgpu_test.c:560) ==2537== Address 0x5e44f24 is 452 bytes inside a block of size 1,016 free'd ==2537== at 0x4C2BE1B: free (vg_replace_malloc.c:530) ==2537== by 0x504CD8B: amdgpu_device_reference (amdgpu_device.c:164) ==2537== by 0x504CD8B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==2537== by 0x1162BB: suite_deadlock_tests_enable (deadlock_tests.c:97) ==2537== by 0x10B157: amdgpu_disable_suits (amdgpu_test.c:421) ==2537== by 0x10B157: main (amdgpu_test.c:560) ==2537== Block was alloc'd at ==2537== at 0x4C2CC05: calloc (vg_replace_malloc.c:711) ==2537== by 0x504CA5E: amdgpu_device_initialize (amdgpu_device.c:212) ==2537== by 0x116298: suite_deadlock_tests_enable (deadlock_tests.c:93) ==2537== by 0x10B157: amdgpu_disable_suits (amdgpu_test.c:421) ==2537== by 0x10B157: main (amdgpu_test.c:560) Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: Disable deadlock test suite for Vega 10Andrey Grodzovsky2017-11-151-0/+19
| | | | | | | The test stalls the CP, until RCA is done the test is disabled to not disrupt regression testing. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
* amdgpu: Use new suite/test disabling functionality.Andrey Grodzovsky2017-11-131-7/+1
| | | | | | | | Switch from disabling tests during run to using the new disable API. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: Add deadlock detection test suit.Andrey Grodzovsky2017-10-041-0/+245
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>