diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-02-23 17:53:45 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-29 05:14:47 -0500 |
commit | f712812e1ba7f17a270f285c3e7e70c65186a8b4 (patch) | |
tree | 00b31997e1b369cca4dc7709b31a273fd9be3b3b /drivers/gpu/drm/radeon/ni.c | |
parent | dfb276f098e0e90319a346bae2f205f2690d6b42 (diff) |
drm/radeon/kms: make ring_start, ring_test, and ib_test per ring
Each ring type may need a different variant.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König<christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/ni.c')
-rw-r--r-- | drivers/gpu/drm/radeon/ni.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 6863a0538615..8ce7f9973a5c 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c | |||
@@ -1318,7 +1318,7 @@ int cayman_cp_resume(struct radeon_device *rdev) | |||
1318 | rdev->ring[CAYMAN_RING_TYPE_CP1_INDEX].ready = false; | 1318 | rdev->ring[CAYMAN_RING_TYPE_CP1_INDEX].ready = false; |
1319 | rdev->ring[CAYMAN_RING_TYPE_CP2_INDEX].ready = false; | 1319 | rdev->ring[CAYMAN_RING_TYPE_CP2_INDEX].ready = false; |
1320 | /* this only test cp0 */ | 1320 | /* this only test cp0 */ |
1321 | r = radeon_ring_test(rdev, &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]); | 1321 | r = radeon_ring_test(rdev, RADEON_RING_TYPE_GFX_INDEX, &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]); |
1322 | if (r) { | 1322 | if (r) { |
1323 | rdev->ring[RADEON_RING_TYPE_GFX_INDEX].ready = false; | 1323 | rdev->ring[RADEON_RING_TYPE_GFX_INDEX].ready = false; |
1324 | rdev->ring[CAYMAN_RING_TYPE_CP1_INDEX].ready = false; | 1324 | rdev->ring[CAYMAN_RING_TYPE_CP1_INDEX].ready = false; |
@@ -1518,7 +1518,7 @@ static int cayman_startup(struct radeon_device *rdev) | |||
1518 | if (r) | 1518 | if (r) |
1519 | return r; | 1519 | return r; |
1520 | 1520 | ||
1521 | r = r600_ib_test(rdev, RADEON_RING_TYPE_GFX_INDEX); | 1521 | r = radeon_ib_test(rdev, RADEON_RING_TYPE_GFX_INDEX, &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]); |
1522 | if (r) { | 1522 | if (r) { |
1523 | DRM_ERROR("radeon: failed testing IB (%d).\n", r); | 1523 | DRM_ERROR("radeon: failed testing IB (%d).\n", r); |
1524 | rdev->accel_working = false; | 1524 | rdev->accel_working = false; |