diff options
author | Christian König <christian.koenig@amd.com> | 2013-08-13 05:56:52 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-08-30 16:30:41 -0400 |
commit | 2e1e6dad6a6d437e4c40611fdcc4e6cd9e2f969e (patch) | |
tree | 325bb0cb184b6a39211403124336f4e18b0728d4 /drivers/gpu/drm/radeon/si.c | |
parent | 02c9f7fa4e7230fc4ae8bf26f64e45aa76011f9c (diff) |
drm/radeon: remove special handling for the DMA ring
Now that we have callbacks for [rw]ptr handling we can
remove the special handling for the DMA rings and use
the callbacks instead.
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/si.c')
-rw-r--r-- | drivers/gpu/drm/radeon/si.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index 4ff59c8f508f..ae232be62921 100644 --- a/drivers/gpu/drm/radeon/si.c +++ b/drivers/gpu/drm/radeon/si.c | |||
@@ -6368,21 +6368,21 @@ static int si_startup(struct radeon_device *rdev) | |||
6368 | ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; | 6368 | ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; |
6369 | r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, | 6369 | r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, |
6370 | CP_RB0_RPTR, CP_RB0_WPTR, | 6370 | CP_RB0_RPTR, CP_RB0_WPTR, |
6371 | 0, 0xfffff, RADEON_CP_PACKET2); | 6371 | RADEON_CP_PACKET2); |
6372 | if (r) | 6372 | if (r) |
6373 | return r; | 6373 | return r; |
6374 | 6374 | ||
6375 | ring = &rdev->ring[CAYMAN_RING_TYPE_CP1_INDEX]; | 6375 | ring = &rdev->ring[CAYMAN_RING_TYPE_CP1_INDEX]; |
6376 | r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP1_RPTR_OFFSET, | 6376 | r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP1_RPTR_OFFSET, |
6377 | CP_RB1_RPTR, CP_RB1_WPTR, | 6377 | CP_RB1_RPTR, CP_RB1_WPTR, |
6378 | 0, 0xfffff, RADEON_CP_PACKET2); | 6378 | RADEON_CP_PACKET2); |
6379 | if (r) | 6379 | if (r) |
6380 | return r; | 6380 | return r; |
6381 | 6381 | ||
6382 | ring = &rdev->ring[CAYMAN_RING_TYPE_CP2_INDEX]; | 6382 | ring = &rdev->ring[CAYMAN_RING_TYPE_CP2_INDEX]; |
6383 | r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP2_RPTR_OFFSET, | 6383 | r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP2_RPTR_OFFSET, |
6384 | CP_RB2_RPTR, CP_RB2_WPTR, | 6384 | CP_RB2_RPTR, CP_RB2_WPTR, |
6385 | 0, 0xfffff, RADEON_CP_PACKET2); | 6385 | RADEON_CP_PACKET2); |
6386 | if (r) | 6386 | if (r) |
6387 | return r; | 6387 | return r; |
6388 | 6388 | ||
@@ -6390,7 +6390,7 @@ static int si_startup(struct radeon_device *rdev) | |||
6390 | r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET, | 6390 | r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET, |
6391 | DMA_RB_RPTR + DMA0_REGISTER_OFFSET, | 6391 | DMA_RB_RPTR + DMA0_REGISTER_OFFSET, |
6392 | DMA_RB_WPTR + DMA0_REGISTER_OFFSET, | 6392 | DMA_RB_WPTR + DMA0_REGISTER_OFFSET, |
6393 | 2, 0x3fffc, DMA_PACKET(DMA_PACKET_NOP, 0, 0, 0, 0)); | 6393 | DMA_PACKET(DMA_PACKET_NOP, 0, 0, 0, 0)); |
6394 | if (r) | 6394 | if (r) |
6395 | return r; | 6395 | return r; |
6396 | 6396 | ||
@@ -6398,7 +6398,7 @@ static int si_startup(struct radeon_device *rdev) | |||
6398 | r = radeon_ring_init(rdev, ring, ring->ring_size, CAYMAN_WB_DMA1_RPTR_OFFSET, | 6398 | r = radeon_ring_init(rdev, ring, ring->ring_size, CAYMAN_WB_DMA1_RPTR_OFFSET, |
6399 | DMA_RB_RPTR + DMA1_REGISTER_OFFSET, | 6399 | DMA_RB_RPTR + DMA1_REGISTER_OFFSET, |
6400 | DMA_RB_WPTR + DMA1_REGISTER_OFFSET, | 6400 | DMA_RB_WPTR + DMA1_REGISTER_OFFSET, |
6401 | 2, 0x3fffc, DMA_PACKET(DMA_PACKET_NOP, 0, 0, 0, 0)); | 6401 | DMA_PACKET(DMA_PACKET_NOP, 0, 0, 0, 0)); |
6402 | if (r) | 6402 | if (r) |
6403 | return r; | 6403 | return r; |
6404 | 6404 | ||
@@ -6418,7 +6418,7 @@ static int si_startup(struct radeon_device *rdev) | |||
6418 | if (ring->ring_size) { | 6418 | if (ring->ring_size) { |
6419 | r = radeon_ring_init(rdev, ring, ring->ring_size, 0, | 6419 | r = radeon_ring_init(rdev, ring, ring->ring_size, 0, |
6420 | UVD_RBC_RB_RPTR, UVD_RBC_RB_WPTR, | 6420 | UVD_RBC_RB_RPTR, UVD_RBC_RB_WPTR, |
6421 | 0, 0xfffff, RADEON_CP_PACKET2); | 6421 | RADEON_CP_PACKET2); |
6422 | if (!r) | 6422 | if (!r) |
6423 | r = r600_uvd_init(rdev, true); | 6423 | r = r600_uvd_init(rdev, true); |
6424 | if (r) | 6424 | if (r) |