<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: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Emily Deng <Emily.Deng@amd.com><br>
<b>Sent:</b> Tuesday, August 7, 2018 10:13 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Deng, Emily; Liu, Monk<br>
<b>Subject:</b> [PATCH] drm/amdgpu/sriov: give 8s for recover vram under RUNTIME</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Modify the commit message<br>
<br>
Extend the timeout for recovering vram bos from shadows on sr-iov<br>
to cover the worst case scenario for timeslices and VFs<br>
<br>
Under runtime, the wait fence time could be quite long when<br>
other VFs are in exclusive mode. For example, for 4 VF, every<br>
VF's exclusive timeout time is set to 3s, then the worst case is<br>
9s. If the VF number is more than 4,then the worst case time will<br>
be longer.<br>
The 8s is the test data, with setting to 8s, it will pass the TDR<br>
test for 1000 times.<br>
<br>
SWDEV-161490<br>
<br>
Change-Id: Ifc32d56ca7fde01b1f4fe2b0db6959b51909008a<br>
Signed-off-by: Monk Liu <Monk.Liu@amd.com><br>
Signed-off-by: Emily Deng <Emily.Deng@amd.com><br>
---<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
index 1d933db..ef82ad1 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
@@ -3124,7 +3124,7 @@ static int amdgpu_device_handle_vram_lost(struct amdgpu_device *adev)<br>
long tmo;<br>
<br>
if (amdgpu_sriov_runtime(adev))<br>
- tmo = msecs_to_jiffies(amdgpu_lockup_timeout);<br>
+ tmo = msecs_to_jiffies(8000);<br>
else<br>
tmo = msecs_to_jiffies(100);<br>
<br>
-- <br>
2.7.4<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" id="LPlnk239167" class="OWAAutoLink" previewremoved="true">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>