Commit 0c63e113 authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher

drm/amdgpu:only call flr_work under infinite timeout

Signed-off-by: default avatarMonk Liu <Monk.Liu@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7225f873
...@@ -266,12 +266,15 @@ static int xgpu_ai_mailbox_rcv_irq(struct amdgpu_device *adev, ...@@ -266,12 +266,15 @@ static int xgpu_ai_mailbox_rcv_irq(struct amdgpu_device *adev,
{ {
int r; int r;
/* see what event we get */ /* trigger gpu-reset by hypervisor only if TDR disbaled */
r = xgpu_ai_mailbox_rcv_msg(adev, IDH_FLR_NOTIFICATION); if (amdgpu_lockup_timeout == 0) {
/* see what event we get */
/* only handle FLR_NOTIFY now */ r = xgpu_ai_mailbox_rcv_msg(adev, IDH_FLR_NOTIFICATION);
if (!r)
schedule_work(&adev->virt.flr_work); /* only handle FLR_NOTIFY now */
if (!r)
schedule_work(&adev->virt.flr_work);
}
return 0; return 0;
} }
......
...@@ -537,12 +537,15 @@ static int xgpu_vi_mailbox_rcv_irq(struct amdgpu_device *adev, ...@@ -537,12 +537,15 @@ static int xgpu_vi_mailbox_rcv_irq(struct amdgpu_device *adev,
{ {
int r; int r;
/* see what event we get */ /* trigger gpu-reset by hypervisor only if TDR disbaled */
r = xgpu_vi_mailbox_rcv_msg(adev, IDH_FLR_NOTIFICATION); if (amdgpu_lockup_timeout == 0) {
/* see what event we get */
/* only handle FLR_NOTIFY now */ r = xgpu_vi_mailbox_rcv_msg(adev, IDH_FLR_NOTIFICATION);
if (!r)
schedule_work(&adev->virt.flr_work); /* only handle FLR_NOTIFY now */
if (!r)
schedule_work(&adev->virt.flr_work);
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment