diff options
| author | Monk Liu <[email protected]> | 2017-04-26 06:51:54 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-05-24 21:40:39 +0000 |
| commit | 0c63e11340c6e41795feaaa3768cd6db3b2f8585 (patch) | |
| tree | ef0bb6c9b95f19e7595305d32e11a4911554d8b1 /drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c | |
| parent | drm/amdgpu:use job* to replace voluntary (diff) | |
| download | kernel-0c63e11340c6e41795feaaa3768cd6db3b2f8585.tar.gz kernel-0c63e11340c6e41795feaaa3768cd6db3b2f8585.zip | |
drm/amdgpu:only call flr_work under infinite timeout
Signed-off-by: Monk Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c | 13 |
1 files changed, 8 insertions, 5 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, { int r; - /* see what event we get */ - r = xgpu_vi_mailbox_rcv_msg(adev, IDH_FLR_NOTIFICATION); + /* trigger gpu-reset by hypervisor only if TDR disbaled */ + if (amdgpu_lockup_timeout == 0) { + /* see what event we get */ + r = xgpu_vi_mailbox_rcv_msg(adev, IDH_FLR_NOTIFICATION); - /* only handle FLR_NOTIFY now */ - if (!r) - schedule_work(&adev->virt.flr_work); + /* only handle FLR_NOTIFY now */ + if (!r) + schedule_work(&adev->virt.flr_work); + } return 0; } |
