<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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">How about something like this:</p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><font face="Calibri,Helvetica,sans-serif">/* Disable timeout when GPU reset is disabled to avoid confusing timeout messages in the kernel log */</font></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><font face="Calibri,Helvetica,sans-serif">If (<span>amdgpu_gpu_recovery == 0 ||
<span>amdgpu_gpu_recovery == -1</span>)</span> </font></font></p>
<p style="margin-top:0;margin-bottom:0"> <font size="3" face="Calibri,Helvetica,sans-serif" color="black">
<span style="font-size:12pt;" id="divtagdefaultwrapper"><font size="2"><span style="font-size:11pt;">amdgpu_lockup_timeout</span></font></span></font> =
<font size="3" face="Calibri,Helvetica,sans-serif" color="black"><span style="font-size:12pt;" id="divtagdefaultwrapper"><font size="2"><span style="font-size:11pt;">MAX_SCHEDULE_TIMEOUT;</span></font></span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="3" face="Calibri,Helvetica,sans-serif" color="black"><span style="font-size:12pt;" id="divtagdefaultwrapper"><font size="2"><span style="font-size:11pt;"><br>
</span></font></span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="3" face="Calibri,Helvetica,sans-serif" color="black"><span style="font-size:12pt;" id="divtagdefaultwrapper"><font size="2"><span style="font-size:11pt;">Alex</span></font></span></font><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> Michel Dänzer <michel@daenzer.net><br>
<b>Sent:</b> Friday, March 16, 2018 12:25:03 PM<br>
<b>To:</b> Deucher, Alexander; Quan, Evan<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>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">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<br>
</div>
</span></font></div>
</body>
</html>