Skip to contentSkip to conversation

test/amdgpu: disable bo eviction test by default

PATCH In review Chunming Zhou 2 participants 2 messages Mar 1, 2018 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/amdgpu: disable bo eviction test by default

if some system hase no swap space and memory is less, than the test could fail.
And bo eviction test takes much more time in some system, which effects automation test result and efficiency.
So disable it by default now, only be used by developer manually.

---
 tests/amdgpu/amdgpu_test.c | 2 ++
 1 file changed, 2 insertions(+)
tests/amdgpu/amdgpu_test.c +2 -0
index 4f766aaf..35cb37a4 100644
@@ -432,6 +432,8 @@ static void amdgpu_disable_suits()
 	if (amdgpu_set_test_active(BO_TESTS_STR, "Metadata", CU_FALSE))
 		fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg());
 
+	if (amdgpu_set_test_active(BASIC_TESTS_STR, "bo eviction Test", CU_FALSE))
+		fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg());
 
 	/* This test was ran on GFX8 and GFX9 only */
 	if (family_id < AMDGPU_FAMILY_VI || family_id > AMDGPU_FAMILY_RV)
Signature · 6 lines
2.14.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Am 01.03.2018 um 11:10 schrieb Chunming Zhou:

Quoted 7 lines

if some system hase no swap space and memory is less, than the test could fail.
And bo eviction test takes much more time in some system, which effects automation test result and efficiency.
So disable it by default now, only be used by developer manually.

Quoted 9 lines
---
  tests/amdgpu/amdgpu_test.c | 2 ++
  1 file changed, 2 insertions(+)
tests/amdgpu/amdgpu_test.c +0 -0
index 4f766aaf..35cb37a4 100644

tests/amdgpu/amdgpu_test.c static void amdgpu_disable_suits() · line 439

Quoted 8 lines
tests/amdgpu/amdgpu_test.c +2 -0
@@ -432,6 +432,8 @@ static void amdgpu_disable_suits()
  	if (amdgpu_set_test_active(BO_TESTS_STR, "Metadata", CU_FALSE))
  		fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg());
 
+	if (amdgpu_set_test_active(BASIC_TESTS_STR, "bo eviction Test", CU_FALSE))
+		fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg());
 
  	/* This test was ran on GFX8 and GFX9 only */
  	if (family_id < AMDGPU_FAMILY_VI || family_id > AMDGPU_FAMILY_RV)

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx