<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Acked-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></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> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Deng, Emily <Emily.Deng@amd.com><br>
<b>Sent:</b> Saturday, October 12, 2019 1:36 AM<br>
<b>To:</b> Deng, Emily <Emily.Deng@amd.com>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Subject:</b> RE: [PATCH] SWDEV-206718 drm/amdgpu: Fix tdr3 could hang with slow compute issue</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Ping....<br>
<br>
Best wishes<br>
Emily Deng<br>
<br>
<br>
<br>
>-----Original Message-----<br>
>From: Emily Deng <Emily.Deng@amd.com><br>
>Sent: Wednesday, October 9, 2019 6:52 PM<br>
>To: amd-gfx@lists.freedesktop.org<br>
>Cc: Deng, Emily <Emily.Deng@amd.com><br>
>Subject: [PATCH] SWDEV-206718 drm/amdgpu: Fix tdr3 could hang with slow<br>
>compute issue<br>
><br>
>When index is 1, need to set compute ring timeout for sriov and passthrough.<br>
><br>
>Signed-off-by: Emily Deng <Emily.Deng@amd.com><br>
>---<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 ++++-<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 ++++--<br>
> 2 files changed, 8 insertions(+), 3 deletions(-)<br>
><br>
>diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
>b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
>index 53ce227..2f5a015 100644<br>
>--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
>+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
>@@ -2664,8 +2664,11 @@ static int<br>
>amdgpu_device_get_job_timeout_settings(struct amdgpu_device *adev)<br>
> * There is only one value specified and<br>
> * it should apply to all non-compute jobs.<br>
> */<br>
>- if (index == 1)<br>
>+ if (index == 1) {<br>
> adev->sdma_timeout = adev->video_timeout = adev-<br>
>>gfx_timeout;<br>
>+ if (amdgpu_sriov_vf(adev) ||<br>
>amdgpu_passthrough(adev))<br>
>+ adev->compute_timeout = adev->gfx_timeout;<br>
>+ }<br>
> }<br>
><br>
> return ret;<br>
>diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
>b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
>index a88ea74..311abc8 100644<br>
>--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
>+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
>@@ -250,9 +250,11 @@ module_param_named(msi, amdgpu_msi, int, 0444);<br>
> * By default(with no lockup_timeout settings), the timeout for all non-<br>
>compute(GFX, SDMA and Video)<br>
> * jobs is 10000. And there is no timeout enforced on compute jobs.<br>
> */<br>
>-MODULE_PARM_DESC(lockup_timeout, "GPU lockup timeout in ms (default:<br>
>10000 for non-compute jobs and infinity timeout for compute jobs."<br>
>+MODULE_PARM_DESC(lockup_timeout, "GPU lockup timeout in ms (default:<br>
>for bare metal 10000 for non-compute jobs and infinity timeout for compute<br>
>jobs; "<br>
>+ "for passthrough or sriov, 10000 for all jobs."<br>
> " 0: keep default value. negative: infinity timeout), "<br>
>- "format is [Non-Compute] or [GFX,Compute,SDMA,Video]");<br>
>+ "format: for bare metal [Non-Compute] or<br>
>[GFX,Compute,SDMA,Video]; "<br>
>+ "for passthrough or sriov [all jobs] or<br>
>[GFX,Compute,SDMA,Video].");<br>
> module_param_string(lockup_timeout, amdgpu_lockup_timeout,<br>
>sizeof(amdgpu_lockup_timeout), 0444);<br>
><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">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a></div>
</span></font></div>
</body>
</html>