Skip to contentSkip to conversation

drm/radeon: do not continue after error from r600_ib_test

PATCH In review Matthijs Kooijman 2 participants 2 messages Feb 2, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon: do not continue after error from r600_ib_test

This return statement got dropped while fixing the conflicts introduced in 7a7e8734ac3.

---
 drivers/gpu/drm/radeon/evergreen.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Note that I've not actually tested this change, I just noticed when reviewing the mentioned merge commit. If the removal of the return statement was intentional, this patch makes no sense (but sending a patch was the easiest way to point out this bug).

drivers/gpu/drm/radeon/evergreen.c +1 -0
index ccde2c9..5056a53 100644
@@ -3190,6 +3190,7 @@ static int evergreen_startup(struct radeon_device *rdev)
 	if (r) {
 		DRM_ERROR("radeon: failed testing IB (%d).\n", r);
 		rdev->accel_working = false;
+		return r;
 	}
 
 	r = r600_audio_init(rdev);
Signature · 1 line
1.7.7.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Matthijs Kooijman

This return statement got dropped while fixing the conflicts introduced in 7a7e8734ac3.
---
 drivers/gpu/drm/radeon/evergreen.c |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)

Note that I've not actually tested this change, I just noticed when reviewing the mentioned merge commit. If the removal of the return statement was intentional, this patch makes no sense (but sending a patch was the easiest way to point out this bug).

Patch is correct.

Quoted 20 lines
drivers/gpu/drm/radeon/evergreen.c +1 -1
index ccde2c9..5056a53 100644
@@ -3190,6 +3190,7 @@ static int evergreen_startup(struct radeon_device *rdev)
        if (r) {
                DRM_ERROR("radeon: failed testing IB (%d).\n", r);
                rdev->accel_working = false;
+               return r;
        }
 
        r = r600_audio_init(rdev);
--

1.7.7.3

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel