aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2017-04-26 02:51:54 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-05-24 17:40:39 -0400
commit0c63e11340c6e41795feaaa3768cd6db3b2f8585 (patch)
treeef0bb6c9b95f19e7595305d32e11a4911554d8b1 /drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
parent7225f8736c66b7130d3a6294217ed86f26b59489 (diff)
drm/amdgpu:only call flr_work under infinite timeout
Signed-off-by: Monk Liu <Monk.Liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
index 1cdf5cc8cc67..171a658135b5 100644
--- a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
@@ -537,12 +537,15 @@ static int xgpu_vi_mailbox_rcv_irq(struct amdgpu_device *adev,
537{ 537{
538 int r; 538 int r;
539 539
540 /* see what event we get */ 540 /* trigger gpu-reset by hypervisor only if TDR disbaled */
541 r = xgpu_vi_mailbox_rcv_msg(adev, IDH_FLR_NOTIFICATION); 541 if (amdgpu_lockup_timeout == 0) {
542 542 /* see what event we get */
543 /* only handle FLR_NOTIFY now */ 543 r = xgpu_vi_mailbox_rcv_msg(adev, IDH_FLR_NOTIFICATION);
544 if (!r) 544
545 schedule_work(&adev->virt.flr_work); 545 /* only handle FLR_NOTIFY now */
546 if (!r)
547 schedule_work(&adev->virt.flr_work);
548 }
546 549
547 return 0; 550 return 0;
548} 551}