[PATCH 11/12] drm/amdgpu/sriov:show error if ib test failed
Monk Liu
Monk.Liu at amd.com
Sat Sep 30 06:03:51 UTC 2017
fix loose mode gpu reset ib test result incorrect message
Change-Id: Ic4e3b51e4ff77c5e08d268a4a5ca32e7c882367c
Signed-off-by: Monk Liu <Monk.Liu at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 122e2e1..c3f10b5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -2902,7 +2902,8 @@ int amdgpu_sriov_gpu_reset(struct amdgpu_device *adev, struct amdgpu_job *job)
amdgpu_irq_gpu_reset_resume_helper(adev);
- if (amdgpu_ib_ring_tests(adev))
+ r = amdgpu_ib_ring_tests(adev);
+ if (r)
dev_err(adev->dev, "[GPU_RESET] ib ring test failed (%d).\n", r);
/* release full control of GPU after ib test */
--
2.7.4
More information about the amd-gfx
mailing list