Revert "tests/amdgpu: fix bo eviction test issue"
PATCH 1/1 Revert "tests/amdgpu: fix bo eviction test issue"
This reverts commit a5a400c9581c3b91598623603067556b18084c5d.
bo evict test was disabled by default per below commit. So still keep it as disabled.
1f6a85cc test/amdgpu: disable bo eviction test by default
--- tests/amdgpu/amdgpu_test.c | 3 +++ tests/amdgpu/basic_tests.c | 13 ++++--------- 2 files changed, 7 insertions(+), 9 deletions(-)
tests/amdgpu/amdgpu_test.c +3 -0
@@ -496,6 +496,9 @@ static void amdgpu_disable_suites() "gfx ring slow bad draw test (set amdgpu.lockup_timeout=50)", 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 )if (amdgpu_set_test_active (BASIC_TESTS_STR ,"Sync dependency Test" ,CU_FALSE ))
tests/amdgpu/basic_tests.c +4 -9
@@ -928,15 +928,6 @@ static void amdgpu_bo_eviction_test(void) 0, &vram_info);CU_ASSERT_EQUAL (r,0 ); - r =amdgpu_query_heap_info (device_handle,AMDGPU_GEM_DOMAIN_GTT , -0 , >t_info); -CU_ASSERT_EQUAL (r,0 ); - -if (vram_info.max_allocation > gtt_info.heap_size/3 ) { - vram_info.max_allocation = gtt_info.heap_size/3 ; - gtt_info.max_allocation = vram_info.max_allocation; - } - r =amdgpu_bo_alloc_wrap (device_handle, vram_info.max_allocation,4096 ,AMDGPU_GEM_DOMAIN_VRAM ,0 , &vram_max[0 ]);CU_ASSERT_EQUAL (r,0 );
@@ -944,6 +935,10 @@ static void amdgpu_bo_eviction_test(void) AMDGPU_GEM_DOMAIN_VRAM, 0, &vram_max[1]);CU_ASSERT_EQUAL (r,0 ); + r =amdgpu_query_heap_info (device_handle,AMDGPU_GEM_DOMAIN_GTT , +0 , >t_info); +CU_ASSERT_EQUAL (r,0 ); + r =amdgpu_bo_alloc_wrap (device_handle, gtt_info.max_allocation,4096 ,AMDGPU_GEM_DOMAIN_GTT ,0 , >t_max[0 ]);CU_ASSERT_EQUAL (r,0 );
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
Regards,
Lang
-----Original Message-----
From: Chen, Guchun <[email protected]>
Sent: Thursday, May 6, 2021 5:55 PM
To: [email protected]; Yu, Lang <[email protected]>; Huang, Ray <[email protected]>; Song, Asher <[email protected]>
Cc: Chen, Guchun <[email protected]>
Subject: [PATCH libdrm] Revert "tests/amdgpu: fix bo eviction test issue"
This reverts commit a5a400c9581c3b91598623603067556b18084c5d.
bo evict test was disabled by default per below commit. So still keep it as disabled.
1f6a85cc test/amdgpu: disable bo eviction test by default
--- tests/amdgpu/amdgpu_test.c | 3 +++ tests/amdgpu/basic_tests.c | 13 ++++--------- 2 files changed, 7 insertions(+), 9 deletions(-)
tests/amdgpu/amdgpu_test.c +4 -0
@@ -496,6 +496,9 @@ static void amdgpu_disable_suites() "gfx ring slow bad draw test (set amdgpu.lockup_timeout=50)", 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 )
if (amdgpu_set_test_active(BASIC_TESTS_STR, "Sync dependency Test", CU_FALSE)) diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c index 8e7c4916..3a4214f5 100644
tests/amdgpu/basic_tests.c +4 -9
@@ -928,15 +928,6 @@ static void amdgpu_bo_eviction_test(void) 0, &vram_info);CU_ASSERT_EQUAL (r,0 ); - r =amdgpu_query_heap_info (device_handle,AMDGPU_GEM_DOMAIN_GTT , -0 , >t_info); -CU_ASSERT_EQUAL (r,0 ); - -if (vram_info.max_allocation > gtt_info.heap_size/3 ) { - vram_info.max_allocation = gtt_info.heap_size/3 ; - gtt_info.max_allocation = vram_info.max_allocation; - } - r =amdgpu_bo_alloc_wrap (device_handle, vram_info.max_allocation,4096 ,AMDGPU_GEM_DOMAIN_VRAM ,0 , &vram_max[0 ]);CU_ASSERT_EQUAL (r,0 );
@@ -944,6 +935,10 @@ static void amdgpu_bo_eviction_test(void) AMDGPU_GEM_DOMAIN_VRAM, 0, &vram_max[1]);CU_ASSERT_EQUAL (r,0 ); + r =amdgpu_query_heap_info (device_handle,AMDGPU_GEM_DOMAIN_GTT , +0 , >t_info); +CU_ASSERT_EQUAL (r,0 ); + r =amdgpu_bo_alloc_wrap (device_handle, gtt_info.max_allocation,4096 ,AMDGPU_GEM_DOMAIN_GTT ,0 , >t_max[0 ]);CU_ASSERT_EQUAL (r,0 );
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Deucher, Alexander
Reviewed-by Lang Yu[AMD Official Use Only - Internal Distribution Only]
For libdrm tests, please open a gitlab merge request:
https://gitlab.freedesktop.org/mesa/drm/-/merge_requests
Alex
________________________________
From: amd-gfx <[email protected]> on behalf of Yu, Lang <[email protected]>
Sent: Friday, May 7, 2021 3:10 AM
To: Chen, Guchun <[email protected]>; [email protected] <[email protected]>; Huang, Ray <[email protected]>; Song, Asher <[email protected]>
Subject: RE: [PATCH libdrm] Revert "tests/amdgpu: fix bo eviction test issue"
[AMD Official Use Only - Internal Distribution Only]
Regards,
Lang
-----Original Message-----
From: Chen, Guchun <[email protected]>
Sent: Thursday, May 6, 2021 5:55 PM
To: [email protected]; Yu, Lang <[email protected]>; Huang, Ray <[email protected]>; Song, Asher <[email protected]>
Cc: Chen, Guchun <[email protected]>
Subject: [PATCH libdrm] Revert "tests/amdgpu: fix bo eviction test issue"
This reverts commit a5a400c9581c3b91598623603067556b18084c5d.
bo evict test was disabled by default per below commit. So still keep it as disabled.
1f6a85cc test/amdgpu: disable bo eviction test by default
--- tests/amdgpu/amdgpu_test.c | 3 +++ tests/amdgpu/basic_tests.c | 13 ++++--------- 2 files changed, 7 insertions(+), 9 deletions(-)
tests/amdgpu/amdgpu_test.c +4 -0
@@ -496,6 +496,9 @@ static void amdgpu_disable_suites() "gfx ring slow bad draw test (set amdgpu.lockup_timeout=50)", 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 )
if (amdgpu_set_test_active(BASIC_TESTS_STR, "Sync dependency Test", CU_FALSE)) diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c index 8e7c4916..3a4214f5 100644
tests/amdgpu/basic_tests.c +4 -9
@@ -928,15 +928,6 @@ static void amdgpu_bo_eviction_test(void) 0, &vram_info);CU_ASSERT_EQUAL (r,0 ); - r =amdgpu_query_heap_info (device_handle,AMDGPU_GEM_DOMAIN_GTT , -0 , >t_info); -CU_ASSERT_EQUAL (r,0 ); - -if (vram_info.max_allocation > gtt_info.heap_size/3 ) { - vram_info.max_allocation = gtt_info.heap_size/3 ; - gtt_info.max_allocation = vram_info.max_allocation; - } - r =amdgpu_bo_alloc_wrap (device_handle, vram_info.max_allocation,4096 ,AMDGPU_GEM_DOMAIN_VRAM ,0 , &vram_max[0 ]);CU_ASSERT_EQUAL (r,0 );
@@ -944,6 +935,10 @@ static void amdgpu_bo_eviction_test(void) AMDGPU_GEM_DOMAIN_VRAM, 0, &vram_max[1]);CU_ASSERT_EQUAL (r,0 ); + r =amdgpu_query_heap_info (device_handle,AMDGPU_GEM_DOMAIN_GTT , +0 , >t_info); +CU_ASSERT_EQUAL (r,0 ); + r =amdgpu_bo_alloc_wrap (device_handle, gtt_info.max_allocation,4096 ,AMDGPU_GEM_DOMAIN_GTT ,0 , >t_max[0 ]);CU_ASSERT_EQUAL (r,0 );
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Calexander.deucher%40amd.com%7Cb3ce363db6e94aa1396308d9112727fc%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637559682163619573%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=d9uch8frkIAiVkdtaOHillKHngoVp8brn%2FxJuKatmYU%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Yu, Lang
Reviewed-by Lang Yu[AMD Official Use Only - Internal Distribution Only]
Hi Alex,
I have opened a MR: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/165.
Thanks.
Regards,
Lang
From: Deucher, Alexander <[email protected]>
Sent: Friday, May 7, 2021 9:28 PM
To: Yu, Lang <[email protected]>; Chen, Guchun <[email protected]>; [email protected]; Huang, Ray <[email protected]>; Song, Asher <[email protected]>
Subject: Re: [PATCH libdrm] Revert "tests/amdgpu: fix bo eviction test issue"
[AMD Official Use Only - Internal Distribution Only]
For libdrm tests, please open a gitlab merge request:
https://gitlab.freedesktop.org/mesa/drm/-/merge_requests
Alex
________________________________
From: amd-gfx <[email protected]<mailto:[email protected]>> on behalf of Yu, Lang <[email protected]<mailto:[email protected]>>
Sent: Friday, May 7, 2021 3:10 AM
To: Chen, Guchun <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; Huang, Ray <[email protected]<mailto:[email protected]>>; Song, Asher <[email protected]<mailto:[email protected]>>
Subject: RE: [PATCH libdrm] Revert "tests/amdgpu: fix bo eviction test issue"
[AMD Official Use Only - Internal Distribution Only]
Regards,
Lang
-----Original Message-----
From: Chen, Guchun <[email protected]<mailto:[email protected]>>
Sent: Thursday, May 6, 2021 5:55 PM
To: [email protected]<mailto:[email protected]>; Yu, Lang <[email protected]<mailto:[email protected]>>; Huang, Ray <[email protected]<mailto:[email protected]>>; Song, Asher <[email protected]<mailto:[email protected]>>
Cc: Chen, Guchun <[email protected]<mailto:[email protected]>>
Subject: [PATCH libdrm] Revert "tests/amdgpu: fix bo eviction test issue"
This reverts commit a5a400c9581c3b91598623603067556b18084c5d.
bo evict test was disabled by default per below commit. So still keep it as disabled.
1f6a85cc test/amdgpu: disable bo eviction test by default
--- tests/amdgpu/amdgpu_test.c | 3 +++ tests/amdgpu/basic_tests.c | 13 ++++--------- 2 files changed, 7 insertions(+), 9 deletions(-)
tests/amdgpu/amdgpu_test.c +4 -0
@@ -496,6 +496,9 @@ static void amdgpu_disable_suites() "gfx ring slow bad draw test (set amdgpu.lockup_timeout=50)", 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 )
if (amdgpu_set_test_active(BASIC_TESTS_STR, "Sync dependency Test", CU_FALSE)) diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c index 8e7c4916..3a4214f5 100644
tests/amdgpu/basic_tests.c +4 -9
@@ -928,15 +928,6 @@ static void amdgpu_bo_eviction_test(void) 0, &vram_info);CU_ASSERT_EQUAL (r,0 ); - r =amdgpu_query_heap_info (device_handle,AMDGPU_GEM_DOMAIN_GTT , -0 , >t_info); -CU_ASSERT_EQUAL (r,0 ); - -if (vram_info.max_allocation > gtt_info.heap_size/3 ) { - vram_info.max_allocation = gtt_info.heap_size/3 ; - gtt_info.max_allocation = vram_info.max_allocation; - } - r =amdgpu_bo_alloc_wrap (device_handle, vram_info.max_allocation,4096 ,AMDGPU_GEM_DOMAIN_VRAM ,0 , &vram_max[0 ]);CU_ASSERT_EQUAL (r,0 );
@@ -944,6 +935,10 @@ static void amdgpu_bo_eviction_test(void) AMDGPU_GEM_DOMAIN_VRAM, 0, &vram_max[1]);CU_ASSERT_EQUAL (r,0 ); + r =amdgpu_query_heap_info (device_handle,AMDGPU_GEM_DOMAIN_GTT , +0 , >t_info); +CU_ASSERT_EQUAL (r,0 ); + r =amdgpu_bo_alloc_wrap (device_handle, gtt_info.max_allocation,4096 ,AMDGPU_GEM_DOMAIN_GTT ,0 , >t_max[0 ]);CU_ASSERT_EQUAL (r,0 );
--
2.17.1
_______________________________________________
amd-gfx mailing list [email protected]<mailto:[email protected]>
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Calexander.deucher%40amd.com%7Cb3ce363db6e94aa1396308d9112727fc%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637559682163619573%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=d9uch8frkIAiVkdtaOHillKHngoVp8brn%2FxJuKatmYU%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx