<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">That's fine with me too. Or make them DRM_INFO.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Alex<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Liu, Monk<br>
<b>Sent:</b> Monday, March 26, 2018 8:55:51 AM<br>
<b>To:</b> Quan, Evan; Deucher, Alexander; Michel Dänzer<br>
<b>Cc:</b> amd-gfx@lists.freedesktop.org<br>
<b>Subject:</b> RE: [PATCH] drm/amdgpu: no job timeout setting on compute queues</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:DengXian}
@font-face
{font-family:Calibri}
@font-face
{font-family:DengXian}
@font-face
{font-family:"Microsoft YaHei"}
@font-face
{font-family:"Microsoft YaHei"}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
a:x_link, span.x_MsoHyperlink
{color:blue;
text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
p.x_msonormal0, li.x_msonormal0, div.x_msonormal0
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
span.x_EmailStyle18
{font-family:"Calibri",sans-serif;
color:windowtext}
span.x_EmailStyle21
{font-family:DengXian;
color:windowtext}
.x_MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:72.0pt 90.0pt 72.0pt 90.0pt}
div.x_WordSection1
{}
-->
</style>
<div lang="ZH-CN" link="blue" vlink="purple">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:10.5pt; font-family:DengXian">Besides, if some compute shader takes time more them 50 seconds, you can just set lockuptime out to 50s</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:10.5pt; font-family:DengXian">Why change the logic in kmd side ?</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:10.5pt; font-family:DengXian"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:10.5pt; font-family:DengXian">I don’t think it’s a good idea to disable the time out message for compute ring, we have virtualization end-user</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:10.5pt; font-family:DengXian">Still want those message printed out</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:10.5pt; font-family:DengXian"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:10.5pt; font-family:DengXian">Can you do this way ?</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:10.5pt; font-family:DengXian">In amdgpu_job_timeout, you can use DRM_WARN to replace DRM_ERROR for the job belongs to CPC engine ?</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:10.5pt; font-family:DengXian"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:10.5pt; font-family:DengXian">/Monk</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:10.5pt; font-family:DengXian"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org]
<b>On Behalf Of </b>Quan, Evan<br>
<b>Sent:</b> 2018</span><span style="font-family:"微软雅黑",sans-serif">年</span><span lang="EN-US">3</span><span style="font-family:"微软雅黑",sans-serif">月</span><span lang="EN-US">19</span><span style="font-family:"微软雅黑",sans-serif">日</span><span lang="EN-US"> 9:47<br>
<b>To:</b> Deucher, Alexander <Alexander.Deucher@amd.com>; Michel Dänzer <michel@daenzer.net><br>
<b>Cc:</b> amd-gfx@lists.freedesktop.org<br>
<b>Subject:</b> RE: [PATCH] drm/amdgpu: no job timeout setting on compute queues</span></p>
</div>
</div>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US">That’s fine for me. Will update the patch accordingly.</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US">Regards,</span></p>
<p class="x_MsoNormal"><span lang="EN-US">Evan</span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Deucher, Alexander
<br>
<b>Sent:</b> Saturday, March 17, 2018 1:17 AM<br>
<b>To:</b> Michel Dänzer <<a href="mailto:michel@daenzer.net">michel@daenzer.net</a>>; Quan, Evan <<a href="mailto:Evan.Quan@amd.com">Evan.Quan@amd.com</a>><br>
<b>Cc:</b> <a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
<b>Subject:</b> Re: [PATCH] drm/amdgpu: no job timeout setting on compute queues</span></p>
</div>
</div>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
<div id="x_divtagdefaultwrapper">
<p><span lang="EN-US" style="font-size:12.0pt; color:black">How about something like this:</span><span lang="EN-US"></span></p>
<p><span lang="EN-US" style="font-size:10.0pt; color:black">/* Disable timeout when GPU reset is disabled to avoid confusing timeout messages in the kernel log */</span><span lang="EN-US"></span></p>
<p><span lang="EN-US" style="font-size:10.0pt; color:black">If (amdgpu_gpu_recovery == 0 || amdgpu_gpu_recovery == -1)
</span><span lang="EN-US"></span></p>
<p><span lang="EN-US" style="font-size:12.0pt; color:black"> </span><span lang="EN-US" style="color:black">amdgpu_lockup_timeout</span><span lang="EN-US" style="font-size:12.0pt; color:black"> =
</span><span lang="EN-US" style="color:black">MAX_SCHEDULE_TIMEOUT;</span><span lang="EN-US"></span></p>
<p><span lang="EN-US" style="color:black"><br>
<br>
<br>
</span><span lang="EN-US"></span></p>
<p><span lang="EN-US" style="color:black">Alex</span><span lang="EN-US"></span></p>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center"><span lang="EN-US">
<hr size="2" width="98%" align="center">
</span></div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span lang="EN-US" style="color:black">From:</span></b><span lang="EN-US" style="color:black"> Michel Dänzer <<a href="mailto:michel@daenzer.net">michel@daenzer.net</a>><br>
<b>Sent:</b> Friday, March 16, 2018 12:25:03 PM<br>
<b>To:</b> Deucher, Alexander; Quan, Evan<br>
<b>Cc:</b> <a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
<b>Subject:</b> Re: [PATCH] drm/amdgpu: no job timeout setting on compute queues</span><span lang="EN-US">
</span></p>
<div>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
</div>
</div>
<div>
<div>
<p class="x_MsoNormal"><span lang="EN-US">On 2018-03-16 05:14 PM, Deucher, Alexander wrote:<br>
> Since GPU reset is not enabled yet anyway, a timeout will just print a<br>
> message, can we just change amdgpu_lockup_timeout to<br>
> MAX_SCHEDULE_TIMEOUT until we enable GPU reset?<br>
<br>
Wouldn't that be rather surprising for somebody who sets<br>
amdgpu.gpu_recovery=1 ?<br>
<br>
<br>
-- <br>
Earthling Michel Dänzer | <a href="http://www.amd.com">
http://www.amd.com</a><br>
Libre software enthusiast | Mesa and X developer</span></p>
</div>
</div>
</div>
</div>
</body>
</html>