drm/amdgpu: tighten gpu_recover in mailbox_flr to avoid duplicate recover in sriov
Subsystems (2)
PATCH 1/1 drm/amdgpu: tighten gpu_recover in mailbox_flr to avoid duplicate recover in sriov
sriov's gpu_recover inside xgpu_ai_mailbox_flr_work would cause duplicate recover in TDR. TDR's gpu_recover would be triggered by amdgpu_job_timedout,
that could avoid vk-cts failure by unexpected recover.
--- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +2 -1
@@ -266,7 +266,8 @@ static void xgpu_ai_mailbox_flr_work(struct work_struct *work) }/* Trigger recovery for world switch failure if no TDR */ -if (amdgpu_device_should_recover_gpu (adev)) +if (amdgpu_device_should_recover_gpu (adev) + && amdgpu_lockup_timeout ==MAX_SCHEDULE_TIMEOUT )amdgpu_device_gpu_recover (adev,NULL ); }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1548818214-18078-1-git-send-email-Wentao.Lou-5C7GfCeVMHo@public.gmane.org
Grodzovsky, Andrey
Acked-by Andrey GrodzovskyAndrey
Quoted 15 lines · wentalou
sriov's
gpu_recoverinsidexgpu_ai_mailbox_flr_workwould cause duplicate recover in TDR. TDR'sgpu_recoverwould be triggered byamdgpu_job_timedout,
that could avoid vk-cts failure by unexpected recover.Change-Id I840dfc145e4e1be9ece6eac8d9f3501da9b28ebfSigned-off-by wentalou <[email protected]>--- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +0
-0
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c static void xgpu_ai_mailbox_flr_work(struct work_struct *work) · line 273
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +2
-1@@ -266,7 +266,8 @@ static void xgpu_ai_mailbox_flr_work(struct work_struct *work) }/* Trigger recovery for world switch failure if no TDR */ -if (amdgpu_device_should_recover_gpu (adev)) +if (amdgpu_device_should_recover_gpu (adev) + && amdgpu_lockup_timeout ==MAX_SCHEDULE_TIMEOUT )amdgpu_device_gpu_recover (adev,NULL ); }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx