diff options
author | Flora Cui <flora.cui@amd.com> | 2019-04-22 15:57:23 +0800 |
---|---|---|
committer | Flora Cui <flora.cui@amd.com> | 2019-07-19 16:42:28 +0800 |
commit | 3aba0f3889e88ac7d08d2e3e8b0f181893dba97a (patch) | |
tree | eb84e5c7d6adb696249529f2daef6d27edf4dc7d /tests/amdgpu/amdgpu_test.c | |
parent | 0247b19dc0d61408fe3a5d2954468f28e6bfe200 (diff) | |
download | external_libdrm-3aba0f3889e88ac7d08d2e3e8b0f181893dba97a.tar.gz external_libdrm-3aba0f3889e88ac7d08d2e3e8b0f181893dba97a.tar.bz2 external_libdrm-3aba0f3889e88ac7d08d2e3e8b0f181893dba97a.zip |
tests/amdgpu: add gpu reset test
1. perform gpu reset
2. perform dispatch test to verify gpu reset to a good state
Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Diffstat (limited to 'tests/amdgpu/amdgpu_test.c')
-rw-r--r-- | tests/amdgpu/amdgpu_test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/amdgpu/amdgpu_test.c b/tests/amdgpu/amdgpu_test.c index 73403fb4..0c9364a6 100644 --- a/tests/amdgpu/amdgpu_test.c +++ b/tests/amdgpu/amdgpu_test.c @@ -472,6 +472,11 @@ static void amdgpu_disable_suites() if (family_id < AMDGPU_FAMILY_AI || family_id > AMDGPU_FAMILY_RV) if (amdgpu_set_test_active(BASIC_TESTS_STR, "Draw Test", CU_FALSE)) fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg()); + + /* This test was ran on GFX9 only */ + if (family_id < AMDGPU_FAMILY_AI || family_id > AMDGPU_FAMILY_RV) + if (amdgpu_set_test_active(BASIC_TESTS_STR, "GPU reset Test", CU_FALSE)) + fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg()); } /* The main() function for setting up and running the tests. |