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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +1 -1
@@ -266,7 +266,7 @@ 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 ==0 )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): 1548237051-31881-1-git-send-email-Wentao.Lou-5C7GfCeVMHo@public.gmane.org
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 Ifcba4ac43a0229ae19061aad3b0ddc96957ff9c6Signed-off-by wentalou <[email protected]>--- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 2 +- 1 file changed, 1 insertion(+), 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 269
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +1
-1@@ -266,7 +266,7 @@ 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 ==0 )
Not sure I fully understand the intent here but amdgpu_lockup_timeout == 0 is forced to 10000 in amdgpu_device_check_arguments and hence not an indication of disabled gpu recover - it will still happen.
Andrey
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c static void xgpu_ai_mailbox_flr_work(struct work_struct *work) · line 272
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +0
-0amdgpu_device_gpu_recover (adev,NULL ); }
_______________________________________________
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): 609eec03-4d51-c2e2-8e1f-aefb996c5efa-5C7GfCeVMHo@public.gmane.org
++Monk
Yes amdgpu_lockup_timeout was forced to 10000 in current code, that means amdgpu_device_gpu_recover was not triggered inside xgpu_ai_mailbox_flr_work. For sriov, amdgpu_device_gpu_recover was already called by amdgpu_job_timedout, unexpected amdgpu_device_gpu_recover called by xgpu_ai_mailbox_flr_work would make vk-cts failed.
-----Original Message-----
From: Grodzovsky, Andrey <[email protected]>
Sent: Thursday, January 24, 2019 12:27 AM
To: Lou, Wentao <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdgpu: tighten gpu_recover in mailbox_flr to avoid duplicate recover in sriov
Quoted 16 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 Ifcba4ac43a0229ae19061aad3b0ddc96957ff9c6Signed-off-by wentalou <[email protected]>--- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 2 +- 1 file changed, 1 insertion(+), 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 270
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +2
-1@@ -266,7 +266,7 @@ 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 +==0 )
Not sure I fully understand the intent here but amdgpu_lockup_timeout == 0 is forced to 10000 in amdgpu_device_check_arguments and hence not an indication of disabled gpu recover - it will still happen.
Andrey
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c static void xgpu_ai_mailbox_flr_work(struct work_struct *work) · line 271
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +0
-0amdgpu_device_gpu_recover (adev,NULL ); }
_______________________________________________
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): BYAPR12MB2742ED87810B57383393AACF839A0-ZGDeBxoHBPmbrehcvEBedAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Quoted 4 lines · Wentao
++Monk
Yes
amdgpu_lockup_timeoutwas forced to 10000 in current code, that meansamdgpu_device_gpu_recoverwas not triggered insidexgpu_ai_mailbox_flr_work. For sriov,amdgpu_device_gpu_recoverwas already called byamdgpu_job_timedout, unexpectedamdgpu_device_gpu_recovercalled byxgpu_ai_mailbox_flr_workwould make vk-cts failed.
So if I understand correctly your goal is to avoid the gpu recover triggered from xgpu_ai_mailbox_flr_work, bot I don't understand how adding 'amdgpu_lockup_timeout == 0' achieves that ?
Andrey
Quoted 36 lines
-----Original Message-----
From: Grodzovsky, Andrey <[email protected]>
Sent: Thursday, January 24, 2019 12:27 AM
To: Lou, Wentao <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdgpu: tightengpu_recoverinmailbox_flrto avoid duplicate recover in sriovQuoted 16 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 Ifcba4ac43a0229ae19061aad3b0ddc96957ff9c6Signed-off-by wentalou <[email protected]>--- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +0
-0drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c static void xgpu_ai_mailbox_flr_work(struct work_struct *work) · line 270
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +2
-1@@ -266,7 +266,7 @@ 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 +==0 )Not sure I fully understand the intent here but
amdgpu_lockup_timeout== 0 is forced to 10000 inamdgpu_device_check_argumentsand hence not an indication of disabled gpu recover - it will still happen.Andrey
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c static void xgpu_ai_mailbox_flr_work(struct work_struct *work) · line 271
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +0
-0amdgpu_device_gpu_recover (adev,NULL ); }_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx