<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"MS PGothic";
        panose-1:2 11 6 0 7 2 5 8 2 4;}
@font-face
        {font-family:"\@MS PGothic";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"MS PGothic",sans-serif;
        mso-fareast-language:JA;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
p.msipheadera92f4c5c, li.msipheadera92f4c5c, div.msipheadera92f4c5c
        {mso-style-name:msipheadera92f4c5c;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"MS PGothic",sans-serif;
        mso-fareast-language:JA;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="msipheadera92f4c5c" style="margin:0in"><span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:#0078D7">[AMD Official Use Only - Internal Distribution Only]</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-CN">Hi Alex,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-CN">I have opened a MR:
<a href="https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/165">https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/165</a>.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-CN">Thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-CN">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-CN">Lang<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Deucher, Alexander <Alexander.Deucher@amd.com>
<br>
<b>Sent:</b> Friday, May 7, 2021 9:28 PM<br>
<b>To:</b> Yu, Lang <Lang.Yu@amd.com>; Chen, Guchun <Guchun.Chen@amd.com>; amd-gfx@lists.freedesktop.org; Huang, Ray <Ray.Huang@amd.com>; Song, Asher <Asher.Song@amd.com><br>
<b>Subject:</b> Re: [PATCH libdrm] Revert "tests/amdgpu: fix bo eviction test issue"<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:5.0pt"><span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:#0078D7">[AMD Official Use Only - Internal Distribution Only]<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black">For libdrm tests, please open a gitlab merge request:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black"><a href="https://gitlab.freedesktop.org/mesa/drm/-/merge_requests">https://gitlab.freedesktop.org/mesa/drm/-/merge_requests</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black">Alex<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> amd-gfx <<a href="mailto:amd-gfx-bounces@lists.freedesktop.org">amd-gfx-bounces@lists.freedesktop.org</a>>
 on behalf of Yu, Lang <<a href="mailto:Lang.Yu@amd.com">Lang.Yu@amd.com</a>><br>
<b>Sent:</b> Friday, May 7, 2021 3:10 AM<br>
<b>To:</b> Chen, Guchun <<a href="mailto:Guchun.Chen@amd.com">Guchun.Chen@amd.com</a>>;
<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a> <<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>>; Huang, Ray <<a href="mailto:Ray.Huang@amd.com">Ray.Huang@amd.com</a>>; Song, Asher <<a href="mailto:Asher.Song@amd.com">Asher.Song@amd.com</a>><br>
<b>Subject:</b> RE: [PATCH libdrm] Revert "tests/amdgpu: fix bo eviction test issue"</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">[AMD Official Use Only - Internal Distribution Only]<br>
<br>
<br>
Reviewed-by:  Lang Yu <<a href="mailto:Lang.Yu@amd.com">Lang.Yu@amd.com</a>><br>
<br>
Regards<span lang="JA">,</span><br>
Lang<br>
<br>
-----Original Message-----<br>
From: Chen, Guchun <<a href="mailto:Guchun.Chen@amd.com">Guchun.Chen@amd.com</a>>
<br>
Sent: Thursday, May 6, 2021 5:55 PM<br>
To: <a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>; Yu, Lang <<a href="mailto:Lang.Yu@amd.com">Lang.Yu@amd.com</a>>; Huang, Ray <<a href="mailto:Ray.Huang@amd.com">Ray.Huang@amd.com</a>>; Song, Asher <<a href="mailto:Asher.Song@amd.com">Asher.Song@amd.com</a>><br>
Cc: Chen, Guchun <<a href="mailto:Guchun.Chen@amd.com">Guchun.Chen@amd.com</a>><br>
Subject: [PATCH libdrm] Revert "tests/amdgpu: fix bo eviction test issue"<br>
<br>
This reverts commit a5a400c9581c3b91598623603067556b18084c5d.<br>
<br>
bo evict test was disabled by default per below commit. So still keep it as disabled.<br>
<br>
1f6a85cc test/amdgpu: disable bo eviction test by default<br>
<br>
Signed-off-by: Guchun Chen <<a href="mailto:guchun.chen@amd.com">guchun.chen@amd.com</a>><br>
---<br>
 tests/amdgpu/amdgpu_test.c |  3 +++<br>
 tests/amdgpu/basic_tests.c | 13 ++++---------<br>
 2 files changed, 7 insertions(+), 9 deletions(-)<br>
<br>
diff --git a/tests/amdgpu/amdgpu_test.c b/tests/amdgpu/amdgpu_test.c index 60f3a508..77bbfbcc 100644<br>
--- a/tests/amdgpu/amdgpu_test.c<br>
+++ b/tests/amdgpu/amdgpu_test.c<br>
@@ -496,6 +496,9 @@ static void amdgpu_disable_suites()<br>
                                 "gfx ring slow bad draw test (set amdgpu.lockup_timeout=50)", CU_FALSE))<br>
                         fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg());<br>
 <br>
