From: Alex Deucher Date: Thu, 5 Jan 2012 10:02:42 +0000 (+0000) Subject: drm/radeon/kms: add missing ring ready check in sync tests X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f2e124df90cfc1347fd301409570fa9b0aed2c9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/radeon/kms: add missing ring ready check in sync tests Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/radeon_test.c b/drivers/gpu/drm/radeon/radeon_test.c index 210d99f91932..dc5dcf483aa3 100644 --- a/drivers/gpu/drm/radeon/radeon_test.c +++ b/drivers/gpu/drm/radeon/radeon_test.c @@ -471,6 +471,8 @@ void radeon_test_syncing(struct radeon_device *rdev) for (k = 0; k < j; ++k) { struct radeon_ring *ringC = &rdev->ring[k]; + if (!ringC->ready) + continue; DRM_INFO("Testing syncing between rings %d, %d and %d...\n", i, j, k); radeon_test_ring_sync2(rdev, ringA, ringB, ringC);