Skip to contentSkip to conversation

drm/amdgpu: Decrease compute timeout to 10 s for sriov multiple VF

PATCH Superseded Emily Deng 1 participant 2 messages Jan 7, 2021 – Jan 8, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Emily Deng

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Decrease compute timeout to 10 s for sriov multiple VF

From: "Emily.Deng" <[email protected]>

For multiple VF, after engine hang,as host driver will first encounter FLR, so has no meanning to set compute to 60s.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4 -1
index 5527c549db82..ce07b9b975ff 100644
@@ -3133,7 +3133,10 @@ static int amdgpu_device_get_job_timeout_settings(struct amdgpu_device *adev)
 	 */
 	adev->gfx_timeout = msecs_to_jiffies(10000);
 	adev->sdma_timeout = adev->video_timeout = adev->gfx_timeout;
-	if (amdgpu_sriov_vf(adev) || amdgpu_passthrough(adev))
+	if (amdgpu_sriov_vf(adev))
+		adev->compute_timeout = amdgpu_sriov_is_pp_one_vf(adev) ?
+					msecs_to_jiffies(60000) : msecs_to_jiffies(10000)
+	else if (amdgpu_passthrough(adev))
 		adev->compute_timeout =  msecs_to_jiffies(60000);
 	else
 		adev->compute_timeout = MAX_SCHEDULE_TIMEOUT;
Signature · 6 lines
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#1 lore raw

[AMD Official Use Only - Internal Distribution Only]

Ping ......

Best wishes
Emily Deng

Quoted 42 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Emily Deng
Sent: Thursday, January 7, 2021 10:50 AM
To: [email protected]
Cc: Deng, Emily <[email protected]>
Subject: [PATCH] drm/amdgpu: Decrease compute timeout to 10 s for sriov multiple VF

From: "Emily.Deng" <[email protected]>

For multiple VF, after engine hang,as host driver will first encounter FLR, so has no meanning to set compute to 60s.

---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 ++++-

1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -1
index 5527c549db82..ce07b9b975ff 100644
@@ -3133,7 +3133,10 @@ static int
 amdgpu_device_get_job_timeout_settings(struct amdgpu_device *adev)
 */
 adev->gfx_timeout = msecs_to_jiffies(10000);
 adev->sdma_timeout = adev->video_timeout = adev->gfx_timeout;
-if (amdgpu_sriov_vf(adev) || amdgpu_passthrough(adev))
+if (amdgpu_sriov_vf(adev))
+adev->compute_timeout =

amdgpu_sriov_is_pp_one_vf(adev) ?
+msecs_to_jiffies(60000) :
msecs_to_jiffies(10000)
+else if (amdgpu_passthrough(adev))
adev->compute_timeout = msecs_to_jiffies(60000);
else
adev->compute_timeout = MAX_SCHEDULE_TIMEOUT;
--
2.25.1

Quoted 10 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.f
reedesktop.org%2Fmailman%2Flistinfo%2Famd- gfx&amp;data=04%7C01%7CEmily.Deng%40amd.com%7C29287057e1d84e2 e912708d8b2b6f196%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7 C637455846125410803%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sda ta=YsS0ylgUl2p2vXWbYftPBoFn59xdKKOpBdTVoxbOE2Y%3D&amp;reserved=0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx