drm/radeon: clear needs_reset flag if IB test fails
authorChristian König <christian.koenig@amd.com>
Tue, 25 Mar 2014 10:41:40 +0000 (11:41 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 3 Apr 2014 10:35:40 +0000 (12:35 +0200)
If the IB test fails we don't want to reset the card over
and over again, just accept that it isn't working.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=76501

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_ring.c

index 8b0dfdd23793abcf1646f04d5611bf3ec3ad837f..f8050f5429e28b7b887528d3fb3ab623b6a85d32 100644 (file)
@@ -262,6 +262,7 @@ int radeon_ib_ring_tests(struct radeon_device *rdev)
                r = radeon_ib_test(rdev, i, ring);
                if (r) {
                        ring->ready = false;
+                       rdev->needs_reset = false;
 
                        if (i == RADEON_RING_TYPE_GFX_INDEX) {
                                /* oh, oh, that's really bad */