+       if (amdgpu_set_test_active(BASIC_TESTS_STR, "bo eviction Test", CU_FALSE))<br>
+               fprintf(stderr, "test deactivation failed - %s\n", <br>
+CU_get_error_msg());<br>
+<br>
         /* This test was ran on GFX8 and GFX9 only */<br>
         if (family_id < AMDGPU_FAMILY_VI || family_id > AMDGPU_FAMILY_RV)<br>
                 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<br>
--- a/tests/amdgpu/basic_tests.c<br>
+++ b/tests/amdgpu/basic_tests.c<br>
@@ -928,15 +928,6 @@ static void amdgpu_bo_eviction_test(void)<br>
                                    0, &vram_info);<br>
         CU_ASSERT_EQUAL(r, 0);<br>
 <br>
-       r = amdgpu_query_heap_info(device_handle, AMDGPU_GEM_DOMAIN_GTT,<br>
-                                  0, &gtt_info);<br>
-       CU_ASSERT_EQUAL(r, 0);<br>
-<br>
-       if (vram_info.max_allocation > gtt_info.heap_size/3) {<br>
-               vram_info.max_allocation = gtt_info.heap_size/3;<br>
-               gtt_info.max_allocation = vram_info.max_allocation;<br>
-       }<br>
-<br>
         r = amdgpu_bo_alloc_wrap(device_handle, vram_info.max_allocation, 4096,<br>
                                  AMDGPU_GEM_DOMAIN_VRAM, 0, &vram_max[0]);<br>
         CU_ASSERT_EQUAL(r, 0);<br>
@@ -944,6 +935,10 @@ static void amdgpu_bo_eviction_test(void)<br>
                                  AMDGPU_GEM_DOMAIN_VRAM, 0, &vram_max[1]);<br>
         CU_ASSERT_EQUAL(r, 0);<br>
 <br>
+       r = amdgpu_query_heap_info(device_handle, AMDGPU_GEM_DOMAIN_GTT,<br>
+                                  0, &gtt_info);<br>
+       CU_ASSERT_EQUAL(r, 0);<br>
+<br>
         r = amdgpu_bo_alloc_wrap(device_handle, gtt_info.max_allocation, 4096,<br>
                                  AMDGPU_GEM_DOMAIN_GTT, 0, &gtt_max[0]);<br>
         CU_ASSERT_EQUAL(r, 0);<br>
--<br>
2.17.1<br>
_______________________________________________<br>
amd-gfx mailing list<br>
<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Cb3ce363db6e94aa1396308d9112727fc%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637559682163619573%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=d9uch8frkIAiVkdtaOHillKHngoVp8brn%2FxJuKatmYU%3D&amp;reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Cb3ce363db6e94aa1396308d9112727fc%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637559682163619573%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=d9uch8frkIAiVkdtaOHillKHngoVp8brn%2FxJuKatmYU%3D&amp;reserved=0</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>