diff options
author | Monk Liu <Monk.Liu@amd.com> | 2017-10-16 07:46:01 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-19 15:27:18 -0400 |
commit | f993d628a2d3cb5e0a82a5284b24cef745f42b41 (patch) | |
tree | a031ab4ca6817a4cd2c7988273fd97736baaf12f | |
parent | c70b78a71e9a283240f72dfdfff8fd2388db51da (diff) |
drm/amdgpu:don't check soft_reset for sriov
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Ack-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 0731b4f9b25c..3a6ce6386ad0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -2625,6 +2625,9 @@ static bool amdgpu_check_soft_reset(struct amdgpu_device *adev) | |||
2625 | int i; | 2625 | int i; |
2626 | bool asic_hang = false; | 2626 | bool asic_hang = false; |
2627 | 2627 | ||
2628 | if (amdgpu_sriov_vf(adev)) | ||
2629 | return true; | ||
2630 | |||
2628 | for (i = 0; i < adev->num_ip_blocks; i++) { | 2631 | for (i = 0; i < adev->num_ip_blocks; i++) { |
2629 | if (!adev->ip_blocks[i].status.valid) | 2632 | if (!adev->ip_blocks[i].status.valid) |
2630 | continue; | 2633 | continue; |